-
Notifications
You must be signed in to change notification settings - Fork 330
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(nervous-system): Add crate candid-utils and add proper Candid service argument validation #3488
Conversation
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.
If this pull request affects the behavior of any canister owned by
the Governance team, remember to update the corresponding
unreleased_changes.md file(s).
To acknowldge this reminder (and unblock the PR), dismiss this
code review by going to the bottom of the pull request page, and
supply one of the following reasons:
-
Done.
-
No canister behavior changes.
No canister behavior changes.
This PR adds a new crate dedicated to Candid utilities that are likely to be useful in multiple places in the mono repo.
First, we add
candid_utils::validation::validate_upgrade_args
, which takes a full Candid service and checks if a given upgrade argument complies with it, using Candid subtyping. In particular, this function will soon be required in a tool for submitting upgrade proposals for SNS-controlled canisters.| Next PR >