Skip to content

Commit 89574d5

Browse files
authored
Chore/ampd configs (#1320)
1 parent 7a7a3a1 commit 89574d5

File tree

3 files changed

+75
-9
lines changed

3 files changed

+75
-9
lines changed

src/content/docs/validator/external-chains/stellar.mdx

Lines changed: 18 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -844,19 +844,28 @@ In your `config.toml` file for ampd you can set the following configuration to r
844844
</tab-item>
845845
<tab-item title="Testnet" class="bleed">
846846
```toml
847-
[[handlers]]
848-
type="StellarMsgVerifier"
849-
cosmwasm_contract="axelar1j82crkl36gezwlch3ngkcyva9gjrqsz4vr76u3uvazdl7z70sfdsx30ma2"
850-
rpc_url="your_own_rpc"
851-
852-
[[handlers]]
853-
type="StellarVerifierSetVerifier"
854-
cosmwasm_contract="axelar1j82crkl36gezwlch3ngkcyva9gjrqsz4vr76u3uvazdl7z70sfdsx30ma2"
855-
rpc_url="your_own_rpc"
847+
[[handlers]]
848+
type="StellarMsgVerifier"
849+
cosmwasm_contract="axelar1a4wt84rllhuwpdvymj4tql6cugfsmdmau9ufmzcm329yx9st96eqx05uam"
850+
rpc_url="your_own_prc"
851+
852+
[[handlers]]
853+
type="StellarVerifierSetVerifier"
854+
cosmwasm_contract="axelar1a4wt84rllhuwpdvymj4tql6cugfsmdmau9ufmzcm329yx9st96eqx05uam"
855+
rpc_url="your_own_prc"
856856
```
857857
</tab-item>
858858
</tabs>
859859

860+
### Register Chain
861+
For your node to be recognized by the Axelar network, you need to register your chain with the `ampd` daemon. This can be done by running:
862+
863+
```bash
864+
ampd register-chain-support amplifier stellar
865+
```
866+
867+
For the Stellar integration you will need to have `ed25519` key registered. To register this key you must ensure you are running `tofnd` version >1.0.1
868+
860869
## Common Issues
861870
Tips & Common Pitfalls
862871
1. Absolute DB path: On macOS, either set `<key>WorkingDirectory</key>` in your plist or use `DB_PATH="/Users/USERNAME/.stellar/data/stellar_rpc.sqlite"`.

src/content/docs/validator/external-chains/xrpl-evm.mdx

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -208,3 +208,33 @@ INF finalized block block_app_hash=... height=13242560 ...
208208

209209
4. Minimum gas price error
210210
- If you receive an error that says `Error: set min gas price in app.toml or flag or env variable: error in app.toml`. Set the `minimum-gas-prices` field in `app.toml` to a value for example `0.25axrp`
211+
212+
### Ampd Configuration
213+
Once your node is up and running, you need to add the XRPL-EVM chain to your ampd's `config.toml`file. This can be done by adding in the following configuration:
214+
215+
For testnet:
216+
217+
```toml
218+
[[handlers]]
219+
chain_finalization="RPCFinalizedBlock"
220+
chain_name="xrpl-evm"
221+
chain_rpc_url="https://rpc.testnet.xrplevm.org"
222+
cosmwasm_contract="axelar1q8kn9t39ddpce42atk0d6wpdudr6djqxmz689m3nxy92ck0nnftqxfsuyk"
223+
type="EvmMsgVerifier"
224+
225+
[[handlers]]
226+
chain_finalization="RPCFinalizedBlock"
227+
chain_name="xrpl-evm"
228+
chain_rpc_url="https://rpc.testnet.xrplevm.org"
229+
cosmwasm_contract="axelar1q8kn9t39ddpce42atk0d6wpdudr6djqxmz689m3nxy92ck0nnftqxfsuyk"
230+
type="EvmVerifierSetVerifier"
231+
```
232+
233+
### Register Chain
234+
For your node to be recognized by the Axelar network, you need to register your chain with the `ampd` daemon. This can be done by running:
235+
236+
```bash
237+
ampd register-chain-support amplifier xrpl-evm
238+
```
239+
240+

src/content/docs/validator/external-chains/xrpl.mdx

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,3 +142,30 @@ You can query the node with:
142142
```bash
143143
curl -H 'Content-Type: application/json' -d '{"method":"server_info","params":[{}]}' http://localhost:5005
144144
```
145+
146+
147+
### Ampd Configuration
148+
Once your node is up and running, you need to add the XRPL chain to your ampd's `config.toml`file. This can be done by adding in the following configuration:
149+
150+
For testnet:
151+
152+
```toml
153+
[[handlers]]
154+
type="XRPLMsgVerifier"
155+
chain_name="xrpl"
156+
chain_rpc_url=<YOUR_RPC_URL>
157+
cosmwasm_contract="axelar1pnynr6wnmchutkv6490mdqqxkz54fnrtmq8krqhvglhsqhmu7wzsnc86sy"
158+
159+
[[handlers]]
160+
type="XRPLMultisigSigner"
161+
multisig_contract="axelar14a4ar5jh7ue4wg28jwsspf23r8k68j7g5d6d3fsttrhp42ajn4xq6zayy5"
162+
multisig_prover_contract="axelar1k82qfzu3l6rvc7twlp9lpwsnav507czl6xyrk0xv287t4439ymvsl6n470"
163+
```
164+
165+
### Register Chain
166+
For your node to be recognized by the Axelar network, you need to register your chain with the `ampd` daemon. This can be done by running:
167+
168+
```bash
169+
ampd register-chain-support amplifier xrpl
170+
```
171+

0 commit comments

Comments
 (0)