Skip to content

Commit

Permalink
fix: update chain integration gov doc with variables (#1080)
Browse files Browse the repository at this point in the history
  • Loading branch information
ffe9f8 authored Aug 2, 2024
1 parent 4a677fb commit 2aed2fa
Showing 1 changed file with 39 additions and 34 deletions.
73 changes: 39 additions & 34 deletions src/pages/dev/amplifier/chain-integration/governance-proposals.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,12 @@ If you are integrating an EVM chain, you can submit a proposal to instantiate th

```bash
export CODE_ID=500
export INTERCHAIN_GOV_ADDRESS="axelar10d07y265gmmuvt4z0w9aw880jnsr700j7v9daj"
export AXELAR_SERVICE_REGISTRY_ADDRESS="axelar1c9fkszt5lq34vvvlat3fxj6yv7ejtqapz04e97vtc9m5z9cwnamq8zjlhz"
export SOURCE_GATEWAY_ADDRESS="0xeE9E463Fd8bE9AF266e1B143C27F7D42648f4006"
export SOURCE_CHAIN_NAME="ethereum-sepolia"
export REWARDS_ADDRESS="axelar1vaj9sfzc3z0gpel90wu4ljutncutv0wuhvvwfsh30rqxq422z89qnd989l"
export MSG_ID_FORMAT="hex_tx_hash_and_event_index"
export CHAIN_NAME="[chain name]"
export NETWORK_GOV_ADDRESS="axelar10d07y265gmmuvt4z0w9aw880jnsr700j7v9daj"
export RPC="http://devnet-amplifier.axelar.dev:26657"
Expand All @@ -52,22 +58,22 @@ export RPC="http://devnet-amplifier.axelar.dev:26657"
```bash
axelard tx gov submit-proposal instantiate-contract $CODE_ID \
'{
"governance_address": "axelar10d07y265gmmuvt4z0w9aw880jnsr700j7v9daj",
"service_registry_address": "axelar1c9fkszt5lq34vvvlat3fxj6yv7ejtqapz04e97vtc9m5z9cwnamq8zjlhz",
"governance_address": "'"$INTERCHAIN_GOV_ADDRESS"'",
"service_registry_address": "'"$AXELAR_SERVICE_REGISTRY_ADDRESS"'",
"service_name":"validators",
"source_gateway_address":"0xeE9E463Fd8bE9AF266e1B143C27F7D42648f4006",
"source_gateway_address":"'"$SOURCE_GATEWAY_ADDRESS"'",
"voting_threshold":["1","1"],
"block_expiry":10,
"confirmation_height":1,
"source_chain":"ethereum-sepolia",
"rewards_address":"axelar1vaj9sfzc3z0gpel90wu4ljutncutv0wuhvvwfsh30rqxq422z89qnd989l",
"msg_id_format":"hex_tx_hash_and_event_index"
"source_chain":"'"$SOURCE_CHAIN_NAME"'",
"rewards_address":"'"$REWARDS_ADDRESS"'",
"msg_id_format":"'"$MSG_ID_FORMAT"'"
}' \
--title="Instantiate verifier contract for "'"$CHAIN_NAME"'" \
--description="Instantiate verifier contract for "'"$CHAIN_NAME"'" \
--run-as $NETWORK_GOV_ADDRESS \
--label "'"$CHAIN_NAME"'" \
--deposit=2000000000uamplifier \
--deposit=100000000uamplifier \
--keyring-backend test \
--from wallet \
--gas auto --gas-adjustment 1.5 --gas-prices 0.007uamplifier \
Expand All @@ -89,22 +95,21 @@ If you are integrating an EVM chain, you can submit a proposal to instantiate th

```bash
export CODE_ID=493
export CHAIN_NAME="[chain name]"
export NETWORK_GOV_ADDRESS="axelar10d07y265gmmuvt4z0w9aw880jnsr700j7v9daj"
export RPC="http://devnet-amplifier.axelar.dev:26657"
export VOTING_VERIFIER_ADDRESS="axelar1e6jnuljng6aljk0tjct6f0hl9tye6l0n9p067pwx2374h82dmr0s9qcqy9"
export AXELAR_ROUTER_ADDRESS="axelar14jjdxqhuxk803e9pq64w4fgf385y86xxhkpzswe9crmu6vxycezst0zq8y"
```

```bash
axelard tx gov submit-proposal instantiate-contract $CODE_ID \
'{
"verifier_address": "axelar1e6jnuljng6aljk0tjct6f0hl9tye6l0n9p067pwx2374h82dmr0s9qcqy9",
"router_address": "axelar14jjdxqhuxk803e9pq64w4fgf385y86xxhkpzswe9crmu6vxycezst0zq8y"
"verifier_address": "'"$VOTING_VERIFIER_ADDRESS"'",
"router_address": "'"$AXELAR_ROUTER_ADDRESS"'"
}' \
--title="Instantiate gateway contract for "'"$CHAIN_NAME"'" \
--description="Instantiate gateway contract for "'"$CHAIN_NAME"'" \
--run-as $NETWORK_GOV_ADDRESS \
--label "'"$CHAIN_NAME"'" \
--deposit=2000000000uamplifier \
--deposit=100000000uamplifier \
--keyring-backend test \
--from wallet \
--gas auto --gas-adjustment 1.5 --gas-prices 0.007uamplifier \
Expand All @@ -125,34 +130,38 @@ If you are integrating an EVM chain, you can submit a proposal to instantiate th

```bash
export CODE_ID=495
export CHAIN_NAME="[chain name]"
export NETWORK_GOV_ADDRESS="axelar10d07y265gmmuvt4z0w9aw880jnsr700j7v9daj"
export RPC="http://devnet-amplifier.axelar.dev:26657"
export MULTISIG_PROVER_ADMIN_ADDRESS="axelar1zlr7e5qf3sz7yf890rkh9tcnu87234k6k7ytd9"
MULTISIG_PROVER_GOV_ADDRESS="axelar1zlr7e5qf3sz7yf890rkh9tcnu87234k6k7ytd9"
export SOURCE_GATEWAY_ADDRESS="axelar1hdx49xndyxzrs3t5jkzart00taqysu6kmaf77waxv8regwxxpp4qcsea2w"
export MULTISIG_PROVER_ADDRESS="axelar19jxy26z0qnnspa45y5nru0l5rmy9d637z5km2ndjxthfxf5qaswst9290r"
export AXELAR_COORDINATOR_ADDRESS="axelar1m2498n4h2tskcsmssjnzswl5e6eflmqnh487ds47yxyu6y5h4zuqr9zk4g"
export SOURCE_VERIFIER_GOV_ADDRESS="axelar1zlr7e5qf3sz7yf890rkh9tcnu87234k6k7ytd9"
export DOMAIN_SEPARATOR="6973c72935604464b28827141b0a463af8e3487616de69c5aa0c785392c9fb9f" # Hash of chain name, admin address, and code ID. Value must be a String in hex format without `0x`.
```

```bash
axelard tx gov submit-proposal instantiate-contract $CODE_ID \
'{
"admin_address": "axelar1zlr7e5qf3sz7yf890rkh9tcnu87234k6k7ytd9", # Prover admin address
"governance_address": "axelar1zlr7e5qf3sz7yf890rkh9tcnu87234k6k7ytd9",
"gateway_address": "axelar1hdx49xndyxzrs3t5jkzart00taqysu6kmaf77waxv8regwxxpp4qcsea2w"
"multisig_address": "axelar19jxy26z0qnnspa45y5nru0l5rmy9d637z5km2ndjxthfxf5qaswst9290r",
"coordinator_address":"axelar1m2498n4h2tskcsmssjnzswl5e6eflmqnh487ds47yxyu6y5h4zuqr9zk4g",
"service_registry_address":"axelar1c9fkszt5lq34vvvlat3fxj6yv7ejtqapz04e97vtc9m5z9cwnamq8zjlhz",
"voting_verifier_address": "axelar1zlr7e5qf3sz7yf890rkh9tcnu87234k6k7ytd9", # Ethereum Sepolia voting verifier governance address
"admin_address": "'"$MULTISIG_PROVER_ADMIN_ADDRESS"'",
"governance_address": "'"$MULTISIG_PROVER_GOV_ADDRESS"'",
"gateway_address": "'"$SOURCE_GATEWAY_ADDRESS"'",
"multisig_address": "'"MULTISIG_PROVER_ADDRESS"'",
"coordinator_address":"'"$AXELAR_COORDINATOR_ADDRESS"'",
"service_registry_address":"'"$AXELAR_SERVICE_REGISTRY_ADDRESS"'",
"voting_verifier_address": "'"$SOURCE_VERIFIER_GOV_ADDRESS"'",
"signing_threshold": ["1","1"],
"service_name": "validators",
"chain_name": "'"$CHAIN_NAME"'",
"verifier_set_diff_threshold": 1,
"encoder": "abi",
"key_type": "ecdsa",
"domain_separator": "6973c72935604464b28827141b0a463af8e3487616de69c5aa0c785392c9fb9f" # Hash of chain name, admin address, and code ID. Value must be a String in hex format without `0x`.
"domain_separator": "'"$DOMAIN_SEPARATOR"'"
}' \
--title="Instantiate prover contract for "'"$CHAIN_NAME"'" \
--description="Instantiate prover contract for "'"$CHAIN_NAME"'" \
--run-as $NETWORK_GOV_ADDRESS \
--label "'"$CHAIN_NAME"'" \
--deposit=2000000000uamplifier \
--deposit=100000000uamplifier \
--keyring-backend test \
--from wallet \
--gas auto --gas-adjustment 1.5 --gas-prices 0.007uamplifier \
Expand All @@ -168,24 +177,22 @@ axelard tx gov submit-proposal instantiate-contract $CODE_ID \

