Replies: 3 comments 2 replies
-
Interesting idea! Moving this over to ABIType for discussion. Have a rough example of what it would look like or how you would expect it to function (inputs/outputs)? |
Beta Was this translation helpful? Give feedback.
2 replies
-
The idea here is to use the generated artifacts from foundry/hardhat into typescript enums? Or it would also be for "human-readable" enum signatures? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I wasn't sure originally if this was better suited in ABITypes, Viem, or wagmi, but after some thought I think parsing the shape of a solidity enum into typescript is the perfect job for wagmi/cli. Since enums are mapped to uint8 and don't actually show up in ABIs, but do show up in artifacts folder.
Beta Was this translation helpful? Give feedback.
All reactions