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

Use Message Queue as DMP and XCMP dispatch queue #1246

Merged
merged 159 commits into from
Nov 2, 2023
Merged
Show file tree
Hide file tree
Changes from 137 commits
Commits
Show all changes
159 commits
Select commit Hold shift + click to select a range
a8304e3
Import DMP queue stuff
ggwpez Aug 28, 2023
aea37b3
Fix features
ggwpez Aug 28, 2023
6649bbe
Fixup
ggwpez Aug 29, 2023
2ee0125
Merge remote-tracking branch 'origin/master' into oty-message-queue
ggwpez Aug 29, 2023
47fc8d0
Fix features
ggwpez Aug 29, 2023
91571d7
Fix compile
ggwpez Aug 29, 2023
e2ce28f
Merge remote-tracking branch 'origin/master' into oty-message-queue
ggwpez Aug 29, 2023
b6a5b84
Make tests works
ggwpez Aug 29, 2023
b8bc6c2
Update xcmp queue weight
ggwpez Aug 29, 2023
cc0a79d
Fix ci
ggwpez Aug 29, 2023
1915803
Copy weight files
ggwpez Aug 29, 2023
8ed2733
Add test
ggwpez Aug 29, 2023
b1c9580
Add DmpQueue multi-step migration
ggwpez Aug 30, 2023
56f6b8f
shell runtime: Execute DMPs again
ggwpez Aug 30, 2023
0efb304
Re-deploy DMP queue pallet
ggwpez Aug 30, 2023
39dbadf
Fix compile
ggwpez Aug 30, 2023
273502f
Fixup build
ggwpez Aug 31, 2023
f54026e
Check XCM nesting depth before HRMP enque
ggwpez Aug 31, 2023
98f14ac
Add xcm nesting validation and limit to one signal
ggwpez Aug 31, 2023
9452713
Prioritize signals
ggwpez Aug 31, 2023
a180467
Fix weight files
ggwpez Aug 31, 2023
d842476
Temp comment some tests
ggwpez Aug 31, 2023
e046aba
Merge remote-tracking branch 'origin/master' into oty-message-queue
ggwpez Sep 1, 2023
689fe07
Fix features post-merge
ggwpez Sep 1, 2023
21ddabf
Fixes
ggwpez Sep 1, 2023
338638d
Merge remote-tracking branch 'origin/master' into oty-message-queue
ggwpez Sep 1, 2023
3b8d528
Fix more tests
ggwpez Sep 1, 2023
1c2f4cb
Fix
ggwpez Sep 1, 2023
a7cbc8e
Fix tests
ggwpez Sep 1, 2023
2e1e344
Add pages to MQ footprint
ggwpez Sep 4, 2023
6dd6cb6
Use pages to limit XCMP queue len
ggwpez Sep 4, 2023
b15c1ce
Make compile
ggwpez Sep 4, 2023
f272645
Fixes
ggwpez Sep 4, 2023
ddbc4a7
Fix benchmarking tests
ggwpez Sep 4, 2023
0a2361a
Fix import and call default
ggwpez Sep 4, 2023
13088aa
Gate tests
ggwpez Sep 4, 2023
a8446b6
Gate more tests
ggwpez Sep 4, 2023
e1dd95a
Ungate tests
ggwpez Sep 4, 2023
dd2e41e
Fix decode tests
ggwpez Sep 4, 2023
34d5c2e
Fixup
ggwpez Sep 4, 2023
034e477
Merge remote-tracking branch 'origin/master' into oty-message-queue
ggwpez Sep 4, 2023
06276e0
Fix tests after merge
ggwpez Sep 4, 2023
b32e769
Double encode XCMs in HRMP chanels
ggwpez Sep 5, 2023
494dffd
cleanup
ggwpez Sep 5, 2023
25734cc
Fix test
ggwpez Sep 5, 2023
96bcad7
Merge remote-tracking branch 'origin/master' into oty-message-queue
ggwpez Sep 5, 2023
0d4e0c8
Fix
ggwpez Sep 5, 2023
fe7d115
Remove rand_chacha dep
ggwpez Sep 6, 2023
97e43c4
Make benches work
ggwpez Sep 6, 2023
e13ce63
Merge remote-tracking branch 'origin/master' into oty-message-queue
ggwpez Sep 6, 2023
41935b9
Use correct relay init function
ggwpez Sep 6, 2023
083cfec
Derp. Do not reset weight counter in the middle of the function.
ggwpez Sep 6, 2023
3da3371
Do not use double-encoding for now
ggwpez Sep 6, 2023
ba92285
Fixup tests
ggwpez Sep 6, 2023
b55ecc2
Add prdoc
ggwpez Sep 6, 2023
ced3376
Format features
ggwpez Sep 6, 2023
a5f517d
Fix tests
ggwpez Sep 6, 2023
f92af52
Merge remote-tracking branch 'origin/master' into oty-message-queue
ggwpez Sep 7, 2023
a627fee
Fix features
ggwpez Sep 7, 2023
ebc5a87
Set MQ weight to 25%
ggwpez Sep 7, 2023
aab3a8e
WIP
ggwpez Sep 8, 2023
29a9639
Merge remote-tracking branch 'origin/master' into oty-message-queue
ggwpez Sep 11, 2023
21c6cc5
XCMP message migration
ggwpez Sep 11, 2023
62f071d
Add on-idle benchmark
ggwpez Sep 12, 2023
cef3a3c
Make stuff compile
ggwpez Sep 14, 2023
d38d9d7
Add missing weight files
ggwpez Sep 15, 2023
5dbb241
Fix benchmarks
ggwpez Sep 15, 2023
500c1e3
fmt
ggwpez Sep 15, 2023
038eb89
Fix
ggwpez Sep 15, 2023
161d132
Revert fix
ggwpez Sep 15, 2023
be61903
Merge remote-tracking branch 'origin/master' into oty-message-queue
ggwpez Sep 16, 2023
0b48739
Fix stuff
ggwpez Sep 16, 2023
a57e0ca
fmt
ggwpez Sep 16, 2023
7497000
Merge remote-tracking branch 'origin/master' into oty-message-queue
ggwpez Sep 18, 2023
6eb13d5
Cleanup
ggwpez Sep 18, 2023
b139093
More cleanup
ggwpez Sep 18, 2023
f03fcc4
Fix features
ggwpez Sep 18, 2023
153480e
Unused import
ggwpez Sep 18, 2023
1712281
Merge remote-tracking branch 'origin/master' into oty-message-queue
ggwpez Sep 27, 2023
c903c90
fmt
ggwpez Sep 27, 2023
00c7d4f
Fix features
ggwpez Sep 27, 2023
d74e564
Use decode_with_depth_limit
ggwpez Sep 27, 2023
0e795bf
More formatting
ggwpez Sep 27, 2023
68342e5
Remove unneeded log
ggwpez Sep 27, 2023
d11d0bc
Make send_signal infallible
ggwpez Sep 27, 2023
436c47a
Rename split_concatenated_xcm to take_first_concatenated_xcm
ggwpez Sep 27, 2023
b344a97
Use singular function for one message only
ggwpez Sep 27, 2023
841874c
Add overweight benchmark
ggwpez Sep 27, 2023
b907381
fmt
ggwpez Sep 27, 2023
8eb74b9
Update weights files
ggwpez Sep 27, 2023
f862566
fix
ggwpez Sep 27, 2023
499a5eb
Update cumulus/pallets/dmp-queue/src/lib.rs
ggwpez Oct 11, 2023
2895821
Apply suggestions from code review
ggwpez Oct 11, 2023
d333b7d
Docs
ggwpez Oct 11, 2023
1e8d6d3
Better naming for QueueFootprint
ggwpez Oct 11, 2023
d35599a
Feature gate hypothetical assert macros
ggwpez Oct 11, 2023
a03ada9
Doc
ggwpez Oct 11, 2023
d13a168
Add result to migrate_page and migrate_overweight
ggwpez Oct 11, 2023
5d5ae9e
Use default configs
ggwpez Oct 11, 2023
b9c43a4
Update cumulus/pallets/xcmp-queue/src/lib.rs
ggwpez Oct 11, 2023
ff56e36
Update cumulus/parachains/runtimes/bridge-hubs/bridge-hub-kusama/src/…
ggwpez Oct 11, 2023
2bc68ad
Update cumulus/parachains/runtimes/bridge-hubs/bridge-hub-rococo/src/…
ggwpez Oct 11, 2023
59dca12
Update cumulus/parachains/runtimes/bridge-hubs/bridge-hub-polkadot/sr…
ggwpez Oct 11, 2023
862e3a6
Docs
ggwpez Oct 11, 2023
80fce8c
Merge remote-tracking branch 'origin/master' into oty-message-queue
ggwpez Oct 11, 2023
4338070
Fixup merge
ggwpez Oct 11, 2023
9dc000e
🤦
ggwpez Oct 11, 2023
bf760a2
Fix license of weight files
ggwpez Oct 11, 2023
61006e0
Fix emulator tests
ggwpez Oct 11, 2023
4a67d58
Add license to weight files that have none
ggwpez Oct 11, 2023
fb9c0dc
Fix missing features
ggwpez Oct 11, 2023
52dc9e3
Format features
ggwpez Oct 11, 2023
3c9d4e4
Add DmpQueue version
ggwpez Oct 11, 2023
1b14247
Use correct FRAME syntax
ggwpez Oct 11, 2023
9b4ac74
Remove unused imports
ggwpez Oct 11, 2023
f0ab4a0
Clippy
ggwpez Oct 11, 2023
f420354
Revert "Clippy"
ggwpez Oct 11, 2023
b0fffdb
Merge remote-tracking branch 'origin/master' into oty-message-queue
ggwpez Oct 11, 2023
a2dd345
Merge branch 'master' into oty-message-queue
ggwpez Oct 15, 2023
b7c8d18
Merge remote-tracking branch 'origin/master' into oty-message-queue
ggwpez Oct 28, 2023
584848f
Fixup merge
ggwpez Oct 28, 2023
9a0bd90
Fixup more
ggwpez Oct 30, 2023
a838532
Add missing files
ggwpez Oct 30, 2023
418f90d
Fix integration tests for th 100th time
ggwpez Oct 30, 2023
ef00b9f
Fix one test
ggwpez Oct 30, 2023
1ac1d19
Merge remote-tracking branch 'origin/master' into oty-message-queue
ggwpez Oct 30, 2023
870d556
Fix dmp queue benches
ggwpez Oct 30, 2023
a11adc5
Merge remote-tracking branch 'origin/master' into oty-message-queue
ggwpez Oct 30, 2023
659f0e9
Fix import
ggwpez Oct 30, 2023
87f3131
Fix tests
ggwpez Oct 30, 2023
8df70b3
Remove storage InboundXcmpMessages
ggwpez Oct 31, 2023
e2c95ea
Put migration code in own function
ggwpez Oct 31, 2023
dfeacb9
Review fixes
ggwpez Oct 31, 2023
588f350
Use MAX_INSTRUCTIONS_TO_DECODE
ggwpez Oct 31, 2023
a39a770
Review fixes
ggwpez Oct 31, 2023
ccdf181
Merge remote-tracking branch 'origin/master' into oty-message-queue
ggwpez Oct 31, 2023
89c3b69
Unused imports
ggwpez Oct 31, 2023
13fc366
Update cumulus/parachains/runtimes/collectives/collectives-polkadot/s…
ggwpez Oct 31, 2023
5df3096
Update Rococo AH SafeCallFilter
ggwpez Oct 31, 2023
b314c50
Update DMP queue weight files
ggwpez Oct 31, 2023
aad07ad
Merge remote-tracking branch 'origin/master' into oty-message-queue
ggwpez Oct 31, 2023
227b853
Update Lockfile
ggwpez Oct 31, 2023
eacecbf
Merge branch 'master' into oty-message-queue
kianenigma Nov 1, 2023
82a08e3
Apply suggestions from code review
ggwpez Nov 1, 2023
21a0641
Update cumulus/pallets/xcmp-queue/src/lib.rs
ggwpez Nov 1, 2023
75efc9b
Macro formatting
ggwpez Nov 1, 2023
daa03b9
fmt
ggwpez Nov 1, 2023
d329506
Fix license
ggwpez Nov 1, 2023
8790191
".git/.scripts/commands/fmt/fmt.sh"
Nov 1, 2023
8e139a8
Manually fix formatter bug
ggwpez Nov 1, 2023
c7a2a17
Merge remote-tracking branch 'origin/master' into oty-message-queue
ggwpez Nov 2, 2023
a23000d
fmt
ggwpez Nov 2, 2023
0800196
".git/.scripts/commands/fmt/fmt.sh"
Nov 2, 2023
162b294
Update Lockfile
ggwpez Nov 2, 2023
4d98f84
Adapt bridge-hub-westend
ggwpez Nov 2, 2023
45b211e
Fixup
ggwpez Nov 2, 2023
9eb517d
Fix import
ggwpez Nov 2, 2023
ff8b0cc
Useless import
ggwpez Nov 2, 2023
4174e34
Fix bench
ggwpez Nov 2, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
38 changes: 32 additions & 6 deletions Cargo.lock

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

