From 9dfa688acd36a169b7995010fe44abbdbc49c617 Mon Sep 17 00:00:00 2001 From: Zhe Wu Date: Mon, 27 Apr 2026 21:48:22 -0700 Subject: [PATCH] set default mainnet object IDs in multisig operation --- ...create-tx-for-multisig-node-governance.yml | 8 ++++-- scripts/create_multisig_node_governance_tx.sh | 26 +++++++++---------- 2 files changed, 18 insertions(+), 16 deletions(-) diff --git a/.github/workflows/create-tx-for-multisig-node-governance.yml b/.github/workflows/create-tx-for-multisig-node-governance.yml index 661f77c589..56b88dcdfa 100644 --- a/.github/workflows/create-tx-for-multisig-node-governance.yml +++ b/.github/workflows/create-tx-for-multisig-node-governance.yml @@ -4,16 +4,20 @@ on: workflow_dispatch: inputs: upgrade_manager_object_id: + # The default value is the Walrus mainnet UpgradeManager object ID. description: "UpgradeManager object ID" - required: true + required: false + default: "0xc42868ad4861f22bd1bcd886ae1858d5c007458f647a49e502d44da8bbd17b51" type: string node_id: description: "Storage node ID (used to derive the Authenticated capability)" required: true type: string multisig_wallet_address: + # The default value is the Walrus mainnet node-governance multisig wallet address. description: "Multisig wallet address (transaction sender; must be the node's governance-authorized address)" - required: true + required: false + default: "0x14d908379bdcd56d0cdf3686de524ee7715decf30f7691f9a8abb0788db20ffb" type: string package_digest_base64: description: "Base64-encoded package digest of the upgrade target" diff --git a/scripts/create_multisig_node_governance_tx.sh b/scripts/create_multisig_node_governance_tx.sh index 9831a5be85..701fdeb6f8 100755 --- a/scripts/create_multisig_node_governance_tx.sh +++ b/scripts/create_multisig_node_governance_tx.sh @@ -6,9 +6,11 @@ # Intended to be used using the github workflow defined in # `../.github/workflows/create-tx-for-multisig-node-governance.yml` -UPGRADE_MANAGER_OBJECT_ID="" +# UpgradeManager object ID default to mainnet +UPGRADE_MANAGER_OBJECT_ID="0xc42868ad4861f22bd1bcd886ae1858d5c007458f647a49e502d44da8bbd17b51" NODE_ID="" -MULTISIG_WALLET_ADDRESS="" +# Multisig wallet address default to the Walrus mainnet node-governance multisig +MULTISIG_WALLET_ADDRESS="0x14d908379bdcd56d0cdf3686de524ee7715decf30f7691f9a8abb0788db20ffb" DIGEST_BASE64="" # Staking object ID default to mainnet STAKING_OBJECT_ID="0x10b9d30c28448939ce6c4d6c6e0ffce4a7f8a4ada8248bdad09ef8b70e4a3904" @@ -17,9 +19,9 @@ GAS_OBJECT_ID="" usage() { echo "Usage: $0 [OPTIONS]" echo "OPTIONS:" - echo " -u UpgradeManager object ID (required)" + echo " -u UpgradeManager object ID (defaults to mainnet $UPGRADE_MANAGER_OBJECT_ID)" echo " -n Storage node ID (required)" - echo " -m Multisig wallet address (required, transaction sender)" + echo " -m Multisig wallet address, transaction sender (defaults to mainnet $MULTISIG_WALLET_ADDRESS)" echo " -d Base64-encoded package digest (required)" echo " -s Staking object ID (defaults to mainnet $STAKING_OBJECT_ID)" echo " -g Gas object ID (defaults to highest balance gas object owned by the multisig)" @@ -28,13 +30,17 @@ usage() { while getopts "u:n:m:d:s:g:h" arg; do case "${arg}" in u) - UPGRADE_MANAGER_OBJECT_ID=${OPTARG} + if [[ -n ${OPTARG} ]]; then + UPGRADE_MANAGER_OBJECT_ID=${OPTARG} + fi ;; n) NODE_ID=${OPTARG} ;; m) - MULTISIG_WALLET_ADDRESS=${OPTARG} + if [[ -n ${OPTARG} ]]; then + MULTISIG_WALLET_ADDRESS=${OPTARG} + fi ;; d) DIGEST_BASE64=${OPTARG} @@ -57,18 +63,10 @@ while getopts "u:n:m:d:s:g:h" arg; do esac done -if [[ -z $UPGRADE_MANAGER_OBJECT_ID ]]; then - echo "Error: -u is required" >&2 - exit 1 -fi if [[ -z $NODE_ID ]]; then echo "Error: -n is required" >&2 exit 1 fi -if [[ -z $MULTISIG_WALLET_ADDRESS ]]; then - echo "Error: -m is required" >&2 - exit 1 -fi if [[ -z $DIGEST_BASE64 ]]; then echo "Error: -d is required" >&2 exit 1