You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -14,14 +14,37 @@ Chains integrated with Amplifier can [pass GMP messages](/dev/general-message-pa
14
14
1. Verifiers participate in the signing session.
15
15
1. Once enough signatures have been submitted, the relayer gets the fully signed proof from the prover and relays the proof to the destination chain to approve the transactions. This relayer can now execute any approved transactions on the destination chain.
16
16
17
-
## Axelar contract deployments
17
+
## Live Axelar contract deployments
18
18
19
-
The following code samples illustrate a transaction from Avalanche to Ethereum Sepolia. Information for other chains can be found on [`testnet.json`](https://github.com/axelarnetwork/axelar-contract-deployments/blob/main/axelar-chains-config/info/testnet.json).
[`verify_messages`](https://github.com/axelarnetwork/axelar-amplifier/blob/f76dc8a775b8bb529cf50147bab9259d1ec7f784/packages/gateway-api/src/msg.rs#L9) is a command on the gateway that prompts verifiers to begin voting so that a message can be verified and then routed. It takes a vector of messages to be verified.
26
+
Once a call has been [executed](https://sepolia.etherscan.io/tx/0x4f5b0ed0dc717b317f16c841a407c79226deba7bc15e82ba98b4d4aab1169baf) on an external chain such as Ethereum, the first step is to get that message [verified](https://devnet-amplifier.axelarscan.io/tx/3F1C367A3424CE90FE046ADA41A295910FACA543DC83893784548F214CC2AF7B) with your integration's unique `Verifier Contract`
24
27
28
+
The [`verify_messages`](https://github.com/axelarnetwork/axelar-amplifier/blob/f76dc8a775b8bb529cf50147bab9259d1ec7f784/packages/gateway-api/src/msg.rs#L9) command on the [gateway](https://github.com/axelarnetwork/axelar-amplifier/blob/main/doc/src/contracts/gateway.md) prompts verifiers (in the case of a VotingVerifier verification choice) to begin voting so that a message can be verified and then routed. It takes a vector of messages to be verified. This example will trigger the [verify_messages](https://github.com/axelarnetwork/axelar-amplifier/blob/f76dc8a775b8bb529cf50147bab9259d1ec7f784/contracts/voting-verifier/src/execute.rs#L96) function in the Voting Verifier contract.
29
+
30
+
Note: A [Voting Verifier](https://github.com/axelarnetwork/axelar-amplifier/blob/f76dc8a775b8bb529cf50147bab9259d1ec7f784/doc/src/contracts/voting_verifier.md) verification is just one of many possibilities to verify messages. Other options include but are not limited to the use of ZK Proofs or light clients.
Running this command will trigger a [vote](https://devnet-amplifier.axelarscan.io/amplifier-poll/axelar1uzfz5v5694llyg0a2aafz4gu3d8njc44vp6fw6j9kscyrrn3x5as50wuux_43) among the chain's registered verifiers to come to consensus about the message that was sent.
--gas auto --gas-adjustment 1.5 --gas-prices 0.007uverifiers \
56
-
--chain-id axelar-testnet-lisbon-3 \
84
+
--gas auto --gas-adjustment 1.5 --gas-prices $GAS_PRICE \
85
+
--chain-id $CHAIN_ID \
57
86
--node $RPC
58
87
```
59
88
60
89
## Route messages
90
+
With the message now verified, the next step is to [route](https://devnet-amplifier.axelarscan.io/tx/C8AD9EA8DC25CF6CDF8CDFE4C8BBD081BE54A89858D95F8556CA447D80C93AF4) the message to the destination chain's [Prover contract](https://github.com/axelarnetwork/axelar-amplifier/blob/main/doc/src/contracts/multisig_prover.md). To do this you can run the [`route_messages`](https://github.com/axelarnetwork/axelar-amplifier/blob/f76dc8a775b8bb529cf50147bab9259d1ec7f784/packages/gateway-api/src/msg.rs#L14) command on the [gateway](https://github.com/axelarnetwork/axelar-amplifier/blob/f76dc8a775b8bb529cf50147bab9259d1ec7f784/contracts/gateway/src/contract/execute.rs#L22). It takes a vector of verified messages to be routed.
61
91
62
-
[`route_messages`](https://github.com/axelarnetwork/axelar-amplifier/blob/f76dc8a775b8bb529cf50147bab9259d1ec7f784/packages/gateway-api/src/msg.rs#L14) is a command on the gateway that routes successfully verified messages to the destination chain. It takes a vector of verified messages to be routed.
--gas auto --gas-adjustment 1.5 --gas-prices 0.007uverifiers \
83
-
--chain-id axelar-testnet-lisbon-3 \
143
+
--gas auto --gas-adjustment 1.5 --gas-prices $GAS_PRICE \
144
+
--chain-id $CHAIN_ID \
84
145
--node $RPC
85
146
```
86
147
87
148
## Construct a proof
88
-
149
+
Now that the message has been routed, the [Prover](https://github.com/axelarnetwork/axelar-amplifier/blob/f76dc8a775b8bb529cf50147bab9259d1ec7f784/doc/src/contracts/multisig_prover.md) of the destination chain can [construct the proof](https://devnet-amplifier.axelarscan.io/tx/6693F9316263A079ECC75664E843BBF91C9F7F0B6A5723102886AF57954C9516) for it.
89
150
[`construct_proof`](https://github.com/axelarnetwork/axelar-amplifier/blob/f76dc8a775b8bb529cf50147bab9259d1ec7f784/contracts/multisig-prover/src/msg.rs#L61) takes a vector of `CrossChainID`s and builds a proof that includes the messages to be routed so that the message can be relayed to the destination gateway. It also passes the message from the gateway to the prover.
--gas auto --gas-adjustment 1.5 --gas-prices 0.007uverifiers \
110
-
--chain-id axelar-testnet-lisbon-3 \
191
+
--gas auto --gas-adjustment 1.5 --gas-prices $GAS_PRICE \
192
+
--chain-id $CHAIN_ID \
111
193
--node $RPC
112
194
```
113
195
196
+
114
197
## Get the proof
115
198
116
-
[`get_proof`](https://github.com/axelarnetwork/axelar-amplifier/blob/f76dc8a775b8bb529cf50147bab9259d1ec7f784/contracts/multisig-prover/src/msg.rs#L81)returns the fully signed proof from the multisig prover after verifiers vote.
199
+
Now that the proof has been submitted you can run [`get_proof`](https://github.com/axelarnetwork/axelar-amplifier/blob/f76dc8a775b8bb529cf50147bab9259d1ec7f784/contracts/multisig-prover/src/msg.rs#L81)to return the fully signed proof from the multisig prover.
Copy file name to clipboardExpand all lines: src/content/docs/validator/amplifier/verifier-onboarding.mdx
+9Lines changed: 9 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -479,9 +479,18 @@ Prior to running the `ampd` daemon, you will need to set up your wallet with dev
479
479
480
480
1. Register support for desired chains, enabling `ampd` to participate in voting and signing for your supported chains.
481
481
482
+
<tabs>
483
+
<tab-itemtitle="devnet">
484
+
```bash
485
+
ampd register-chain-support validators flow
486
+
```
487
+
</tab-item>
488
+
<tab-itemtitle="testnet">
482
489
```bash
483
490
ampd register-chain-support amplifier flow
484
491
```
492
+
</tab-item>
493
+
</tabs>
485
494
486
495
Multiple chain names can be passed, separated by a space (`ampd register-chain-support [service name] [chains]...`). Note that any chain you want to support here must be configured in your ampd `config.toml` file.
0 commit comments