37 changes: 26 additions & 11 deletions cumulus/pallets/dmp-queue/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,24 @@ name = "cumulus-pallet-dmp-queue"
version = "0.1.0"
authors.workspace = true
edition.workspace = true
repository.workspace = true
description = "Migrates messages from the old DMP queue pallet."
license = "Apache-2.0"

[package.metadata.docs.rs]
targets = ["x86_64-unknown-linux-gnu"]

[dependencies]
codec = { package = "parity-scale-codec", version = "3.0.0", features = [ "derive" ], default-features = false }
codec = { package = "parity-scale-codec", version = "3.0.0", default-features = false, features = ["derive"] }
log = { version = "0.4.20", default-features = false }
scale-info = { version = "2.10.0", default-features = false, features = ["derive"] }

# Substrate
frame-support = { path = "../../../substrate/frame/support", default-features = false}
frame-system = { path = "../../../substrate/frame/system", default-features = false}
sp-io = { path = "../../../substrate/primitives/io", default-features = false}
sp-runtime = { path = "../../../substrate/primitives/runtime", default-features = false}
sp-std = { path = "../../../substrate/primitives/std", default-features = false}
frame-benchmarking = { path = "../../../substrate/frame/benchmarking", default-features = false, optional = true }
frame-support = { path = "../../../substrate/frame/support", default-features = false }
frame-system = { path = "../../../substrate/frame/system", default-features = false }
sp-std = { path = "../../../substrate/primitives/std", default-features = false }
sp-runtime = { path = "../../../substrate/primitives/runtime", default-features = false }
sp-io = { path = "../../../substrate/primitives/io", default-features = false }

