meta-web3
Web3 wrapper for ERC721, 725, 735 and governance
Install
npm i meta-web3
Components
- Registry
- AttestationAgencyRegistry
- Identity
- IdentityManager
- TopicRegistry
- AchievementManager
- BallotStorage
- EnvStorage
- Governance
- Staking
Usage
import React Component from 'react' // Web3import Web3 from 'web3';import web3config from './web3-config.json' // Contractsimport constants contracts getContractsAddresses initContracts TopicRegistry from 'meta-web3' state = initDone: false ; async { ; } async { // If you want to initialize each contract directly ; } { this; } { return <div> thisstateinitDone && Object </div> }
Test
cd meta-web3
npm start
[Ctrl+C]
cd example
npm start