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

feat: namedtuple decoding for vvmcontract structs #356

Merged

Conversation

charles-cooper
Copy link
Member

What I did

  • add namedtuple decoding for VVMContract structs
  • also namedtuple decoding for VVMContract events
    • IMPORTANT: this is different than the existing get_logs API (for VyperContract). probably VyperContract should have the namedtuple decoding for get_logs as well
  • add handle_error() in VVMDeployer.deploy() to properly raise BoaErrors that occur in the ctor

How I did it

How to verify it

Description for the changelog

Cute Animal Picture

Put a link to a cute animal picture inside the parenthesis-->

boa/contracts/abi/abi_contract.py Show resolved Hide resolved

decoded_args = abi_decode(args_selector, data)

t_i = 0
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

topic_index and arg_index would be much easier to read

boa/contracts/abi/abi_contract.py Show resolved Hide resolved
@charles-cooper charles-cooper merged commit c56f8a2 into vyperlang:master Jan 9, 2025
9 checks passed
@charles-cooper charles-cooper deleted the feat/vvm-struct-namedtuple branch January 9, 2025 20:41
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.

2 participants