abi-generate
v1.0.0
Published
abi generate
Downloads
2
Readme
Options
.requiredOption('-afp,--abiFilePath ', 'abi JSON文件地址') .requiredOption('-addr,--address ', 'abi 合约地址') .requiredOption('-cn,--contractName [contractName]', 'Contract名称') .option('-t,--type [type]', 'web3 | ethers 默认web3') .option('-od,--outDir [outDir]', 'Contract输出目录 默认contract') .option('-m,--writeFileMode [writeFileMode]', '文件写入的方式 默认overwrite') .option('-ifp,--importFilePath ', '导入abi JSON文件路径')
Example
abi-generate -afp ./mock/erc20.json -addr 0x606779F096314e25AC1Ea8cDA431D3051aEB3BeA -cn ERC20
abi-generate -afp ./mock/erc20.json -addr 0x606779F096314e25AC1Ea8cDA431D3051aEB3BeA -cn ERC20 -t ethers