Closed 0xApotheosis closed 2 months ago
Adds automatically generated TypeScript types for whitelisted .sol contracts.
.sol
The command yarn build-and-generate will compile all contracts with forge, then use wagmi-cli to generate ABI typings for each contract.
yarn build-and-generate
forge
wagmi-cli
Closes https://github.com/shapeshift/rFOX/issues/4
Wagmi CLI is needed as TypeScript doesn't support importing the generated Foundry JSON as a const: https://github.com/microsoft/TypeScript/issues/32063
Adds automatically generated TypeScript types for whitelisted
.sol
contracts.The command
yarn build-and-generate
will compile all contracts withforge
, then usewagmi-cli
to generate ABI typings for each contract.Closes https://github.com/shapeshift/rFOX/issues/4
Wagmi CLI is needed as TypeScript doesn't support importing the generated Foundry JSON as a const: https://github.com/microsoft/TypeScript/issues/32063