ApeWorX / ethpm-types

Implementation of EIP-2678
Apache License 2.0
14 stars 8 forks source link

feat!: easily allow getting all ABIs by name #114

Open antazoey opened 7 months ago

antazoey commented 7 months ago

What I did

allow you to do:

abi_map =dict(vyper_contract.view_methods)
abi_ls = abi_map["myMethod"]

thus affording simpler code in Ape:

contract.myMethod

does not have to work so hard.

(Note: am trying to resolve remaining bullet here: https://github.com/ApeWorX/ape/issues/519)

How I did it

How to verify it

Checklist