-
Notifications
You must be signed in to change notification settings - Fork 329
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(sns): Enable upgrading SNS-controlled canisters using chunked WA…
…SMs (#3287) This PR extends the existing proposal type `UpgradeSnsControllerCanister` with a new field `chunked_canister_wasm` that can be used for specifying an upgrade to a large WASM module (over 2 MiB) priorly uploaded to some store canister. Example proposal render for chunked Wasm: ```markdown # Proposal to Upgrade an SNS Controlled Canister ## Target canister: xbgkv-fyaaa-aaaaa-aaava-cai ## Wasm info Remote module stored on canister zyo6l-paaaa-aaaaa-aabxq-cai with SHA256 `010203`. Split into 3 chunks: - `010101` - `020202` - `030303` ## Mode: Upgrade ## Argument info No upgrade argument. ``` Example proposal render for embedded Wasm: ```markdown # Proposal to upgrade SNS controlled canister: ## Target canister id: xbgkv-fyaaa-aaaaa-aaava-cai ## Wasm info Embedded module with 8 bytes and SHA256 `93a44bbb96c751218e4c00d479e4c14358122a389acca16205b1e4d0dc5f9476`. ## Mode: Upgrade ## Argument info Upgrade argument with 8 bytes and SHA256 `0a141e28323c4650`. ```
- Loading branch information
Showing
17 changed files
with
2,415 additions
and
1,390 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
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
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.