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

Improve behavior for overloaded methods, resolve issues with "pure" functions #103

Closed zomglings closed 1 year ago

zomglings commented 1 year ago

Changes

This PR makes the following changes to the generate-brownie interfaces:

  1. Generated CLI for pure functions no longer requires transaction parameters.
  2. If a contract has multiple overloaded methods with the same name, the Python class and command line suffix the function selectors onto their names when the code is generated.

How to test these changes?

I tested these changes manually.

Related issues

Resolves https://github.com/bugout-dev/moonworm/issues/91 Resolves https://github.com/bugout-dev/moonworm/issues/50