Skip to content

Commit

Permalink
chore: add proposals to remove the Dev manager on messaging canisters
Browse files Browse the repository at this point in the history
  • Loading branch information
zensh committed Oct 28, 2024
1 parent 6af9e2a commit b9e7743
Show file tree
Hide file tree
Showing 11 changed files with 260 additions and 0 deletions.
29 changes: 29 additions & 0 deletions proposals/proposal-194.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_message service";
url = "https://internetcomputer.org/docs/current/developer-docs/daos/sns/managing/sns-asset-canister#sns-genericnervoussystemfunctions";
summary = "The `admin_remove_managers` function is used to remove managers from the ic_message canister.";
action = opt variant {
AddGenericNervousSystemFunction = record {
id = 1_109 : nat64;
name = "`admin_remove_managers` function";
description = opt "It is used to remove managers from the ic_message canister.";
function_type = opt variant {
GenericNervousSystemFunction = record {
validator_canister_id = opt principal "nscli-qiaaa-aaaaj-qa4pa-cai";
target_canister_id = opt principal "nscli-qiaaa-aaaaj-qa4pa-cai";
validator_method_name = opt "validate2_admin_remove_managers";
target_method_name = opt "admin_remove_managers";
}
};
}
};
}
)' > proposal-message.json

# quill send proposal-message.json
22 changes: 22 additions & 0 deletions proposals/proposal-196.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-panda/tree/main/src/ic_message\";
summary = \"This proposal executes admin_remove_managers() on nscli-qiaaa-aaaaj-qa4pa-cai to remove the Dev manager from the ic_message canister.\";
action = opt variant {
ExecuteGenericNervousSystemFunction = record {
function_id = 1_109 : nat64;
payload = ${BLOB};
}
};
}
)" > proposal-message.json

# quill send proposal-message.json
29 changes: 29 additions & 0 deletions proposals/proposal-197.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_message_profile service";
url = "https://internetcomputer.org/docs/current/developer-docs/daos/sns/managing/sns-asset-canister#sns-genericnervoussystemfunctions";
summary = "The `admin_remove_managers` function is used to remove managers from the ic_message_profile canister.";
action = opt variant {
AddGenericNervousSystemFunction = record {
id = 1_110 : nat64;
name = "`admin_remove_managers` function";
description = opt "It is used to remove managers from the ic_message_profile canister.";
function_type = opt variant {
GenericNervousSystemFunction = record {
validator_canister_id = opt principal "ijyxz-wyaaa-aaaaj-qa4qa-cai";
target_canister_id = opt principal "ijyxz-wyaaa-aaaaj-qa4qa-cai";
validator_method_name = opt "validate2_admin_remove_managers";
target_method_name = opt "admin_remove_managers";
}
};
}
};
}
)' > proposal-message.json

# quill send proposal-message.json
22 changes: 22 additions & 0 deletions proposals/proposal-198.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-panda/tree/main/src/ic_message_profile\";
summary = \"This proposal executes admin_remove_managers() on ijyxz-wyaaa-aaaaj-qa4qa-cai to remove the Dev manager from the ic_message_profile canister.\";
action = opt variant {
ExecuteGenericNervousSystemFunction = record {
function_id = 1_110 : nat64;
payload = ${BLOB};
}
};
}
)" > proposal-message.json

# quill send proposal-message.json
29 changes: 29 additions & 0 deletions proposals/proposal-199.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_message_channel service";
url = "https://internetcomputer.org/docs/current/developer-docs/daos/sns/managing/sns-asset-canister#sns-genericnervoussystemfunctions";
summary = "The `admin_remove_managers` function is used to remove managers from the ic_message_channel canister.";
action = opt variant {
AddGenericNervousSystemFunction = record {
id = 1_111 : nat64;
name = "`admin_remove_managers` function";
description = opt "It is used to remove managers from the ic_message_channel canister.";
function_type = opt variant {
GenericNervousSystemFunction = record {
validator_canister_id = opt principal "nvdn4-5qaaa-aaaaj-qa4pq-cai";
target_canister_id = opt principal "nvdn4-5qaaa-aaaaj-qa4pq-cai";
validator_method_name = opt "validate2_admin_remove_managers";
target_method_name = opt "admin_remove_managers";
}
};
}
};
}
)' > proposal-message.json

# quill send proposal-message.json
22 changes: 22 additions & 0 deletions proposals/proposal-200.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-panda/tree/main/src/ic_message_channel\";
summary = \"This proposal executes admin_remove_managers() on nvdn4-5qaaa-aaaaj-qa4pq-cai to remove the Dev manager from the ic_message_channel canister.\";
action = opt variant {
ExecuteGenericNervousSystemFunction = record {
function_id = 1_111 : nat64;
payload = ${BLOB};
}
};
}
)" > proposal-message.json

# quill send proposal-message.json
29 changes: 29 additions & 0 deletions proposals/proposal-201.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_message_channel service";
url = "https://internetcomputer.org/docs/current/developer-docs/daos/sns/managing/sns-asset-canister#sns-genericnervoussystemfunctions";
summary = "The `admin_remove_managers` function is used to remove managers from the ic_message_channel_02 canister.";
action = opt variant {
AddGenericNervousSystemFunction = record {
id = 1_112 : nat64;
name = "`admin_remove_managers` function";
description = opt "It is used to remove managers from the ic_message_channel_02 canister.";
function_type = opt variant {
GenericNervousSystemFunction = record {
validator_canister_id = opt principal "zof5a-5yaaa-aaaai-acr2q-cai";
target_canister_id = opt principal "zof5a-5yaaa-aaaai-acr2q-cai";
validator_method_name = opt "validate2_admin_remove_managers";
target_method_name = opt "admin_remove_managers";
}
};
}
};
}
)' > proposal-message.json

# quill send proposal-message.json
22 changes: 22 additions & 0 deletions proposals/proposal-202.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-panda/tree/main/src/ic_message_channel\";
summary = \"This proposal executes admin_remove_managers() on zof5a-5yaaa-aaaai-acr2q-cai to remove the Dev manager from the ic_message_channel_02 canister.\";
action = opt variant {
ExecuteGenericNervousSystemFunction = record {
function_id = 1_112 : nat64;
payload = ${BLOB};
}
};
}
)" > proposal-message.json

# quill send proposal-message.json
29 changes: 29 additions & 0 deletions proposals/proposal-203.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_message_channel service";
url = "https://internetcomputer.org/docs/current/developer-docs/daos/sns/managing/sns-asset-canister#sns-genericnervoussystemfunctions";
summary = "The `admin_remove_managers` function is used to remove managers from the ic_message_channel_03 canister.";
action = opt variant {
AddGenericNervousSystemFunction = record {
id = 1_113 : nat64;
name = "`admin_remove_managers` function";
description = opt "It is used to remove managers from the ic_message_channel_03 canister.";
function_type = opt variant {
GenericNervousSystemFunction = record {
validator_canister_id = opt principal "4jxyd-pqaaa-aaaah-qdqtq-cai";
target_canister_id = opt principal "4jxyd-pqaaa-aaaah-qdqtq-cai";
validator_method_name = opt "validate2_admin_remove_managers";
target_method_name = opt "admin_remove_managers";
}
};
}
};
}
)' > proposal-message.json

# quill send proposal-message.json
22 changes: 22 additions & 0 deletions proposals/proposal-204.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-panda/tree/main/src/ic_message_channel\";
summary = \"This proposal executes admin_remove_managers() on 4jxyd-pqaaa-aaaah-qdqtq-cai to remove the Dev manager from the ic_message_channel_03 canister.\";
action = opt variant {
ExecuteGenericNervousSystemFunction = record {
function_id = 1_113 : nat64;
payload = ${BLOB};
}
};
}
)" > proposal-message.json

# quill send proposal-message.json
5 changes: 5 additions & 0 deletions sns_functions.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,8 @@
1_106 nvdn4-5qaaa-aaaaj-qa4pq-cai admin_add_canister
1_107 zof5a-5yaaa-aaaai-acr2q-cai admin_add_canister
1_108 4jxyd-pqaaa-aaaah-qdqtq-cai admin_add_canister
1_109 nscli-qiaaa-aaaaj-qa4pa-cai admin_remove_managers
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

0 comments on commit b9e7743

Please sign in to comment.