-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: add proposals to upgrade IC-OSS canisters
- Loading branch information
Showing
6 changed files
with
86 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#!/usr/bin/env bash | ||
|
||
# Load the environment variables | ||
source "$(pwd)"/proposals/env.sh | ||
|
||
export CANISTERS_PATH="$(pwd)/.dfx/ic/github" | ||
|
||
quill sns make-upgrade-canister-proposal $PROPOSAL_NEURON_ID --canister-ids-file ./sns_canister_ids.json --pem-file $PROPOSAL_PEM_FILE --target-canister-id "5szpn-tiaaa-aaaaj-qncoq-cai" --wasm-path "$CANISTERS_PATH/ic_oss_cluster.wasm.gz" --mode upgrade --title "Upgrade ic_oss_cluster canister to v0.9.10" --summary "chore: update dependencies" --url "https://github.com/ldclabs/ic-oss/releases/tag/v0.9.10" > proposal-message.json | ||
|
||
# quill send proposal-message.json |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
#!/usr/bin/env bash | ||
|
||
# Load the environment variables | ||
source "$(pwd)"/proposals/env.sh | ||
|
||
quill sns make-proposal --canister-ids-file ./sns_canister_ids.json --pem-file $PROPOSAL_PEM_FILE $PROPOSAL_NEURON_ID --proposal '( | ||
record { | ||
title = "Add a generic function \"admin_deploy_bucket\" to IC-OSS service"; | ||
url = "https://internetcomputer.org/docs/current/developer-docs/daos/sns/managing/sns-asset-canister#sns-genericnervoussystemfunctions"; | ||
summary = "The `admin_deploy_bucket` function is used to upgrade bucket canister WASM from the ic_oss_cluster canister."; | ||
action = opt variant { | ||
AddGenericNervousSystemFunction = record { | ||
id = 1_115 : nat64; | ||
name = "`admin_deploy_bucket` function"; | ||
description = opt "It is used to upgrade bucket canister WASM from the ic_oss_cluster canister."; | ||
function_type = opt variant { | ||
GenericNervousSystemFunction = record { | ||
validator_canister_id = opt principal "5szpn-tiaaa-aaaaj-qncoq-cai"; | ||
target_canister_id = opt principal "5szpn-tiaaa-aaaaj-qncoq-cai"; | ||
validator_method_name = opt "validate2_admin_deploy_bucket"; | ||
target_method_name = opt "admin_deploy_bucket"; | ||
} | ||
}; | ||
} | ||
}; | ||
} | ||
)' > proposal-message.json | ||
|
||
# quill send proposal-message.json |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#!/usr/bin/env bash | ||
|
||
# Load the environment variables | ||
source "$(pwd)"/proposals/env.sh | ||
|
||
export BLOB="$(didc encode --format blob '(record {canister=principal "532er-faaaa-aaaaj-qncpa-cai"}, null)')" | ||
|
||
quill sns make-proposal --canister-ids-file ./sns_canister_ids.json --pem-file $PROPOSAL_PEM_FILE $PROPOSAL_NEURON_ID --proposal "( | ||
record { | ||
title = \"Execute admin_deploy_bucket() to update ic-oss-bucket WASM to v0.9.0\"; | ||
url = \"https://github.com/ldclabs/ic-oss/releases/tag/v0.9.10\"; | ||
summary = \"This proposal executes admin_deploy_bucket() on ic_oss_cluster 5szpn-tiaaa-aaaaj-qncoq-cai to upgrade ic_oss_bucket 532er-faaaa-aaaaj-qncpa-cai.\"; | ||
action = opt variant { | ||
ExecuteGenericNervousSystemFunction = record { | ||
function_id = 1_115 : nat64; | ||
payload = ${BLOB}; | ||
} | ||
}; | ||
} | ||
)" > proposal-message.json | ||
|
||
# quill send proposal-message.json |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#!/usr/bin/env bash | ||
|
||
# Load the environment variables | ||
source "$(pwd)"/proposals/env.sh | ||
|
||
export BLOB="$(didc encode --format blob '(record {canister=principal "sb6zj-3aaaa-aaaaj-qndla-cai"}, null)')" | ||
|
||
quill sns make-proposal --canister-ids-file ./sns_canister_ids.json --pem-file $PROPOSAL_PEM_FILE $PROPOSAL_NEURON_ID --proposal "( | ||
record { | ||
title = \"Execute admin_deploy_bucket() to update ic-oss-ic_oss_bucket_02 WASM to v0.9.0\"; | ||
url = \"https://github.com/ldclabs/ic-oss/releases/tag/v0.9.10\"; | ||
summary = \"This proposal executes admin_deploy_bucket() on ic_oss_cluster 5szpn-tiaaa-aaaaj-qncoq-cai to upgrade ic_oss_bucket_02 sb6zj-3aaaa-aaaaj-qndla-cai.\"; | ||
action = opt variant { | ||
ExecuteGenericNervousSystemFunction = record { | ||
function_id = 1_115 : nat64; | ||
payload = ${BLOB}; | ||
} | ||
}; | ||
} | ||
)" > proposal-message.json | ||
|
||
# quill send proposal-message.json |
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