Create a persistent interface for any smart contract directly from a Truffle project. 🏆 Winner 3rd Place at Trufflecon 2019 Hackathon
From within your Truffle project directory, run
npm i oneclick
Next, add the plugin to the truffle-config.js
file, like this:
module.exports = {
/* ... rest of truffle-config */
plugins: ['oneclick']
};
truffle run oneclick
Note: Be sure you've migrated your contracts using Ganache, testnet, mainnet, etc. using
truffle migrate
For each deployed contract you will receive an output like this: I
ShipA (8 functions) on network 4447 can be used at:
https://oneclickdapp.com/saga-north
You can use whatever network you like on the oneclickdapp interface page. Just change the network in Metamask, and ignore the warning message!
If you have too many interfaces generated, then delete /build
folder and run truffle migrate
to reduce the number of different networks.