Переглянути джерело

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
bruce-riley 2 роки тому
батько
коміт
9aeb704e58
1 змінених файлів з 9 додано та 1 видалено
  1. 9 1
      scripts/contract-upgrade-governance.sh

+ 9 - 1
scripts/contract-upgrade-governance.sh

@@ -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: