Skip to content

Commit

Permalink
chore: add proposals to upgrade messaging app
Browse files Browse the repository at this point in the history
  • Loading branch information
zensh committed Sep 25, 2024
1 parent 99cf616 commit e12fbf4
Show file tree
Hide file tree
Showing 3 changed files with 64 additions and 0 deletions.
10 changes: 10 additions & 0 deletions proposals/proposal-114.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 --canister-ids-file ./sns_canister_ids.json --pem-file $PROPOSAL_PEM_FILE --target-canister-id "nscli-qiaaa-aaaaj-qa4pa-cai" --wasm-path "$CANISTERS_PATH/ic_message.wasm.gz" $PROPOSAL_NEURON_ID > proposal-message.json

# quill send proposal-message.json
25 changes: 25 additions & 0 deletions proposals/proposal-115.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
#!/usr/bin/env bash

# Load the environment variables
source "$(pwd)"/proposals/env.sh

# build and get batch_id, evidence:
# dfx deploy ic_panda_frontend --ic --by-proposal

export BLOB="$(didc encode --format blob '(record {batch_id=51:nat; evidence=blob "\82\24\ee\f4\9f\74\64\3d\b3\a5\b0\52\e9\83\f9\76\8d\9b\6d\c8\e1\81\86\8c\d4\60\85\3e\f6\53\f5\9d"})')"

quill sns make-proposal --canister-ids-file ./sns_canister_ids.json --pem-file $PROPOSAL_PEM_FILE $PROPOSAL_NEURON_ID --proposal "(
record {
title = \"Execute commit_proposed_batch() to release ic_panda_frontend v2.2.2\";
url = \"https://panda.fans/\";
summary = \"This proposal executes commit_proposed_batch() on c63a7-6yaaa-aaaap-ab3gq-cai to release ic_panda_frontend v2.2.2.\n\n1. feat: support transfering username; \n2. chore: update landing page.\";
action = opt variant {
ExecuteGenericNervousSystemFunction = record {
function_id = 1000 : nat64;
payload = ${BLOB};
}
};
}
)" > proposal-message.json

# quill send proposal-message.json
29 changes: 29 additions & 0 deletions proposals/proposal-116.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_price\" to messaging management service";
url = "https://github.com/ldclabs/ic-panda/blob/main/src/ic_message/src/api_admin.rs#L47";
summary = "The `admin_update_price` function is used to update the price for registering a username and creating a channel.";
action = opt variant {
AddGenericNervousSystemFunction = record {
id = 1_104 : nat64;
name = "`admin_update_price` function";
description = opt "It is used to update the price for registering a username and creating a channel.";
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_update_price";
target_method_name = opt "admin_update_price";
}
};
}
};
}
)' > proposal-message.json

# quill send proposal-message.json

0 comments on commit e12fbf4

Please sign in to comment.