moonstream-to / moonworm

codegen for crypto degens and other ethereum smart contract toolkit for python
Apache License 2.0
36 stars 7 forks source link

Added support for EVM "tuple[]" type in ABIs. #15

Closed zomglings closed 2 years ago

zomglings commented 2 years ago

Changes

We were erroring out on ABIs that contained inputs of type tuple[]. For example, the DiamondCutFacet for EIP2535 contracts.

How to test these changes?

Try compiling https://github.com/mudgen/diamond-3-hardhat/blob/main/contracts/facets/DiamondCutFacet.sol and generating an interface to it:

moonworm generate --interface -i DiamondCutFacetABI.json -o diamond --name diamond_cut_facet

Related issues