diff --git a/packages/bridge-ui/src/components/HeaderAnnouncement.svelte b/packages/bridge-ui/src/components/HeaderAnnouncement.svelte index c3c2729babd..7d33b683214 100644 --- a/packages/bridge-ui/src/components/HeaderAnnouncement.svelte +++ b/packages/bridge-ui/src/components/HeaderAnnouncement.svelte @@ -3,19 +3,11 @@

Hello! At Taiko, we develop in open-source, so this URL, and others, - are publicly available. However, it is not ready to be used. We will - make an announcement when our public testnet is ready!Receive some tokens for bridging with our faucet. - - - Follow @taikoxyz on Twitter - - -

diff --git a/packages/bridge-ui/src/components/Transaction.svelte b/packages/bridge-ui/src/components/Transaction.svelte index e40029a24db..fe82e40f19a 100644 --- a/packages/bridge-ui/src/components/Transaction.svelte +++ b/packages/bridge-ui/src/components/Transaction.svelte @@ -133,7 +133,7 @@ {#if !processable} - Pending {fromChain.id === CHAIN_TKO.id ? '(2-3hrs)': ''}... + Pending {:else if !transaction.receipt && transaction.status === MessageStatus.New}
  • - Custom: You can set a custom fee if you want to pay - less (and wait). + Custom:You can set a custom fee for the relayer to + incentivize them to prioritize your request. A lower fee may result in + longer processing time.
  • None: You can select no fee if you want to come back diff --git a/packages/relayer/.default.env b/packages/relayer/.default.env index 7445d2e4e49..5097c633e8f 100644 --- a/packages/relayer/.default.env +++ b/packages/relayer/.default.env @@ -1,22 +1,21 @@ -HTTP_PORT=4102 -PROMETHEUS_HTTP_PORT=6060 +HTTP_PORT=4101 +PROMETHEUS_HTTP_PORT=6061 MYSQL_USER=root MYSQL_PASSWORD=root MYSQL_DATABASE=relayer MYSQL_HOST=localhost:3306 +MYSQL_MAX_IDLE_CONNS=50 +MYSQL_MAX_OPEN_CONNS=3000 +MYSQL_CONN_MAX_LIFETIME_IN_MS=100000 RELAYER_ECDSA_KEY= -L1_BRIDGE_ADDRESS=0xB12d6112D64B213880Fa53F815aF1F29c91CaCe9 -L2_BRIDGE_ADDRESS=0xA53a0f12879Aba509A24D2e5C959a36cdD18F9d0 -L1_TAIKO_ADDRESS=0x9b557777Be33A8A2fE6aF93E017A0d139B439E5D -L2_TAIKO_ADDRESS=0x80EDBd3f3618b348526F0970AEAFA52b6f204449 -L1_RPC_URL=ws://34.132.67.34:8546 -L2_RPC_URL=ws://ws.a1.testnet.taiko.xyz -BLOCK_BATCH_SIZE=2 -MYSQL_MAX_IDLE_CONNS= -MYSQL_MAX_OPEN_CONNS= -MYSQL_CONN_MAX_LIFETIME_IN_MS= -NUM_GOROUTINES=20 -SUBSCRIPTION_BACKOFF_IN_SECONDS=3 -CONFIRMATIONS_BEFORE_PROCESSING=15 +L1_BRIDGE_ADDRESS=0x3612E284D763f42f5E4CB72B1602b23DAEC3cA60 +L2_BRIDGE_ADDRESS=0x0000777700000000000000000000000000000004 +L1_TAIKO_ADDRESS=0x7B3AF414448ba906f02a1CA307C56c4ADFF27ce7 +L2_TAIKO_ADDRESS=0x0000777700000000000000000000000000000001 +L1_RPC_URL=wss://l1ws.a1.taiko.xyz +L2_RPC_URL=wss://l2ws.a1.taiko.xyz +CONFIRMATIONS_BEFORE_PROCESSING=13 CORS_ORIGINS=* +NUM_GOROUTINES=100 +BLOCK_BATCH_SIZE=10 HEADER_SYNC_INTERVAL_IN_SECONDS=60 \ No newline at end of file diff --git a/packages/relayer/README.md b/packages/relayer/README.md index f12149044b5..b12f5bfe8fe 100644 --- a/packages/relayer/README.md +++ b/packages/relayer/README.md @@ -5,6 +5,12 @@ A relayer for the Bridge to watch and sync event between Layer 1 and Taiko Layer 2. +## Running the app + +run `cp .default.env .env`, and add your own private key as `RELAYER_ECDSA_KEY` in `.env`. You need to be running a MySQL instance, and replace all the `MYSQL_` env vars with yours. + +Run `go run cmd/main.go --help` to see a list of possible configuration flags, or `go run cmd/main.go` to run with defaults, which will process messages from L1 to L2, and from L2 to L1, and start indexing blocks from 0. + ## Project structure ### bin