Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
55 commits
Select commit Hold shift + click to select a range
b839c2a
Companion for #11981
Szegoo Aug 22, 2022
8b5cf18
more renaming
Szegoo Aug 22, 2022
aa3d405
fmt
Szegoo Aug 22, 2022
5103db1
fixes
Szegoo Aug 22, 2022
6e57d6f
add generic type
Szegoo Aug 22, 2022
f314d54
Companion for #11831
Szegoo Jul 16, 2022
a681bee
Merge branch 'paritytech:master' into rename-outer-enum
Szegoo Aug 23, 2022
418dc9e
fix
Szegoo Aug 23, 2022
0cac730
revert changes
Szegoo Aug 25, 2022
4661fd3
Delete rename-outer-enum.diff
Szegoo Aug 25, 2022
e54d8fa
Merge branch 'paritytech:master' into rename-outer-enum
Szegoo Aug 25, 2022
b65102b
revert
Szegoo Aug 25, 2022
edb2496
Update run_benches_for_runtime.sh
Szegoo Aug 25, 2022
c359f5f
rename type Call & type Event
Szegoo Aug 25, 2022
7821347
passing tests
Szegoo Aug 25, 2022
6bba1ed
fmt
Szegoo Aug 25, 2022
1670083
small fixes
Szegoo Aug 25, 2022
a2756b5
commit
Szegoo Aug 26, 2022
1cac521
fix
Szegoo Aug 27, 2022
3d1306d
fmt
Szegoo Aug 27, 2022
ab62e87
Merge branch 'paritytech:master' into rename-outer-enum
Szegoo Aug 27, 2022
37d2b2d
commit
Szegoo Aug 27, 2022
afd2386
error fixes
Szegoo Aug 28, 2022
28d87c2
fix
Szegoo Aug 28, 2022
122baa8
Merge branch 'master' into rename-outer-enum
Szegoo Aug 28, 2022
595752f
small fix in test
Szegoo Aug 28, 2022
f9887a6
Merge branch 'master' into rename-outer-enum
Szegoo Aug 31, 2022
dff2859
Merge branch 'paritytech:master' into rename-outer-enum
Szegoo Sep 1, 2022
e46b8a0
Merge branch 'paritytech:master' into rename-outer-enum
Szegoo Sep 1, 2022
d3685eb
Merge branch 'paritytech:master' into rename-outer-enum
Szegoo Sep 2, 2022
5dbcf5d
Merge branch 'paritytech:master' into rename-outer-enum
Szegoo Sep 2, 2022
c270e37
Merge branch 'paritytech:master' into rename-outer-enum
Szegoo Sep 3, 2022
5ef784f
Merge branch 'paritytech:master' into rename-outer-enum
Szegoo Sep 5, 2022
b1f2122
Update lib.rs
Szegoo Sep 5, 2022
1b3b37c
Update lib.rs
Szegoo Sep 5, 2022
acf1cca
Update lib.rs
Szegoo Sep 5, 2022
9746310
Update lib.rs
Szegoo Sep 5, 2022
334e3dc
Update lib.rs
Szegoo Sep 5, 2022
8c0346b
Update lib.rs
Szegoo Sep 5, 2022
bb203a9
Update lib.rs
Szegoo Sep 5, 2022
7792686
remove RuntimeCall from pallet_grandpa
Szegoo Sep 5, 2022
8ec5738
Merge branch 'paritytech:master' into rename-outer-enum
Szegoo Sep 6, 2022
ca46f19
last fix
Szegoo Sep 6, 2022
7a501b8
commit
Szegoo Sep 6, 2022
381f105
Merge branch 'paritytech:master' into rename-outer-enum
Szegoo Sep 6, 2022
15b47e8
rename
Szegoo Sep 8, 2022
e2bfea2
Merge branch 'paritytech:master' into rename-outer-enum
Szegoo Sep 8, 2022
10f2191
Merge branch 'master' into rename-outer-enum
Szegoo Sep 9, 2022
d29b550
merge fix
Szegoo Sep 9, 2022
0f3c48a
Merge branch 'paritytech:master' into rename-outer-enum
Szegoo Sep 9, 2022
4d24a49
Merge branch 'master' into rename-outer-enum
Szegoo Sep 10, 2022
50fc84d
Merge branch 'paritytech:master' into rename-outer-enum
Szegoo Sep 12, 2022
1d578a3
update lockfile for {"substrate"}
Sep 12, 2022
e021194
cargo +nightly fmt
shawntabrizi Sep 12, 2022
50d9a7c
fix
shawntabrizi Sep 12, 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
Prev Previous commit
Next Next commit
rename type Call & type Event
  • Loading branch information
