Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ethcoder refactor and introduce EncodeContractCall #141

Merged
merged 4 commits into from
Oct 21, 2024

Conversation

pkieltyka
Copy link
Member

@pkieltyka pkieltyka commented Oct 21, 2024

  • introduce ethcoder.ABI, for managing ABIs and ABI signatures for both methods and events
  • rename EventDef to ABISignature. Previously EventDef was used for decoding event definitions like, "Transfer(address,address,uint256)", however this is actually an ABI signature and it can be used by both methods and events, so it's been renamed and made more versatile to cover both methods and events
  • rename many ethcoder.* method names, and move older names to abi_deprecated.go with a deprecation warning
  • introduce new EncodeContractCall method, which accepts the ABI as either as a ABI method signature, or as a JSON string, and the arguments as string values to call the contract. It also supports nested encoding, please see tests to see its full capabilities. NOTE: the EncodeContractCall is similar to go-sequence's former EncodeDelayedABI method, but with a bunch of improvements

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant