Deploy: Make contract upd script support pyth (#2349)

* Deploy: Make contract upd script support pyth

Change-Id: I9c40498ef9849979f89e8d48d60333932f8a696f

* Deploy: Tweak the wording

Change-Id: Iddaca17b74ab2c9aa3a1386280457e02433a6593
This commit is contained in:
bruce-riley 2023-02-10 11:15:05 -05:00 committed by GitHub
parent 7e982cb032
commit 9aeb704e58
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 9 additions and 1 deletions

View File

@ -104,6 +104,12 @@ case "$chain_name" in
solana) solana)
chain=1 chain=1
explorer="https://explorer.solana.com/address/" explorer="https://explorer.solana.com/address/"
extra=""
;;
pythnet)
chain=26
explorer="https://explorer.solana.com/address/"
extra="Be sure to choose \"Custom RPC\" as the cluster in the explorer and set it to https://pythnet.rpcpool.com"
;; ;;
ethereum) ethereum)
chain=2 chain=2
@ -398,7 +404,7 @@ if [ "$evm" = true ]; then
\`\`\` \`\`\`
EOF EOF
elif [ "$chain_name" = "solana" ]; then elif [ "$chain_name" = "solana" ] || [ "$chain_name" = "pythnet" ]; then
cat <<-EOF >> "$instructions_file" cat <<-EOF >> "$instructions_file"
## Build ## Build
\`\`\`shell \`\`\`shell
@ -410,6 +416,8 @@ elif [ "$chain_name" = "solana" ]; then
## Verify ## Verify
Contract at [$explorer$address]($explorer$address) Contract at [$explorer$address]($explorer$address)
$extra
Next, use the \`verify\` script to verify that the deployed bytecodes we are upgrading to match the build artifacts: Next, use the \`verify\` script to verify that the deployed bytecodes we are upgrading to match the build artifacts: