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

Tasks: general system for recognizing and executing service work #1343

Merged
merged 200 commits into from
Dec 8, 2023
Merged
Show file tree
Hide file tree
Changes from 15 commits
Commits
Show all changes
200 commits
Select commit Hold shift + click to select a range
df81863
import `sam-tasks` branch from old `substrate` repository
sam0x17 Sep 6, 2023
cbc24c7
add missing RuntimeTask defs, still getting From<Event<Self>> error
sam0x17 Sep 6, 2023
e7c2721
fix `RuntimeEvent: From<tasks_example::Event<Runtime>>` not satisfied
sam0x17 Sep 6, 2023
7f77ce2
add some missing RuntimeTasks
sam0x17 Sep 7, 2023
5161f60
add even _more_ missing RuntimeTasks
sam0x17 Sep 7, 2023
5409562
Fixes kitchensink build
gupnik Sep 7, 2023
1dfc5d0
add remaining missing RuntimeTasks, cargo check green without --works…
sam0x17 Sep 7, 2023
f227630
add more missing RuntimeTasks
sam0x17 Sep 7, 2023
92b1865
re-organize traits WIP
sam0x17 Sep 8, 2023
5a76836
clean up WIP
sam0x17 Sep 8, 2023
594f21e
impls for RuntimeTask is_valid, run, and weight
sam0x17 Sep 9, 2023
d380b4f
WIP
sam0x17 Sep 11, 2023
42d85ab
collective enumerate working, some unrelated compile issue still
sam0x17 Sep 11, 2023
7fe5f3b
Merge remote-tracking branch 'origin/master' into sam-tasks
sam0x17 Sep 11, 2023
0822498
update syn in lockfile
sam0x17 Sep 11, 2023
aa964fe
indeed
kianenigma Sep 11, 2023
f411bd1
fix handling of runtimes without any tasks
sam0x17 Sep 12, 2023
359ea35
add remaining missing RuntimeTasks, `cargo test --workspace` green :b…
sam0x17 Sep 12, 2023
58aec8d
disable debug pretty printing so RA settles
sam0x17 Sep 12, 2023
197c237
add minimal mock runtime for tasks-example (not using derive_impl yet)
sam0x17 Sep 12, 2023
a97c7a0
add TODO for using derive_impl
sam0x17 Sep 12, 2023
bc66b43
add working new_test_ext() (but tasks_example stuff not in it?)
sam0x17 Sep 12, 2023
a656faa
add test for increment/decrement on tasks_example
sam0x17 Sep 12, 2023
7d371df
add coverage for increment overflowing
sam0x17 Sep 12, 2023
ed735c4
test task-level enumerate
sam0x17 Sep 13, 2023
88430c5
test RuntimeTask-level enumerate
sam0x17 Sep 13, 2023
512d329
Merge remote-tracking branch 'origin/master' into sam-tasks
sam0x17 Sep 15, 2023
6fd2e10
rename pallet::condition => pallet::task_condition to be consistent
sam0x17 Sep 18, 2023
51c2e2e
add unit tests for `#[pallet::tasks]`
sam0x17 Sep 18, 2023
ee472eb
Parse impl for TaskDef
sam0x17 Sep 19, 2023
7beb8ff
fix: tasks_list => task_list
sam0x17 Sep 19, 2023
f8fff6d
fix bad test
sam0x17 Sep 19, 2023
d2b8b47
experimental macro for testing parsing errors with patterns
sam0x17 Sep 19, 2023
abca627
clean up
sam0x17 Sep 19, 2023
cd4b90a
fix comment
sam0x17 Sep 20, 2023
f160f44
Merge remote-tracking branch 'origin/master' into sam-tasks
sam0x17 Sep 21, 2023
1a75ac3
scaffold for tasks expansion
sam0x17 Sep 21, 2023
d781b73
add parsing for `TasksDef`, gav's example syntax now parses :boom:
sam0x17 Sep 21, 2023
cb0b0f8
rename TaskAttrType => TaskAttrMeta
sam0x17 Sep 22, 2023
d3cc4d2
refactor TaskAttrMeta to use explicit instantiable struct variants
sam0x17 Sep 22, 2023
e615f67
even more generic
sam0x17 Sep 22, 2023
fbae809
refactor + detection of duplicate task indices working :boom:
sam0x17 Sep 22, 2023
3e92ef6
test covering duplicate task indices
sam0x17 Sep 25, 2023
008e3d2
add test covering missing `#[pallet::task_list(..)]`
sam0x17 Sep 25, 2023
c9f17fe
add test covering missing `#[pallet::task_condition(..)]`
sam0x17 Sep 25, 2023
a7180da
add test covering missing `#[pallet::task_index(..)]`
sam0x17 Sep 25, 2023
7b7c7f8
add compile errors for duplicate tasks attributes + tests
sam0x17 Sep 25, 2023
4d4f3f2
refactor "duplicate" => "unexpected extra" for consistency
sam0x17 Sep 25, 2023
3520fe3
add test covering extra `#[pallet::tasks]` attribute
sam0x17 Sep 25, 2023
6228074
use proper runtime name in construct_runtime tasks expansion
sam0x17 Sep 25, 2023
70da716
clean up tt_default_parts
sam0x17 Sep 25, 2023
872f879
clean up task enum parse
sam0x17 Sep 25, 2023
5103230
rename enumerate() => iter() to fix RA issue
sam0x17 Sep 26, 2023
28a5083
fix identification of Task enum + finish enumerate() => iter()
sam0x17 Sep 26, 2023
f750fcc
ensure that either both or none of (task_enum, tasks) is specified
sam0x17 Sep 26, 2023
4793c41
proper access to tasks enum
sam0x17 Sep 26, 2023
8fb1e08
add tests for TaskEnumDef parsing
sam0x17 Sep 26, 2023
50a9b2c
working simulate_manifest_dir function
sam0x17 Sep 27, 2023
d9cbab7
WIP
sam0x17 Sep 27, 2023
ccde928
fix dev mode to use parse_quote for empty weight
sam0x17 Sep 28, 2023
b53bb12
full-pallet parse tests working, start task-related ones
sam0x17 Sep 28, 2023
01c42d4
parsing fixes
sam0x17 Sep 28, 2023
13f9208
allow omitting `#[pallet::tasks]` attribute
sam0x17 Sep 28, 2023
d270adc
add assert_pallet_parses!
sam0x17 Sep 29, 2023
cd80bb1
add assert_pallet_parse_error! shorthand
sam0x17 Sep 29, 2023
a6ca40b
fix: ensure CARGO_MANIFEST_DIR is always restored
sam0x17 Sep 29, 2023
7387a17
add explicit drop of ManifestContext
sam0x17 Sep 29, 2023
bbb04d1
make drop impl safer
sam0x17 Sep 29, 2023
68ccb76
clean up
sam0x17 Sep 29, 2023
8128108
test missing task enum
sam0x17 Sep 29, 2023
c72ec4d
fix race condition in testing support code
sam0x17 Sep 29, 2023
34dc54a
fix
sam0x17 Sep 29, 2023
95964d9
allow omitting `#[pallet::task_enum]` if enough info is provided
sam0x17 Oct 4, 2023
802c9e7
allow omitting `#[pallet::tasks]` attribute
sam0x17 Oct 5, 2023
a2f9e33
test omitting both `#[pallet::tasks]` and `#[pallet::task_enum]`
sam0x17 Oct 5, 2023
7a4d740
Merge remote-tracking branch 'origin/master' into sam-tasks
sam0x17 Oct 5, 2023
cf388f6
fix task indices
sam0x17 Oct 6, 2023
9722741
clean up
sam0x17 Oct 6, 2023
b3baffb
add TasksDef::generate()
sam0x17 Oct 6, 2023
d9903d4
auto-generate task enum if it is not specified
sam0x17 Oct 6, 2023
0c35558
change auto-generated task enum name to _Task to prevent collisions
sam0x17 Oct 6, 2023
bee216f
add TODOs
sam0x17 Oct 6, 2023
cd280ab
expansion for task enum
sam0x17 Oct 9, 2023
13d28f1
enum expansion WIP
sam0x17 Oct 9, 2023
f525a41
fix handling of missing attr
sam0x17 Oct 13, 2023
5890ffc
include scrate on TasksDef because we need it in expansion
sam0x17 Oct 13, 2023
b2271f9
before switching to individual task structs
sam0x17 Oct 16, 2023
ff8bc5e
WIP
sam0x17 Oct 16, 2023
4a59c33
expansion almost working
sam0x17 Oct 16, 2023
80d515c
example pallet tests passing :boom:
sam0x17 Oct 16, 2023
cc24864
clean up
sam0x17 Oct 16, 2023
2195884
Merge remote-tracking branch 'origin/master' into sam-tasks
sam0x17 Oct 16, 2023
29a7ce6
upgrade syntax
sam0x17 Oct 16, 2023
4a9cdc1
Merge remote-tracking branch 'origin/master' into sam-tasks
sam0x17 Oct 18, 2023
e9901c6
add missing RuntimeTask
sam0x17 Oct 18, 2023
71d20df
fix warnings
sam0x17 Oct 18, 2023
b0302c3
fix unreachable code issue
sam0x17 Oct 19, 2023
e62dea3
Adds task index expansion
Oct 27, 2023
3ab1e57
Adds task condition expansion
Oct 27, 2023
6214562
Adds task function expansion
Oct 27, 2023
38ddea4
Merge branch 'master' of github.com:paritytech/polkadot-sdk into sam-…
Oct 27, 2023
3b59b32
Adds RuntimeTask in SoloChainDefaultConfig
Oct 27, 2023
e1ffb15
FMT
Oct 27, 2023
fa7f74a
Adds License
gupnik Oct 27, 2023
8933bfa
Makes clippy happy
gupnik Oct 27, 2023
74b3698
Fixes minimal runtime build
gupnik Oct 27, 2023
45c4a6f
Fixes bench build
gupnik Oct 27, 2023
12373fe
Fixes std propagation
gupnik Oct 30, 2023
123f645
Merge branch 'master' into sam-tasks
gupnik Oct 30, 2023
a24da39
Adds arg support in Task and updates example
gupnik Oct 31, 2023
21c29aa
Merge branch 'master' of github.com:paritytech/polkadot-sdk into sam-…
gupnik Oct 31, 2023
824ae34
Fixes build
gupnik Oct 31, 2023
5626284
Merge branch 'master' of github.com:paritytech/polkadot-sdk into sam-…
gupnik Oct 31, 2023
10adf61
Removes task example from kitchensik
gupnik Oct 31, 2023
fba3228
Fixes build
gupnik Oct 31, 2023
5a94a04
Revert "Removes task example from kitchensik"
gupnik Oct 31, 2023
a3932f6
Removes RuntimeTask for pallet_balances
gupnik Nov 2, 2023
34f26d8
Merge branch 'master' into sam-tasks
gupnik Nov 2, 2023
8248087
Minor fix
gupnik Nov 2, 2023
8101437
Adds setup for benchmarking
gupnik Nov 2, 2023
962f2ee
Adds task weight parsing
gupnik Nov 2, 2023
b5734a2
Adds weight support for tasks
gupnik Nov 10, 2023
df37f16
Merge branch 'master' of github.com:paritytech/polkadot-sdk into sam-…
gupnik Nov 10, 2023
9d1e31b
Adds RuntimeTask in Config
gupnik Nov 10, 2023
418e338
Fixes tests
gupnik Nov 10, 2023
13d5d51
Fixes another test
gupnik Nov 10, 2023
c3705b2
Merge branch 'master' of github.com:paritytech/polkadot-sdk into sam-…
gupnik Nov 14, 2023
923e768
Fixes a todo
gupnik Nov 14, 2023
835ed81
Fixes another todo
gupnik Nov 14, 2023
0a53b36
Cleans up task example pallet
gupnik Nov 14, 2023
6d7d9b7
Nits
gupnik Nov 14, 2023
da208f6
Fixes feature propagation
gupnik Nov 14, 2023
140679b
Adds tests for task execution
gupnik Nov 14, 2023
33cb94f
Updates UI Tests
gupnik Nov 15, 2023
27fd361
Merge branch 'master' into sam-tasks
gupnik Nov 15, 2023
ee6bd4b
Adds RuntimeTask in mock pallet contracts
gupnik Nov 15, 2023
5ccabe6
Adds RuntimeTask in a couple of missing places
gupnik Nov 15, 2023
1bd2422
Minor update
gupnik Nov 15, 2023
53f8270
Adds RuntimeTask in missing places
gupnik Nov 15, 2023
c226105
Minor update
gupnik Nov 15, 2023
2b6146c
Restructures Task impl and adds a couple of UI Tests
gupnik Nov 15, 2023
ac1c57e
Adds more UI Tests
gupnik Nov 15, 2023
16bf1af
Adds more UI Tests
gupnik Nov 15, 2023
9624f0c
add docs and a few doc tests for task-related stuff
sam0x17 Nov 15, 2023
61a2549
Adds ability to handle multiple args in tasks and other fixes
gupnik Nov 16, 2023
09cae78
Minor fix
gupnik Nov 16, 2023
7ff8a2f
Merge branch 'sam-tasks' of github.com:paritytech/polkadot-sdk into s…
gupnik Nov 16, 2023
93582c1
Merge branch 'master' of github.com:paritytech/polkadot-sdk into sam-…
gupnik Nov 16, 2023
a433805
Adds RuntimeTask in missing places
gupnik Nov 16, 2023
e85c1e7
Fix
gupnik Nov 16, 2023
e57cf98
Adds UI Test for passing case with multiple args
gupnik Nov 17, 2023
cdc8e3d
Adds Docs
gupnik Nov 17, 2023
c5c898d
Merge branch 'master' into sam-tasks
gupnik Nov 17, 2023
1f677e6
".git/.scripts/commands/fmt/fmt.sh"
Nov 17, 2023
b199039
Minor fix
gupnik Nov 17, 2023
097dd2f
Merge branch 'sam-tasks' of github.com:paritytech/polkadot-sdk into s…
gupnik Nov 17, 2023
0053aee
Minor fix
gupnik Nov 17, 2023
e45eb4c
Minor fix
gupnik Nov 17, 2023
86fb3c1
Minor fix
gupnik Nov 17, 2023
e2fda09
Minor fixes
gupnik Nov 17, 2023
82e79ea
Updates UI Test outputs
gupnik Nov 17, 2023
56fb9ba
Merge branch 'master' into sam-tasks
gavofyork Nov 24, 2023
7e8b495
Update substrate/frame/examples/tasks/src/lib.rs
gupnik Nov 27, 2023
bc99c0d
Addresses review comments
gupnik Nov 28, 2023
5b1fd64
Fixes spans
gupnik Nov 28, 2023
a9b7393
Fixes build
gupnik Nov 28, 2023
9b6e6b7
".git/.scripts/commands/fmt/fmt.sh"
Nov 28, 2023
e72bea7
Merge branch 'master' into sam-tasks
gupnik Nov 28, 2023
009060a
Adds PrDoc
gupnik Nov 28, 2023
fc1ee33
Adds missing RuntimeTask
gupnik Nov 28, 2023
06fbea8
Removes RuntimeTask from configs
gupnik Dec 5, 2023
9477cef
Merge branch 'master' of github.com:paritytech/polkadot-sdk into gupn…
gupnik Dec 5, 2023
5ff01c5
".git/.scripts/commands/fmt/fmt.sh"
Dec 5, 2023
8f94772
Removes unnecessary changes
gupnik Dec 5, 2023
1441500
Removes unnecessary changes
gupnik Dec 5, 2023
dfda32d
Fixes substrate-test-runtime build
gupnik Dec 5, 2023
0c4a109
Fixes UI Test
gupnik Dec 5, 2023
ba685f9
".git/.scripts/commands/fmt/fmt.sh"
Dec 5, 2023
6b3e239
Fixes build
gupnik Dec 5, 2023
04a9767
Fixes build
gupnik Dec 5, 2023
86e5145
Minor fix
gupnik Dec 5, 2023
c13fb8e
Minor fix
gupnik Dec 5, 2023
94634b4
Minor fix
gupnik Dec 5, 2023
c5fc023
Update substrate/frame/examples/src/lib.rs
codekitz Dec 5, 2023
34a5780
Update substrate/frame/examples/tasks/src/lib.rs
codekitz Dec 5, 2023
2fba261
Update substrate/frame/examples/tasks/src/lib.rs
codekitz Dec 5, 2023
73cbb3f
Update substrate/frame/examples/tasks/src/lib.rs
codekitz Dec 5, 2023
26eae60
Update substrate/frame/examples/tasks/src/tests.rs
codekitz Dec 5, 2023
8990256
Update substrate/frame/support/src/tests/mod.rs
codekitz Dec 5, 2023
ef58f32
Addresses some review comments
gupnik Dec 6, 2023
eb69f37
Addresses more review comments
gupnik Dec 6, 2023
7e496bf
Merge branch 'master' into sam-tasks
codekitz Dec 6, 2023
260fd82
Updates PrDoc
gupnik Dec 6, 2023
334f051
Addresses review comments
gupnik Dec 6, 2023
4c906b4
Updates PrDoc
gupnik Dec 6, 2023
84719c6
".git/.scripts/commands/fmt/fmt.sh"
Dec 6, 2023
00b515d
Moves tasks to tasks_experimental
gupnik Dec 7, 2023
2fd452a
Updates PrDoc
gupnik Dec 7, 2023
3c6b00a
".git/.scripts/commands/fmt/fmt.sh"
Dec 7, 2023
68af208
Merge branch 'master' into sam-tasks
codekitz Dec 7, 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
39 changes: 39 additions & 0 deletions Cargo.lock

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

