-
Notifications
You must be signed in to change notification settings - Fork 16
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: add ARC-56 support #330
base: main
Are you sure you want to change the base?
Conversation
9324238
to
ecf79ee
Compare
name: str | ||
elements: Sequence[tuple[str, str]] = attrs.field(default=(), converter=_freeze_list_of_lists) | ||
type: str | ||
struct: str | None |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What's this field for? 🤔
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ARC-56 is a backwards compatible extension of ARC-4, so type
just defines the ARC4 encoding of an arg, which for a struct/named tuple will just be the tuple encoding with no field information.
If the arg is actually a struct, then the struct
field defines the name of the struct, which can be looked up on the Contract structs
mapping to get the full information
See https://github.com/algorandfoundation/ARCs/pull/258/files#diff-6eb6fa5a0cc74e7fa2334541fb86699840a16e2518c98275de9268945c3dcaadR164 for more context
83840ad
to
f6551fb
Compare
…--output-arc56` option
No description provided.