From 0f6c1cb5f61e428f5d4c4091b30400d2ad9a48bc Mon Sep 17 00:00:00 2001 From: 0xZensh Date: Tue, 24 Sep 2024 17:46:28 +0800 Subject: [PATCH] chore: add proposals to upgrade message app --- proposals/proposal-109.sh | 25 +++++++++++++++++++++++++ proposals/proposal-110.sh | 10 ++++++++++ proposals/proposal-111.sh | 10 ++++++++++ proposals/proposal-112.sh | 10 ++++++++++ proposals/proposal-113.sh | 10 ++++++++++ 5 files changed, 65 insertions(+) create mode 100755 proposals/proposal-109.sh create mode 100755 proposals/proposal-110.sh create mode 100755 proposals/proposal-111.sh create mode 100755 proposals/proposal-112.sh create mode 100755 proposals/proposal-113.sh diff --git a/proposals/proposal-109.sh b/proposals/proposal-109.sh new file mode 100755 index 0000000..0415236 --- /dev/null +++ b/proposals/proposal-109.sh @@ -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 \ No newline at end of file diff --git a/proposals/proposal-110.sh b/proposals/proposal-110.sh new file mode 100755 index 0000000..502a72f --- /dev/null +++ b/proposals/proposal-110.sh @@ -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 \ No newline at end of file diff --git a/proposals/proposal-111.sh b/proposals/proposal-111.sh new file mode 100755 index 0000000..8ec615a --- /dev/null +++ b/proposals/proposal-111.sh @@ -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 \ No newline at end of file diff --git a/proposals/proposal-112.sh b/proposals/proposal-112.sh new file mode 100755 index 0000000..e2b7c6f --- /dev/null +++ b/proposals/proposal-112.sh @@ -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 \ No newline at end of file diff --git a/proposals/proposal-113.sh b/proposals/proposal-113.sh new file mode 100755 index 0000000..dade222 --- /dev/null +++ b/proposals/proposal-113.sh @@ -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 \ No newline at end of file