You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Extend the API of w3.NewFunc, w3.MustNewFunc, w3.NewEvent, w3.MustNewEvent with struct mappings. A struct mapping maps a Solidity struct (tuple) to a Go struct.
Benefits:
compact ABI definition
mapping verification at function/event-creation time
Challenges:
Go types like big.Int have an ambiguous mapping to Solidity types.
Possible solution: introduce a struct arg tag abitype that maps to the Solidity type
Uh oh!
There was an error while loading. Please reload this page.
Idea
Extend the API of
w3.NewFunc
,w3.MustNewFunc
,w3.NewEvent
,w3.MustNewEvent
with struct mappings. A struct mapping maps a Solidity struct (tuple) to a Go struct.Benefits:
Challenges:
big.Int
have an ambiguous mapping to Solidity types.abitype
that maps to the Solidity typeExample (Uniswap V4 Swap Function)
Potential Future API
Current API
The text was updated successfully, but these errors were encountered: