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
The contract publisher would distribute this encoder file as a courtesy to other developers that want to interact with their deployed contract using Java.
The text was updated successfully, but these errors were encountered:
fulldecent
changed the title
Why is it necessary to use avmRule.call?
Why is it necessary to use ABIStreamingEncoder and avmRule.call?
Jul 13, 2019
Consuming the ABI in order to generate type-safe serializers is something I believe is currently being done as part of some larger down-stream tooling. I am going to leave this item open to remind us to verify that this is included as part of that work (and can be generally used - not just part of a specific project) since I do agree that it is helpful and not difficult to build.
Using
ABIStreamingEncoder
withavmRule.call
is a low-level technique that 99% of contract developers should not need to know about. This is bad:Instead, during the compilation process please generate a new artifact.
Currently this ABI artifact is generated. Example:
But actually you can also generate this artifact:
End result is the above can be refactored into this new type safe equivalent:
The contract publisher would distribute this encoder file as a courtesy to other developers that want to interact with their deployed contract using Java.
The text was updated successfully, but these errors were encountered: