npm

Need private packages and team management tools?Check out npm Orgs. »

oneclick

1.0.2 • Public • Published

🍫 1️⃣ 💥 Truffle One Click Plugin

Create a persistent interface for any smart contract directly from a Truffle project. 🏆 Winner 3rd Place at Trufflecon 2019 Hackathon

Install

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']
};

Usage

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.

Created with 🍫 at Trufflecon 2019:

install

npm i oneclick

Downloadsweekly downloads

5

version

1.0.2

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability