1.0.1 • Published 3 years ago

@aorticweb/truffle-plugin-gobind v1.0.1

Weekly downloads
-
License
ISC
Repository
github
Last release
3 years ago

truffle-plugin-gobind

This truffle plugin generates gobinding from truffle json files using abigen.

Installation

  1. Install the plugin with npm
    npm install @aorticweb/truffle-plugin-gobind
  2. Add the plugin to your truffle.js or truffle-config.js file

    module.exports = {
    
      plugins: [
          // .
          // .
          // .
          // .
        "@aorticweb/truffle-plugin-gobind"
      ]
    }

Run

Compile solidity files using truffle

truffle compile

Generate go bindings for a list of contract (or one):

truffle run abigen SomeContractName AnotherContractName

Generate go bindings for all the contracts:

truffle run abigen