near/governance: add in support for near
This commit is contained in:
parent
cda45a85ab
commit
1003ab163e
|
@ -166,6 +166,10 @@ case "$chain_name" in
|
||||||
explorer="https://celoscan.xyz/address/"
|
explorer="https://celoscan.xyz/address/"
|
||||||
evm=true
|
evm=true
|
||||||
;;
|
;;
|
||||||
|
near)
|
||||||
|
chain=15
|
||||||
|
explorer="https://explorer.near.org/accounts/"
|
||||||
|
;;
|
||||||
*)
|
*)
|
||||||
echo "Unknown chain: $chain_name" >&2
|
echo "Unknown chain: $chain_name" >&2
|
||||||
exit 1
|
exit 1
|
||||||
|
@ -243,6 +247,20 @@ function solana_artifact() {
|
||||||
esac
|
esac
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function near_artifact() {
|
||||||
|
case "$module" in
|
||||||
|
bridge|core)
|
||||||
|
echo "artifacts/near_wormhole.wasm"
|
||||||
|
;;
|
||||||
|
token_bridge)
|
||||||
|
echo "artifacts/near_token_bridge.wasm"
|
||||||
|
;;
|
||||||
|
*) echo "unknown module $module" >&2
|
||||||
|
usage
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
}
|
||||||
|
|
||||||
function terra_artifact() {
|
function terra_artifact() {
|
||||||
case "$module" in
|
case "$module" in
|
||||||
bridge|core)
|
bridge|core)
|
||||||
|
@ -367,6 +385,22 @@ elif [ "$chain_name" = "solana" ]; then
|
||||||
wormhole/solana$ ./verify -n mainnet $(solana_artifact) $address
|
wormhole/solana$ ./verify -n mainnet $(solana_artifact) $address
|
||||||
\`\`\`
|
\`\`\`
|
||||||
EOF
|
EOF
|
||||||
|
elif [ "$chain_name" = "near" ]; then
|
||||||
|
cat <<-EOF >> "$instructions_file"
|
||||||
|
## Build
|
||||||
|
\`\`\`shell
|
||||||
|
wormhole/near $ make artifacts
|
||||||
|
\`\`\`
|
||||||
|
|
||||||
|
This command will compile all the contracts into the \`artifacts\` directory using Docker to ensure that the build artifacts are deterministic.
|
||||||
|
|
||||||
|
Next, you can look at the checksums of the built .wasm files
|
||||||
|
|
||||||
|
\`\`\`shell
|
||||||
|
# $module
|
||||||
|
wormhole/near$ sha256sum $(near_artifact)
|
||||||
|
\`\`\`
|
||||||
|
EOF
|
||||||
elif [ "$chain_name" = "terra" ]; then
|
elif [ "$chain_name" = "terra" ]; then
|
||||||
cat <<-EOF >> "$instructions_file"
|
cat <<-EOF >> "$instructions_file"
|
||||||
## Build
|
## Build
|
||||||
|
|
Loading…
Reference in New Issue