```bash
export ROUTER_CONTRACT_ADDRESS="axelar14jjdxqhuxk803e9pq64w4fgf385y86xxhkpzswe9crmu6vxycezst0zq8y"
export CHAIN_NAME="[chain name]"
export ROUTER_GOV_ADDRESS="axelar1zlr7e5qf3sz7yf890rkh9tcnu87234k6k7ytd9"
export RPC="http://devnet-amplifier.axelar.dev:26657"
```

```bash
axelard tx gov submit-proposal execute-contract $ROUTER_CONTRACT_ADDRESS \
'{
"register_chain": {
"chain":"'"$CHAIN_NAME"'",
"gateway_address": "[chain gateway address]",
"msg_id_format": "hex_tx_hash_and_event_index"
"gateway_address": "'"$SOURCE_GATEWAY_ADDRESS"'",
"msg_id_format": "'"$MSG_ID_FORMAT"'"
}
}' \
--title="Register "'"$CHAIN_NAME"'" chain with the Amplifier router" \
--description="Register "'"$CHAIN_NAME"'" chain with the Amplifier router" \
--run-as $ROUTER_GOV_ADDRESS \
--deposit=2000000000uamplifier \
--deposit=100000000uamplifier \
--keyring-backend test \
--from wallet \
--gas auto --gas-adjustment 1.5 --gas-prices 0.007uamplifier \
Expand All @@ -199,10 +206,8 @@ Once the feedback period has passed, submit the proposal on the command line:

```bash
export MULTISIG_CONTRACT_ADDRESS="axelar1ufs3tlq4umljk0qfe8k5ya0x6hpavn897u2cnf9k0en9jr7qarqqa9263g"
export CHAIN_PROVER_ADDRESS="[chain prover address]"
export CHAIN_NAME="[chain name]"
export CHAIN_PROVER_ADDRESS="axelar1274ntw3prlrzzys4m0mc5xxhzu09x0r3d37886xdz65w59ey7mgs6v0j5z"
export MULTISIG_GOV_ADDRESS="axelar1zlr7e5qf3sz7yf890rkh9tcnu87234k6k7ytd9"
export RPC="http://devnet-amplifier.axelar.dev:26657"
```

```bash
Expand All @@ -216,7 +221,7 @@ axelard tx gov submit-proposal execute-contract $MULTISIG_CONTRACT_ADDRESS \
--title="Authorize "'"$CHAIN_NAME"'" prover with the Amplifier multisig contract" \
--description="Authorize "'"$CHAIN_NAME"'" prover with the Amplifier multisig contract" \
--run-as $MULTISIG_GOV_ADDRESS \
--deposit=2000000000uamplifier \
--deposit=100000000uamplifier \
--keyring-backend test \
--from wallet \
--gas auto --gas-adjustment 1.5 --gas-prices 0.007uamplifier \
Expand Down

0 comments on commit 2aed2fa

Please sign in to comment.