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): two-step bridge + watchdog + full merkle proof #15669

Merged
merged 150 commits into from
Mar 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
150 commits
Select commit Hold shift + click to select a range
a187ecc
move
dantaik Jan 30, 2024
5d2c367
more
dantaik Jan 30, 2024
57bafe9
Update SignalService.sol
dantaik Jan 30, 2024
84d8b57
Update SignalService.sol
dantaik Jan 30, 2024
2957475
more
dantaik Jan 30, 2024
22c8331
more
dantaik Jan 30, 2024
d9f52cc
more
dantaik Jan 30, 2024
ccaca15
simply ++i
dantaik Jan 30, 2024
d086a20
fmt
dantaik Jan 30, 2024
b2ae1cd
remove signal service merkle proof overhead
dantaik Jan 30, 2024
7a53024
more
dantaik Jan 30, 2024
d17b9b0
Merge branch 'alpha-6' into adopt_optimism_new_trie_code
dantaik Jan 30, 2024
409c67b
Merge branch 'adopt_optimism_new_trie_code' into remove_signal_servic…
dantaik Jan 30, 2024
9fda1cf
Update SignalService.t.sol
dantaik Jan 30, 2024
da4f21e
Update SignalService.sol
dantaik Jan 30, 2024
f3d2b9c
more
dantaik Jan 30, 2024
c06cbbe
Update OwnerUUPSUpgradable.sol
dantaik Jan 30, 2024
a6aa4be
Merge branch 'alpha-6' into adopt_optimism_new_trie_code
dantaik Jan 30, 2024
df470fa
Merge branch 'adopt_optimism_new_trie_code' into remove_signal_servic…
dantaik Jan 30, 2024
a56ff77
Merge branch 'alpha-6' into remove_signal_service_overhead
dantaik Jan 31, 2024
8736bf1
Update TaikoL1.sol
dantaik Jan 31, 2024
85226b2
Update OwnerUUPSUpgradable.sol
dantaik Jan 31, 2024
e0c65b1
Merge branch 'alpha-6' into remove_signal_service_overhead
dantaik Feb 1, 2024
3eeb0ca
Merge branch 'alpha-6' into remove_signal_service_overhead
dantaik Feb 1, 2024
70e1ab4
Merge branch 'alpha-7' into remove_signal_service_overhead
dantaik Feb 2, 2024
1f9758c
Update SignalService.sol
dantaik Feb 2, 2024
ab42346
either rlp encode or abi encode the proof message
cyberhorsey Feb 2, 2024
06f17b0
test
cyberhorsey Feb 2, 2024
c4c61ea
Merge branch 'remove_signal_service_overhead' into relayer_proof_flag
dantaik Feb 2, 2024
ab12a57
breaking change by removing signal service overhead
dantaik Feb 5, 2024
3744fc8
Merge branch 'alpha-6' into alpha-7
dantaik Feb 5, 2024
b5728d1
Merge branch 'alpha-6' into alpha-7
dantaik Feb 6, 2024
c3e1b7b
remove generic
cyberhorsey Feb 6, 2024
99c8054
merge alpha-7
cyberhorsey Feb 6, 2024
7cf9b97
make relayer able to index either MessageSent or MessageReceived
cyberhorsey Feb 6, 2024
a37fc8a
check invocation delays + preferrede executors, + only generate proof…
cyberhorsey Feb 6, 2024
0df4a71
wip: watchdog skeleton/config
cyberhorsey Feb 6, 2024
fdf4c01
add watchdog service
cyberhorsey Feb 7, 2024
1d47cf1
tests
cyberhorsey Feb 7, 2024
0afb28e
rf unnecessary flags
cyberhorsey Feb 7, 2024
36c70b1
add API for getting suspended transactions, suspended tx repo, and sa…
cyberhorsey Feb 7, 2024
642c616
integration tests for suspended tx repo
cyberhorsey Feb 7, 2024
1f65a60
wip: watchdog tests
cyberhorsey Feb 7, 2024
8c05b95
lints
cyberhorsey Feb 7, 2024
30ab727
refactor
cyberhorsey Feb 7, 2024
36d7ac1
test
cyberhorsey Feb 7, 2024
d135864
test
cyberhorsey Feb 7, 2024
d078350
tests
cyberhorsey Feb 7, 2024
6e3b2a1
comment
cyberhorsey Feb 7, 2024
7ead006
Remove mint
dantaik Feb 8, 2024
0821cad
Merge branch 'alpha-6' into alpha-7
dantaik Feb 8, 2024
9f3c136
Merge branch 'alpha-6' into alpha-7
dantaik Feb 8, 2024
48d58c1
Merge branch 'alpha-7' into relayer_proof_flag
cyberhorsey Feb 8, 2024
a28cfc0
add transaction suspended metrics
cyberhorsey Feb 8, 2024
cd10e4b
Merge branch 'main' into alpha-7
cyberhorsey Feb 9, 2024
524d49a
Merge branch 'alpha-7' into relayer_proof_flag
cyberhorsey Feb 9, 2024
16a6368
fix lint
dantaik Feb 9, 2024
ab82ffb
Merge branch 'main' into alpha-7
dantaik Feb 9, 2024
db4ec21
Merge branch 'alpha-7' into relayer_proof_flag
cyberhorsey Feb 9, 2024
3ba8b6c
feat(relayer): Relayer proof flag for supporting RLP encoding proof o…
cyberhorsey Feb 9, 2024
9cfd708
merge
cyberhorsey Feb 9, 2024
9d398b7
merge
cyberhorsey Feb 9, 2024
0808114
bindings
cyberhorsey Feb 9, 2024
75c43be
lint
cyberhorsey Feb 9, 2024
36f3275
merge main
cyberhorsey Feb 13, 2024
b741cc0
get full merkle proof
cyberhorsey Feb 13, 2024
f1f739e
full proof
cyberhorsey Feb 13, 2024
3773427
lint
cyberhorsey Feb 13, 2024
38460d6
test
cyberhorsey Feb 13, 2024
b74b685
state root, not signal root
cyberhorsey Feb 13, 2024
cadce40
Merge branch 'main' into a7_relayer_watchdog_updates
mask-pp Feb 16, 2024
1ccf538
Merge branch 'main' into a7_relayer_watchdog_updates
cyberhorsey Feb 16, 2024
610e31f
Merge branch 'main' into a7_relayer_watchdog_updates
mask-pp Feb 17, 2024
0316f26
Merge branch 'main' into a7_relayer_watchdog_updates
dantaik Feb 18, 2024
a3c7997
Merge branch 'main' into a7_relayer_watchdog_updates
dantaik Feb 18, 2024
565cb53
Merge branch 'main' into a7_relayer_watchdog_updates
xiaodino Feb 19, 2024
a4de3d4
Merge branch 'main' into a7_relayer_watchdog_updates
davidtaikocha Feb 20, 2024
5b3595d
Merge branch 'main' into a7_relayer_watchdog_updates
dantaik Feb 20, 2024
bf7d0f9
Merge branch 'main' into a7_relayer_watchdog_updates
dantaik Feb 20, 2024
9262f3d
Merge branch 'main' into a7_relayer_watchdog_updates
cyberhorsey Feb 20, 2024
ec70549
wip on proof changes
cyberhorsey Feb 20, 2024
50b6e44
lint
cyberhorsey Feb 20, 2024
ef09e86
lint
cyberhorsey Feb 20, 2024
a5544b4
Merge branch 'main' into a7_relayer_watchdog_updates
cyberhorsey Feb 20, 2024
276c5ac
Merge branch 'main' into a7_relayer_watchdog_updates
cyberhorsey Feb 20, 2024
23cc4a3
test
cyberhorsey Feb 20, 2024
935a60d
Merge branch 'a7_relayer_watchdog_updates' of github.com:taikoxyz/tai…
cyberhorsey Feb 20, 2024
784af4d
Merge branch 'main' into a7_relayer_watchdog_updates
cyberhorsey Feb 20, 2024
5641954
wip
cyberhorsey Feb 21, 2024
5ad7a14
wip
cyberhorsey Feb 21, 2024
e9993aa
Merge branch 'a7_relayer_watchdog_updates' of github.com:taikoxyz/tai…
cyberhorsey Feb 21, 2024
e56d2ff
Merge branch 'main' into a7_relayer_watchdog_updates
dantaik Feb 21, 2024
56c3de7
wip
cyberhorsey Feb 22, 2024
7354875
Merge branch 'a7_relayer_watchdog_updates' of github.com:taikoxyz/tai…
cyberhorsey Feb 22, 2024
d4a1937
remove bridge-ui-v2
cyberhorsey Feb 22, 2024
abef1be
Merge branch 'main' into a7_relayer_watchdog_updates
cyberhorsey Feb 22, 2024
a85b96b
Resolve merge conflicts
xiaodino Feb 26, 2024
085f692
Fix types.go
xiaodino Feb 26, 2024
381ad01
Update
xiaodino Feb 26, 2024
bc3233a
Merge branch 'main' into a7_relayer_watchdog_updates
dantaik Feb 26, 2024
808d779
Fix lint errors
xiaodino Feb 26, 2024
00e2064
Merge branch 'a7_relayer_watchdog_updates' of github.com:taikoxyz/tai…
xiaodino Feb 26, 2024
267abd5
Disable Test_ProcessMessage_noChainId
xiaodino Feb 26, 2024
903a843
Revert "Disable Test_ProcessMessage_noChainId"
xiaodino Feb 26, 2024
98b2f30
Update process_message_Test
xiaodino Feb 26, 2024
a6799b1
Disable Test_subscribe due to WatchChainDataSynced
xiaodino Feb 26, 2024
9b5baa4
Disable Test_subscribe due to WatchChainDataSynced
xiaodino Feb 26, 2024
a9c55d7
Merge branch 'main' into a7_relayer_watchdog_updates
dantaik Feb 26, 2024
29b1522
Update
xiaodino Feb 26, 2024
a1791a2
Merge branch 'a7_relayer_watchdog_updates' of github.com:taikoxyz/tai…
xiaodino Feb 26, 2024
d5e6808
Update
xiaodino Feb 26, 2024
6c15473
Update
xiaodino Feb 26, 2024
8963d3f
Update
xiaodino Feb 26, 2024
54dd960
Update
xiaodino Feb 26, 2024
4177fab
Update
xiaodino Feb 26, 2024
fd8faf2
wip
cyberhorsey Feb 26, 2024
ac6d1d8
merge, lefthook = 0
cyberhorsey Feb 26, 2024
d431d23
Merge branch 'main' into a7_relayer_watchdog_updates
cyberhorsey Feb 26, 2024
ca7d382
rm gt errordata
cyberhorsey Feb 26, 2024
7303734
ss
cyberhorsey Feb 26, 2024
bd83ee6
add revert back in
cyberhorsey Feb 27, 2024
6ed2a3d
gitignore
cyberhorsey Feb 27, 2024
29ce243
merge main
cyberhorsey Feb 27, 2024
cd958df
mock signal service in tsts
cyberhorsey Feb 27, 2024
151aaab
add cache option flag
cyberhorsey Feb 27, 2024
0befa27
two-step processing
cyberhorsey Feb 28, 2024
80d0fe6
Merge branch 'main' into a7_relayer_watchdog_updates
dantaik Feb 28, 2024
b49ac4d
Merge branch 'main' into a7_relayer_watchdog_updates
dantaik Feb 28, 2024
3acb6c8
Merge branch 'a7_relayer_watchdog_updates' of github.com:taikoxyz/tai…
cyberhorsey Feb 28, 2024
3e61298
only monitor events for specific dest chain IDs
cyberhorsey Feb 28, 2024
7a1dcca
test
cyberhorsey Feb 28, 2024
41e1ba9
logs
cyberhorsey Feb 28, 2024
36cc9f6
logs
cyberhorsey Feb 28, 2024
93f23c7
updat ebindings
cyberhorsey Feb 28, 2024
a921bd2
fix
cyberhorsey Feb 28, 2024
e2a39e9
rm unique key
cyberhorsey Feb 29, 2024
2a14480
return 0 if no events
cyberhorsey Feb 29, 2024
72f5da1
rm logs
cyberhorsey Feb 29, 2024
fdb763c
Merge branch 'main' into a7_relayer_watchdog_updates
cyberhorsey Feb 29, 2024
3a5512e
regen bindings
cyberhorsey Feb 29, 2024
7cba092
update for bindings
cyberhorsey Feb 29, 2024
1249dbe
Merge branch 'main' into a7_relayer_watchdog_updates
mask-pp Mar 1, 2024
06c45b4
Merge branch 'main' into a7_relayer_watchdog_updates
cyberhorsey Mar 2, 2024
da23796
Add decodeDataAsCanonicalERC20 for onMessageInvocation in types.go
xiaodino Mar 2, 2024
45fa3d0
Merge branch 'a7_relayer_watchdog_updates' of github.com:taikoxyz/tai…
xiaodino Mar 2, 2024
204ec35
Add decodeDataAsNFT
xiaodino Mar 3, 2024
03ccc33
Fix Test_sendProcessMessageCall
xiaodino Mar 4, 2024
e64a705
Clean unused code
xiaodino Mar 4, 2024
c8c9764
Add indexes in table events
xiaodino Mar 4, 2024
0c55e79
Merge branch 'main' into a7_relayer_watchdog_updates
cyberhorsey Mar 4, 2024
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
1 change: 0 additions & 1 deletion packages/protocol/simulation/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,4 +57,3 @@ Assuming you are in this directory.
### Understanding the Outcome

