Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(relayer): Relayer indexer/processor separation and refactor, messaging queue #14605

Merged
merged 101 commits into from
Sep 6, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
101 commits
Select commit Hold shift + click to select a range
2fa81d9
fix the history page
cyberhorsey Aug 18, 2023
06b67b9
Merge branch 'main' of github.com:taikoxyz/taiko-mono into main
cyberhorsey Aug 21, 2023
13a1a30
Merge branch 'main' of github.com:taikoxyz/taiko-mono into main
cyberhorsey Aug 28, 2023
bbebdd9
Merge branch 'main' of github.com:taikoxyz/taiko-mono into main
cyberhorsey Aug 29, 2023
01b6922
wip
cyberhorsey Aug 30, 2023
c35bf49
Merge branch 'main' into relayer_indexer_separation
cyberhorsey Aug 30, 2023
e6b1ba8
wip cli refactor
cyberhorsey Aug 30, 2023
7d91eb0
Merge branch 'main' of github.com:taikoxyz/taiko-mono into main
cyberhorsey Aug 30, 2023
62956c1
Merge branch 'main' of github.com:taikoxyz/taiko-mono into main
cyberhorsey Aug 30, 2023
30d708a
indexer entire refactor to urfave/cli and taiko-client coding pattern…
cyberhorsey Aug 31, 2023
0afde21
Merge branch 'relayer_indexer_separation' of github.com:taikoxyz/taik…
cyberhorsey Aug 31, 2023
f2f332d
src/dest eth clients for http
cyberhorsey Aug 31, 2023
a1f03a7
lint
cyberhorsey Aug 31, 2023
cdb8dea
processor updates to urfave/cli and taiko-client architecture
cyberhorsey Aug 31, 2023
6e43ade
check can process message + move http to indexer
cyberhorsey Aug 31, 2023
c96648d
better log
cyberhorsey Aug 31, 2023
cf6fa1e
Merge branch 'main' into relayer_indexer_separation
cyberhorsey Aug 31, 2023
1d3791a
missing log should be slog
cyberhorsey Aug 31, 2023
148a22b
test
cyberhorsey Aug 31, 2023
192599c
Merge branch 'relayer_indexer_separation' of github.com:taikoxyz/taik…
cyberhorsey Aug 31, 2023
4b44c80
http port
cyberhorsey Aug 31, 2023
38b97d0
test
cyberhorsey Aug 31, 2023
b6c6390
.
cyberhorsey Aug 31, 2023
df38473
test
cyberhorsey Aug 31, 2023
f94293f
.env
cyberhorsey Aug 31, 2023
62ebf3c
output to stdout
cyberhorsey Sep 1, 2023
9e12865
server fix
cyberhorsey Sep 1, 2023
a4e7277
use srcchain and dest chain as queue
cyberhorsey Sep 1, 2023
5d2534b
default .env
cyberhorsey Sep 1, 2023
1ff6a99
log
cyberhorsey Sep 1, 2023
a217959
log
cyberhorsey Sep 1, 2023
5b4ebac
queue name
cyberhorsey Sep 1, 2023
94c4d11
ctx cancel for ggraceful processor shutdown
cyberhorsey Sep 1, 2023
b213e9b
only non nil msgs
cyberhorsey Sep 1, 2023
5f3f6f0
ack nil body
cyberhorsey Sep 1, 2023
6c869b9
graceful shutdowns and metrics servers
cyberhorsey Sep 1, 2023
4a0149b
Merge branch 'main' into relayer_indexer_separation
cyberhorsey Sep 1, 2023
b8d4e3c
Merge branch 'main' into relayer_indexer_separation
dantaik Sep 1, 2023
9c60fed
handle ecdsa publickey error appropriately
cyberhorsey Sep 1, 2023
f24830d
check http srv error isnt errserverclosed
cyberhorsey Sep 1, 2023
23a48a7
add backoff for processor
cyberhorsey Sep 1, 2023
b871c1e
defaults
cyberhorsey Sep 1, 2023
13b4743
Merge branch 'relayer_indexer_separation' of github.com:taikoxyz/taik…
cyberhorsey Sep 1, 2023
05a2d1f
default ctx
cyberhorsey Sep 1, 2023
2b5f4eb
go mod
cyberhorsey Sep 1, 2023
b192cd8
handle delivery errors, close channels
cyberhorsey Sep 1, 2023
346277c
test
cyberhorsey Sep 1, 2023
5e13d61
metrics tests
cyberhorsey Sep 1, 2023
1794e8e
mock chain ids
cyberhorsey Sep 1, 2023
02b6f9c
duplicate IDs
cyberhorsey Sep 1, 2023
2eea9c8
only use ch if valid
cyberhorsey Sep 1, 2023
c0491b9
logs
cyberhorsey Sep 1, 2023
473f027
rm reset conn
cyberhorsey Sep 1, 2023
017d79e
try a panic here...
cyberhorsey Sep 1, 2023
f6835b3
more logs
cyberhorsey Sep 1, 2023
2192c86
Reconnect
cyberhorsey Sep 1, 2023
8c87e1f
typo
cyberhorsey Sep 1, 2023
36e1cfc
lint
cyberhorsey Sep 1, 2023
0487f45
lint
cyberhorsey Sep 1, 2023
2eff29a
return lint
cyberhorsey Sep 1, 2023
f17b7cb
try to publish again
cyberhorsey Sep 1, 2023
acbdb61
handle connection closing
cyberhorsey Sep 2, 2023
131be79
lints
cyberhorsey Sep 2, 2023
31f67a6
notify cancel
cyberhorsey Sep 2, 2023
016748f
fix connect
cyberhorsey Sep 2, 2023
2694a74
err check
cyberhorsey Sep 2, 2023
f76357d
handle reconnect
cyberhorsey Sep 2, 2023
33437e7
dont panic on scanning block, use backoff retry indefinitely
cyberhorsey Sep 2, 2023
67da8e6
additional logs
cyberhorsey Sep 3, 2023
c5a4968
correct ack logs
cyberhorsey Sep 3, 2023
338d3bd
use a ticker to make sure deliveries get processed
cyberhorsey Sep 3, 2023
5470818
notify for queue
cyberhorsey Sep 3, 2023
5cb1359
inspect queue every tick
cyberhorsey Sep 3, 2023
77a918f
Merge branch 'main' into relayer_indexer_separation
cyberhorsey Sep 3, 2023
fd49fc1
need new msgs ch after connecting
cyberhorsey Sep 3, 2023
fc36cd1
Merge branch 'relayer_indexer_separation' of github.com:taikoxyz/taik…
cyberhorsey Sep 3, 2023
5401a6e
notifiers back in subscribe
cyberhorsey Sep 3, 2023
14f1f0a
log
cyberhorsey Sep 3, 2023
eebd0ae
.
cyberhorsey Sep 3, 2023
a7418b6
Add quick heartbeat
cyberhorsey Sep 3, 2023
350ea25
Add a message id
cyberhorsey Sep 3, 2023
6fc2d19
more logs + a subscription specific ctx to restart the subscription
cyberhorsey Sep 3, 2023
9426c47
dont ack/nack in a loop, delivery cant be delivered on same channel, …
cyberhorsey Sep 3, 2023
58f4e33
Merge branch 'main' into relayer_indexer_separation
cyberhorsey Sep 3, 2023
696426a
error => info?
cyberhorsey Sep 3, 2023
3d1988b
Merge branch 'relayer_indexer_separation' of github.com:taikoxyz/taik…
cyberhorsey Sep 3, 2023
1e52ad1
log...
cyberhorsey Sep 3, 2023
d6834f8
check delivery channel
cyberhorsey Sep 3, 2023
37c6ff9
oops
cyberhorsey Sep 3, 2023
40ab3f2
buffer the msgs chan
cyberhorsey Sep 3, 2023
3ba7f29
Done close on channel/conn being closed
cyberhorsey Sep 4, 2023
cc1d75d
Dont reconnect on ack/nacks
cyberhorsey Sep 4, 2023
03ab07c
Try this...
cyberhorsey Sep 4, 2023
7b1a1a1
rm buffer, add some logs
cyberhorsey Sep 4, 2023
e89628f
Merge branch 'main' into relayer_indexer_separation
dantaik Sep 5, 2023
3880033
Merge branch 'main' into relayer_indexer_separation
cyberhorsey Sep 5, 2023
b450d05
add timeouts
cyberhorsey Sep 5, 2023
3ec57ae
timeouts in tests
cyberhorsey Sep 5, 2023
c05e13b
dynamic env file via env var
cyberhorsey Sep 5, 2023
ab8efbb
use ethclient timeout
cyberhorsey Sep 5, 2023
67a07bc
readme
cyberhorsey Sep 5, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion codecov.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
coverage:
ignore:
- "packages/relayer/contracts/**/*"
- "packages/relayer/bindings/**/*"
- "packages/relayer/mock/**/*"
- "packages/relayer/cmd/**/*"
status:
Expand Down
10 changes: 8 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,13 @@ require (
github.com/aymerick/douceur v0.2.0 // indirect
github.com/beorn7/perks v1.0.1 // indirect
github.com/btcsuite/btcd/btcec/v2 v2.3.2 // indirect
github.com/cenkalti/backoff/v4 v4.2.0 // indirect
github.com/cenkalti/backoff v2.2.1+incompatible // indirect
github.com/cenkalti/backoff/v4 v4.2.1 // indirect
github.com/cespare/xxhash/v2 v2.2.0 // indirect
github.com/cloudflare/circl v1.3.3 // indirect
github.com/containerd/containerd v1.6.19 // indirect
github.com/cpuguy83/dockercfg v0.3.1 // indirect
github.com/cpuguy83/go-md2man/v2 v2.0.2 // indirect
github.com/deckarep/golang-set/v2 v2.1.0 // indirect
github.com/decred/dcrd/dcrec/secp256k1/v4 v4.1.0 // indirect
github.com/docker/distribution v2.8.2+incompatible // indirect
Expand All @@ -70,7 +72,7 @@ require (
github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect
github.com/golang/protobuf v1.5.2 // indirect
github.com/google/go-cmp v0.5.9 // indirect
github.com/google/uuid v1.3.0 // indirect
github.com/google/uuid v1.3.1 // indirect
github.com/gorilla/css v1.0.0 // indirect
github.com/gorilla/websocket v1.4.2 // indirect
github.com/iancoleman/strcase v0.2.0 // indirect
Expand Down Expand Up @@ -100,15 +102,19 @@ require (
github.com/prometheus/client_model v0.3.0 // indirect
github.com/prometheus/common v0.39.0 // indirect
github.com/prometheus/procfs v0.9.0 // indirect
github.com/rabbitmq/amqp091-go v1.8.1 // indirect
github.com/russross/blackfriday/v2 v2.1.0 // indirect
github.com/sergi/go-diff v1.1.0 // indirect
github.com/shirou/gopsutil v3.21.4-0.20210419000835-c7a38de76ee5+incompatible // indirect
github.com/skeema/knownhosts v1.1.1 // indirect
github.com/tklauser/go-sysconf v0.3.5 // indirect
github.com/tklauser/numcpus v0.2.2 // indirect
github.com/urfave/cli/v2 v2.25.7 // indirect
github.com/valyala/bytebufferpool v1.0.0 // indirect
github.com/valyala/fasthttp v1.44.0 // indirect
github.com/valyala/fasttemplate v1.2.1 // indirect
github.com/xanzy/ssh-agent v0.3.3 // indirect
github.com/xrash/smetrics v0.0.0-20201216005158-039620a65673 // indirect
golang.org/x/crypto v0.9.0 // indirect
golang.org/x/exp v0.0.0-20230510235704-dd950f8aeaea // indirect
golang.org/x/net v0.10.0 // indirect
Expand Down
14 changes: 14 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,12 @@ github.com/btcsuite/btcd/chaincfg/chainhash v1.0.1/go.mod h1:7SFka0XMvUgj3hfZtyd
github.com/buildkite/terminal-to-html/v3 v3.8.0 h1:S7ImMS8W+2yS/9D4ugrXzB95C4AuNaKcaw/eR/95bFU=
github.com/buildkite/terminal-to-html/v3 v3.8.0/go.mod h1:j3XxsnYElte/Bo7Pft+U5eQWWbcx3j51uQ8fo43VrjM=
github.com/bwesterb/go-ristretto v1.2.0/go.mod h1:fUIoIZaG73pV5biE2Blr2xEzDoMj7NFEuV9ekS419A0=
github.com/cenkalti/backoff v2.2.1+incompatible h1:tNowT99t7UNflLxfYYSlKYsBpXdEet03Pg2g16Swow4=
github.com/cenkalti/backoff v2.2.1+incompatible/go.mod h1:90ReRw6GdpyfrHakVjL/QHaoyV4aDUVVkXQJJJ3NXXM=
github.com/cenkalti/backoff/v4 v4.2.0 h1:HN5dHm3WBOgndBH6E8V0q2jIYIR3s9yglV8k/+MN3u4=
github.com/cenkalti/backoff/v4 v4.2.0/go.mod h1:Y3VNntkOUPxTVeUxJ/G5vcM//AlwfmyYozVcomhLiZE=
github.com/cenkalti/backoff/v4 v4.2.1 h1:y4OZtCnogmCPw98Zjyt5a6+QwPLGkiQsYW5oUqylYbM=
github.com/cenkalti/backoff/v4 v4.2.1/go.mod h1:Y3VNntkOUPxTVeUxJ/G5vcM//AlwfmyYozVcomhLiZE=
github.com/census-instrumentation/opencensus-proto v0.2.1/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU=
github.com/cespare/cp v0.1.0 h1:SE+dxFebS7Iik5LK0tsi1k9ZCxEaFX4AjQmoyA+1dJk=
github.com/cespare/cp v0.1.0/go.mod h1:SOGHArjBr4JWaSDEVpWpo/hNg6RoKrls6Oh40hiwW+s=
Expand Down Expand Up @@ -197,6 +201,8 @@ github.com/google/go-cmp v0.5.9/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeN
github.com/google/renameio v0.1.0/go.mod h1:KWCgfxg9yswjAJkECMjeO8J8rahYeXnNhOm40UhjYkI=
github.com/google/uuid v1.3.0 h1:t6JiXgmwXMjEs8VusXIJk2BXHsn+wx8BZdTaoZ5fu7I=
github.com/google/uuid v1.3.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo=
github.com/google/uuid v1.3.1 h1:KjJaJ9iWZ3jOFZIf1Lqf4laDRCasjl0BCmnEGxkdLb4=
github.com/google/uuid v1.3.1/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo=
github.com/gorilla/css v1.0.0 h1:BQqNyPTi50JCFMTw/b67hByjMVXZRwGha6wxVGkeihY=
github.com/gorilla/css v1.0.0/go.mod h1:Dn721qIggHpt4+EFCcTLTU/vk5ySda2ReITrtgBl60c=
github.com/gorilla/websocket v1.4.2 h1:+/TMaTYc4QFitKJxsQ7Yye35DkWvkdLcvGKqM+x0Ufc=
Expand Down Expand Up @@ -404,6 +410,8 @@ github.com/prometheus/common v0.39.0 h1:oOyhkDq05hPZKItWVBkJ6g6AtGxi+fy7F4JvUV8u
github.com/prometheus/common v0.39.0/go.mod h1:6XBZ7lYdLCbkAVhwRsWTZn+IN5AB9F/NXd5w0BbEX0Y=
github.com/prometheus/procfs v0.9.0 h1:wzCHvIvM5SxWqYvwgVL7yJY8Lz3PKn49KQtpgMYJfhI=
github.com/prometheus/procfs v0.9.0/go.mod h1:+pB4zwohETzFnmlpe6yd2lSc+0/46IYZRB/chUwxUZY=
github.com/rabbitmq/amqp091-go v1.8.1 h1:RejT1SBUim5doqcL6s7iN6SBmsQqyTgXb1xMlH0h1hA=
github.com/rabbitmq/amqp091-go v1.8.1/go.mod h1:+jPrT9iY2eLjRaMSRHUhc3z14E/l85kv/f+6luSD3pc=
github.com/remyoudompheng/bigfft v0.0.0-20200410134404-eec4a21b6bb0 h1:OdAsTTz6OkFY5QxjkYwrChwuRruF69c169dPK26NUlk=
github.com/remyoudompheng/bigfft v0.0.0-20200410134404-eec4a21b6bb0/go.mod h1:qqbHyh8v60DhA7CoWK5oRCqLrMHRGoxYCSS9EjAz6Eo=
github.com/rogpeppe/go-internal v1.3.0/go.mod h1:M8bDsm7K2OlrFYOpmOWEs/qY81heoFRclV5y23lUDJ4=
Expand Down Expand Up @@ -443,12 +451,15 @@ github.com/status-im/keycard-go v0.2.0/go.mod h1:wlp8ZLbsmrF6g6WjugPAx+IzoLrkdf9
github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
github.com/stretchr/objx v0.1.1/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
github.com/stretchr/objx v0.2.0/go.mod h1:qt09Ya8vawLte6SNmTgCsAVtYtaKzEcn8ATUoHMkEqE=
github.com/stretchr/objx v0.4.0/go.mod h1:YvHI0jy2hoMjB+UWwv71VJQ9isScKT/TqJzVSSt89Yw=
github.com/stretchr/testify v1.2.2/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs=
github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI=
github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81PSLYec5m4=
github.com/stretchr/testify v1.5.1/go.mod h1:5W2xD1RspED5o8YsWQXVCued0rvSQ+mT+I5cxcmMvtA=
github.com/stretchr/testify v1.6.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=
github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=
github.com/stretchr/testify v1.7.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=
github.com/stretchr/testify v1.8.0/go.mod h1:yNjHg4UonilssWZ8iaSj1OCr/vHnekPRkoO+kdMU+MU=
github.com/stretchr/testify v1.8.4 h1:CcVxjf3Q8PM0mHUKJCdn+eZZtm5yQwehR5yeSVQQcUk=
github.com/stretchr/testify v1.8.4/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo=
github.com/syndtr/gocapability v0.0.0-20200815063812-42c35b437635/go.mod h1:hkRG7XYTFWNJGYcbNJQlaLq0fg1yr4J4t/NcTQtrfww=
Expand All @@ -466,6 +477,8 @@ github.com/urfave/cli v1.22.1/go.mod h1:Gos4lmkARVdJ6EkW0WaNv/tZAAMe9V7XWyB60NtX
github.com/urfave/cli v1.22.2 h1:gsqYFH8bb9ekPA12kRo0hfjngWQjkJPlN9R0N78BoUo=
github.com/urfave/cli/v2 v2.17.2-0.20221006022127-8f469abc00aa h1:5SqCsI/2Qya2bCzK15ozrqo2sZxkh0FHynJZOTVoV6Q=
github.com/urfave/cli/v2 v2.17.2-0.20221006022127-8f469abc00aa/go.mod h1:1CNUng3PtjQMtRzJO4FMXBQvkGtuYRxxiR9xMa7jMwI=
github.com/urfave/cli/v2 v2.25.7 h1:VAzn5oq403l5pHjc4OhD54+XGO9cdKVL/7lDjF+iKUs=
github.com/urfave/cli/v2 v2.25.7/go.mod h1:8qnjx1vcq5s2/wpsqoZFndg2CE5tNFyrTvS6SinrnYQ=
github.com/valyala/bytebufferpool v1.0.0 h1:GqA5TC/0021Y/b9FG4Oi9Mr3q7XYx6KllzawFIhcdPw=
github.com/valyala/bytebufferpool v1.0.0/go.mod h1:6bBcMArwyJ5K/AmCkWv1jt77kVWyCJ6HpOuEn7z0Csc=
github.com/valyala/fasthttp v1.22.0/go.mod h1:0mw2RjXGOzxf4NL2jni3gUQ7LfjjUSiG5sskOUUSEpU=
Expand All @@ -492,6 +505,7 @@ go.uber.org/atomic v1.3.2/go.mod h1:gD2HeocX3+yG+ygLZcrzQJaqmWj9AIm7n08wl/qW/PE=
go.uber.org/atomic v1.4.0/go.mod h1:gD2HeocX3+yG+ygLZcrzQJaqmWj9AIm7n08wl/qW/PE=
go.uber.org/atomic v1.5.0/go.mod h1:sABNBOSYdrvTF6hTgEIbc7YasKWGhgEQZyfxyTvoXHQ=
go.uber.org/atomic v1.6.0/go.mod h1:sABNBOSYdrvTF6hTgEIbc7YasKWGhgEQZyfxyTvoXHQ=
go.uber.org/goleak v1.2.1/go.mod h1:qlT2yGI9QafXHhZZLxlSuNsMw3FFLxBr+tBRlmO1xH4=
go.uber.org/multierr v1.1.0/go.mod h1:wR5kodmAFQ0UK8QlbwjlSNy0Z68gJhDJUG5sjR94q/0=
go.uber.org/multierr v1.3.0/go.mod h1:VgVr7evmIr6uPjLBxg28wmKNXyqE9akIJ5XnfpiKl+4=
go.uber.org/multierr v1.5.0/go.mod h1:FeouvMocqHpRaaGuG9EjoKcStLC43Zu/fmqdUMPcKYU=
Expand Down
5 changes: 5 additions & 0 deletions packages/relayer/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@
.l1l2.env
.l2l3.env
.test.env
.l1indexer.env
.l2indexer.env
.l1processor.env
.l2processor.env

main
coverage.txt

Expand Down
21 changes: 21 additions & 0 deletions packages/relayer/.l1indexer.example.env
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
HTTP_PORT=4103
METRICS_HTTP_PORT=6062
DATABASE_USER=root
DATABASE_PASSWORD=root
DATABASE_NAME=relayer
DATABASE_HOST=localhost:3306
DATABASE_MAX_IDLE_CONNS=50
DATABASE_MAX_OPEN_CONNS=3000
DATABASE_CONN_MAX_LIFETIME=100000
QUEUE_USER=guest
QUEUE_PASSWORD=guest
QUEUE_HOST=localhost
QUEUE_PORT=5672
SRC_BRIDGE_ADDRESS=0x9A9f2CCfdE556A7E9Ff0848998Aa4a0CFD8863AE
DEST_BRIDGE_ADDRESS=0x1000777700000000000000000000000000000004
SRC_TAIKO_ADDRESS=0x0DCd1Bf9A1b36cE34237eEaFef220932846BCD82
SRC_RPC_URL=wss://l1ws.internal.taiko.xyz
DEST_RPC_URL=wss://ws.internal.taiko.xyz
CORS_ORIGINS=*
NUM_GOROUTINES=50
BLOCK_BATCH_SIZE=100
27 changes: 27 additions & 0 deletions packages/relayer/.l1processor.example.env
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
PROMETHEUS_HTTP_PORT=6062
DATABASE_USER=root
DATABASE_PASSWORD=root
DATABASE_NAME=relayer
DATABASE_HOST=localhost:3306
DATABASE_MAX_IDLE_CONNS=50
DATABASE_MAX_OPEN_CONNS=3000
DATABASE_CONN_MAX_LIFETIME=100000
QUEUE_USER=guest
QUEUE_PASSWORD=guest
QUEUE_HOST=localhost
QUEUE_PORT=5672
PROCESSOR_PRIVATE_KEY=
DEST_BRIDGE_ADDRESS=0x1000777700000000000000000000000000000004
SRC_ERC20_VAULT_ADDRESS=0xc6e7DF5E7b4f2A278906862b61205850344D4e7d
DEST_ERC20_VAULT_ADDRESS=0x1000777700000000000000000000000000000002
DEST_ERC721_VAULT_ADDRESS=0x1000777700000000000000000000000000000008
DEST_ERC1155_VAULT_ADDRESS=0x1000777700000000000000000000000000000009
DEST_TAIKO_ADDRESS=0x1000777700000000000000000000000000000001
SRC_SIGNAL_SERVICE_ADDRESS=0x84eA74d481Ee0A5332c457a4d796187F6Ba67fEB
SRC_RPC_URL=wss://l1ws.internal.taiko.xyz
DEST_RPC_URL=wss://ws.internal.taiko.xyz
CONFIRMATIONS_BEFORE_PROCESSING=2
CORS_ORIGINS=*
NUM_GOROUTINES=50
BLOCK_BATCH_SIZE=100
HEADER_SYNC_INTERVAL_IN_SECONDS=2
Loading
Loading