Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
443 commits
Select commit Hold shift + click to select a range
6f769cc
refactor inbound-queue-v2
vgeddes Feb 2, 2025
33f8e6d
Remove obsolete code
vgeddes Feb 2, 2025
7b96c91
fix incorrect comment
vgeddes Feb 3, 2025
e0b22f6
pr comments
claravanstaden Feb 3, 2025
2a9c4e4
fmt
claravanstaden Feb 3, 2025
559c31a
cleanup
claravanstaden Feb 3, 2025
493fd02
fixes
claravanstaden Feb 3, 2025
a8526a7
Fix compile error
yrong Feb 3, 2025
e0f037c
Fix for compile
yrong Feb 4, 2025
c995730
comment out claimer test
claravanstaden Feb 4, 2025
4930152
pr comments
claravanstaden Feb 4, 2025
ecca89b
test fixes
claravanstaden Feb 4, 2025
b49acd6
claimer
claravanstaden Feb 4, 2025
9ecb683
claimer
claravanstaden Feb 4, 2025
148525e
Use native ether as fee asset
yrong Feb 4, 2025
9d7f356
Introduce AliasesIntoAccountId32
yrong Feb 4, 2025
9e61e6e
Fix breaking tests
yrong Feb 4, 2025
d6bcbf0
tests refactor
claravanstaden Feb 5, 2025
945e27b
test cleanup
claravanstaden Feb 5, 2025
4177736
Merge branch 'snowbridge-v2' into clara/snowbridge-v2-refinements
claravanstaden Feb 5, 2025
70805d4
fix compile error
claravanstaden Feb 5, 2025
6475c21
unused var
claravanstaden Feb 5, 2025
e511188
tests
claravanstaden Feb 5, 2025
154623f
more tests
claravanstaden Feb 5, 2025
ffce4cc
xcm send failure test
claravanstaden Feb 5, 2025
73b0cbf
tests
claravanstaden Feb 5, 2025
eb4b2e2
fmt
claravanstaden Feb 5, 2025
ed84397
Outbound transfer from Rococo->Westend->Ethereum
yrong Feb 6, 2025
a4c0084
fix topic
claravanstaden Feb 6, 2025
342ad49
Merge pull request #1 from claravanstaden/clara/snowbridge-v2-refinem…
vgeddes Feb 6, 2025
a699183
Merge branch 'snowbridge-v2' into ron/snowbridge-v2
yrong Feb 7, 2025
8262765
Merge pull request #3 from yrong/ron/snowbridge-v2
vgeddes Feb 7, 2025
8f0078c
Sort out AccountId<>Location conversion
vgeddes Feb 7, 2025
c686d5e
Improve comments
yrong Feb 7, 2025
8741f06
Merge branch 'snowbridge-v2' into ron/improve-comments
yrong Feb 7, 2025
9648ae1
Refactor inbound-queue message converter
vgeddes Feb 8, 2025
182a11b
Merge pull request #4 from yrong/ron/improve-comments
vgeddes Feb 9, 2025
19ffae9
remove unused codec impls
vgeddes Feb 9, 2025
19f7f03
Remove runtime-api for inbound-queue
vgeddes Feb 9, 2025
ee759cd
Move to the end
yrong Feb 10, 2025
b2db8f7
Rename as RemoteExecutionFee
yrong Feb 10, 2025
909cc20
Document the config type
yrong Feb 10, 2025
0735da9
Introduce XcmExecutor and charge delivery fees
yrong Feb 10, 2025
e02fe30
Improve comments
yrong Feb 10, 2025
b13e3f2
Remove comment
yrong Feb 10, 2025
daf1b76
Versioning for ContractCall and improve documentation
yrong Feb 10, 2025
3127d7c
More comments
yrong Feb 10, 2025
47cccdd
Rename as DeliveryReceiptDecodeError
yrong Feb 10, 2025
b4f7b1c
Rename file to delivery_receipt.rs
yrong Feb 10, 2025
d74a31a
Improve docs
yrong Feb 10, 2025
50fb914
Delete the readme
yrong Feb 10, 2025
b92cfec
Rename to DeliveryReceipt
yrong Feb 10, 2025
15854d0
More comments
yrong Feb 10, 2025
cc8b6b1
Remove second_governance_origin
yrong Feb 10, 2025
65be409
Factor this ENA&PNA block into a separate function
yrong Feb 10, 2025
e03618b
Pass bridgehub location via config
yrong Feb 10, 2025
4a12f43
Fix tests
yrong Feb 10, 2025
33a8356
Remove root governance on BH
yrong Feb 10, 2025
b2759c4
Improve comment
yrong Feb 10, 2025
381c730
Move type config to the end
yrong Feb 10, 2025
8d32278
Rename to EthereumSystemCall
yrong Feb 10, 2025
c9369a6
Revert "Introduce XcmExecutor and charge delivery fees"
yrong Feb 11, 2025
6bbec7d
Rename to BridgeHubLocation
yrong Feb 11, 2025
282208d
Add message_id for tracing
yrong Feb 11, 2025
66c2400
Rename function
yrong Feb 11, 2025
8849adf
Rename to DeliveryReceiptOf
yrong Feb 11, 2025
ecc3130
Rename to InvalidAssetOwner
yrong Feb 11, 2025
bb8a651
Fix build
yrong Feb 11, 2025
1ad6c4f
Fix config
yrong Feb 11, 2025
bd11a0d
Cleanup
yrong Feb 11, 2025
f2d6890
Fix frontend calls -1
yrong Feb 11, 2025
66ac163
Remove origin_location from Message
yrong Feb 11, 2025
fdfea1a
Merge branch 'ron/snowbridge-v2-for-comments' into ron/snowbridge-v2-…
yrong Feb 11, 2025
a3438af
Ignore fee charge for sudo
yrong Feb 11, 2025
532223f
Remove prefix check for registering token
yrong Feb 11, 2025
cffe38e
Polish
yrong Feb 12, 2025
76cc730
Fix comments
yrong Feb 12, 2025
03a9f3e
More tests
yrong Feb 12, 2025
0987ed2
Polish
yrong Feb 12, 2025
fe9e704
Remove primary_governance_origin
yrong Feb 12, 2025
af82053
Refactor burn_for_teleport
yrong Feb 12, 2025
e7c056a
Remove sudo for frontend calls
yrong Feb 12, 2025
1d44980
Remove sudo check
yrong Feb 12, 2025
4d82f3b
Rename to EthereumSystem
yrong Feb 12, 2025
6e1b014
Remove origin check for governance
yrong Feb 12, 2025
a1f31dd
Rename to EthereumSystemFrontendCall
yrong Feb 12, 2025
4c1efaf
Rename to EthereumSystemFrontend
yrong Feb 12, 2025
004c84b
Use message_id returned by send_xcm
yrong Feb 12, 2025
82b6236
Remove dry run api
yrong Feb 13, 2025
5ea5470
Fix pallet index
yrong Feb 13, 2025
7d67d9d
Fix for ether
yrong Feb 13, 2025
a79df85
Remove topic id
yrong Feb 13, 2025
ac5090e
Rename to EthereumLocation
yrong Feb 13, 2025
0a2d429
Remove whitespace
yrong Feb 13, 2025
1be71a1
Update bridges/snowbridge/pallets/outbound-queue-v2/src/lib.rs
yrong Feb 13, 2025
76419d7
Merge pull request #13 from yrong/ron/remove-runtime-api
yrong Feb 14, 2025
9f7a4dd
Fix the lookup
yrong Feb 14, 2025
55bf251
More integration tests
yrong Feb 14, 2025
2258d5f
Cleanup
yrong Feb 14, 2025
fa90934
Improve the error types
yrong Feb 14, 2025
63e3e66
Switch to UnpaidExecution
yrong Feb 14, 2025
15f9664
Rename to FrontendOrigin
yrong Feb 14, 2025
da0ef5d
Remove function agent_id
yrong Feb 14, 2025
dbce06c
Factor out common function
yrong Feb 14, 2025
f257012
Revamp with EnsureOriginWithArg
yrong Feb 14, 2025
ea3865c
Update bridges/snowbridge/primitives/outbound-queue/src/v2/delivery_r…
yrong Feb 14, 2025
493d243
Rename to location
yrong Feb 14, 2025
6238ed4
Merge branch 'ron/snowbridge-v2-for-comments' of https://github.com/y…
yrong Feb 14, 2025
acbb04b
Rename to convert
yrong Feb 14, 2025
00f5ac8
Rename to FeesNotMet
yrong Feb 14, 2025
bc46eb2
Update bridges/snowbridge/pallets/system-frontend/src/lib.rs
yrong Feb 14, 2025
263abab
Constraining call as Encode
yrong Feb 14, 2025
04eac74
Rename to SendFailure
yrong Feb 14, 2025
a705250
Polish system-v2
yrong Feb 14, 2025
441d4ff
Fix compile
yrong Feb 14, 2025
a404512
Fix build xcm with barrier config
yrong Feb 15, 2025
4a6c318
Couple with system-v1
yrong Feb 15, 2025
1a6c8b2
Merge pull request #6 from yrong/ron/snowbridge-v2-for-comments
vgeddes Feb 16, 2025
bd9842c
Remove fee param from system pallets
yrong Feb 20, 2025
83e9d46
Fix breaking tests
yrong Feb 20, 2025
1eab82e
Allow root to register token
yrong Feb 20, 2025
f1c81a7
Bring one test back
yrong Feb 21, 2025
0f730ec
Add burn_for_teleport back
yrong Feb 21, 2025
e057af8
Merge pull request #11 from yrong/ron/remove-fee
vgeddes Feb 21, 2025
2ff8692
Merge branch 'master' into snowbridge-v2
vgeddes Feb 21, 2025
e4b64f1
Merge branch 'snowbridge-v2' of https://github.com/vgeddes/polkadot-s…
vgeddes Feb 21, 2025
5850362
Fix unit tests after merging from upstream
vgeddes Feb 21, 2025
5eac435
fix destructuring statement
vgeddes Feb 21, 2025
1331e87
Remove agent calls (#10)
yrong Feb 21, 2025
bd8dd80
Governance calls (#9)
yrong Feb 21, 2025
7b70440
cleanups
vgeddes Feb 21, 2025
a080fc1
Improve system-frontend pallet (#14)
vgeddes Feb 24, 2025
eaed0f8
Fix format (#19)
yrong Feb 24, 2025
88ee535
Use pallet relayers to accumulate Snowbridge rewards (#12)
claravanstaden Feb 25, 2025
889bd86
Fix compile with benchmark feature (#18)
yrong Feb 25, 2025
d621df2
Pause the bridge & Custom exporter (#7)
yrong Feb 26, 2025
3963740
Remove agent enum (#21)
yrong Feb 26, 2025
96e9b2a
Build token registration XCM in the inbound queue pallet (#13)
claravanstaden Feb 26, 2025
2718959
Improve tests (#17)
yrong Feb 28, 2025
e1b6ecf
Optimize imports without warning
yrong Mar 3, 2025
9eb5c0f
Remove snowbridge from umbrella
yrong Mar 3, 2025
88f1cf4
Refactoring with snowbridge_sovereign
yrong Mar 3, 2025
235a865
Merge branch 'master' into snowbridge-v2-merge-upstream
yrong Mar 3, 2025
f473f01
Update bridges/snowbridge/primitives/core/src/lib.rs
yrong Mar 4, 2025
a746b9a
Update bridges/snowbridge/primitives/core/src/lib.rs
yrong Mar 4, 2025
5be8cba
Merge pull request #24 from yrong/ron/improve-imports
yrong Mar 4, 2025
c1c7046
Update bridges/snowbridge/primitives/core/src/location.rs
yrong Mar 4, 2025
614eef4
Update bridges/snowbridge/primitives/core/src/location.rs
yrong Mar 4, 2025
cebd758
Merge pull request #26 from yrong/ron/snowbridge-v2-cleanup
yrong Mar 4, 2025
de6675e
Merge pull request #25 from yrong/ron/remove-snowbridge-from-umbrella
yrong Mar 4, 2025
aabeaeb
Merge branch 'snowbridge-v2' into snowbridge-v2-merge-upstream
yrong Mar 4, 2025
d80f8d1
Merge branch 'master' into snowbridge-v2-merge-upstream
yrong Mar 4, 2025
516a0bf
Merge pull request #27 from yrong/snowbridge-v2-merge-upstream
yrong Mar 4, 2025
bbe7dc2
Fix breaking tests
yrong Mar 4, 2025
2739454
Update bridges/snowbridge/primitives/core/src/reward.rs
yrong Mar 4, 2025
05bc34c
Update bridges/snowbridge/primitives/core/src/reward.rs
yrong Mar 4, 2025
eb7da1f
Cleanup comment
yrong Mar 4, 2025
237baca
Fix benchmark
yrong Mar 4, 2025
204962f
Refact do_process_message
yrong Mar 4, 2025
990f60b
Fix extract_remote_fee
yrong Mar 4, 2025
235f802
Remove outdated comments
yrong Mar 5, 2025
faa2cb1
Cleanup
yrong Mar 5, 2025
a0f5e4b
Review Improvements (#29)
claravanstaden Mar 5, 2025
755147e
split bucket and mask logic into methods
claravanstaden Mar 5, 2025
b47fa44
Merge branch 'master' into snowbridge-v2
claravanstaden Mar 5, 2025
d86df39
Improve documentation
vgeddes Mar 5, 2025
387c725
Update comment for ContractCall
vgeddes Mar 5, 2025
901b67a
Merge from upstream
yrong Mar 5, 2025
34631cf
add topic
claravanstaden Mar 5, 2025
69f9e44
Merge pull request #30 from yrong/ron/snowbridge-v2-merge-upstream
yrong Mar 6, 2025
22325ae
Merge branch 'master' into snowbridge-v2
yrong Mar 6, 2025
1ff080a
Add test switch operating mode
yrong Mar 6, 2025
36682f0
Refactor try_from(log: &Log)
yrong Mar 6, 2025
23c4249
Avoid to use clone
yrong Mar 6, 2025
81dc387
Cleanup
yrong Mar 6, 2025
0e97512
Revert "add topic"
claravanstaden Mar 6, 2025
2a5d680
Remove the comment causing confusion
yrong Mar 6, 2025
6df44aa
Merge branch 'snowbridge-v2' of https://github.com/vgeddes/polkadot-s…
yrong Mar 6, 2025
eeb8870
Update bridges/snowbridge/pallets/inbound-queue-v2/src/mock.rs
yrong Mar 6, 2025
fa3179d
Update bridges/snowbridge/pallets/inbound-queue-v2/src/mock.rs
yrong Mar 6, 2025
c1c72e4
Merge pull request #31 from yrong/refactor-for-comments-inbound-v2
yrong Mar 6, 2025
2a17ba5
TryFrom EthereumAsset
yrong Mar 6, 2025
233eadb
PRdoc 7402
yrong Mar 6, 2025
919fcd4
Apply suggestions from code review
acatangiu Mar 6, 2025
bca3b18
Update cumulus/parachains/runtimes/bridge-hubs/bridge-hub-westend/src…
claravanstaden Mar 6, 2025
2151a94
various fixes
acatangiu Mar 6, 2025
4a79c6e
Merge branch 'snowbridge-v2' of github.com:vgeddes/polkadot-sdk into …
acatangiu Mar 6, 2025
efc2078
Revert to DescribeHere for compability
yrong Mar 7, 2025
adebfa8
move asset hub execution fee
claravanstaden Mar 7, 2025
2b51afe
various fixes (#34)
acatangiu Mar 7, 2025
7d48827
Merge branch 'snowbridge-v2' into ron/snowbridge-v2-fixes
yrong Mar 7, 2025
9b72014
Adds Inbound Queue v2 Benchmarks (#33)
claravanstaden Mar 7, 2025
3c5a47d
Merge branch 'master' into snowbridge-v2
claravanstaden Mar 7, 2025
dbcd9b3
Merge branch 'snowbridge-v2' into ron/snowbridge-v2-fixes
yrong Mar 7, 2025
d564f99
Revert to DescribeHere
yrong Mar 7, 2025
6385830
Merge pull request #38 from yrong/ron/snowbridge-v2-fixes
yrong Mar 7, 2025
d565721
Validate without returning fee (#37)
yrong Mar 7, 2025
63d7e5d
Polish system frontend (#36)
yrong Mar 7, 2025
a0b609e
Change rewards payout to AH to UnpaidExecution (#39)
claravanstaden Mar 7, 2025
e2a43b4
Add topic id for outbound tracing (#35)
yrong Mar 7, 2025
866222d
Revamp penpal xcm config (#46)
yrong Mar 9, 2025
132dacb
Improve comments (#45)
yrong Mar 9, 2025
08ad239
Fix license check (#44)
yrong Mar 9, 2025
e251250
Fix tests (#43)
yrong Mar 9, 2025
657cde2
Fix prdoc (#42)
yrong Mar 9, 2025
3ee176b
Fix format of markdown (#41)
yrong Mar 9, 2025
6e6c5ad
Format snowbridge codes (#40)
yrong Mar 9, 2025
0864e02
Add uniquely generated topic to XCM when user provided topic not last…
claravanstaden Mar 10, 2025
506279a
Merge branch 'master' into snowbridge-v2
claravanstaden Mar 10, 2025
6102a2d
markdownlint fixes
claravanstaden Mar 10, 2025
e189a71
taplo
claravanstaden Mar 10, 2025
2615c7d
use claimer for create asset fee refund
claravanstaden Mar 10, 2025
6debc98
Fix license (#48)
yrong Mar 10, 2025
ebc3526
Fix clippy (#49)
yrong Mar 10, 2025
1f10e6b
Revert irrelevant change (#51)
yrong Mar 10, 2025
23098f6
Fix polkadot-sdk umbrella (#53)
yrong Mar 10, 2025
c0db12d
Fix benchmark (#54)
yrong Mar 10, 2025
3cac2c8
Merge branch 'master' into snowbridge-v2
yrong Mar 10, 2025
eb455c8
Remove deprecated V1 commands (#47)
vgeddes Mar 10, 2025
05afd02
Improve sparse bitmap (#55)
yrong Mar 10, 2025
0328cfb
Fix format
yrong Mar 10, 2025
6756896
Fix test
yrong Mar 10, 2025
ab6887f
Fix test
yrong Mar 10, 2025
568a4f7
Fix clippy
yrong Mar 10, 2025
2469b5e
Fix clippy
yrong Mar 11, 2025
bd7baa3
Use benchmarked weights
yrong Mar 11, 2025
26984b7
Check ERC20 token id not zero
yrong Mar 11, 2025
cd0b48b
Improve test check topic for tracing
yrong Mar 11, 2025
5635d2c
small improvements (#60)
acatangiu Mar 13, 2025
ec1d576
Ensure AssetHub and BridgeHub uses the same create foreign asset depo…
claravanstaden Mar 13, 2025
203fd35
Send token to Rococo (#58)
claravanstaden Mar 17, 2025
11377b4
Origin checks for polkadot-native asset registration on AH (#57)
yrong Mar 18, 2025
7947269
Improve benchmark outbound v2 (#61)
yrong Mar 18, 2025
551222e
Merge branch 'master' into snowbridge-v2
vgeddes Mar 18, 2025
902b3a8
Merge branch 'master' into snowbridge-v2
vgeddes Mar 19, 2025
025ecd2
clippy
vgeddes Mar 19, 2025
95d0734
taplo
vgeddes Mar 19, 2025
10ee025
fmt
vgeddes Mar 19, 2025
09f3639
zepter
vgeddes Mar 19, 2025
e79083a
clippy
vgeddes Mar 19, 2025
4d9e66c
prdoc
vgeddes Mar 19, 2025
77b4ce7
unused
vgeddes Mar 19, 2025
c142dd9
Handle unwrap gracefully
vgeddes Mar 19, 2025
9bd919c
comments
vgeddes Mar 19, 2025
a26910a
Fix benchmarks for system-frontend pallet (#62)
yrong Mar 20, 2025
8e5568f
prdoc
vgeddes Mar 20, 2025
4071dee
Fix prdoc entry for umbrella crate
vgeddes Mar 20, 2025
715986f
prdoc
vgeddes Mar 21, 2025
47b4184
Add message topic to delivery receipt (#65)
vgeddes Mar 22, 2025
7eb80ad
Merge branch 'master' into snowbridge-v2
vgeddes Mar 24, 2025
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
311 changes: 277 additions & 34 deletions Cargo.lock

Large diffs are not rendered by default.

44 changes: 38 additions & 6 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -49,18 +49,28 @@ members = [
"bridges/snowbridge/pallets/ethereum-client",
"bridges/snowbridge/pallets/ethereum-client/fixtures",
"bridges/snowbridge/pallets/inbound-queue",
"bridges/snowbridge/pallets/inbound-queue-v2",
"bridges/snowbridge/pallets/inbound-queue-v2/fixtures",
"bridges/snowbridge/pallets/inbound-queue/fixtures",
"bridges/snowbridge/pallets/outbound-queue",
"bridges/snowbridge/pallets/outbound-queue/merkle-tree",
"bridges/snowbridge/pallets/outbound-queue-v2",
"bridges/snowbridge/pallets/outbound-queue-v2/runtime-api",
"bridges/snowbridge/pallets/outbound-queue/runtime-api",
"bridges/snowbridge/pallets/system",
"bridges/snowbridge/pallets/system-frontend",
"bridges/snowbridge/pallets/system-v2",
"bridges/snowbridge/pallets/system-v2/runtime-api",
"bridges/snowbridge/pallets/system/runtime-api",
"bridges/snowbridge/primitives/beacon",
"bridges/snowbridge/primitives/core",
"bridges/snowbridge/primitives/ethereum",
"bridges/snowbridge/primitives/router",
"bridges/snowbridge/primitives/inbound-queue",
"bridges/snowbridge/primitives/merkle-tree",
"bridges/snowbridge/primitives/outbound-queue",
"bridges/snowbridge/primitives/verification",
"bridges/snowbridge/runtime/runtime-common",
"bridges/snowbridge/runtime/test-common",
"bridges/snowbridge/test-utils",
"cumulus/bin/pov-validator",
"cumulus/client/cli",
"cumulus/client/collator",
Expand Down Expand Up @@ -823,7 +833,14 @@ http = { version = "1.1" }
http-body = { version = "1", default-features = false }
http-body-util = { version = "0.1.2", default-features = false }
hyper = { version = "1.3.1", default-features = false }
hyper-rustls = { version = "0.27.3", default-features = false, features = ["http1", "http2", "logging", "ring", "rustls-native-certs", "tls12"] }
hyper-rustls = { version = "0.27.3", default-features = false, features = [
"http1",
"http2",
"logging",
"ring",
"rustls-native-certs",
"tls12",
] }
hyper-util = { version = "0.1.5", default-features = false }
impl-serde = { version = "0.5.0", default-features = false }
impl-trait-for-tuples = { version = "0.2.2" }
Expand Down Expand Up @@ -1149,7 +1166,12 @@ rstest = { version = "0.18.2" }
rustc-hash = { version = "1.1.0" }
rustc-hex = { version = "2.1.0", default-features = false }
rustix = { version = "0.36.7", default-features = false }
rustls = { version = "0.23.18", default-features = false, features = ["logging", "ring", "std", "tls12"] }
rustls = { version = "0.23.18", default-features = false, features = [
"logging",
"ring",
"std",
"tls12",
] }
rustversion = { version = "1.0.17" }
rusty-fork = { version = "0.3.0", default-features = false }
safe-mix = { version = "1.0", default-features = false }
Expand Down Expand Up @@ -1235,18 +1257,28 @@ smoldot-light = { version = "0.9.0", default-features = false }
snowbridge-beacon-primitives = { path = "bridges/snowbridge/primitives/beacon", default-features = false }
snowbridge-core = { path = "bridges/snowbridge/primitives/core", default-features = false }
snowbridge-ethereum = { path = "bridges/snowbridge/primitives/ethereum", default-features = false }
snowbridge-outbound-queue-merkle-tree = { path = "bridges/snowbridge/pallets/outbound-queue/merkle-tree", default-features = false }
snowbridge-inbound-queue-primitives = { path = "bridges/snowbridge/primitives/inbound-queue", default-features = false }
snowbridge-merkle-tree = { path = "bridges/snowbridge/primitives/merkle-tree", default-features = false }
snowbridge-outbound-queue-primitives = { path = "bridges/snowbridge/primitives/outbound-queue", default-features = false }
snowbridge-outbound-queue-runtime-api = { path = "bridges/snowbridge/pallets/outbound-queue/runtime-api", default-features = false }
snowbridge-outbound-queue-v2-runtime-api = { path = "bridges/snowbridge/pallets/outbound-queue-v2/runtime-api", default-features = false }
snowbridge-pallet-ethereum-client = { path = "bridges/snowbridge/pallets/ethereum-client", default-features = false }
snowbridge-pallet-ethereum-client-fixtures = { path = "bridges/snowbridge/pallets/ethereum-client/fixtures", default-features = false }
snowbridge-pallet-inbound-queue = { path = "bridges/snowbridge/pallets/inbound-queue", default-features = false }
snowbridge-pallet-inbound-queue-fixtures = { path = "bridges/snowbridge/pallets/inbound-queue/fixtures", default-features = false }
snowbridge-pallet-inbound-queue-v2 = { path = "bridges/snowbridge/pallets/inbound-queue-v2", default-features = false }
snowbridge-pallet-inbound-queue-v2-fixtures = { path = "bridges/snowbridge/pallets/inbound-queue-v2/fixtures", default-features = false }
snowbridge-pallet-outbound-queue = { path = "bridges/snowbridge/pallets/outbound-queue", default-features = false }
snowbridge-pallet-outbound-queue-v2 = { path = "bridges/snowbridge/pallets/outbound-queue-v2", default-features = false }
snowbridge-pallet-system = { path = "bridges/snowbridge/pallets/system", default-features = false }
snowbridge-router-primitives = { path = "bridges/snowbridge/primitives/router", default-features = false }
snowbridge-pallet-system-frontend = { path = "bridges/snowbridge/pallets/system-frontend", default-features = false }
snowbridge-pallet-system-v2 = { path = "bridges/snowbridge/pallets/system-v2", default-features = false }
snowbridge-runtime-common = { path = "bridges/snowbridge/runtime/runtime-common", default-features = false }
snowbridge-runtime-test-common = { path = "bridges/snowbridge/runtime/test-common", default-features = false }
snowbridge-system-runtime-api = { path = "bridges/snowbridge/pallets/system/runtime-api", default-features = false }
snowbridge-system-v2-runtime-api = { path = "bridges/snowbridge/pallets/system-v2/runtime-api", default-features = false }
snowbridge-test-utils = { path = "bridges/snowbridge/test-utils" }
snowbridge-verification-primitives = { path = "bridges/snowbridge/primitives/verification", default-features = false }
soketto = { version = "0.8.0" }
solochain-template-runtime = { path = "templates/solochain/runtime" }
sp-api = { path = "substrate/primitives/api", default-features = false }
Expand Down
2 changes: 2 additions & 0 deletions bridges/chains/chain-asset-hub-rococo/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ sp-core = { workspace = true }

# Bridge Dependencies
bp-xcm-bridge-hub-router = { workspace = true }
testnet-parachains-constants = { features = ["rococo"], workspace = true }

# Polkadot dependencies
xcm = { workspace = true }
Expand All @@ -35,5 +36,6 @@ std = [
"frame-support/std",
"scale-info/std",
"sp-core/std",
"testnet-parachains-constants/std",
"xcm/std",
]
3 changes: 3 additions & 0 deletions bridges/chains/chain-asset-hub-rococo/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ use codec::{Decode, Encode};
use scale_info::TypeInfo;

pub use bp_xcm_bridge_hub_router::XcmBridgeHubRouterCall;
use testnet_parachains_constants::rococo::currency::UNITS;
use xcm::latest::prelude::*;

/// `AssetHubRococo` Runtime `Call` enum.
Expand All @@ -45,6 +46,8 @@ pub enum Call {
frame_support::parameter_types! {
/// Some sane weight to execute `xcm::Transact(pallet-xcm-bridge-hub-router::Call::report_bridge_status)`.
pub const XcmBridgeHubRouterTransactCallMaxWeight: frame_support::weights::Weight = frame_support::weights::Weight::from_parts(200_000_000, 6144);
/// Should match the `AssetDeposit` of the `ForeignAssets` pallet on Asset Hub.
pub const CreateForeignAssetDeposit: u128 = UNITS / 10;
}

/// Builds an (un)congestion XCM program with the `report_bridge_status` call for
Expand Down
2 changes: 2 additions & 0 deletions bridges/chains/chain-asset-hub-westend/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ sp-core = { workspace = true }

# Bridge Dependencies
bp-xcm-bridge-hub-router = { workspace = true }
testnet-parachains-constants = { features = ["westend"], workspace = true }

# Polkadot dependencies
xcm = { workspace = true }
Expand All @@ -35,5 +36,6 @@ std = [
"frame-support/std",
"scale-info/std",
"sp-core/std",
"testnet-parachains-constants/std",
"xcm/std",
]
4 changes: 4 additions & 0 deletions bridges/chains/chain-asset-hub-westend/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ use codec::{Decode, Encode};
use scale_info::TypeInfo;

pub use bp_xcm_bridge_hub_router::XcmBridgeHubRouterCall;
use testnet_parachains_constants::westend::currency::UNITS;
use xcm::latest::prelude::*;

/// `AssetHubWestend` Runtime `Call` enum.
Expand All @@ -45,6 +46,9 @@ pub enum Call {
frame_support::parameter_types! {
/// Some sane weight to execute `xcm::Transact(pallet-xcm-bridge-hub-router::Call::report_bridge_status)`.
pub const XcmBridgeHubRouterTransactCallMaxWeight: frame_support::weights::Weight = frame_support::weights::Weight::from_parts(200_000_000, 6144);

/// Should match the `AssetDeposit` of the `ForeignAssets` pallet on Asset Hub.
pub const CreateForeignAssetDeposit: u128 = UNITS / 10;
}

/// Builds an (un)congestion XCM program with the `report_bridge_status` call for
Expand Down
6 changes: 6 additions & 0 deletions bridges/snowbridge/pallets/ethereum-client/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ workspace = true
[package.metadata.docs.rs]
targets = ["x86_64-unknown-linux-gnu"]

[package.metadata.polkadot-sdk]
exclude-from-umbrella = true

[dependencies]
codec = { features = ["derive"], workspace = true }
hex-literal = { optional = true, workspace = true, default-features = true }
Expand All @@ -34,6 +37,7 @@ pallet-timestamp = { optional = true, workspace = true }
snowbridge-beacon-primitives = { workspace = true }
snowbridge-core = { workspace = true }
snowbridge-ethereum = { workspace = true }
snowbridge-inbound-queue-primitives = { workspace = true }
snowbridge-pallet-ethereum-client-fixtures = { optional = true, workspace = true }
static_assertions = { workspace = true }

Expand All @@ -60,6 +64,7 @@ std = [
"snowbridge-beacon-primitives/std",
"snowbridge-core/std",
"snowbridge-ethereum/std",
"snowbridge-inbound-queue-primitives/std",
"snowbridge-pallet-ethereum-client-fixtures/std",
"sp-core/std",
"sp-io/std",
Expand All @@ -74,6 +79,7 @@ runtime-benchmarks = [
"hex-literal",
"pallet-timestamp?/runtime-benchmarks",
"snowbridge-core/runtime-benchmarks",
"snowbridge-inbound-queue-primitives/runtime-benchmarks",
"snowbridge-pallet-ethereum-client-fixtures/runtime-benchmarks",
"sp-runtime/runtime-benchmarks",
]
Expand Down
10 changes: 9 additions & 1 deletion bridges/snowbridge/pallets/ethereum-client/fixtures/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,14 @@ workspace = true
[package.metadata.docs.rs]
targets = ["x86_64-unknown-linux-gnu"]

[package.metadata.polkadot-sdk]
exclude-from-umbrella = true

[dependencies]
hex-literal = { workspace = true, default-features = true }
snowbridge-beacon-primitives = { workspace = true }
snowbridge-core = { workspace = true }
snowbridge-inbound-queue-primitives = { workspace = true }
sp-core = { workspace = true }
sp-std = { workspace = true }

Expand All @@ -26,7 +30,11 @@ default = ["std"]
std = [
"snowbridge-beacon-primitives/std",
"snowbridge-core/std",
"snowbridge-inbound-queue-primitives/std",
"sp-core/std",
"sp-std/std",
]
runtime-benchmarks = ["snowbridge-core/runtime-benchmarks"]
runtime-benchmarks = [
"snowbridge-core/runtime-benchmarks",
"snowbridge-inbound-queue-primitives/runtime-benchmarks",
]
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ use snowbridge_beacon_primitives::{
types::deneb, AncestryProof, BeaconHeader, ExecutionProof, NextSyncCommitteeUpdate,
SyncAggregate, SyncCommittee, VersionedExecutionPayloadHeader,
};
use snowbridge_core::inbound::{InboundQueueFixture, Log, Message, Proof};
use snowbridge_inbound_queue_primitives::{EventProof, InboundQueueFixture, Log, Proof};
use sp_core::U256;
use sp_std::{boxed::Box, vec};

Expand Down Expand Up @@ -1227,7 +1227,7 @@ pub fn make_execution_proof() -> Box<ExecutionProof> {

pub fn make_inbound_fixture() -> InboundQueueFixture {
InboundQueueFixture {
message: Message {
event: EventProof {
event_log: Log {
address: hex!("eda338e4dc46038493b885327842fd3e301cab39").into(),
topics: vec![
Expand Down
4 changes: 2 additions & 2 deletions bridges/snowbridge/pallets/ethereum-client/src/impls.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ use frame_support::ensure;
use snowbridge_beacon_primitives::ExecutionProof;

use snowbridge_beacon_primitives::merkle_proof::{generalized_index_length, subtree_index};
use snowbridge_core::inbound::{
use snowbridge_ethereum::Receipt;
use snowbridge_inbound_queue_primitives::{
VerificationError::{self, *},
*,
};
use snowbridge_ethereum::Receipt;

impl<T: Config> Verifier for Pallet<T> {
/// Verify a message by verifying the existence of the corresponding
Expand Down
4 changes: 2 additions & 2 deletions bridges/snowbridge/pallets/ethereum-client/src/mock.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use crate::config;
use frame_support::{derive_impl, dispatch::DispatchResult, parameter_types};
use pallet_timestamp;
use snowbridge_beacon_primitives::{Fork, ForkVersions};
use snowbridge_core::inbound::{Log, Proof};
use snowbridge_inbound_queue_primitives::{Log, Proof};
use sp_std::default::Default;
use std::{fs::File, path::PathBuf};

Expand Down Expand Up @@ -88,7 +88,7 @@ pub fn load_sync_committee_update_period_0_newer_fixture() -> Box<

pub fn get_message_verification_payload() -> (Log, Proof) {
let inbound_fixture = snowbridge_pallet_ethereum_client_fixtures::make_inbound_fixture();
(inbound_fixture.message.event_log, inbound_fixture.message.proof)
(inbound_fixture.event.event_log, inbound_fixture.event.proof)
}

frame_support::construct_runtime!(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use crate::config;
use frame_support::{derive_impl, dispatch::DispatchResult, parameter_types};
use pallet_timestamp;
use snowbridge_beacon_primitives::{Fork, ForkVersions};
use snowbridge_core::inbound::{Log, Proof};
use snowbridge_inbound_queue_primitives::{Log, Proof};
use sp_std::default::Default;
use std::{fs::File, path::PathBuf};

Expand Down Expand Up @@ -68,7 +68,7 @@ pub fn load_other_finalized_header_update_fixture() -> snowbridge_beacon_primiti

pub fn get_message_verification_payload() -> (Log, Proof) {
let inbound_fixture = snowbridge_pallet_ethereum_client_fixtures::make_inbound_fixture();
(inbound_fixture.message.event_log, inbound_fixture.message.proof)
(inbound_fixture.event.event_log, inbound_fixture.event.proof)
}

frame_support::construct_runtime!(
Expand Down
2 changes: 1 addition & 1 deletion bridges/snowbridge/pallets/ethereum-client/src/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ use snowbridge_beacon_primitives::{
types::deneb,
Fork, ForkVersions, NextSyncCommitteeUpdate, VersionedExecutionPayloadHeader,
};
use snowbridge_core::inbound::{VerificationError, Verifier};
use snowbridge_inbound_queue_primitives::{VerificationError, Verifier};
use sp_core::H256;
use sp_runtime::DispatchError;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ use snowbridge_beacon_primitives::{
types::deneb,
Fork, ForkVersions, NextSyncCommitteeUpdate, VersionedExecutionPayloadHeader,
};
use snowbridge_core::inbound::{VerificationError, Verifier};
use snowbridge_inbound_queue_primitives::{VerificationError, Verifier};
use sp_core::H256;
use sp_runtime::DispatchError;

Expand Down
Loading
Loading