Skip to content

Commit

Permalink
feat(bridge): add faucet link to announcement (#485)
Browse files Browse the repository at this point in the history
* feat(bridge): add faucet link to announcement

* faucet url

* .default.env defaults, basic readme

* sensible defaults

Co-authored-by: Jeffery Walsh <[email protected]>
Co-authored-by: jeff <[email protected]>
Co-authored-by: dave | d1onys1us <[email protected]>
  • Loading branch information
4 people authored Dec 27, 2022
1 parent 3747d4c commit d1a4921
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 30 deletions.
16 changes: 4 additions & 12 deletions packages/bridge-ui/src/components/HeaderAnnouncement.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,11 @@
<div class="sm:px-16 text-center">
<p class="font-medium text-white">
<span class="md:inline"
>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!</span
>Receive some tokens for bridging with our <a
href="https://taiko.xyz/docs/alpha-1-testnet/request-eth-from-faucet"
class="font-bold text-white underline">faucet</a
>.</span
>
<span class="block sm:inline-block">
<a
href="https://twitter.com/taikoxyz"
class="font-bold text-white underline"
>
Follow @taikoxyz on Twitter
<span aria-hidden="true"> &rarr;</span>
</a>
</span>
</p>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion packages/bridge-ui/src/components/Transaction.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@

<td>
{#if !processable}
Pending {fromChain.id === CHAIN_TKO.id ? '(2-3hrs)': ''}...
Pending
{:else if !transaction.receipt && transaction.status === MessageStatus.New}
<div class="inline-block">
<LottiePlayer
Expand Down
5 changes: 3 additions & 2 deletions packages/bridge-ui/src/components/form/ProcessingFee.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,9 @@
time.
</li>
<li>
<strong>Custom</strong>: You can set a custom fee if you want to pay
less (and wait).
<strong>Custom</strong>: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.
</li>
<li>
<strong>None</strong>: You can select no fee if you want to come back
Expand Down
29 changes: 14 additions & 15 deletions packages/relayer/.default.env
Original file line number Diff line number Diff line change
@@ -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
6 changes: 6 additions & 0 deletions packages/relayer/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d1a4921

Please sign in to comment.