Skip to content

Commit

Permalink
chore: add proposals to add CycleOps blackhole as ic-oss-bucket canis…
Browse files Browse the repository at this point in the history
…ters's controller
  • Loading branch information
zensh committed Nov 8, 2024
1 parent 0f111e7 commit 1587a2e
Show file tree
Hide file tree
Showing 4 changed files with 75 additions and 1 deletion.
29 changes: 29 additions & 0 deletions proposals/proposal-213.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_update_bucket_canister_settings\" to IC-OSS service";
url = "https://internetcomputer.org/docs/current/developer-docs/daos/sns/managing/sns-asset-canister#sns-genericnervoussystemfunctions";
summary = "The `admin_update_bucket_canister_settings` function is used to update bucket canister settings from the ic_oss_cluster canister.";
action = opt variant {
AddGenericNervousSystemFunction = record {
id = 1_114 : nat64;
name = "`admin_update_bucket_canister_settings` function";
description = opt "It is used to update bucket canister settings 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 "validate_admin_update_bucket_canister_settings";
target_method_name = opt "admin_update_bucket_canister_settings";
}
};
}
};
}
)' > proposal-message.json

# quill send proposal-message.json
22 changes: 22 additions & 0 deletions proposals/proposal-214.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_id=principal "532er-faaaa-aaaaj-qncpa-cai"; settings=record { controllers = opt vec {principal "5szpn-tiaaa-aaaaj-qncoq-cai"; principal "5vdms-kaaaa-aaaap-aa3uq-cai";}}})')"

quill sns make-proposal --canister-ids-file ./sns_canister_ids.json --pem-file $PROPOSAL_PEM_FILE $PROPOSAL_NEURON_ID --proposal "(
record {
title = \"Execute admin_update_bucket_canister_settings() to update ic-oss-bucket controllers\";
url = \"https://github.com/ldclabs/ic-oss/blob/main/src/ic_oss_cluster/src/api_admin.rs#L490\";
summary = \"This proposal executes admin_update_bucket_canister_settings() on ic_oss_cluster 5szpn-tiaaa-aaaaj-qncoq-cai to add CycleOps blackhole 5vdms-kaaaa-aaaap-aa3uq-cai as ic-oss-bucket 532er-faaaa-aaaaj-qncpa-cai controllers.\";
action = opt variant {
ExecuteGenericNervousSystemFunction = record {
function_id = 1_114 : nat64;
payload = ${BLOB};
}
};
}
)" > proposal-message.json

# quill send proposal-message.json
22 changes: 22 additions & 0 deletions proposals/proposal-215.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_id=principal "sb6zj-3aaaa-aaaaj-qndla-cai"; settings=record { controllers = opt vec {principal "5szpn-tiaaa-aaaaj-qncoq-cai"; principal "5vdms-kaaaa-aaaap-aa3uq-cai";}}})')"

quill sns make-proposal --canister-ids-file ./sns_canister_ids.json --pem-file $PROPOSAL_PEM_FILE $PROPOSAL_NEURON_ID --proposal "(
record {
title = \"Execute admin_update_bucket_canister_settings() to update ic-oss-bucket controllers\";
url = \"https://github.com/ldclabs/ic-oss/blob/main/src/ic_oss_cluster/src/api_admin.rs#L490\";
summary = \"This proposal executes admin_update_bucket_canister_settings() on ic_oss_cluster 5szpn-tiaaa-aaaaj-qncoq-cai to add CycleOps blackhole 5vdms-kaaaa-aaaap-aa3uq-cai as ic-oss-bucket sb6zj-3aaaa-aaaaj-qndla-cai controllers.\";
action = opt variant {
ExecuteGenericNervousSystemFunction = record {
function_id = 1_114 : 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 @@ -16,4 +16,5 @@
1_110 ijyxz-wyaaa-aaaaj-qa4qa-cai admin_remove_managers
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_113 4jxyd-pqaaa-aaaah-qdqtq-cai admin_remove_managers
1_114 5szpn-tiaaa-aaaaj-qncoq-cai admin_update_bucket_canister_settings

0 comments on commit 1587a2e

Please sign in to comment.