Matter (MTR) is an ERC-20 token used by the Dragon Den social media platform to equitably divvy up NRG between users.
Network | Contract Address |
---|---|
Ropsten Temp | 0x7BA85BE2fe2918547a8Cf9A673C8b26f18Ed331e |
------- | ---------------- |
Mainnet | 0x41Febd364e5815f860c7D94829804A3638E98edD](https://etherscan.io/address/0x41Febd364e5815f860c7D94829804A3638E98edD) |
- Install global dependency: truffle-flattener
- Run below command
npx truffle-flattener ./contracts/Matter.sol > ./contracts/FlatMatter.sol
- Upload FlatMatter.sol to Etherscan
- Install dependencies:
npm install
- Create .env file with the below variables:
MNEMONIC="ethereum wallet mnemonic phrase used by metamask"
INFURA_ROPSTEN_API_KEY=YOUR INFURA API KEY
- Compile contracts:
truffle compile
- Deploy contracts:
truffle migrate --network NETWORK_NAME
function approve(address _spender, uint256 _value);
function transfer(address _to, uint256 _value);
function transferFrom(address _from, address _to, uint256 _value);
function totalSupply();
function balanceOf(address _owner);
function allowance(address _owner, address _spender);
event Transfer(address indexed _from, address indexed _to, uint256 _value);
event Approval(address indexed _owner, address indexed _spender, uint256 _value);
Refer to ERC-20 standard for detailed specification.
The mint()
function can be called by anyone during the minting hour (defaulted to 23:00-23:59) as long as it's been at least 10 hours since the last mint
hemlokc |
lancekrogers |
emtesenair |
j0j0r0 |