The parameters set in the `test_eip1559_math` test simulate approximations of possible mainnet scenarios (e.g., 10x the Ethereum gas target). Run the commands as described above to become familiar with the simulation outcome and generated plots.

106 changes: 53 additions & 53 deletions packages/protocol/test/automata-attestation/assets/0923/v3quote.json

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions packages/protocol/test/signal/SignalService.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
pragma solidity 0.8.24;

import "../TaikoTest.sol";
import "forge-std/src/console2.sol";
cyberhorsey marked this conversation as resolved.
Show resolved Hide resolved

contract MockSignalService is SignalService {
function _verifyHopProof(
Expand Down
13 changes: 13 additions & 0 deletions packages/relayer/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,19 @@
.l1processor.env
.l1indexer.env
.l2indexer.env
.l2al2bindexer.env
.l2al2bprocessor.env
.l1l2aindexer.env
.l1l2bindexer.env
.l1l2bprocessor.env
.l2l1indexer.katla.env
.l2bl1indexer.katla.env
.l1l2aprocessor.env
.l2al1indexer.env
.l2al1processor.env
.l2bl1indexer.env
.l2bl1processor.env

main
relayer
coverage.txt
Expand Down
6 changes: 3 additions & 3 deletions packages/relayer/.golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@ linters:

linters-settings:
funlen:
lines: 250
statements: 80
lines: 350
statements: 100
gocognit:
min-complexity: 55
min-complexity: 75

issues:
exclude-rules:
Expand Down
Loading
Loading