Skip to content

Commit

Permalink
chore: add proposals to upgrade message app
Browse files Browse the repository at this point in the history
  • Loading branch information
zensh committed Sep 24, 2024
1 parent 2edab85 commit 0f6c1cb
Show file tree
Hide file tree
Showing 5 changed files with 65 additions and 0 deletions.
25 changes: 25 additions & 0 deletions proposals/proposal-109.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=50:nat; evidence=blob "\a5\84\22\e9\86\2c\b6\34\f4\c7\af\5d\e0\18\f7\94\d5\8f\f7\9b\11\53\a9\88\38\79\7d\83\8a\7d\2e\ad"})')"

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.1\";
url = \"https://panda.fans/\";
summary = \"This proposal executes commit_proposed_batch() on c63a7-6yaaa-aaaap-ab3gq-cai to release ic_panda_frontend v2.2.1.\n\n1. feat: support 0 price for creating channel; \n1. fix: try to fix the white screen issue in iOS WebView.\";
action = opt variant {
ExecuteGenericNervousSystemFunction = record {
function_id = 1000 : nat64;
payload = ${BLOB};
}
};
}
)" > proposal-message.json

# quill send proposal-message.json
10 changes: 10 additions & 0 deletions proposals/proposal-110.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 "4jxyd-pqaaa-aaaah-qdqtq-cai" --wasm-path "$CANISTERS_PATH/ic_message_channel.wasm.gz" $PROPOSAL_NEURON_ID > proposal-message.json

# quill send proposal-message.json
10 changes: 10 additions & 0 deletions proposals/proposal-111.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 "zof5a-5yaaa-aaaai-acr2q-cai" --wasm-path "$CANISTERS_PATH/ic_message_channel.wasm.gz" $PROPOSAL_NEURON_ID > proposal-message.json

# quill send proposal-message.json
10 changes: 10 additions & 0 deletions proposals/proposal-112.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 "nvdn4-5qaaa-aaaaj-qa4pq-cai" --wasm-path "$CANISTERS_PATH/ic_message_channel.wasm.gz" $PROPOSAL_NEURON_ID > proposal-message.json

# quill send proposal-message.json
10 changes: 10 additions & 0 deletions proposals/proposal-113.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

0 comments on commit 0f6c1cb

Please sign in to comment.