From f45d8175fc951d6707da0bbc94222a77443baeb1 Mon Sep 17 00:00:00 2001 From: Shadab Khan Date: Tue, 14 Feb 2023 19:06:04 +0530 Subject: [PATCH 01/15] feat(bridge-ui): adapt frontend to backend changes --- packages/bridge-ui/README.md | 24 +++--- .../components/MessageStatusTooltip.svelte | 8 +- .../src/components/form/SelectChain.svelte | 2 +- .../src/components/modals/FaucetModal.svelte | 16 ++-- packages/bridge-ui/src/domain/chain.ts | 83 ++++++++++++++----- packages/bridge-ui/src/domain/proof.ts | 1 + packages/bridge-ui/src/domain/token.ts | 10 +-- packages/bridge-ui/src/erc20/bridge.ts | 1 + packages/bridge-ui/src/eth/bridge.ts | 1 + packages/bridge-ui/src/proof/service.ts | 2 +- packages/bridge-ui/src/storage/service.ts | 7 +- .../src/utils/recommendProcessingFee.spec.ts | 6 +- 12 files changed, 108 insertions(+), 53 deletions(-) diff --git a/packages/bridge-ui/README.md b/packages/bridge-ui/README.md index 59cd6eb5f52..40678322b52 100644 --- a/packages/bridge-ui/README.md +++ b/packages/bridge-ui/README.md @@ -14,18 +14,20 @@ You can use the following values in the `.env` file to spin up the Bridge UI loc ``` VITE_NODE_ENV=dev -VITE_L1_RPC_URL="https://l1rpc.a1.taiko.xyz/" -VITE_L2_RPC_URL="https://l2rpc.a1.taiko.xyz/" -VITE_RELAYER_URL="http://localhost:4102/" -VITE_TEST_ERC20_ADDRESS_MAINNET="0x3E3a3416DbCc5cb4448B6b171fF15f9Da35Ab72d" -VITE_MAINNET_CHAIN_ID=31338 -VITE_TAIKO_CHAIN_ID=167003 -VITE_MAINNET_CHAIN_NAME="Ethereum A1" -VITE_TAIKO_CHAIN_NAME="Taiko A1" +VITE_L1_RPC_URL="https://l1rpc.internal.taiko.xyz/" +VITE_L2_RPC_URL="https://l2rpc.internal.taiko.xyz/" +VITE_RELAYER_URL="https://relayer.internal.taiko.xyz/" +VITE_TEST_ERC20_ADDRESS_MAINNET="0x1B5Ccd66cc2408A0084047720167F6234Dc5498A" +VITE_TEST_ERC20_SYMBOL_MAINNET="BULL" +VITE_TEST_ERC20_NAME_MAINNET="Bull Token" +VITE_MAINNET_CHAIN_ID=31336 +VITE_TAIKO_CHAIN_ID=167001 +VITE_MAINNET_CHAIN_NAME="Ethereum A2" +VITE_TAIKO_CHAIN_NAME="Taiko A2" VITE_TAIKO_TOKEN_VAULT_ADDRESS="0x0000777700000000000000000000000000000002" -VITE_MAINNET_TOKEN_VAULT_ADDRESS="0xD0dfd5baCf160B97C8eE3ecb463F18c08673160c" +VITE_MAINNET_TOKEN_VAULT_ADDRESS="0xAE4C9bD0f7AE5398Df05043079596E2BF0079CE9" VITE_TAIKO_HEADER_SYNC_ADDRESS="0x0000777700000000000000000000000000000001" -VITE_MAINNET_HEADER_SYNC_ADDRESS="0x7B3AF414448ba906f02a1CA307C56c4ADFF27ce7" -VITE_MAINNET_BRIDGE_ADDRESS="0x3612E284D763f42f5E4CB72B1602b23DAEC3cA60" +VITE_MAINNET_HEADER_SYNC_ADDRESS="0xa6421A7f48498cee3aEb6428a8A2DD5fAA3AcE2f" +VITE_MAINNET_BRIDGE_ADDRESS="0x0237443359aB0b11EcDC41A7aF1C90226a88c70f" VITE_TAIKO_BRIDGE_ADDRESS="0x0000777700000000000000000000000000000004" ``` \ No newline at end of file diff --git a/packages/bridge-ui/src/components/MessageStatusTooltip.svelte b/packages/bridge-ui/src/components/MessageStatusTooltip.svelte index 2aca9cde74a..f24fc143129 100644 --- a/packages/bridge-ui/src/components/MessageStatusTooltip.svelte +++ b/packages/bridge-ui/src/components/MessageStatusTooltip.svelte @@ -11,8 +11,12 @@