Skip to content

Latest commit

 

History

History
30 lines (23 loc) · 907 Bytes

README.md

File metadata and controls

30 lines (23 loc) · 907 Bytes

abi-to-ts

Regenerate the smart contract compiled json file into a ts file in order to prompt for ABI methods and parameter types.

Note: Known to work when using wagmi as a development tool.

Installation

npm install -g abi-to-ts
# or
pnpm install -g abi-to-ts
# or
yarn global add abi-to-ts

Usage

Usage: abi-to-ts [options]

Options:
  -i, --input-dir  <path> (optional) Entry directory, defaults to ./contracts
  -o, --output-dir <path> (optional) Output directory, defaults to ./src/constants/contracts
  --networkId <networkId> (optional) Specify network ID
  --hasNetworks           (optional) Skip json with empty networks
  --onlyAbi              (optional) Export abi only
  --onlyAddress          (optional) If '--networkId' is specified, the address will be exported, otherwise the networks will be exported
  -h, --help              display help for command