Skip to content

Typed data aggregate (SNIP-12) #1413

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

Draft
wants to merge 7 commits into
base: develop
Choose a base branch
from
Draft

Typed data aggregate (SNIP-12) #1413

wants to merge 7 commits into from

Conversation

penovicp
Copy link
Collaborator

@penovicp penovicp commented Jun 5, 2025

@amanusk
Copy link
Contributor

amanusk commented Jun 5, 2025

Summary of what we currently plan, please ack

@xJonathanLEI @sgc-code @franciszekjob @penovicp @tabaktoni @thiagodeev

#1278 - fix js implementation
#1286 - fix js implementation
#1341 - fix js implementation
#1343 - fix js implementation

#1039 - Don't change implementation, clarify the SNIP

#1342 - Don't change implementation, clarify the snip, have a new revision if the change is necessary
#1348 - Don't change implementation, clarify the snip, have a new revision if the change is necessary

@sgc-code, @penovicp @xJonathanLEI @tabaktoni @franciszekjob

@thiagodeev
Copy link

Thanks @amanusk.
Please let us know when these changes are released so I can update Starknet.go code

if (revision === Revision.ACTIVE) {
assertRange(getHex(data as string), type, RANGE_FELT);
} // else fall through to default
return [type, getHex(data as string)];
}
case 'shortstring': {
if (revision === Revision.ACTIVE) {
if (ctx.parent === revisionConfiguration[revision].domain && ctx.key === 'revision') {
Copy link

Choose a reason for hiding this comment

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

@sgc-code
Copy link

sgc-code commented Jun 5, 2025

#1039 - Don't change implementation, clarify the SNIP
#1342 - Don't change implementation, clarify the snip, have a new revision if the change is necessary
#1348 - Don't change implementation, clarify the snip, have a new revision if the change is necessary

This were actually addressed in this PR

@sgc-code
Copy link

sgc-code commented Jun 5, 2025

I think it's missing the fixes for these two issues: #1287 and #1362

@penovicp
Copy link
Collaborator Author

penovicp commented Jun 6, 2025

#1039 - Don't change implementation, clarify the SNIP
#1342 - Don't change implementation, clarify the snip, have a new revision if the change is necessary
#1348 - Don't change implementation, clarify the snip, have a new revision if the change is necessary

This were actually addressed in this PR

Like the previous aggregate, the idea here is to have them all available in one place, from there to evaluate potential impact and pick which will be applied and in what way.

To address the other message here:


  • #1287 - It was picked out in a similar approach as previously mentioned and has been included since v6.24.1.
  • #1362 - I addressed in a comment there. The SNIP doesn't foresee the usage of the requested type/message format, and a more verbose one should be used.

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.

5 participants