kardiachain / go-kardia

Golang implementation of KardiaChain Decentralize Network
https://kardiachain.io
GNU Lesser General Public License v3.0
33 stars 18 forks source link

Implement abigen tool #147

Closed trinhdn97 closed 3 years ago

trinhdn97 commented 3 years ago

abigen command line params:

NAME:
   abigen - kardia checkpoint helper tool

USAGE:
   abigen [global options] command [command options] [arguments...]

VERSION:
   1.1.0-stable

COMMANDS:
     help, h  Shows a list of commands or help for one command

GLOBAL OPTIONS:
   --abi value            Path to the KardiaChain contract ABI json to bind, - for STDIN
   --bin value            Path to the KardiaChain contract bytecode (generate deploy method)
   --type value           Struct name for the binding (default = package name)
   --combined-json value  Path to the combined-json file generated by compiler
   --sol value            Path to the KardiaChain contract Solidity source to build and bind
   --solc value           Solidity compiler to use if source builds are requested (default: "solc")
   --exc value            Comma separated types to exclude from binding
   --pkg value            Package name to generate the binding into
   --out value            Output file for the generated binding (default = stdout)
   --lang value           Destination language for the bindings (go, java, objc) (default: "go")
   --alias value          Comma separated aliases for function and event renaming, e.g. original1=alias1, original2=alias2
   --help, -h             show help
   --version, -v          print the version

Example:

abigen --bin=krc721.bin --abi=krc721.abi --pkg=krc721 --out=krc721.go
lewtran commented 3 years ago

LGTM