Skip to content

dragonchain/mtr-ethereum-contract

Repository files navigation

den

Matter Ethereum Smart Contract

Matter (MTR) is an ERC-20 token used by the Dragon Den social media platform to equitably divvy up NRG between users.

Deployed Contracts

Network Contract Address
Ropsten Temp 0x7BA85BE2fe2918547a8Cf9A673C8b26f18Ed331e
------- ----------------
Mainnet 0x41Febd364e5815f860c7D94829804A3638E98edD](https://etherscan.io/address/0x41Febd364e5815f860c7D94829804A3638E98edD)

Etherscan: Verify & Publish Contract Source Code

npx truffle-flattener ./contracts/Matter.sol > ./contracts/FlatMatter.sol

Development

  • 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

Specification

ERC-20

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.

Minting

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

Contributors


hemlokc

lancekrogers

emtesenair

j0j0r0

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published