Table of Contents
A module to upload contract ABI to Amberdata.io, allowing for automated security audits and analytics!
Install the module and the post-install script will add a migration script to your migrations folder.
truffle migrate and the script will handle the rest, uploading your contract ABI to our upload endpoint! 🚀
npm install web3data-deploy
postinstall.js script may fail if it does not have the proper permissions.
If this is the case, run:
chmod +x node_modules/web3data-deploy/scripts/postinstall.js
npm explore web3data-deploy-- npm run postinstall
Amberedata.io currently supports Ethereum Mainnet & Ropsten Testnet.
Network Not Supported Error
You may see an error:
[ Uploader ] INFO: Network, 'X', not supported by amberdata. Contract ABI not uploaded.
This could occur if you are deploying to an unsupported network or (and more likely) the network id in your truffle.js file is wrong.
Make sure that the network id corresponds with the JSON RPC network ids:
"1": Ethereum Mainnet
"4": Rinkeby Testnet
// truffle.jsmoduleexports =networks:development:host: 'localhost'port: 8545network_id: '*' // Match any network idrinkeby:network_id: 4mainet:network_id: 1
Come join the discussion on Discourse!
This project is licensed under the Apache Licence 2.0.