hedera-stable-coin-solidity-ethereum
hedera-stable-coin-solidity-ethereum copied to clipboard
Hedera Stable Coin implementation as a Solidity smart contract for Ethereum
StableCoin Smart Contract
ERC20 Externally Minted Token with Access Control
Developed using OpenZeppelin CLI and the Truffle Suite
Setup
You'll need Yarn, the Open Zeppelin CLI and the Truffle Suite to set up the development environment. I also recommend using NVM for managing the Node Version you are currently using.
Commands
-
yarninstalls dependencies -
yarn oz compileuses the openzeppelin cli (and oz sdk) to compile the solidity contracts. -
yarn truffle compileuses truffle to compile the solidity contracts -
yarn testruns mocha/chai/oz tests inside of a managed test environment -
yarn network:trufflesets up the local development network via truffle -
yarn network:ganachesets up the local development network via ganache cli -
yarn deployruns the openzeppelin deployment in interactive mode -
yarn deploy:truffledeploys the compiled smart contract to the local truffle development network -
yarn deploy:ganachedeploys the compiled smart contract to the local ganache development network
Network information is defined in truffle-config.js, which is read by openzeppelin CLI automatically.
SOLC 0.6.8 used as compiler for both the oz sdk and truffle
Contract
-
ERC20, Ownable, Claimable, Pausable
-
RBAC for Supply, Asset Protection, KYC, Frozen