We would like to upgrade the SNS canisters and we came with this script, it would be great if we can get a second opinion on this. @lara @bjoernek @domwoe
OWNER_IDENTITY=$(dfx identity whoami)
PEM_FILE=“$(readlink -f “$HOME/.config/dfx/identity/${OWNER_IDENTITY}/identity.pem”)”
DEVELOPER_NEURON_ID=“12345”
quill sns
–canister-ids-file ./sns_canister_ids.json
–pem-file “${PEM_FILE}”
make-proposal
–proposal “(record {
title="Upgrade SNS-1 to latest version";
url="https://dragginz.io";
summary="upgrade mfs";
action=opt variant { UpgradeSnsToNextVersion })”
“${DEVELOPER_NEURON_ID}” \
msg.json
inside canisters.ids.json we have the following
{
“governance_canister_id”: “zqfso-syaaa-aaaaq-aaafq-cai”,
“index_canister_id”: “zlaol-iaaaa-aaaaq-aaaha-cai”,
“ledger_canister_id”: “zfcdd-tqaaa-aaaaq-aaaga-cai”,
“root_canister_id”: “zxeu2-7aaaa-aaaaq-aaafa-cai”,
“swap_canister_id”: “zcdfx-6iaaa-aaaaq-aaagq-cai”,
“sns_governance”: {
“ic”: “zqfso-syaaa-aaaaq-aaafq-cai”
},
“sns_index”: {
“ic”: “zlaol-iaaaa-aaaaq-aaaha-cai”
},
“sns_ledger”: {
“ic”: “zfcdd-tqaaa-aaaaq-aaaga-cai”
},
“sns_root”: {
“ic”: “zxeu2-7aaaa-aaaaq-aaafa-cai”
},
“sns_swap”: {
“ic”: “zcdfx-6iaaa-aaaaq-aaagq-cai”
}
}
Does this looks right? Also do we need to run this multiple times until we get the last version?