diff --git a/docs/bridging/devnet/bridge-to-astria-devnet.md b/docs/bridging/devnet/bridge-to-astria-devnet.md index 4a643448..2358279e 100644 --- a/docs/bridging/devnet/bridge-to-astria-devnet.md +++ b/docs/bridging/devnet/bridge-to-astria-devnet.md @@ -19,17 +19,7 @@ export NOBLE_ADDRESS="" ## Bridge to Astria -### From Celestia - -```bash -celestia-appd tx ibc-transfer transfer transfer channel-159 $ASTRIA_ADDRESS 1000000utia --fees=420utia --from $CELESTIA_KEY_NAME --node=https://rpc-mocha.pops.one:443 --chain-id mocha-4 -``` - -### From Noble - -```bash -nobled tx ibc-transfer transfer transfer channel-231 $ASTRIA_ADDRESS 1000000uusdc --from $NOBLE_KEY_NAME --node https://noble-testnet-rpc.polkachu.com:443 --chain-id grand-1 -``` + ## Check Your Balances on Astria @@ -37,12 +27,14 @@ nobled tx ibc-transfer transfer transfer channel-231 $ASTRIA_ADDRESS 1000000uusd astria-cli sequencer balance get $ASTRIA_ADDRESS --sequencer-url https://rpc.sequencer.dusk-11.devnet.astria.org/ ``` -### View Transactions on [Mintscan](https://www.mintscan.io/) +## View Transactions on [Mintscan](https://www.mintscan.io/) + +You can view your transactions by visiting the following: + +- `https://www.mintscan.io/celestia-testnet/address/` +- `https://www.mintscan.io/noble-testnet/address/` -You can view your transactions by visiting -`https://www.mintscan.io/noble-testnet/address/` or -`https://www.mintscan.io/noble-testnet/address/`. You can -also go directly to [Mintscan](https://www.mintscan.io/) and search for the -`txhash` that is returned after sending your transaction, but it is recommended -to view your address transaction history as this will show if an acknowledgement -for your transfer was received. +You can also go directly to [Mintscan](https://www.mintscan.io/) and search for +the `txhash` that is returned after sending your transaction, but it is +recommended to view your address transaction history as this will show if an +acknowledgement for your transfer was received. diff --git a/docs/bridging/devnet/bridge-to-flame-devnet.md b/docs/bridging/devnet/bridge-to-flame-devnet.md index f85d55f0..0451e26b 100644 --- a/docs/bridging/devnet/bridge-to-flame-devnet.md +++ b/docs/bridging/devnet/bridge-to-flame-devnet.md @@ -2,7 +2,7 @@ Bridging commands from Celestia and Noble testnets to the Astria `dusk` devnet. -You will need the `astria-cli`, `celestia-appd`, and `nobled` installed. Follow +You will need the `astria-cli` and `nobled` installed. Follow the install steps [here](./overview.md#bridging-dependencies). You can export the following to make the commands below easily copy and @@ -11,8 +11,6 @@ pastable. ```bash export ASTRIA_ADDRESS="" export PRIV_KEY="" -export CELESTIA_KEY_NAME="" -export CELESTIA_ADDRESS="" export NOBLE_KEY_NAME="" export NOBLE_ADDRESS="" export FLAME_ADDRESS="" @@ -20,73 +18,38 @@ export FLAME_ADDRESS="" ## Bridge to Flame on `dusk` Devnet -### From Celestia - ::: tip There is no $TIA `BridgeLockAccount` configured for `dusk-11`. ::: -### From Noble +### Via IBC -```bash -nobled tx ibc-transfer transfer \ - transfer \ - channel-231 \ - astria12saluecm8dd7hkutk83eavkl2p70lf5w7txezg \ - "100000uusdc" \ - --memo="{\"rollupDepositAddress\":\"$FLAME_ADDRESS\"}" \ - --chain-id="grand-1" \ - --from="grand-test-1" \ - --node=https://noble-testnet-rpc.polkachu.com:443 - --packet-timeout-height 0-0 -``` + -### nRIA from Astria +### Direct from Astria -```bash -astria-cli sequencer bridge-lock astria1yqdjnnmrp7w5ygwj0dkldsgzjhv5vcakp7yeu9 \ - --amount 10000 \ - --destination-chain-address $FLAME_ADDRESS \ - --private-key $PRIV_KEY \ - --sequencer.chain-id astria-dusk-11 \ - --sequencer-url https://rpc.sequencer.dusk-11.devnet.astria.org \ - --fee-asset=nria --asset=nria -``` - -### USDC from Astria - -```bash -astria-cli sequencer bridge-lock astria12saluecm8dd7hkutk83eavkl2p70lf5w7txezg \ - --amount 10000 \ - --destination-chain-address $FLAME_ADDRESS \ - --private-key $PRIV_KEY \ - --sequencer.chain-id astria-dusk-11 \ - --sequencer-url https://rpc.sequencer.dusk-11.devnet.astria.org \ - --fee-asset=nria --asset=transfer/channel-2/uusdc -``` + ## Check Your Balances on Flame -### TIA + -```bash -cast balance $FLAME_ADDRESS --rpc-url https://rpc.flame.dusk-11.devnet.astria.org - -``` +## View Your Transactions on Flame -### USDC +Open the [Flame `dusk` Block Explorer](https://explorer.evm.dusk-11.devnet.astria.org) +and search for your Flame address to see your transactions. - -```bash -cast balance $FLAME_ADDRESS --erc20 0x6e18cE6Ec3Fc7b8E3EcFca4fA35e25F3f6FA879a --rpc-url https://rpc.flame.dusk-11.devnet.astria.org +On the account page you can view your TIA balance directly. To view your USDC +balance, select the `Tokens` tab. -``` +## View Transactions on [Mintscan](https://www.mintscan.io/) -## View Your Transactions +If you bridge from an IBC chain, you can view your transactions by visiting +the following: -Open the [Flame Block -Explorer](https://explorer.flame.dusk-11.devnet.astria.org) and search for your -Flame address to see your transactions. +- `https://www.mintscan.io/noble-testnet/address/` -On the account page you can view your TIA balance directly. To view your USDC -balance, select the `Tokens` tab. +You can also go directly to [Mintscan](https://www.mintscan.io/) and search for +the `txhash` that is returned after sending your transaction, but it is +recommended to view your address transaction history as this will show if an +acknowledgement for your transfer was received. diff --git a/docs/bridging/devnet/withdraw-from-astria-devnet.md b/docs/bridging/devnet/withdraw-from-astria-devnet.md index 93fc4ad0..6fb6fc90 100644 --- a/docs/bridging/devnet/withdraw-from-astria-devnet.md +++ b/docs/bridging/devnet/withdraw-from-astria-devnet.md @@ -21,39 +21,27 @@ export NOBLE_ADDRESS="" ## Withdraw from Astria -### Astria to Celestia + -```bash -astria-cli sequencer ics20-withdrawal --amount 1000 --destination-chain-address=$CELESTIA_ADDRESS --source-channel channel-0 --private-key=$PRIV_KEY --sequencer-url=https://rpc.sequencer.dusk-11.devnet.astria.org --sequencer.chain-id astria-dusk-11 --asset transfer/channel-0/utia --fee-asset nria -``` - -### Astria to Noble - -```bash -astria-cli sequencer ics20-withdrawal --amount 1000 --destination-chain-address=$NOBLE_ADDRESS --source-channel channel-2 --private-key=$PRIV_KEY --sequencer-url=https://rpc.sequencer.dusk-11.devnet.astria.org --sequencer.chain-id astria-dusk-11 --asset transfer/channel-2/uusdc --fee-asset nria -``` - -### View Transactions on [Astrotrek](https://dusk.astrotrek.io/) +## View Transactions on [Astrotrek](https://dusk.astrotrek.io/) Go to `https://dusk.astrotrek.io/account/?tab=transactions` to see the withdrawal transactions. You can also search the returned transaction hash directly in [Astrotrek](https://dusk.astrotrek.io/). -You will also see the received transactions on -[Mintscan](#view-transactions-on-mintscan). +## View Transactions on [Mintscan](https://www.mintscan.io/) -## Check your Balances on Celestia and Noble +If you bridge out to an IBC chain, you can view your transactions by visiting +the following: -### Celestia Balance +- `https://www.mintscan.io/celestia-testnet/address/` +- `https://www.mintscan.io/noble-testnet/address/` -```bash -celestia-appd query bank balances $CELESTIA_ADDRESS --node=https://rpc-mocha.pops.one:443 --chain-id mocha-4 - -``` +You can also go directly to [Mintscan](https://www.mintscan.io/) and search for +the `txhash` that is returned after sending your transaction, but it is +recommended to view your address transaction history as this will show if an +acknowledgement for your transfer was received. -### Noble Balance +## Check your Devnet Balances -```bash -nobled query bank balances $NOBLE_ADDRESS --node https://noble-testnet-rpc.polkachu.com:443 - -``` + diff --git a/docs/bridging/devnet/withdraw-from-flame-devnet.md b/docs/bridging/devnet/withdraw-from-flame-devnet.md index 76c0fa07..4ac3ef2b 100644 --- a/docs/bridging/devnet/withdraw-from-flame-devnet.md +++ b/docs/bridging/devnet/withdraw-from-flame-devnet.md @@ -61,66 +61,34 @@ export RPC_URL="https://rpc.evm.dusk-11.devnet.astria.org/" ## To Astria -### Withdraw TIA - ::: info Make sure the `ORIGIN_DESTINATION_CHAIN_ADDRESS` in your `.env` file is updated -to be your Celestia address. +to be the address of the desired asset you are withdrawing: +- Set to your **Noble** address to withdraw `USDC` ::: +Then run the following command: + ```bash forge script script/AstriaWithdrawer.s.sol:AstriaWithdrawerScript \ --rpc-url $RPC_URL --broadcast --sig "withdrawToSequencer()" -vvvv ``` -### Withdraw USDC +## To IBC Chain ::: info Make sure the `ORIGIN_DESTINATION_CHAIN_ADDRESS` in your `.env` file is updated -to be your Noble address. +to be the address of the desired asset you are withdrawing: +- Set to your **Noble** address to withdraw `USDC` ::: -```bash -forge script script/AstriaBridgeableERC20.s.sol:AstriaBridgeableERC20Script \ - --rpc-url $RPC_URL --broadcast --sig "withdrawToSequencer()" -vvvv -``` - -## To Celestia - -::: info -Make sure the `ORIGIN_DESTINATION_CHAIN_ADDRESS` in your `.env` file is updated -to be your Celestia address. -::: +Then run the following command: ```bash forge script script/AstriaWithdrawer.s.sol:AstriaWithdrawerScript \ --rpc-url $RPC_URL --broadcast --sig "withdrawToIbcChain()" -vvvv ``` -## To Noble - -::: info -Make sure the `ORIGIN_DESTINATION_CHAIN_ADDRESS` in your `.env` file is updated -to be your Noble address. -::: - -```bash -forge script script/AstriaBridgeableERC20.s.sol:AstriaBridgeableERC20Script \ - --rpc-url $RPC_URL --broadcast --sig "withdrawToIbcChain()" -vvvv -``` - -## Check your Balances on Celestia and Noble - -### Celestia Balance - -```bash -celestia-appd query bank balances $CELESTIA_ADDRESS --node=https://rpc-mocha.pops.one:443 --chain-id mocha-4 - -``` - -### Noble Balance +## Check your Testnet Balances -```bash -nobled query bank balances $NOBLE_ADDRESS --node https://noble-testnet-rpc.polkachu.com:443 - -``` + diff --git a/docs/bridging/testnet/bridge-to-astria-testnet.md b/docs/bridging/testnet/bridge-to-astria-testnet.md index 94de8966..fb7683f6 100644 --- a/docs/bridging/testnet/bridge-to-astria-testnet.md +++ b/docs/bridging/testnet/bridge-to-astria-testnet.md @@ -35,9 +35,8 @@ astria-cli sequencer balance get $ASTRIA_ADDRESS --sequencer-url https://rpc.seq You can view your transactions by visiting the following: -- `https://www.mintscan.io/celestia/address/` -- `https://www.mintscan.io/noble/address/` -- `https://www.mintscan.io/stride/address/` +- `https://www.mintscan.io/celestia-testnet/address/` +- `https://www.mintscan.io/noble-testnet/address/` You can also go directly to [Mintscan](https://www.mintscan.io/) and search for the `txhash` that is returned after sending your transaction, but it is diff --git a/docs/bridging/testnet/withdraw-from-astria-testnet.md b/docs/bridging/testnet/withdraw-from-astria-testnet.md index 1aa65ff3..860b25fd 100644 --- a/docs/bridging/testnet/withdraw-from-astria-testnet.md +++ b/docs/bridging/testnet/withdraw-from-astria-testnet.md @@ -38,9 +38,8 @@ hash directly in [Astrotrek](https://dawn.astrotrek.io/). If you bridge out to an IBC chain, you can view your transactions by visiting the following: -- `https://www.mintscan.io/celestia/address/` -- `https://www.mintscan.io/noble/address/` -- `https://www.mintscan.io/stride/address/` +- `https://www.mintscan.io/celestia-testnet/address/` +- `https://www.mintscan.io/noble-testnet/address/` You can also go directly to [Mintscan](https://www.mintscan.io/) and search for the `txhash` that is returned after sending your transaction, but it is diff --git a/docs/components/_bridge-to-astria-devnet.md b/docs/components/_bridge-to-astria-devnet.md new file mode 100644 index 00000000..fc2c45a1 --- /dev/null +++ b/docs/components/_bridge-to-astria-devnet.md @@ -0,0 +1,35 @@ + + +::: code-group + +```bash [From Celestia] +celestia-appd tx ibc-transfer transfer \ + transfer \ + channel-159 \ + $ASTRIA_ADDRESS \ + 1000000utia \ + --fees=420utia \ + --from $CELESTIA_KEY_NAME \ + --node=https://rpc-mocha.pops.one:443 \ + --chain-id mocha-4 + --packet-timeout-height 0-0 +``` + +```bash [From Noble] +nobled tx ibc-transfer transfer \ + transfer \ + channel-231 \ + $ASTRIA_ADDRESS \ + 1000000uusdc \ + --from $NOBLE_KEY_NAME \ + --node https://noble-testnet-rpc.polkachu.com:443 \ + --chain-id grand-1 \ + --packet-timeout-height 0-0 +``` + +::: + + diff --git a/docs/components/_bridge-to-flame-via-astria-devnet.md b/docs/components/_bridge-to-flame-via-astria-devnet.md new file mode 100644 index 00000000..44aa153f --- /dev/null +++ b/docs/components/_bridge-to-flame-via-astria-devnet.md @@ -0,0 +1,32 @@ + + +::: code-group + +```bash [RIA] +astria-cli sequencer bridge-lock astria1yqdjnnmrp7w5ygwj0dkldsgzjhv5vcakp7yeu9 \ + --amount 10000 \ + --destination-chain-address $FLAME_ADDRESS \ + --private-key $PRIV_KEY \ + --sequencer.chain-id astria-dusk-11 \ + --sequencer-url https://rpc.sequencer.dusk-11.devnet.astria.org \ + --fee-asset=nria \ + --asset=nria +``` + +```bash [USDC] +astria-cli sequencer bridge-lock astria12saluecm8dd7hkutk83eavkl2p70lf5w7txezg \ + --amount 10000 \ + --destination-chain-address $FLAME_ADDRESS \ + --private-key $PRIV_KEY \ + --sequencer.chain-id astria-dusk-11 \ + --sequencer-url https://rpc.sequencer.dusk-11.devnet.astria.org \ + --fee-asset=nria \ + --asset=transfer/channel-2/uusdc +``` + +::: + + diff --git a/docs/components/_bridge-to-flame-via-ibc-devnet.md b/docs/components/_bridge-to-flame-via-ibc-devnet.md new file mode 100644 index 00000000..81c14c08 --- /dev/null +++ b/docs/components/_bridge-to-flame-via-ibc-devnet.md @@ -0,0 +1,22 @@ + + +::: code-group + +```bash [From Noble] +nobled tx ibc-transfer transfer \ + transfer \ + channel-231 \ + astria12saluecm8dd7hkutk83eavkl2p70lf5w7txezg \ + "100000uusdc" \ + --memo="{\"rollupDepositAddress\":\"$FLAME_ADDRESS\"}" \ + --chain-id="grand-1" \ + --from="grand-test-1" \ + --node=https://noble-testnet-rpc.polkachu.com:443 + --packet-timeout-height 0-0 +``` + +::: + + diff --git a/docs/components/_check-flame-balances-devnet.md b/docs/components/_check-flame-balances-devnet.md new file mode 100644 index 00000000..0534b765 --- /dev/null +++ b/docs/components/_check-flame-balances-devnet.md @@ -0,0 +1,18 @@ + + +::: code-group + +```bash [RIA] +cast balance $FLAME_ADDRESS --rpc-url https://rpc.flame.dusk-11.devnet.astria.org +``` + +```bash [USDC] +cast balance $FLAME_ADDRESS --erc20 0xa4f59B3E97EC22a2b949cB5b6E8Cd6135437E857 --rpc-url https://rpc.flame.dusk-11.devnet.astria.org +``` + +::: + + diff --git a/docs/components/_withdraw-from-astria-devnet.md b/docs/components/_withdraw-from-astria-devnet.md new file mode 100644 index 00000000..fcbb5c0a --- /dev/null +++ b/docs/components/_withdraw-from-astria-devnet.md @@ -0,0 +1,34 @@ + + +::: code-group + +```bash [To Celestia] +astria-cli sequencer ics20-withdrawal \ + --amount 1000 \ + --destination-chain-address=$CELESTIA_ADDRESS \ + --source-channel channel-0 \ + --private-key=$PRIV_KEY \ + --sequencer-url=https://rpc.sequencer.dusk-11.devnet.astria.org \ + --sequencer.chain-id astria-dusk-11 \ + --asset transfer/channel-0/utia \ + --fee-asset nria +``` + +```bash [To Noble] +astria-cli sequencer ics20-withdrawal \ + --amount 1000 \ + --destination-chain-address=$NOBLE_ADDRESS \ + --source-channel channel-2 \ + --private-key=$PRIV_KEY \ + --sequencer-url=https://rpc.sequencer.dusk-11.devnet.astria.org \ + --sequencer.chain-id astria-dusk-11 \ + --asset transfer/channel-2/uusdc \ + --fee-asset nria +``` + +::: + +