🔌 Web3 Contracts for Metronome Token ready to be used.
Install
npm install --save metronome-contracts
Usage
const Web3 = const MetronomeContracts = const web3 = 'http://localhost:8545'const metronomeContracts = web3 'mainnet' metronomeContractsMETTokenmethods
API
MetronomeContracts(web3, chain)
Constructor for the Metronome contracts object.
It shall receive a web3
instance and an optional chain
parameter that default to 'mainnet'
.
Other supported chains are: 'classic'
, 'ropsten'
and 'mordor'
.
Numeric chain IDs can also be used.
metronomeContracts.{contractName}
The instance of the Metronome contracts will have a property for each contract: Auctions
, AutonomousConverter
, METToken
, TokenPorter
and Validator
.
Each contract is an instance of web3.eth.Contract
.
MetronomeContracts.{chain}.{contractName}
This is a convenience object containing the abi
, address
and the birthblock
of the contract on the specified chain.
Contracts API
Auctions
Autonomous Converter
METToken
Proposals
TokenPorter
Validator
License
MIT