Skip to content

Commit

Permalink
chore: add proposals to upgrade IC-OSS canisters
Browse files Browse the repository at this point in the history
  • Loading branch information
zensh committed Dec 25, 2024
1 parent 08fe58a commit 4719bbd
Show file tree
Hide file tree
Showing 6 changed files with 86 additions and 2 deletions.
2 changes: 1 addition & 1 deletion proposals/proposal-286.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@ quill sns make-proposal --canister-ids-file ./sns_canister_ids.json --pem-file $
}
)' > proposal-message.json

quill send proposal-message.json
# quill send proposal-message.json
10 changes: 10 additions & 0 deletions proposals/proposal-287.sh
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
29 changes: 29 additions & 0 deletions proposals/proposal-288.sh
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
22 changes: 22 additions & 0 deletions proposals/proposal-289.sh
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
22 changes: 22 additions & 0 deletions proposals/proposal-290.sh
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
3 changes: 2 additions & 1 deletion sns_functions.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,5 @@
1_111 nvdn4-5qaaa-aaaaj-qa4pq-cai admin_remove_managers
1_112 zof5a-5yaaa-aaaai-acr2q-cai admin_remove_managers
1_113 4jxyd-pqaaa-aaaah-qdqtq-cai admin_remove_managers
1_114 5szpn-tiaaa-aaaaj-qncoq-cai admin_update_bucket_canister_settings
1_114 5szpn-tiaaa-aaaaj-qncoq-cai admin_update_bucket_canister_settings
1_115 5szpn-tiaaa-aaaaj-qncoq-cai admin_deploy_bucket

0 comments on commit 4719bbd

Please sign in to comment.