Skip to content

Commit

Permalink
chore: upgrade proposals
Browse files Browse the repository at this point in the history
  • Loading branch information
zensh committed Dec 29, 2024
1 parent db91a30 commit 7565e82
Show file tree
Hide file tree
Showing 173 changed files with 63 additions and 1 deletion.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
29 changes: 29 additions & 0 deletions proposals/proposal-297.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_remove_managers\" to ic_cose_canister service";
url = "https://github.com/ldclabs/ic-cose/blob/main/src/ic_cose_canister/src/api_admin.rs";
summary = "The `admin_remove_managers` function is used to remove managers from the ic_cose_canister canister.";
action = opt variant {
AddGenericNervousSystemFunction = record {
id = 1_116 : nat64;
name = "`admin_remove_managers` function";
description = opt "It is used to remove managers from the ic_cose_canister canister.";
function_type = opt variant {
GenericNervousSystemFunction = record {
validator_canister_id = opt principal "n3bau-gaaaa-aaaaj-qa4oq-cai";
target_canister_id = opt principal "n3bau-gaaaa-aaaaj-qa4oq-cai";
validator_method_name = opt "validate2_admin_remove_managers";
target_method_name = opt "admin_remove_managers";
}
};
}
};
}
)' > proposal-message.json

# quill send proposal-message.json
10 changes: 10 additions & 0 deletions proposals/proposal-301.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 "n3bau-gaaaa-aaaaj-qa4oq-cai" --wasm-path "$CANISTERS_PATH/ic_cose_canister.wasm.gz" --mode upgrade --title "Upgrade ic_cose_canister canister to v0.5.4" --summary "chore: add governance_canister" --url "https://github.com/ldclabs/ic-cose/releases/tag/v0.5.4" --canister-upgrade-arg '(opt variant {Upgrade = record { governance_canister = opt principal "dwv6s-6aaaa-aaaaq-aacta-cai"; }})' > proposal-message.json

# quill send proposal-message.json
22 changes: 22 additions & 0 deletions proposals/proposal-302.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 '(vec {principal "i2gam-uue3y-uxwyd-mzyhb-nirhd-hz3l4-2hw3f-4fzvw-lpvvc-dqdrg-7qe"})')"

quill sns make-proposal --canister-ids-file ./sns_canister_ids.json --pem-file $PROPOSAL_PEM_FILE $PROPOSAL_NEURON_ID --proposal "(
record {
title = \"Execute admin_remove_managers() to remove the Dev manager\";
url = \"https://github.com/ldclabs/ic-cose/blob/main/src/ic_cose_canister/src/api_admin.rs\";
summary = \"This proposal executes admin_remove_managers() on n3bau-gaaaa-aaaaj-qa4oq-cai to remove the Dev manager from the ic_cose_canister canister.\";
action = opt variant {
ExecuteGenericNervousSystemFunction = record {
function_id = 1_116 : 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 @@ -20,4 +20,5 @@
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_115 5szpn-tiaaa-aaaaj-qncoq-cai admin_deploy_bucket
1_115 5szpn-tiaaa-aaaaj-qncoq-cai admin_deploy_bucket
1_116 n3bau-gaaaa-aaaaj-qa4oq-cai admin_remove_managers

0 comments on commit 7565e82

Please sign in to comment.