Code Monkey home page Code Monkey logo

smartcontract's Introduction

MFG Smart Contract

The MFG Token is a utility token used on the SyncFab platform to reward purchasers and manufacturers, make payments, protect intellectual properties, promote trust and transparency through the execution of smart contracts on the blockchain

./contracts folder contains all the contracts that are related to token generation.
./tests folder contains the same contracts plus some others for reference, and tests.
./contracts/standalone folder contains following 6 contracts as a single, standalone files for easier compilation.

AssetWithRevert.sol deployed at 0x3f107d2e732f78275d43e60c43d654a14d9a901b and verified on Etherscan
EToken2.sol ByteCode identical with deployed 0x331d077518216c07C87f4f18bA64cd384c411F84 contract, compiler 0.4.8+commit.60cc1668, enabled optimization, 200 runs;
Ambi2.sol ByteCode identical with deployed 0x48681684FfcC808C10E519364d31B73662B3e333 contract, compiler 0.4.8+commit.60cc1668, enabled optimization, 200 runs;
EToken2Emitter.sol ByteCode identical with deployed 0xE8C051e1647A19Fbb0F94e3Cd3FcE074AE3C333D contract, compiler 0.4.8+commit.60cc1668, enabled optimization, 200 runs;
EventsHistory.sol ByteCode identical with deployed 0x60bf91ac87fEE5A78c28F7b67701FBCFA79C18EC contract, 0.3.5-nightly.2016.7.1+commit.48238c9, enabled optimization, 200 runs;
RegistryICAP.sol ByteCode identical with deployed 0x96a51938CFB22565E0d40694Fe103675c63AE218 contract, 0.3.5-nightly.2016.7.1+commit.48238c9, enabled optimization, 200 runs;
MultiAssetEmitter.sol ByteCode identical with deployed 0x4E8703a59FEc01A97d4d2D76271E4F086dbB52Fc contract, 0.3.5-nightly.2016.7.1+commit.48238c9, enabled optimization, 200 runs;


EToken2 is the main asset platform.
It talks to EventsHistory to store events, which in turn asks MultiAssetEmitter and EToken2Emitter for event definitions.
EventsHistory uses Ambi for admin access checks.
It talks to RegistryICAP to resolve ICAP addresses.
RegistryICAP uses Ambi for admin access checks.
It uses Ambi2 for admin access checks.
It talks to SyncFab (deployed separately for every asset) which in turn talks to Asset[AssetWithRevert] (deployed separately).

SyncFab is the ERC20 to EToken2 interface contract, entry point for asset users.

Running tests

$ npm run testrpc
$ npm run test

smartcontract's People

Contributors

syncfab-admin avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.