1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -292,6 +292,7 @@ members = [
"substrate/frame/examples/kitchensink",
"substrate/frame/examples/offchain-worker",
"substrate/frame/examples/split",
"substrate/frame/examples/tasks-example",
"substrate/frame/executive",
"substrate/frame/fast-unstake",
"substrate/frame/glutton",
Expand Down
2 changes: 2 additions & 0 deletions bridges/bin/runtime-common/src/mock.rs
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,7 @@ impl frame_system::Config for TestRuntime {
type RuntimeOrigin = RuntimeOrigin;
type Nonce = u64;
type RuntimeCall = RuntimeCall;
type RuntimeTask = RuntimeTask;
type Hash = ThisChainHash;
type Hashing = ThisChainHasher;
type AccountId = ThisChainAccountId;
Expand Down Expand Up @@ -182,6 +183,7 @@ impl pallet_utility::Config for TestRuntime {
impl pallet_balances::Config for TestRuntime {
type Balance = ThisChainBalance;
type RuntimeEvent = RuntimeEvent;
type RuntimeTask = RuntimeTask;
type DustRemoval = ();
type ExistentialDeposit = ExistentialDeposit;
type AccountStore = System;
Expand Down
1 change: 1 addition & 0 deletions bridges/modules/grandpa/src/mock.rs
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ impl frame_system::Config for TestRuntime {
type RuntimeOrigin = RuntimeOrigin;
type Nonce = u64;
type RuntimeCall = RuntimeCall;
type RuntimeTask = RuntimeTask;
gupnik marked this conversation as resolved.
Show resolved Hide resolved
type Hash = H256;
type Hashing = BlakeTwo256;
type AccountId = AccountId;
Expand Down
1 change: 1 addition & 0 deletions bridges/modules/parachains/src/mock.rs
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,7 @@ impl frame_system::Config for TestRuntime {
type RuntimeOrigin = RuntimeOrigin;
type Nonce = u64;
type RuntimeCall = RuntimeCall;
type RuntimeTask = RuntimeTask;
type Block = Block;
type Hash = H256;
type Hashing = RegularParachainHasher;
Expand Down
2 changes: 2 additions & 0 deletions bridges/modules/relayers/src/mock.rs
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ impl frame_system::Config for TestRuntime {
type RuntimeOrigin = RuntimeOrigin;
type Nonce = u64;
type RuntimeCall = RuntimeCall;
type RuntimeTask = RuntimeTask;
type Block = Block;
type Hash = H256;
type Hashing = BlakeTwo256;
Expand Down Expand Up @@ -92,6 +93,7 @@ impl pallet_balances::Config for TestRuntime {
type Balance = Balance;
type DustRemoval = ();
type RuntimeEvent = RuntimeEvent;
type RuntimeTask = RuntimeTask;
type ExistentialDeposit = ExistentialDeposit;
type AccountStore = frame_system::Pallet<TestRuntime>;
type WeightInfo = ();
Expand Down
1 change: 1 addition & 0 deletions bridges/modules/xcm-bridge-hub-router/src/mock.rs
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ impl frame_system::Config for TestRuntime {
type RuntimeOrigin = RuntimeOrigin;
type Nonce = u64;
type RuntimeCall = RuntimeCall;
type RuntimeTask = RuntimeTask;
type Block = Block;
type Hash = H256;
type Hashing = BlakeTwo256;
Expand Down
1 change: 1 addition & 0 deletions cumulus/pallets/parachain-system/src/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ parameter_types! {
impl frame_system::Config for Test {
type RuntimeOrigin = RuntimeOrigin;
type RuntimeCall = RuntimeCall;
type RuntimeTask = RuntimeTask;
type Nonce = u64;
type Hash = H256;
type Hashing = BlakeTwo256;
Expand Down
3 changes: 3 additions & 0 deletions cumulus/parachain-template/runtime/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,8 @@ impl frame_system::Config for Runtime {
type AccountId = AccountId;
/// The aggregated dispatch type that is available for extrinsics.
type RuntimeCall = RuntimeCall;
/// The aggregated task type.
type RuntimeTask = RuntimeTask;
/// The lookup mechanism to get account ID from whatever is passed in dispatchers.
type Lookup = AccountIdLookup<AccountId, ()>;
/// The index type for storing how many extrinsics an account has signed.
Expand Down Expand Up @@ -353,6 +355,7 @@ impl pallet_balances::Config for Runtime {
type FreezeIdentifier = ();
type MaxHolds = ConstU32<0>;
type MaxFreezes = ConstU32<0>;
type RuntimeTask = RuntimeTask;
}

parameter_types! {
Expand Down
2 changes: 2 additions & 0 deletions cumulus/parachains/common/src/impls.rs
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,7 @@ mod tests {
type RuntimeOrigin = RuntimeOrigin;
type Nonce = u64;
type RuntimeCall = RuntimeCall;
type RuntimeTask = RuntimeTask;
type Hash = H256;
type Hashing = BlakeTwo256;
type AccountId = AccountId;
Expand All @@ -184,6 +185,7 @@ mod tests {
impl pallet_balances::Config for Test {
type Balance = u64;
type RuntimeEvent = RuntimeEvent;
type RuntimeTask = RuntimeTask;
type DustRemoval = ();
type ExistentialDeposit = ConstU64<1>;
type AccountStore = System;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,7 @@ impl frame_system::Config for Runtime {
type BlockLength = RuntimeBlockLength;
type AccountId = AccountId;
type RuntimeCall = RuntimeCall;
type RuntimeTask = RuntimeTask;
type Lookup = AccountIdLookup<AccountId, ()>;
type Nonce = Nonce;
type Hash = Hash;
Expand Down Expand Up @@ -215,6 +216,7 @@ impl pallet_balances::Config for Runtime {
type Balance = Balance;
/// The ubiquitous event type.
type RuntimeEvent = RuntimeEvent;
type RuntimeTask = RuntimeTask;
type DustRemoval = ();
type ExistentialDeposit = ExistentialDeposit;
type AccountStore = System;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,7 @@ impl frame_system::Config for Runtime {
type BlockLength = RuntimeBlockLength;
type AccountId = AccountId;
type RuntimeCall = RuntimeCall;
type RuntimeTask = RuntimeTask;
type Lookup = AccountIdLookup<AccountId, ()>;
type Nonce = Nonce;
type Hash = Hash;
Expand Down Expand Up @@ -225,6 +226,7 @@ impl pallet_balances::Config for Runtime {
type Balance = Balance;
/// The ubiquitous event type.
type RuntimeEvent = RuntimeEvent;
type RuntimeTask = RuntimeTask;
type DustRemoval = ();
type ExistentialDeposit = ExistentialDeposit;
type AccountStore = System;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,7 @@ impl frame_system::Config for Runtime {
type BlockLength = RuntimeBlockLength;
type AccountId = AccountId;
type RuntimeCall = RuntimeCall;
type RuntimeTask = RuntimeTask;
type Lookup = AccountIdLookup<AccountId, ()>;
type Nonce = Nonce;
type Hash = Hash;
Expand Down Expand Up @@ -194,6 +195,7 @@ impl pallet_balances::Config for Runtime {
type Balance = Balance;
/// The ubiquitous event type.
type RuntimeEvent = RuntimeEvent;
type RuntimeTask = RuntimeTask;
type DustRemoval = ();
type ExistentialDeposit = ExistentialDeposit;
type AccountStore = System;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,8 @@ impl frame_system::Config for Runtime {
type AccountId = AccountId;
/// The aggregated dispatch type that is available for extrinsics.
type RuntimeCall = RuntimeCall;
/// The aggregated task type.
type RuntimeTask = RuntimeTask;
/// The lookup mechanism to get account ID from whatever is passed in dispatchers.
type Lookup = AccountIdLookup<AccountId, ()>;
/// The index type for storing how many extrinsics an account has signed.
Expand Down Expand Up @@ -239,6 +241,7 @@ impl pallet_balances::Config for Runtime {
type DustRemoval = ();
/// The ubiquitous event type.
type RuntimeEvent = RuntimeEvent;
type RuntimeTask = RuntimeTask;
type ExistentialDeposit = ExistentialDeposit;
type AccountStore = System;
type WeightInfo = weights::pallet_balances::WeightInfo<Runtime>;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,8 @@ impl frame_system::Config for Runtime {
type AccountId = AccountId;
/// The aggregated dispatch type that is available for extrinsics.
type RuntimeCall = RuntimeCall;
/// The aggregated task type.
type RuntimeTask = RuntimeTask;
/// The lookup mechanism to get account ID from whatever is passed in dispatchers.
type Lookup = AccountIdLookup<AccountId, ()>;
/// The index type for storing how many extrinsics an account has signed.
Expand Down Expand Up @@ -239,6 +241,7 @@ impl pallet_balances::Config for Runtime {
type DustRemoval = ();
/// The ubiquitous event type.
type RuntimeEvent = RuntimeEvent;
type RuntimeTask = RuntimeTask;
type ExistentialDeposit = ExistentialDeposit;
type AccountStore = System;
type WeightInfo = weights::pallet_balances::WeightInfo<Runtime>;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,8 @@ impl frame_system::Config for Runtime {
type AccountId = AccountId;
/// The aggregated dispatch type that is available for extrinsics.
type RuntimeCall = RuntimeCall;
/// The aggregated task type.
type RuntimeTask = RuntimeTask;
/// The lookup mechanism to get account ID from whatever is passed in dispatchers.
type Lookup = AccountIdLookup<AccountId, ()>;
/// The index type for storing how many extrinsics an account has signed.
Expand Down Expand Up @@ -256,6 +258,7 @@ impl pallet_balances::Config for Runtime {
type DustRemoval = ();
/// The ubiquitous event type.
type RuntimeEvent = RuntimeEvent;
type RuntimeTask = RuntimeTask;
type ExistentialDeposit = ExistentialDeposit;
type AccountStore = System;
type WeightInfo = weights::pallet_balances::WeightInfo<Runtime>;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,7 @@ impl frame_system::Config for Runtime {
type BlockLength = RuntimeBlockLength;
type AccountId = AccountId;
type RuntimeCall = RuntimeCall;
type RuntimeTask = RuntimeTask;
type Lookup = AccountIdLookup<AccountId, ()>;
type Nonce = Nonce;
type Hash = Hash;
Expand Down Expand Up @@ -201,6 +202,7 @@ impl pallet_balances::Config for Runtime {
type Balance = Balance;
/// The ubiquitous event type.
type RuntimeEvent = RuntimeEvent;
type RuntimeTask = RuntimeTask;
type DustRemoval = ();
type ExistentialDeposit = ExistentialDeposit;
type AccountStore = System;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,7 @@ impl frame_system::Config for Runtime {
type BlockLength = RuntimeBlockLength;
type AccountId = AccountId;
type RuntimeCall = RuntimeCall;
type RuntimeTask = RuntimeTask;
type Lookup = AccountIdLookup<AccountId, ()>;
type Nonce = Nonce;
type Hash = Hash;
Expand Down Expand Up @@ -211,6 +212,7 @@ impl pallet_balances::Config for Runtime {
type Balance = Balance;
/// The ubiquitous event type.
type RuntimeEvent = RuntimeEvent;
type RuntimeTask = RuntimeTask;
type DustRemoval = ();
type ExistentialDeposit = ConstU128<EXISTENTIAL_DEPOSIT>;
type AccountStore = System;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,7 @@ impl frame_system::Config for Runtime {
type Hashing = BlakeTwo256;
type Block = Block;
type RuntimeEvent = RuntimeEvent;
type RuntimeTask = RuntimeTask;
type RuntimeOrigin = RuntimeOrigin;
type BlockHashCount = BlockHashCount;
type Version = Version;
Expand Down
2 changes: 2 additions & 0 deletions cumulus/parachains/runtimes/starters/seedling/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,8 @@ impl frame_system::Config for Runtime {
type AccountId = AccountId;
/// The aggregated dispatch type that is available for extrinsics.
type RuntimeCall = RuntimeCall;
/// The aggregated task type.
type RuntimeTask = RuntimeTask;
/// The lookup mechanism to get account ID from whatever is passed in dispatchers.
type Lookup = AccountIdLookup<AccountId, ()>;
/// The index type for storing how many extrinsics an account has signed.
Expand Down
2 changes: 2 additions & 0 deletions cumulus/parachains/runtimes/starters/shell/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,8 @@ impl frame_system::Config for Runtime {
type AccountId = AccountId;
/// The aggregated dispatch type that is available for extrinsics.
type RuntimeCall = RuntimeCall;
/// The aggregated task type.
type RuntimeTask = RuntimeTask;
/// The lookup mechanism to get account ID from whatever is passed in dispatchers.
type Lookup = AccountIdLookup<AccountId, ()>;
/// The index type for storing how many extrinsics an account has signed.
Expand Down
3 changes: 3 additions & 0 deletions cumulus/parachains/runtimes/testing/penpal/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -323,6 +323,8 @@ impl frame_system::Config for Runtime {
type AccountId = AccountId;
/// The aggregated dispatch type that is available for extrinsics.
type RuntimeCall = RuntimeCall;
/// The aggregated task type.
type RuntimeTask = RuntimeTask;
/// The lookup mechanism to get account ID from whatever is passed in dispatchers.
type Lookup = AccountIdLookup<AccountId, ()>;
/// The index type for storing how many extrinsics an account has signed.
Expand Down Expand Up @@ -389,6 +391,7 @@ impl pallet_balances::Config for Runtime {
type Balance = Balance;
/// The ubiquitous event type.
type RuntimeEvent = RuntimeEvent;
type RuntimeTask = RuntimeTask;
type DustRemoval = ();
type ExistentialDeposit = ExistentialDeposit;
type AccountStore = System;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,8 @@ impl frame_system::Config for Runtime {
type AccountId = AccountId;
/// The aggregated dispatch type that is available for extrinsics.
type RuntimeCall = RuntimeCall;
/// The aggregated task type.
type RuntimeTask = RuntimeTask;
/// The lookup mechanism to get account ID from whatever is passed in dispatchers.
type Lookup = AccountIdLookup<AccountId, ()>;
/// The index type for storing how many extrinsics an account has signed.
Expand Down Expand Up @@ -238,6 +240,7 @@ impl pallet_balances::Config for Runtime {
type DustRemoval = ();
/// The ubiquitous event type.
type RuntimeEvent = RuntimeEvent;
type RuntimeTask = RuntimeTask;
type ExistentialDeposit = ExistentialDeposit;
type AccountStore = System;
type WeightInfo = ();
Expand Down
3 changes: 3 additions & 0 deletions cumulus/test/runtime/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,8 @@ impl frame_system::Config for Runtime {
type AccountId = AccountId;
/// The aggregated dispatch type that is available for extrinsics.
type RuntimeCall = RuntimeCall;
/// The aggregated task type.
type RuntimeTask = RuntimeTask;
/// The lookup mechanism to get account ID from whatever is passed in dispatchers.
type Lookup = IdentityLookup<AccountId>;
/// The index type for storing how many extrinsics an account has signed.
Expand Down Expand Up @@ -242,6 +244,7 @@ impl pallet_balances::Config for Runtime {
type Balance = Balance;
/// The ubiquitous event type.
type RuntimeEvent = RuntimeEvent;
type RuntimeTask = RuntimeTask;
type DustRemoval = ();
type ExistentialDeposit = ExistentialDeposit;
type AccountStore = System;
Expand Down
2 changes: 2 additions & 0 deletions polkadot/runtime/common/src/assigned_slots/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -685,6 +685,7 @@ mod tests {
type BlockLength = ();
type RuntimeOrigin = RuntimeOrigin;
type RuntimeCall = RuntimeCall;
type RuntimeTask = RuntimeTask;
type Nonce = u64;
type Hash = H256;
type Hashing = BlakeTwo256;
Expand Down Expand Up @@ -712,6 +713,7 @@ mod tests {
impl pallet_balances::Config for Test {
type Balance = u64;
type RuntimeEvent = RuntimeEvent;
type RuntimeTask = RuntimeTask;
type DustRemoval = ();
type ExistentialDeposit = ExistentialDeposit;
type AccountStore = System;
Expand Down
Loading
Loading