forked from dfinity/ic
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'NNS1-2296-p3' into 'master'
[NNS1-2296] Add new Swap canister parameters to the SnsInitPayload In this MR I've added new parameters to SnsInitPayload needed to populate the Swap Canister's new install payload defined in this MR [!13198](https://gitlab.com/dfinity-lab/public/ic/-/merge_requests/13198). The biggest change is introducing a new type in NNS Governance called `ExecutedCreateServiceNervousSystemProposal` and used that to package proposal data like `executed_timestamp` and `proposal_id`, and adapted the `try_from` pattern to support creating the new SnsInitPayload. This is a backwards compatible change as the SNS-W is not making any use of the new fields in its request object, so they will default to None. The remaining TODOs that will be covered in the next MR is to add validation in the sns/init crate for the new unused fields. I'll also need to update the `execute_create_service_nervous_system` to draw maturity from the neurons' fund. See merge request dfinity-lab/public/ic!13258
- Loading branch information
Showing
24 changed files
with
872 additions
and
72 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.