Skip to content

Commit

Permalink
change msg id in amplifier gmp example
Browse files Browse the repository at this point in the history
  • Loading branch information
cjcobb23 authored and StephenFluin committed May 1, 2024
1 parent 72cfcb8 commit b6e7d56
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/pages/dev/amplifier/gmp-example.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -26,23 +26,23 @@ Once the transaction is finalized on the source chain, call `verify_messages()`

```bash
axelard tx wasm execute axelar18csycs4vm6varkp00apuqlsm7v4twg8jsljk8wfdd7cghr7g4rtsltrlkp '{"verify_messages":[{"cc_id":{"chain":"ethereum-sepolia","id":"0xeafbc1283699c49ba4f79ec43d8749f
d82ca4ee14c236787dd25a2f7d4932daa:60"},"destination_chain":"avalanche","destination_address":"0x79a35Fd62DbAa820D3025B3400eBcE17Cdd6C587","source_address":"0xA4f10f76B86E01B98daF66A3d02a65e14
d82ca4ee14c236787dd25a2f7d4932daa-60"},"destination_chain":"avalanche","destination_address":"0x79a35Fd62DbAa820D3025B3400eBcE17Cdd6C587","source_address":"0xA4f10f76B86E01B98daF66A3d02a65e14
adb0767","payload_hash":"64b8427717b2ce8573a0c37e03e30ec683c2fe57dcee4d426d22cf43c7692675"}]}' --from validator --gas auto --gas-adjustment 1.5
```

Wait for verification, which usually takes 1-3 blocks. Then call `route_messages()`:

```bash
axelard tx wasm execute axelar18csycs4vm6varkp00apuqlsm7v4twg8jsljk8wfdd7cghr7g4rtsltrlkp '{"route_messages":[{"cc_id":{"chain":"ethereum-sepolia","id":"0xeafbc1283699c49ba4f79ec43d8749fd
82ca4ee14c236787dd25a2f7d4932daa:60"},"destination_chain":"avalanche","destination_address":"0x79a35Fd62DbAa820D3025B3400eBcE17Cdd6C587","source_address":"0xA4f10f76B86E01B98daF66A3d02a65e14a
82ca4ee14c236787dd25a2f7d4932daa-60"},"destination_chain":"avalanche","destination_address":"0x79a35Fd62DbAa820D3025B3400eBcE17Cdd6C587","source_address":"0xA4f10f76B86E01B98daF66A3d02a65e14a
db0767","payload_hash":"64b8427717b2ce8573a0c37e03e30ec683c2fe57dcee4d426d22cf43c7692675"}]}' --from validator --gas auto --gas-adjustment 1.5
```

Call `construct_proof()` at the multisig-prover corresponding to the destination chain:

```bash
axelard tx wasm execute axelar1qum2tr7hh4y7ruzew68c64myjec0dq2s2njf6waja5t0w879lutqv062tl '{"construct_proof":{"message_ids":[{"chain":"ethereum-sepolia","id":"0xeafbc1283699c49ba4f79ec43
d8749fd82ca4ee14c236787dd25a2f7d4932daa:60"}]}}' --from validator --gas auto --gas-adjustment 1.5
d8749fd82ca4ee14c236787dd25a2f7d4932daa-60"}]}}' --from validator --gas auto --gas-adjustment 1.5
```

Note the `multisig_session_id` in the output:
Expand Down Expand Up @@ -71,7 +71,7 @@ data:
destination_chain_id: "43113"
message_ids:
- chain: ethereum-sepolia
id: 0xeafbc1283699c49ba4f79ec43d8749fd82ca4ee14c236787dd25a2f7d4932daa:60
id: 0xeafbc1283699c49ba4f79ec43d8749fd82ca4ee14c236787dd25a2f7d4932daa-60
multisig_session_id: "1"
status:
completed:
Expand All @@ -92,4 +92,4 @@ Fill in the appropriate values and execute the contract. The `command_id` can be

```js
> await contract.execute(ethers.utils.arrayify(command_id),source_chain, source_address, ethers.utils.arrayify(payload)).then((tx) => tx.wait()
```
```

0 comments on commit b6e7d56

Please sign in to comment.