A compilation of multiple smart contracts
yarn install
- Go to Remix
- Create a new file with the contract name to test (MyToken, Token)
- Paste the contract's code
- Change the start of all the
zeppelin-solidityimports toimport "http://github.com/OpenZeppelin/...";
import "zeppelin-solidity/contracts/token/ERC20/DetailedERC20.sol";
// -> Change to ->
import "http://github.com/OpenZeppelin/zeppelin-solidity/contracts/token/ERC20/DetailedERC20.sol";
- In the
Compiletab choose the contract name and click "Start to compile" - In the
Runtab choose the contract and click "Create"
All contracts and libraries defined in the zeppelin-solidity repository follow the standards from the EIPs (Ethereum Improvement Proposals).
The contracts defined here extend the DetailedERC20, StandardToken and Ownable contracts, these allows the contracts to be named, have a symbol, to tranfer from and to, to be owned by an account and to be tranfered to another account.