# Polkadot
xcm = { package = "staging-xcm", path = "../../../polkadot/xcm", default-features = false}
Expand All @@ -23,25 +29,34 @@ xcm = { package = "staging-xcm", path = "../../../polkadot/xcm", default-feature
cumulus-primitives-core = { path = "../../primitives/core", default-features = false }

[dev-dependencies]
sp-core = { path = "../../../substrate/primitives/core", default-features = false}
sp-version = { path = "../../../substrate/primitives/version", default-features = false}
sp-core = { path = "../../../substrate/primitives/core" }
sp-tracing = { path = "../../../substrate/primitives/tracing" }

[features]
default = [ "std" ]

std = [
"codec/std",
"cumulus-primitives-core/std",
"frame-benchmarking?/std",
"frame-support/std",
"frame-system/std",
"log/std",
"scale-info/std",
"sp-core/std",
"sp-io/std",
"sp-runtime/std",
"sp-std/std",
"sp-version/std",
"xcm/std",
]

runtime-benchmarks = [
"cumulus-primitives-core/runtime-benchmarks",
"frame-benchmarking/runtime-benchmarks",
KiChjang marked this conversation as resolved.
Show resolved Hide resolved
"frame-support/runtime-benchmarks",
"frame-system/runtime-benchmarks",
"sp-runtime/runtime-benchmarks",
]

try-runtime = [
"frame-support/try-runtime",
"frame-system/try-runtime",
Expand Down