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

Add query endpoints for bridge merkle proofs #624

Merged
Merged
Show file tree
Hide file tree
Changes from 31 commits
Commits
Show all changes
726 commits
Select commit Hold shift + click to select a range
d3d74bf
[fix]: Fixed some tests.
batconjurer Oct 5, 2022
56ef297
[fix]: Fixed last ibc unit test
batconjurer Oct 5, 2022
d25d752
[fix]: Update the main tree when deleting a key
batconjurer Oct 7, 2022
c8174da
[fix]: Fixed proof specs for non-existence proofs
batconjurer Oct 10, 2022
dc74499
[chore]: Lints and formatting
batconjurer Oct 17, 2022
4c67c14
wasm: update checksums
tzemanovic Oct 17, 2022
83c887c
[feat]: Fixed secp256k key signatures
batconjurer Oct 17, 2022
a9c5f7b
changelog: add #547
juped Oct 17, 2022
5f6e323
Merge branch 'bat/multistore-refactor' (#547)
juped Oct 17, 2022
cb13210
[fix]: Fixed bug that produced proof for values not in the bridge poo…
batconjurer Oct 17, 2022
f25f335
Namada 0.8.0
juped Oct 17, 2022
89c6f40
[feat]: Corrected the abi encodings of bridge proofs
batconjurer Oct 17, 2022
3aa8bfb
[feat]: Added val set args for relaying to ethereum
batconjurer Oct 17, 2022
d3ca421
Merge branch 'eth-bridge-integration' into bat/ethbridge/query-bridge…
batconjurer Oct 17, 2022
5bc4aca
CI: add workaround for release build missing git tag
tzemanovic Oct 18, 2022
366c05b
fix: rename anoma to namada, remove author print
Oct 18, 2022
f5ff5c8
[feat]: Added query end points to get the contents of the eth bridge …
batconjurer Oct 12, 2022
b0a5de1
[chore]: Added unit tests to the queries and fixed bugs it found
batconjurer Oct 14, 2022
b8fcea5
[feat]: Added recovery ids to secp256k1 signatures
batconjurer Oct 14, 2022
6687409
[feat]: Fixed secp256k key signatures
batconjurer Oct 17, 2022
50bf4ab
[fix]: Fixed bug that produced proof for values not in the bridge poo…
batconjurer Oct 17, 2022
d2aa33e
[feat]: Corrected the abi encodings of bridge proofs
batconjurer Oct 17, 2022
9c8b076
[feat]: Added val set args for relaying to ethereum
batconjurer Oct 17, 2022
5d2d88a
rebasing
batconjurer Oct 18, 2022
49f3697
Merge branch 'bat/ethbridge/query-bridge-merkle-proofs' of github.com…
batconjurer Oct 18, 2022
63f6518
[ci] wasm checksums update
github-actions[bot] Oct 18, 2022
75dbada
app: set "namada" set default bin for `cargo run`
tzemanovic Oct 20, 2022
fa6f4a2
Merge remote-tracking branches 'namada/ray/standardize-tm-version' (#…
juped Oct 17, 2022
06a9dac
[feat]: Patched tendermint-rs and ibc-rs to compatible versions
batconjurer Oct 19, 2022
25a1596
[fix]: Removed unnecessary patches in wasm
batconjurer Oct 19, 2022
f3e8fd4
test/e2e: update expected string for non-validator node
tzemanovic Oct 19, 2022
fdf0c77
test/e2e: fix node_connectivity test
tzemanovic Oct 19, 2022
d0b9831
[feat]: Make process proposal stateless
batconjurer Oct 20, 2022
512b690
changelog: add #510
juped Oct 20, 2022
9f7a65e
Merge branch 'ray/shims-merge' (#510, #614, #645, #656)
juped Oct 20, 2022
8357a82
Merge remote-tracking branch 'namada/tomas/fix-ci-release-tag'
juped Oct 20, 2022
6d02699
Merge remote-tracking branch 'namada/fraccaman/rename-cli-brand' (#630)
juped Oct 20, 2022
48b7c7b
Merge remote-tracking branch 'namada/tomas/cargo-run-default-bin' (#653)
juped Oct 20, 2022
72feea5
Merge remote-tracking branch 'namada/brent/update-inflation-spec' (#613)
juped Oct 20, 2022
836a6de
Namada 0.8.1
juped Oct 20, 2022
b3f6ec7
[feat]: Added query end points to get the contents of the eth bridge …
batconjurer Oct 12, 2022
3c1e903
[chore]: Added unit tests to the queries and fixed bugs it found
batconjurer Oct 14, 2022
a0b845b
[feat]: Added recovery ids to secp256k1 signatures
batconjurer Oct 14, 2022
eafbe02
[feat]: Fixed secp256k key signatures
batconjurer Oct 17, 2022
8ea7ffd
[fix]: Fixed bug that produced proof for values not in the bridge poo…
batconjurer Oct 17, 2022
c6edd9c
[feat]: Corrected the abi encodings of bridge proofs
batconjurer Oct 17, 2022
1a32bcf
[feat]: Added val set args for relaying to ethereum
batconjurer Oct 17, 2022
034404a
rebasing
batconjurer Oct 18, 2022
3a51f80
[feat]: Added query end points to get the contents of the eth bridge …
batconjurer Oct 12, 2022
70126cd
[chore]: Added unit tests to the queries and fixed bugs it found
batconjurer Oct 14, 2022
db7f0dd
[feat]: Added recovery ids to secp256k1 signatures
batconjurer Oct 14, 2022
c2cea8c
[chore]: rebasing on changes from previous feature prs
batconjurer Oct 21, 2022
327178b
Merge branch 'bat/ethbridge/query-bridge-merkle-proofs' of github.com…
batconjurer Oct 21, 2022
cefcf62
[fix]: Removed duplicated code block
batconjurer Oct 21, 2022
e62168f
Merge branch 'eth-bridge-integration' into bat/ethbridge/query-bridge…
batconjurer Oct 21, 2022
c641a0a
[ci] wasm checksums update
github-actions[bot] Oct 21, 2022
28b0a4f
[feat]: Added query end points to get the contents of the eth bridge …
batconjurer Oct 12, 2022
8dfae96
[chore]: Added unit tests to the queries and fixed bugs it found
batconjurer Oct 14, 2022
e07024d
[feat]: Added recovery ids to secp256k1 signatures
batconjurer Oct 14, 2022
c7b8782
[feat]: Fixed secp256k key signatures
batconjurer Oct 17, 2022
3562f96
[fix]: Fixed bug that produced proof for values not in the bridge poo…
batconjurer Oct 17, 2022
86ff502
[feat]: Corrected the abi encodings of bridge proofs
batconjurer Oct 17, 2022
3c0c2a2
[feat]: Added val set args for relaying to ethereum
batconjurer Oct 17, 2022
6dea927
rebasing
batconjurer Oct 18, 2022
0bcf7da
[feat]: Added query end points to get the contents of the eth bridge …
batconjurer Oct 12, 2022
4cc874d
[chore]: Added unit tests to the queries and fixed bugs it found
batconjurer Oct 14, 2022
93a10fb
[feat]: Added recovery ids to secp256k1 signatures
batconjurer Oct 14, 2022
bef9fc2
[chore]: rebasing on changes from previous feature prs
batconjurer Oct 21, 2022
8379f2f
[feat]: Added query end points to get the contents of the eth bridge …
batconjurer Oct 12, 2022
c13730e
[chore]: Added unit tests to the queries and fixed bugs it found
batconjurer Oct 14, 2022
f9edb5f
[feat]: Added recovery ids to secp256k1 signatures
batconjurer Oct 14, 2022
43e7be9
[feat]: Corrected the abi encodings of bridge proofs
batconjurer Oct 17, 2022
8c13525
[feat]: Added query end points to get the contents of the eth bridge …
batconjurer Oct 12, 2022
0b21f77
[chore]: Added unit tests to the queries and fixed bugs it found
batconjurer Oct 14, 2022
5a8e624
[feat]: Added recovery ids to secp256k1 signatures
batconjurer Oct 14, 2022
c58b4dc
[fix]: Removed duplicated code block
batconjurer Oct 21, 2022
7ff37cd
Merge branch 'bat/ethbridge/query-bridge-merkle-proofs' of github.com…
batconjurer Oct 25, 2022
d96fb48
[chore]: Rebase on previous branches
batconjurer Oct 25, 2022
5594c87
Merge branch 'eth-bridge-integration' into bat/ethbridge/query-bridge…
batconjurer Oct 25, 2022
6544549
[feat]: Updated bridge pool vp with the the new merklized storage
batconjurer Oct 11, 2022
251dc15
[feat]: Changed the bridge pool vp to used the merklized storage
batconjurer Oct 11, 2022
ec16f3a
[feat]: Fixed the wasm blob for adding transfers for the bridge pool
batconjurer Oct 11, 2022
16c937d
[feat]: Updated bridge pool vp with the the new merklized storage
batconjurer Oct 11, 2022
97973de
[feat]: Changed the bridge pool vp to used the merklized storage
batconjurer Oct 11, 2022
e0ab8ea
[fix]: Added some more logging
batconjurer Oct 18, 2022
a5b10ce
[feat]: Updated bridge pool vp with the the new merklized storage
batconjurer Oct 11, 2022
9f48e7d
[feat]: Changed the bridge pool vp to used the merklized storage
batconjurer Oct 11, 2022
796cb80
[feat]: Updated bridge pool vp with the the new merklized storage
batconjurer Oct 11, 2022
d4be385
[feat]: Changed the bridge pool vp to used the merklized storage
batconjurer Oct 11, 2022
34b40e8
[fix]: Fixed some garbage created by rebasing
batconjurer Oct 20, 2022
8f6036b
[chore]: Rebased onto PR #573
batconjurer Oct 24, 2022
caebf4c
[feat]: Updated bridge pool vp with the the new merklized storage
batconjurer Oct 11, 2022
0c9d93f
[feat]: Updated bridge pool vp with the the new merklized storage
batconjurer Oct 11, 2022
632a6cd
[feat]: Added query end points to get the contents of the eth bridge …
batconjurer Oct 12, 2022
600e482
[chore]: Added unit tests to the queries and fixed bugs it found
batconjurer Oct 14, 2022
abe4e19
[feat]: Added recovery ids to secp256k1 signatures
batconjurer Oct 14, 2022
f4c7a01
[fix]: Fixed bug that produced proof for values not in the bridge poo…
batconjurer Oct 17, 2022
e25b772
[feat]: Corrected the abi encodings of bridge proofs
batconjurer Oct 17, 2022
98cb92e
[feat]: Added val set args for relaying to ethereum
batconjurer Oct 17, 2022
7ee06ff
rebasing
batconjurer Oct 18, 2022
34fa94d
[feat]: Added query end points to get the contents of the eth bridge …
batconjurer Oct 12, 2022
d535fae
[chore]: Added unit tests to the queries and fixed bugs it found
batconjurer Oct 14, 2022
9a094b2
[feat]: Added recovery ids to secp256k1 signatures
batconjurer Oct 14, 2022
4c20c67
[chore]: rebasing on changes from previous feature prs
batconjurer Oct 21, 2022
2060a9d
[feat]: Added query end points to get the contents of the eth bridge …
batconjurer Oct 12, 2022
5591e81
[chore]: Added unit tests to the queries and fixed bugs it found
batconjurer Oct 14, 2022
7a18a8a
[feat]: Added recovery ids to secp256k1 signatures
batconjurer Oct 14, 2022
0781fab
[feat]: Corrected the abi encodings of bridge proofs
batconjurer Oct 17, 2022
44f9e0c
[feat]: Added query end points to get the contents of the eth bridge …
batconjurer Oct 12, 2022
3ea900f
[chore]: Added unit tests to the queries and fixed bugs it found
batconjurer Oct 14, 2022
0457178
[feat]: Added recovery ids to secp256k1 signatures
batconjurer Oct 14, 2022
4722106
[fix]: Removed duplicated code block
batconjurer Oct 21, 2022
931fdae
[feat]: Added query end points to get the contents of the eth bridge …
batconjurer Oct 12, 2022
da1206f
[chore]: Added unit tests to the queries and fixed bugs it found
batconjurer Oct 14, 2022
41ecd5b
[feat]: Added recovery ids to secp256k1 signatures
batconjurer Oct 14, 2022
7b76346
rebasing
batconjurer Oct 18, 2022
5745083
[feat]: Added query end points to get the contents of the eth bridge …
batconjurer Oct 12, 2022
2f589c9
[chore]: Added unit tests to the queries and fixed bugs it found
batconjurer Oct 14, 2022
29f9a19
[feat]: Added recovery ids to secp256k1 signatures
batconjurer Oct 14, 2022
69ee903
[feat]: Added query end points to get the contents of the eth bridge …
batconjurer Oct 12, 2022
b9255c0
[chore]: Added unit tests to the queries and fixed bugs it found
batconjurer Oct 14, 2022
52c7311
[feat]: Added recovery ids to secp256k1 signatures
batconjurer Oct 14, 2022
15c9036
[feat]: Added query end points to get the contents of the eth bridge …
batconjurer Oct 12, 2022
9d7e0f1
[chore]: Added unit tests to the queries and fixed bugs it found
batconjurer Oct 14, 2022
8aa745e
[feat]: Added recovery ids to secp256k1 signatures
batconjurer Oct 14, 2022
8be8b1b
[chore]: Rebase on previous branches
batconjurer Oct 25, 2022
ec8b0e4
[chore]: rebasing on eth-bridge-integration
batconjurer Oct 25, 2022
0a8e8b4
Merge branch 'bat/ethbridge/query-bridge-merkle-proofs' of github.com…
batconjurer Oct 25, 2022
749888f
[chore]: Formatting
batconjurer Oct 25, 2022
368225e
[feat]: Bridge pool vp now checks that funds to be transferred are es…
batconjurer Oct 25, 2022
8c6a958
[chore]: Formatting
batconjurer Oct 25, 2022
55b4c3a
Merge branch 'eth-bridge-integration' into bat/ethbridge/query-bridge…
batconjurer Oct 25, 2022
f66a4ba
[feat]: Added checks the bridge pool vp that erc20 tokens are escrowe…
batconjurer Oct 26, 2022
21837aa
Update shared/src/types/eth_bridge_pool.rs
batconjurer Oct 26, 2022
4872e68
[fix]: Adding changes from code review
batconjurer Oct 26, 2022
b42481e
Update shared/src/types/vote_extensions/validator_set_update.rs
batconjurer Oct 26, 2022
db422dc
Update shared/src/types/key/secp256k1.rs
batconjurer Oct 26, 2022
db9a764
TestTxEnv::spawn_accounts should ignore internal addresses
james-chf Oct 26, 2022
a284eca
Add changelog
james-chf Oct 26, 2022
22813da
Update spawn_accounts to ignore implicit addresses
james-chf Oct 27, 2022
8947f32
[feat]: Added a nomralized voting power type
batconjurer Oct 27, 2022
61d0363
Update shared/src/ledger/eth_bridge/vp/mod.rs
batconjurer Oct 27, 2022
9a4c35a
Merge branch 'eth-bridge-integration' into bat/ethbridge/query-bridge…
batconjurer Oct 27, 2022
f6e4dbc
Remove comment
james-chf Oct 27, 2022
7e3a372
[fix]: Some more error logging and formatting
batconjurer Oct 27, 2022
d7e6d45
Merge branch 'base/v0.8.1' into interop/ethbridge/merge-0.8.1
james-chf Oct 27, 2022
d022193
Post-merge fixes done in review party
james-chf Oct 27, 2022
64dd5c1
Compiles for abciplus
james-chf Oct 28, 2022
836fc06
Some abcipp fixes (still some type mismatches)
james-chf Oct 28, 2022
1e0c7f5
Remove unused patches from wasm crate
james-chf Oct 28, 2022
e1dc641
Remove duplicate patches from test wasm crate
james-chf Oct 28, 2022
b59e79e
Update wasm Cargo.lock files
james-chf Oct 28, 2022
1c60077
Remove duplicate Makefile target
james-chf Oct 28, 2022
89d97b4
Preliminary update to wasm/checksums.json
james-chf Oct 28, 2022
5b80738
bridge pool tests: remove duplicate variables
james-chf Oct 28, 2022
5d3e7ec
Fix StorageReader
james-chf Oct 28, 2022
10f5c54
Fix tower-abci imports
james-chf Oct 28, 2022
bd1cdd8
Run make fmt
james-chf Oct 28, 2022
1333e6e
Fix clippy
james-chf Oct 28, 2022
768948e
Fix wasms
james-chf Oct 28, 2022
b13e58c
Merge branch 'james/mainline/dont-spawn-internal-account-vps' into in…
james-chf Oct 28, 2022
73e03b4
Run make fmt
james-chf Oct 28, 2022
91f2fcb
Temporarily disable some e2e tests
james-chf Oct 28, 2022
1f7b94f
[ci] wasm checksums update
github-actions[bot] Oct 28, 2022
cec75fb
Revert "Temporarily disable some e2e tests"
james-chf Oct 28, 2022
788d407
Rebuilt test wasms
james-chf Oct 28, 2022
337ed2d
write_validator_eth_*_key methods should return a Result
james-chf Oct 31, 2022
8e66480
Don't double serialize eth keys
james-chf Oct 31, 2022
fc70c76
Disable ethbridge in double_signing_gets_slashed test
james-chf Oct 31, 2022
8ae9563
Update wasm/checksums.json
github-actions[bot] Oct 31, 2022
1a9a48e
Merge pull request #704 from anoma/interop/ethbridge/merge-0.8.1
james-chf Nov 2, 2022
30ff06b
[fix]: Tiny from code review
batconjurer Nov 2, 2022
ad954e6
[feat]: Bridge pool vp now checks that funds to be transferred are es…
batconjurer Oct 25, 2022
97c07a8
[feat]: Added checks the bridge pool vp that erc20 tokens are escrowe…
batconjurer Oct 26, 2022
801a58c
Update shared/src/ledger/eth_bridge/vp/mod.rs
batconjurer Oct 27, 2022
1e841ab
[fix]: Some more error logging and formatting
batconjurer Oct 27, 2022
8fddca8
[fix]: Tiny from code review
batconjurer Nov 2, 2022
7bbec59
[chore]: Rebasing on v0.8
batconjurer Nov 2, 2022
021aaa9
Merge branch 'bat/ethbridge/verify-escrow-pool' of github.com:anoma/n…
batconjurer Nov 2, 2022
899cbdc
Merge pull request #692 from anoma/bat/ethbridge/verify-escrow-pool
batconjurer Nov 2, 2022
c7dd875
[feat]: Updated bridge pool vp with the the new merklized storage
batconjurer Oct 11, 2022
13d6225
[feat]: Changed the bridge pool vp to used the merklized storage
batconjurer Oct 11, 2022
38a65e6
[feat]: Updated bridge pool vp with the the new merklized storage
batconjurer Oct 11, 2022
3c7f575
[feat]: Changed the bridge pool vp to used the merklized storage
batconjurer Oct 11, 2022
32603eb
[chore]: Rebased onto PR #573
batconjurer Oct 24, 2022
2baa3f5
[feat]: Updated bridge pool vp with the the new merklized storage
batconjurer Oct 11, 2022
49a9b53
[feat]: Added query end points to get the contents of the eth bridge …
batconjurer Oct 12, 2022
4c57c0e
[chore]: Added unit tests to the queries and fixed bugs it found
batconjurer Oct 14, 2022
a900dc5
[feat]: Added recovery ids to secp256k1 signatures
batconjurer Oct 14, 2022
bbd81f0
[fix]: Fixed bug that produced proof for values not in the bridge poo…
batconjurer Oct 17, 2022
1e504af
[feat]: Corrected the abi encodings of bridge proofs
batconjurer Oct 17, 2022
933ab7b
[feat]: Added val set args for relaying to ethereum
batconjurer Oct 17, 2022
274e679
rebasing
batconjurer Oct 18, 2022
9910d4f
[feat]: Added query end points to get the contents of the eth bridge …
batconjurer Oct 12, 2022
ee34c88
[chore]: Added unit tests to the queries and fixed bugs it found
batconjurer Oct 14, 2022
8bf1f4e
[feat]: Added recovery ids to secp256k1 signatures
batconjurer Oct 14, 2022
d087ee0
[chore]: rebasing on changes from previous feature prs
batconjurer Oct 21, 2022
f687a4d
[feat]: Added query end points to get the contents of the eth bridge …
batconjurer Oct 12, 2022
73d9989
[chore]: Upgrading to v0.8
batconjurer Nov 2, 2022
065b6d8
[feat]: Added recovery ids to secp256k1 signatures
batconjurer Oct 14, 2022
71d34f4
[feat]: Added query end points to get the contents of the eth bridge …
batconjurer Oct 12, 2022
070773e
[chore]: Added unit tests to the queries and fixed bugs it found
batconjurer Oct 14, 2022
752ec58
[feat]: Added recovery ids to secp256k1 signatures
batconjurer Oct 14, 2022
27dce8a
[fix]: Removed duplicated code block
batconjurer Oct 21, 2022
e5c10c4
[feat]: Added query end points to get the contents of the eth bridge …
batconjurer Oct 12, 2022
8119255
[chore]: Added unit tests to the queries and fixed bugs it found
batconjurer Oct 14, 2022
8b0bac8
[feat]: Added recovery ids to secp256k1 signatures
batconjurer Oct 14, 2022
d8d330c
rebasing
batconjurer Oct 18, 2022
5528fed
[feat]: Added query end points to get the contents of the eth bridge …
batconjurer Oct 12, 2022
214bb6a
[chore]: Added unit tests to the queries and fixed bugs it found
batconjurer Oct 14, 2022
e8cc9b5
[feat]: Added recovery ids to secp256k1 signatures
batconjurer Oct 14, 2022
9eff7c0
[feat]: Added query end points to get the contents of the eth bridge …
batconjurer Oct 12, 2022
de2e9dc
[chore]: Added unit tests to the queries and fixed bugs it found
batconjurer Oct 14, 2022
e4971ec
[feat]: Added recovery ids to secp256k1 signatures
batconjurer Oct 14, 2022
8e71040
[feat]: Added query end points to get the contents of the eth bridge …
batconjurer Oct 12, 2022
01544b6
[chore]: Added unit tests to the queries and fixed bugs it found
batconjurer Oct 14, 2022
b80bd23
[feat]: Added recovery ids to secp256k1 signatures
batconjurer Oct 14, 2022
9b1ea4e
[chore]: Rebase on previous branches
batconjurer Oct 25, 2022
8183a87
[chore]: rebasing on eth-bridge-integration
batconjurer Oct 25, 2022
71dbeb6
[feat]: Added query end points to get the contents of the eth bridge …
batconjurer Oct 12, 2022
37090d7
[chore]: Added unit tests to the queries and fixed bugs it found
batconjurer Oct 14, 2022
82e9dd0
[feat]: Added recovery ids to secp256k1 signatures
batconjurer Oct 14, 2022
144b21b
[feat]: Added query end points to get the contents of the eth bridge …
batconjurer Oct 12, 2022
67f52a5
[chore]: Added unit tests to the queries and fixed bugs it found
batconjurer Oct 14, 2022
121a28a
[feat]: Added recovery ids to secp256k1 signatures
batconjurer Oct 14, 2022
9b5e636
[feat]: Added query end points to get the contents of the eth bridge …
batconjurer Oct 12, 2022
caa7bd2
[chore]: Added unit tests to the queries and fixed bugs it found
batconjurer Oct 14, 2022
1b17b69
[feat]: Added recovery ids to secp256k1 signatures
batconjurer Oct 14, 2022
84d2724
[feat]: Added query end points to get the contents of the eth bridge …
batconjurer Oct 12, 2022
255afd4
[chore]: Added unit tests to the queries and fixed bugs it found
batconjurer Oct 14, 2022
b0b9fea
[feat]: Added recovery ids to secp256k1 signatures
batconjurer Oct 14, 2022
5b2f008
[fix]: Removed duplicated code block
batconjurer Oct 21, 2022
7bc9805
[feat]: Added query end points to get the contents of the eth bridge …
batconjurer Oct 12, 2022
19515b6
[chore]: Added unit tests to the queries and fixed bugs it found
batconjurer Oct 14, 2022
62e25bc
[feat]: Added recovery ids to secp256k1 signatures
batconjurer Oct 14, 2022
0af809f
[feat]: Added query end points to get the contents of the eth bridge …
batconjurer Oct 12, 2022
4752f27
[chore]: Added unit tests to the queries and fixed bugs it found
batconjurer Oct 14, 2022
b42cced
[feat]: Added recovery ids to secp256k1 signatures
batconjurer Oct 14, 2022
00b6277
[feat]: Added query end points to get the contents of the eth bridge …
batconjurer Oct 12, 2022
0fe7ea5
[chore]: Added unit tests to the queries and fixed bugs it found
batconjurer Oct 14, 2022
0177f77
[feat]: Added recovery ids to secp256k1 signatures
batconjurer Oct 14, 2022
8c5554f
[feat]: Added query end points to get the contents of the eth bridge …
batconjurer Oct 12, 2022
8e6da14
[chore]: Added unit tests to the queries and fixed bugs it found
batconjurer Oct 14, 2022
e0b8205
[feat]: Added recovery ids to secp256k1 signatures
batconjurer Oct 14, 2022
5dd3168
Update shared/src/types/eth_bridge_pool.rs
batconjurer Oct 26, 2022
6c31078
[fix]: Adding changes from code review
batconjurer Oct 26, 2022
98816ce
Update shared/src/types/vote_extensions/validator_set_update.rs
batconjurer Oct 26, 2022
9d4fd81
Update shared/src/types/key/secp256k1.rs
batconjurer Oct 26, 2022
3341ee1
[c hore]: rebasing
batconjurer Nov 2, 2022
be75839
Merge branch 'bat/ethbridge/query-bridge-merkle-proofs' of github.com…
batconjurer Nov 2, 2022
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: 1 addition & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion apps/src/lib/node/ledger/protocol/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,9 @@ use namada::ledger::ibc::vp::{Ibc, IbcToken};
use namada::ledger::native_vp::{self, NativeVp};
use namada::ledger::parameters::{self, ParametersVp};
use namada::ledger::pos::{self, PosVP};
use namada::ledger::storage::traits::StorageHasher;
use namada::ledger::storage::write_log::WriteLog;
use namada::ledger::storage::{DBIter, Storage, StorageHasher, DB};
use namada::ledger::storage::{DBIter, Storage, DB};
use namada::ledger::treasury::TreasuryVp;
use namada::proto::{self, Tx};
use namada::types::address::{Address, InternalAddress};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ use std::collections::BTreeSet;

use eyre::Result;
use namada::ledger::eth_bridge::storage::wrapped_erc20s;
use namada::ledger::storage::{DBIter, Storage, StorageHasher, DB};
use namada::ledger::storage::traits::StorageHasher;
use namada::ledger::storage::{DBIter, Storage, DB};
use namada::types::ethereum_events::{EthereumEvent, TransferToNamada};
use namada::types::storage::Key;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ use eth_msgs::{EthMsg, EthMsgUpdate};
use eyre::{eyre, Result};
use namada::ledger::eth_bridge::storage::eth_msgs::Keys;
use namada::ledger::pos::types::WeightedValidator;
use namada::ledger::storage::{DBIter, Storage, StorageHasher, DB};
use namada::ledger::storage::traits::StorageHasher;
use namada::ledger::storage::{DBIter, Storage, DB};
use namada::types::address::Address;
use namada::types::ethereum_events::EthereumEvent;
use namada::types::storage::{self, BlockHeight};
Expand Down Expand Up @@ -305,7 +306,7 @@ mod tests {
use namada::ledger::pos::types::ValidatorSet;
use namada::ledger::storage::mockdb::MockDB;
use namada::ledger::storage::testing::TestStorage;
use namada::ledger::storage::Sha256Hasher;
use namada::ledger::storage::traits::Sha256Hasher;
use namada::types::address;
use namada::types::ethereum_events::testing::{
arbitrary_amount, arbitrary_eth_address, arbitrary_nonce,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
//! Helpers for reading from storage
use borsh::BorshDeserialize;
use eyre::{eyre, Result};
use namada::ledger::storage::{DBIter, Storage, StorageHasher, DB};
use namada::ledger::storage::traits::StorageHasher;
use namada::ledger::storage::{DBIter, Storage, DB};
use namada::types::storage;
use namada::types::token::Amount;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
//! Helpers for writing to storage
use borsh::{BorshDeserialize, BorshSerialize};
use eyre::Result;
use namada::ledger::storage::{DBIter, Storage, StorageHasher, DB};
use namada::ledger::storage::traits::StorageHasher;
use namada::ledger::storage::{DBIter, Storage, DB};
use namada::types::storage;
use namada::types::token::Amount;

Expand Down
29 changes: 29 additions & 0 deletions apps/src/lib/node/ledger/rpc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ pub enum Path {
DryRunTx,
/// Epoch of the last committed block
Epoch,
/// The pool of transfers waiting to be
/// relayed to Ethereum.
EthereumBridgePool(BridgePoolSubpath),
/// Read a storage value with exact storage key
Value(storage::Key),
/// Read a range of storage values with a matching key prefix
Expand All @@ -24,6 +27,16 @@ pub enum Path {
HasKey(storage::Key),
}

#[derive(Debug, Clone)]
pub enum BridgePoolSubpath {
/// For queries that wish to see the contents of the
/// Ethereum bridge pool.
Contents,
/// For queries that want to get a merkle proof of
/// inclusion of transfers in the Ethereum bridge pool.
Proof,
}

#[derive(Debug, Clone)]
pub struct BalanceQuery {
#[allow(dead_code)]
Expand All @@ -34,6 +47,9 @@ pub struct BalanceQuery {

const DRY_RUN_TX_PATH: &str = "dry_run_tx";
const EPOCH_PATH: &str = "epoch";
const ETH_BRIDGE_POOL_PATH: &str = "eth_bridge_pool";
const EBP_INFO_SUBPATH: &str = "contents";
const EBP_PROOF_SUBPATH: &str = "proof";
const VALUE_PREFIX: &str = "value";
const PREFIX_PREFIX: &str = "prefix";
const HAS_KEY_PREFIX: &str = "has_key";
Expand All @@ -52,6 +68,13 @@ impl Display for Path {
Path::HasKey(storage_key) => {
write!(f, "{}/{}", HAS_KEY_PREFIX, storage_key)
}
Path::EthereumBridgePool(subpath) => {
let subpath = match subpath {
BridgePoolSubpath::Contents => EBP_INFO_SUBPATH,
BridgePoolSubpath::Proof => EBP_PROOF_SUBPATH,
};
write!(f, "{}/{}", ETH_BRIDGE_POOL_PATH, subpath)
}
}
}
}
Expand All @@ -64,6 +87,12 @@ impl FromStr for Path {
DRY_RUN_TX_PATH => Ok(Self::DryRunTx),
EPOCH_PATH => Ok(Self::Epoch),
_ => match s.split_once('/') {
Some((ETH_BRIDGE_POOL_PATH, EBP_INFO_SUBPATH)) => {
Ok(Self::EthereumBridgePool(BridgePoolSubpath::Contents))
}
Some((ETH_BRIDGE_POOL_PATH, EBP_PROOF_SUBPATH)) => {
Ok(Self::EthereumBridgePool(BridgePoolSubpath::Proof))
}
Some((VALUE_PREFIX, storage_key)) => {
let key = storage::Key::parse(storage_key)
.map_err(PathParseError::InvalidStorageKey)?;
Expand Down
21 changes: 15 additions & 6 deletions apps/src/lib/node/ledger/shell/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,9 @@ use namada::ledger::pos::namada_proof_of_stake::types::{
ActiveValidator, ValidatorSetUpdate,
};
use namada::ledger::pos::namada_proof_of_stake::PosBase;
use namada::ledger::storage::traits::{Sha256Hasher, StorageHasher};
use namada::ledger::storage::write_log::WriteLog;
use namada::ledger::storage::{
DBIter, Sha256Hasher, Storage, StorageHasher, DB,
};
use namada::ledger::storage::{DBIter, Storage, DB};
use namada::ledger::{ibc, parameters, pos};
use namada::proto::{self, Tx};
use namada::types::chain::ChainId;
Expand Down Expand Up @@ -780,7 +779,8 @@ mod test_utils {
#[cfg(not(feature = "abcipp"))]
use namada::ledger::pos::namada_proof_of_stake::types::VotingPower;
use namada::ledger::storage::mockdb::MockDB;
use namada::ledger::storage::{BlockStateWrite, MerkleTree, Sha256Hasher};
use namada::ledger::storage::traits::Sha256Hasher;
use namada::ledger::storage::{BlockStateWrite, MerkleTree};
use namada::types::address::{xan, EstablishedAddressGen};
use namada::types::chain::ChainId;
use namada::types::hash::Hash;
Expand Down Expand Up @@ -857,10 +857,19 @@ mod test_utils {
sig_bytes[0] = sig_bytes[0].wrapping_add(1);
common::Signature::Ed25519(ed25519::Signature(sig_bytes.into()))
}
common::Signature::Secp256k1(secp256k1::Signature(ref sig)) => {
common::Signature::Secp256k1(secp256k1::Signature(
ref sig,
ref recovery_id,
)) => {
let mut sig_bytes = sig.serialize();
let recovery_id_bytes = recovery_id.serialize();
sig_bytes[0] = sig_bytes[0].wrapping_add(1);
common::Signature::Secp256k1((&sig_bytes).try_into().unwrap())
let bytes: [u8; 65] =
[sig_bytes.as_slice(), [recovery_id_bytes].as_slice()]
.concat()
.try_into()
.unwrap();
common::Signature::Secp256k1((&bytes).try_into().unwrap())
}
}
}
Expand Down
3 changes: 2 additions & 1 deletion apps/src/lib/node/ledger/shell/prepare_proposal.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
//! Implementation of the [`RequestPrepareProposal`] ABCI++ method for the Shell

use namada::ledger::storage::{DBIter, StorageHasher, DB};
use namada::ledger::storage::traits::StorageHasher;
use namada::ledger::storage::{DBIter, DB};
use namada::proto::Tx;
use namada::types::storage::BlockHeight;
use namada::types::transaction::tx_types::TxType;
Expand Down
Loading