aptos/nft-bridge: mainnet deploy

This commit is contained in:
Csongor Kiss 2023-01-11 19:17:20 +00:00 committed by Csongor Kiss
parent fe5ca53a98
commit 88d13e694b
2 changed files with 8 additions and 2 deletions

View File

@ -48,6 +48,7 @@ const OVERRIDES = {
token_bridge:
"0x576410486a2da45eee6c949c995670112ddf2fbeedab20350d506328eefc9d4f",
core: "0x5bc11445584a763c1fa7ed39081f1b920954da14e04b32440cba863d03e19625",
nft_bridge: "0x1bdffae984043833ed7fe223f7af7a3f8902d04129b14f801823e64827da7130",
},
},
TESTNET: {
@ -55,6 +56,7 @@ const OVERRIDES = {
token_bridge:
"0x576410486a2da45eee6c949c995670112ddf2fbeedab20350d506328eefc9d4f",
core: "0x5bc11445584a763c1fa7ed39081f1b920954da14e04b32440cba863d03e19625",
nft_bridge: "0x1bdffae984043833ed7fe223f7af7a3f8902d04129b14f801823e64827da7130",
},
},
DEVNET: {

View File

@ -32,12 +32,13 @@ function usage() {
cat <<EOF >&2
Usage:
$(basename "$0") [-h] [-m s] [-c s] [-o d] -- Generate bridge registration governance proposal for a given module
$(basename "$0") [-h] [-m s] [-c s] [-o d] [-a s] -- Generate bridge registration governance proposal for a given module
where:
-h show this help text
-m module (TokenBridge, NFTBridge)
-c chain name
-a emitter address (optional, derived by worm CLI by default)
-o multi-mode output directory
EOF
exit 1
@ -67,6 +68,8 @@ while getopts ':hm:c:a:o:' option; do
;;
m) module=$OPTARG
;;
a) address=$OPTARG
;;
c) chain_name=$OPTARG
;;
o) multi_mode=true
@ -82,11 +85,12 @@ while getopts ':hm:c:a:o:' option; do
done
shift $((OPTIND - 1))
[ -z "$chain_name" ] && usage
[ -z "$module" ] && usage
# Use the worm client to get the emitter address and wormhole chain ID.
address=`worm contract --emitter mainnet $chain_name $module`
[ -z "$address" ] && address=`worm contract --emitter mainnet $chain_name $module`
[ -z "$address" ] && usage
chain=`worm chain-id $chain_name`