shapeshift / rFOX

rFOX - RUNE rewards for FOX stakers
MIT License
0 stars 0 forks source link

chore: abi typings #35

Closed 0xApotheosis closed 2 months ago

0xApotheosis commented 2 months ago

Adds automatically generated TypeScript types for whitelisted .sol contracts.

The command yarn build-and-generate will compile all contracts with forge, then use wagmi-cli to generate ABI typings for each contract.

Closes https://github.com/shapeshift/rFOX/issues/4

Screenshot 2024-04-18 at 11 21 16 AM

Wagmi CLI is needed as TypeScript doesn't support importing the generated Foundry JSON as a const: https://github.com/microsoft/TypeScript/issues/32063

Screenshot 2024-04-17 at 3 59 35 PM