Szegoo committed Aug 25, 2022
commit c359f5fb1c8f05b8c83729e4d7fe6d32d789d0f6
12 changes: 6 additions & 6 deletions runtime/common/src/assigned_slots.rs
Original file line number Diff line number Diff line change
Expand Up @@ -593,15 +593,15 @@ mod tests {
type BlockWeights = ();
type BlockLength = ();
type Origin = Origin;
type Call = Call;
type RuntimeCall = RuntimeCall;
type Index = u64;
type BlockNumber = BlockNumber;
type Hash = H256;
type Hashing = BlakeTwo256;
type AccountId = u64;
type Lookup = IdentityLookup<Self::AccountId>;
type Header = Header;
type Event = Event;
type RuntimeEvent = RuntimeEvent;
type BlockHashCount = BlockHashCount;
type DbWeight = ();
type Version = ();
Expand All @@ -621,7 +621,7 @@ mod tests {

impl pallet_balances::Config for Test {
type Balance = u64;
type Event = Event;
type RuntimeEvent = RuntimeEvent;
type DustRemoval = ();
type ExistentialDeposit = ExistentialDeposit;
type AccountStore = System;
Expand All @@ -640,7 +640,7 @@ mod tests {
}

impl parachains_paras::Config for Test {
type Event = Event;
type RuntimeEvent = RuntimeEvent;
type WeightInfo = parachains_paras::TestWeightInfo;
type UnsignedPriority = ParasUnsignedPriority;
type NextSessionRotation = crate::mock::TestNextSessionRotation;
Expand All @@ -655,7 +655,7 @@ mod tests {
}

impl slots::Config for Test {
type Event = Event;
type RuntimeEvent = RuntimeEvent;
type Currency = Balances;
type Registrar = TestRegistrar<Test>;
type LeasePeriod = LeasePeriod;
Expand All @@ -673,7 +673,7 @@ mod tests {
}

impl assigned_slots::Config for Test {
type Event = Event;
type RuntimeEvent = RuntimeEvent;
type AssignSlotOrigin = EnsureRoot<Self::AccountId>;
type Leaser = Slots;
type PermanentSlotLeasePeriodLength = PermanentSlotLeasePeriodLength;
Expand Down
8 changes: 4 additions & 4 deletions runtime/common/src/auctions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -710,15 +710,15 @@ mod tests {
type BlockLength = ();
type DbWeight = ();
type Origin = Origin;
type Call = Call;
type RuntimeCall = RuntimeCall;
type Index = u64;
type BlockNumber = BlockNumber;
type Hash = H256;
type Hashing = BlakeTwo256;
type AccountId = u64;
type Lookup = IdentityLookup<Self::AccountId>;
type Header = Header;
type Event = Event;
type RuntimeEvent = RuntimeEvent;
type BlockHashCount = BlockHashCount;
type Version = ();
type PalletInfo = PalletInfo;
Expand All @@ -739,7 +739,7 @@ mod tests {
impl pallet_balances::Config for Test {
type Balance = u64;
type DustRemoval = ();
type Event = Event;
type RuntimeEvent = RuntimeEvent;
type ExistentialDeposit = ExistentialDeposit;
type AccountStore = System;
type WeightInfo = ();
Expand Down Expand Up @@ -867,7 +867,7 @@ mod tests {
}

impl Config for Test {
type Event = Event;
type RuntimeEvent = RuntimeEvent;
type Leaser = TestLeaser;
type Registrar = TestRegistrar<Self>;
type EndingPeriod = EndingPeriod;
Expand Down
10 changes: 5 additions & 5 deletions runtime/common/src/claims.rs
Original file line number Diff line number Diff line change
Expand Up @@ -752,15 +752,15 @@ mod tests {
type BlockLength = ();
type DbWeight = ();
type Origin = Origin;
type Call = Call;
type RuntimeCall = RuntimeCall;
type Index = u64;
type BlockNumber = u64;
type Hash = H256;
type Hashing = BlakeTwo256;
type AccountId = u64;
type Lookup = IdentityLookup<u64>;
type Header = Header;
type Event = Event;
type RuntimeEvent = RuntimeEvent;
type BlockHashCount = BlockHashCount;
type Version = ();
type PalletInfo = PalletInfo;
Expand All @@ -779,7 +779,7 @@ mod tests {

impl pallet_balances::Config for Test {
type Balance = u64;
type Event = Event;
type RuntimeEvent = RuntimeEvent;
type DustRemoval = ();
type ExistentialDeposit = ExistentialDeposit;
type AccountStore = System;
Expand All @@ -794,7 +794,7 @@ mod tests {
}

impl pallet_vesting::Config for Test {
type Event = Event;
type RuntimeEvent = RuntimeEvent;
type Currency = Balances;
type BlockNumberToBalance = Identity;
type MinVestedTransfer = MinVestedTransfer;
Expand All @@ -810,7 +810,7 @@ mod tests {
}

impl Config for Test {
type Event = Event;
type RuntimeEvent = RuntimeEvent;
type VestingSchedule = Vesting;
type Prefix = Prefix;
type MoveClaimOrigin = frame_system::EnsureSignedBy<Six, u64>;
Expand Down
8 changes: 4 additions & 4 deletions runtime/common/src/crowdloan/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -893,15 +893,15 @@ mod tests {
type BlockLength = ();
type DbWeight = ();
type Origin = Origin;
type Call = Call;
type RuntimeCall = RuntimeCall;
type Index = u64;
type BlockNumber = BlockNumber;
type Hash = H256;
type Hashing = BlakeTwo256;
type AccountId = u64;
type Lookup = IdentityLookup<Self::AccountId>;
type Header = Header;
type Event = Event;
type RuntimeEvent = RuntimeEvent;
type BlockHashCount = BlockHashCount;
type Version = ();
type PalletInfo = PalletInfo;
Expand All @@ -920,7 +920,7 @@ mod tests {

impl pallet_balances::Config for Test {
type Balance = u64;
type Event = Event;
type RuntimeEvent = RuntimeEvent;
type DustRemoval = ();
type ExistentialDeposit = ExistentialDeposit;
type AccountStore = System;
Expand Down Expand Up @@ -1072,7 +1072,7 @@ mod tests {
}

impl Config for Test {
type Event = Event;
type RuntimeEvent = RuntimeEvent;
type SubmissionDeposit = SubmissionDeposit;
type MinContribution = MinContribution;
type PalletId = CrowdloanPalletId;
Expand Down
8 changes: 4 additions & 4 deletions runtime/common/src/impls.rs
Original file line number Diff line number Diff line change
Expand Up @@ -107,13 +107,13 @@ mod tests {
type Origin = Origin;
type Index = u64;
type BlockNumber = u64;
type Call = Call;
type RuntimeCall = RuntimeCall;
type Hash = H256;
type Hashing = BlakeTwo256;
type AccountId = AccountId;
type Lookup = IdentityLookup<Self::AccountId>;
type Header = Header;
type Event = Event;
type RuntimeEvent = RuntimeEvent;
type BlockHashCount = BlockHashCount;
type BlockLength = BlockLength;
type BlockWeights = BlockWeights;
Expand All @@ -131,7 +131,7 @@ mod tests {

impl pallet_balances::Config for Test {
type Balance = u64;
type Event = Event;
type RuntimeEvent = RuntimeEvent;
type DustRemoval = ();
type ExistentialDeposit = ();
type AccountStore = System;
Expand All @@ -150,7 +150,7 @@ mod tests {
type Currency = pallet_balances::Pallet<Test>;
type ApproveOrigin = frame_system::EnsureRoot<AccountId>;
type RejectOrigin = frame_system::EnsureRoot<AccountId>;
type Event = Event;
type RuntimeEvent = RuntimeEvent;
type OnSlash = ();
type ProposalBond = ();
type ProposalBondMinimum = ();
Expand Down
16 changes: 8 additions & 8 deletions runtime/common/src/integration_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -112,15 +112,15 @@ impl frame_system::Config for Test {
type BlockLength = ();
type DbWeight = ();
type Origin = Origin;
type Call = Call;
type RuntimeCall = RuntimeCall;
type Index = u64;
type BlockNumber = BlockNumber;
type Hash = H256;
type Hashing = BlakeTwo256;
type AccountId = AccountId;
type Lookup = IdentityLookup<AccountId>;
type Header = Header;
type Event = Event;
type RuntimeEvent = RuntimeEvent;
type BlockHashCount = BlockHashCount;
type Version = ();
type PalletInfo = PalletInfo;
Expand Down Expand Up @@ -178,7 +178,7 @@ parameter_types! {
impl pallet_balances::Config for Test {
type MaxLocks = ();
type Balance = Balance;
type Event = Event;
type RuntimeEvent = RuntimeEvent;
type DustRemoval = ();
type ExistentialDeposit = ExistentialDeposit;
type AccountStore = System;
Expand All @@ -200,7 +200,7 @@ parameter_types! {
}

impl paras::Config for Test {
type Event = Event;
type RuntimeEvent = RuntimeEvent;
type WeightInfo = paras::TestWeightInfo;
type UnsignedPriority = ParasUnsignedPriority;
type NextSessionRotation = crate::mock::TestNextSessionRotation;
Expand All @@ -212,7 +212,7 @@ parameter_types! {
}

impl paras_registrar::Config for Test {
type Event = Event;
type RuntimeEvent = RuntimeEvent;
type OnSwap = (Crowdloan, Slots);
type ParaDeposit = ParaDeposit;
type DataDepositPerByte = DataDepositPerByte;
Expand All @@ -227,7 +227,7 @@ parameter_types! {
}

impl auctions::Config for Test {
type Event = Event;
type RuntimeEvent = RuntimeEvent;
type Leaser = Slots;
type Registrar = Registrar;
type EndingPeriod = EndingPeriod;
Expand All @@ -243,7 +243,7 @@ parameter_types! {
}

impl slots::Config for Test {
type Event = Event;
type RuntimeEvent = RuntimeEvent;
type Currency = Balances;
type Registrar = Registrar;
type LeasePeriod = LeasePeriod;
Expand All @@ -261,7 +261,7 @@ parameter_types! {
}

impl crowdloan::Config for Test {
type Event = Event;
type RuntimeEvent = RuntimeEvent;
type PalletId = CrowdloanId;
type SubmissionDeposit = SubmissionDeposit;
type MinContribution = MinContribution;
Expand Down
10 changes: 5 additions & 5 deletions runtime/common/src/paras_registrar.rs
Original file line number Diff line number Diff line change
Expand Up @@ -649,15 +649,15 @@ mod tests {
impl frame_system::Config for Test {
type BaseCallFilter = frame_support::traits::Everything;
type Origin = Origin;
type Call = Call;
type RuntimeCall = RuntimeCall;
type Index = u64;
type BlockNumber = BlockNumber;
type Hash = H256;
type Hashing = BlakeTwo256;
type AccountId = u64;
type Lookup = IdentityLookup<u64>;
type Header = Header;
type Event = Event;
type RuntimeEvent = RuntimeEvent;
type BlockHashCount = BlockHashCount;
type DbWeight = ();
type BlockWeights = BlockWeights;
Expand All @@ -680,7 +680,7 @@ mod tests {
impl pallet_balances::Config for Test {
type Balance = u128;
type DustRemoval = ();
type Event = Event;
type RuntimeEvent = RuntimeEvent;
type ExistentialDeposit = ExistentialDeposit;
type AccountStore = System;
type MaxLocks = ();
Expand All @@ -698,7 +698,7 @@ mod tests {
}

impl paras::Config for Test {
type Event = Event;
type RuntimeEvent = RuntimeEvent;
type WeightInfo = paras::TestWeightInfo;
type UnsignedPriority = ParasUnsignedPriority;
type NextSessionRotation = crate::mock::TestNextSessionRotation;
Expand All @@ -715,7 +715,7 @@ mod tests {
}

impl Config for Test {
type Event = Event;
type RuntimeEvent = RuntimeEvent;
type Origin = Origin;
type Currency = Balances;
type OnSwap = MockSwap;
Expand Down
10 changes: 5 additions & 5 deletions runtime/common/src/purchase.rs
Original file line number Diff line number Diff line change
Expand Up @@ -511,15 +511,15 @@ mod tests {
type BlockLength = ();
type DbWeight = ();
type Origin = Origin;
type Call = Call;
type RuntimeCall = RuntimeCall;
type Index = u64;
type BlockNumber = u64;
type Hash = H256;
type Hashing = BlakeTwo256;
type AccountId = AccountId;
type Lookup = IdentityLookup<AccountId>;
type Header = Header;
type Event = Event;
type RuntimeEvent = RuntimeEvent;
type BlockHashCount = BlockHashCount;
type Version = ();
type PalletInfo = PalletInfo;
Expand All @@ -538,7 +538,7 @@ mod tests {

impl pallet_balances::Config for Test {
type Balance = u64;
type Event = Event;
type RuntimeEvent = RuntimeEvent;
type DustRemoval = ();
type ExistentialDeposit = ExistentialDeposit;
type AccountStore = System;
Expand All @@ -553,7 +553,7 @@ mod tests {
}

impl pallet_vesting::Config for Test {
type Event = Event;
type RuntimeEvent = RuntimeEvent;
type Currency = Balances;
type BlockNumberToBalance = Identity;
type MinVestedTransfer = MinVestedTransfer;
Expand All @@ -574,7 +574,7 @@ mod tests {
}

impl Config for Test {
type Event = Event;
type RuntimeEvent = RuntimeEvent;
type Currency = Balances;
type VestingSchedule = Vesting;
type ValidityOrigin = frame_system::EnsureSignedBy<ValidityOrigin, AccountId>;
Expand Down
Loading