Skip to content

Commit aeb5687

Browse files
author
Ayush
committed
Fixed test-cases
1 parent 93448cf commit aeb5687

File tree

30 files changed

+516
-484
lines changed

30 files changed

+516
-484
lines changed

custom_types.json

+7-7
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"Keys": "SessionKeys2",
3-
"Address": "AccountId",
4-
"LookupSource": "AccountId",
3+
"Address": "AccountId",
4+
"LookupSource": "AccountId",
55
"RoamingOperator": "[u8; 16]",
66
"RoamingOperatorIndex": "u64",
77
"RoamingNetwork": "[u8; 16]",
@@ -24,7 +24,7 @@
2424
"RoamingAccountingPolicyType": "Text",
2525
"RoamingAccountingPolicyUplinkFeeFactor": "u32",
2626
"RoamingAccountingPolicyDownlinkFeeFactor": "u32",
27-
"RoamingAccountingPolicyConfig": {
27+
"RoamingAccountingPolicySetting": {
2828
"policy_type": "Text",
2929
"subscription_fee": "Balance",
3030
"uplink_fee_factor": "u32",
@@ -34,7 +34,7 @@
3434
"RoamingAgreementPolicyIndex": "u64",
3535
"RoamingAgreementPolicyActivationType": "Text",
3636
"RoamingAgreementPolicyExpiry": "Moment",
37-
"RoamingAgreementPolicyConfig": {
37+
"RoamingAgreementPolicySetting": {
3838
"policy_activation_type": "Text",
3939
"policy_expiry": "u64"
4040
},
@@ -46,7 +46,7 @@
4646
"RoamingDeviceProfileDevEUI": "Text",
4747
"RoamingDeviceProfileJoinEUI": "Text",
4848
"RoamingDeviceProfileVendorID": "Text",
49-
"RoamingDeviceProfileConfig": {
49+
"RoamingDeviceProfileSetting": {
5050
"device_profile_devaddr": "Text",
5151
"device_profile_deveui": "Text",
5252
"device_profile_joineui": "Text",
@@ -69,15 +69,15 @@
6969
"RoamingBillingPolicyIndex": "u64",
7070
"RoamingBillingPolicyNextBillingAt": "Moment",
7171
"RoamingBillingPolicyFrequencyInDays": "u64",
72-
"RoamingBillingPolicyConfig": {
72+
"RoamingBillingPolicySetting": {
7373
"policy_next_billing_at": "Moment",
7474
"policy_frequency_in_days": "u64"
7575
},
7676
"RoamingChargingPolicy": "[u8; 16]",
7777
"RoamingChargingPolicyIndex": "u64",
7878
"RoamingChargingPolicyNextChargingAt": "Moment",
7979
"RoamingChargingPolicyDelayAfterBillingInDays": "u64",
80-
"RoamingChargingPolicyConfig": {
80+
"RoamingChargingPolicySetting": {
8181
"policy_next_charging_at": "Moment",
8282
"policy_delay_after_billing_in_days": "u64"
8383
},

pallets/exchange-rate/src/mock.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -60,12 +60,12 @@ impl frame_system::Config for Test {
6060
type Lookup = IdentityLookup<Self::AccountId>;
6161
type OnKilledAccount = ();
6262
type OnNewAccount = ();
63+
type OnSetCode = ();
6364
type Origin = Origin;
6465
type PalletInfo = PalletInfo;
6566
type SS58Prefix = ();
6667
type SystemWeightInfo = ();
6768
type Version = ();
68-
type OnSetCode = ();
6969
}
7070
parameter_types! {
7171
pub const ExistentialDeposit: u64 = 1;
@@ -77,9 +77,9 @@ impl pallet_balances::Config for Test {
7777
type Event = ();
7878
type ExistentialDeposit = ExistentialDeposit;
7979
type MaxLocks = ();
80-
type WeightInfo = ();
8180
type MaxReserves = ();
8281
type ReserveIdentifier = [u8; 8];
82+
type WeightInfo = ();
8383
}
8484
parameter_types! {
8585
pub const TransactionByteFee: u64 = 1;

pallets/mining/claims/hardware/src/mock.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -60,12 +60,12 @@ impl frame_system::Config for Test {
6060
type Lookup = IdentityLookup<Self::AccountId>;
6161
type OnKilledAccount = ();
6262
type OnNewAccount = ();
63+
type OnSetCode = ();
6364
type Origin = Origin;
6465
type PalletInfo = PalletInfo;
6566
type SS58Prefix = ();
6667
type SystemWeightInfo = ();
6768
type Version = ();
68-
type OnSetCode = ();
6969
}
7070
parameter_types! {
7171
pub const ExistentialDeposit: u64 = 1;
@@ -77,9 +77,9 @@ impl pallet_balances::Config for Test {
7777
type Event = ();
7878
type ExistentialDeposit = ExistentialDeposit;
7979
type MaxLocks = ();
80-
type WeightInfo = ();
8180
type MaxReserves = ();
8281
type ReserveIdentifier = [u8; 8];
82+
type WeightInfo = ();
8383
}
8484
parameter_types! {
8585
pub const TransactionByteFee: u64 = 1;

pallets/mining/claims/token/src/mock.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -60,12 +60,12 @@ impl frame_system::Config for Test {
6060
type Lookup = IdentityLookup<Self::AccountId>;
6161
type OnKilledAccount = ();
6262
type OnNewAccount = ();
63+
type OnSetCode = ();
6364
type Origin = Origin;
6465
type PalletInfo = PalletInfo;
6566
type SS58Prefix = ();
6667
type SystemWeightInfo = ();
6768
type Version = ();
68-
type OnSetCode = ();
6969
}
7070
parameter_types! {
7171
pub const ExistentialDeposit: u64 = 1;
@@ -77,9 +77,9 @@ impl pallet_balances::Config for Test {
7777
type Event = ();
7878
type ExistentialDeposit = ExistentialDeposit;
7979
type MaxLocks = ();
80-
type WeightInfo = ();
8180
type MaxReserves = ();
8281
type ReserveIdentifier = [u8; 8];
82+
type WeightInfo = ();
8383
}
8484
parameter_types! {
8585
pub const TransactionByteFee: u64 = 1;

pallets/mining/eligibility/hardware/src/mock.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -60,12 +60,12 @@ impl frame_system::Config for Test {
6060
type Lookup = IdentityLookup<Self::AccountId>;
6161
type OnKilledAccount = ();
6262
type OnNewAccount = ();
63+
type OnSetCode = ();
6364
type Origin = Origin;
6465
type PalletInfo = PalletInfo;
6566
type SS58Prefix = ();
6667
type SystemWeightInfo = ();
6768
type Version = ();
68-
type OnSetCode = ();
6969
}
7070
parameter_types! {
7171
pub const ExistentialDeposit: u64 = 1;
@@ -77,9 +77,9 @@ impl pallet_balances::Config for Test {
7777
type Event = ();
7878
type ExistentialDeposit = ExistentialDeposit;
7979
type MaxLocks = ();
80-
type WeightInfo = ();
8180
type MaxReserves = ();
8281
type ReserveIdentifier = [u8; 8];
82+
type WeightInfo = ();
8383
}
8484
parameter_types! {
8585
pub const TransactionByteFee: u64 = 1;

pallets/mining/eligibility/token/src/mock.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -60,12 +60,12 @@ impl frame_system::Config for Test {
6060
type Lookup = IdentityLookup<Self::AccountId>;
6161
type OnKilledAccount = ();
6262
type OnNewAccount = ();
63+
type OnSetCode = ();
6364
type Origin = Origin;
6465
type PalletInfo = PalletInfo;
6566
type SS58Prefix = ();
6667
type SystemWeightInfo = ();
6768
type Version = ();
68-
type OnSetCode = ();
6969
}
7070
parameter_types! {
7171
pub const ExistentialDeposit: u64 = 1;
@@ -77,9 +77,9 @@ impl pallet_balances::Config for Test {
7777
type Event = ();
7878
type ExistentialDeposit = ExistentialDeposit;
7979
type MaxLocks = ();
80-
type WeightInfo = ();
8180
type MaxReserves = ();
8281
type ReserveIdentifier = [u8; 8];
82+
type WeightInfo = ();
8383
}
8484
parameter_types! {
8585
pub const TransactionByteFee: u64 = 1;

pallets/mining/rates/hardware/src/mock.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -60,12 +60,12 @@ impl frame_system::Config for Test {
6060
type Lookup = IdentityLookup<Self::AccountId>;
6161
type OnKilledAccount = ();
6262
type OnNewAccount = ();
63+
type OnSetCode = ();
6364
type Origin = Origin;
6465
type PalletInfo = PalletInfo;
6566
type SS58Prefix = ();
6667
type SystemWeightInfo = ();
6768
type Version = ();
68-
type OnSetCode = ();
6969
}
7070
parameter_types! {
7171
pub const ExistentialDeposit: u64 = 1;
@@ -78,9 +78,9 @@ impl pallet_balances::Config for Test {
7878
type Event = ();
7979
type ExistentialDeposit = ExistentialDeposit;
8080
type MaxLocks = ();
81-
type WeightInfo = ();
8281
type MaxReserves = ();
8382
type ReserveIdentifier = [u8; 8];
83+
type WeightInfo = ();
8484
}
8585
parameter_types! {
8686
pub const TransactionByteFee: u64 = 1;

pallets/mining/rates/token/src/mock.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -60,12 +60,12 @@ impl frame_system::Config for Test {
6060
type Lookup = IdentityLookup<Self::AccountId>;
6161
type OnKilledAccount = ();
6262
type OnNewAccount = ();
63+
type OnSetCode = ();
6364
type Origin = Origin;
6465
type PalletInfo = PalletInfo;
6566
type SS58Prefix = ();
6667
type SystemWeightInfo = ();
6768
type Version = ();
68-
type OnSetCode = ();
6969
}
7070
parameter_types! {
7171
pub const ExistentialDeposit: u64 = 1;
@@ -77,9 +77,9 @@ impl pallet_balances::Config for Test {
7777
type Event = ();
7878
type ExistentialDeposit = ExistentialDeposit;
7979
type MaxLocks = ();
80-
type WeightInfo = ();
8180
type MaxReserves = ();
8281
type ReserveIdentifier = [u8; 8];
82+
type WeightInfo = ();
8383
}
8484
parameter_types! {
8585
pub const TransactionByteFee: u64 = 1;

pallets/mining/sampling/hardware/src/mock.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -60,12 +60,12 @@ impl frame_system::Config for Test {
6060
type Lookup = IdentityLookup<Self::AccountId>;
6161
type OnKilledAccount = ();
6262
type OnNewAccount = ();
63+
type OnSetCode = ();
6364
type Origin = Origin;
6465
type PalletInfo = PalletInfo;
6566
type SS58Prefix = ();
6667
type SystemWeightInfo = ();
6768
type Version = ();
68-
type OnSetCode = ();
6969
}
7070
parameter_types! {
7171
pub const ExistentialDeposit: u64 = 1;
@@ -77,9 +77,9 @@ impl pallet_balances::Config for Test {
7777
type Event = ();
7878
type ExistentialDeposit = ExistentialDeposit;
7979
type MaxLocks = ();
80-
type WeightInfo = ();
8180
type MaxReserves = ();
8281
type ReserveIdentifier = [u8; 8];
82+
type WeightInfo = ();
8383
}
8484
parameter_types! {
8585
pub const TransactionByteFee: u64 = 1;

pallets/mining/sampling/token/src/mock.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -60,12 +60,12 @@ impl frame_system::Config for Test {
6060
type Lookup = IdentityLookup<Self::AccountId>;
6161
type OnKilledAccount = ();
6262
type OnNewAccount = ();
63+
type OnSetCode = ();
6364
type Origin = Origin;
6465
type PalletInfo = PalletInfo;
6566
type SS58Prefix = ();
6667
type SystemWeightInfo = ();
6768
type Version = ();
68-
type OnSetCode = ();
6969
}
7070
parameter_types! {
7171
pub const ExistentialDeposit: u64 = 1;
@@ -77,9 +77,9 @@ impl pallet_balances::Config for Test {
7777
type Event = ();
7878
type ExistentialDeposit = ExistentialDeposit;
7979
type MaxLocks = ();
80-
type WeightInfo = ();
8180
type MaxReserves = ();
8281
type ReserveIdentifier = [u8; 8];
82+
type WeightInfo = ();
8383
}
8484
parameter_types! {
8585
pub const TransactionByteFee: u64 = 1;

pallets/mining/setting/hardware/src/mock.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -60,12 +60,12 @@ impl frame_system::Config for Test {
6060
type Lookup = IdentityLookup<Self::AccountId>;
6161
type OnKilledAccount = ();
6262
type OnNewAccount = ();
63+
type OnSetCode = ();
6364
type Origin = Origin;
6465
type PalletInfo = PalletInfo;
6566
type SS58Prefix = ();
6667
type SystemWeightInfo = ();
6768
type Version = ();
68-
type OnSetCode = ();
6969
}
7070
parameter_types! {
7171
pub const ExistentialDeposit: u64 = 1;
@@ -77,9 +77,9 @@ impl pallet_balances::Config for Test {
7777
type Event = ();
7878
type ExistentialDeposit = ExistentialDeposit;
7979
type MaxLocks = ();
80-
type WeightInfo = ();
8180
type MaxReserves = ();
8281
type ReserveIdentifier = [u8; 8];
82+
type WeightInfo = ();
8383
}
8484
parameter_types! {
8585
pub const TransactionByteFee: u64 = 1;

pallets/mining/setting/token/src/mock.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -60,12 +60,12 @@ impl frame_system::Config for Test {
6060
type Lookup = IdentityLookup<Self::AccountId>;
6161
type OnKilledAccount = ();
6262
type OnNewAccount = ();
63+
type OnSetCode = ();
6364
type Origin = Origin;
6465
type PalletInfo = PalletInfo;
6566
type SS58Prefix = ();
6667
type SystemWeightInfo = ();
6768
type Version = ();
68-
type OnSetCode = ();
6969
}
7070
parameter_types! {
7171
pub const ExistentialDeposit: u64 = 1;
@@ -77,9 +77,9 @@ impl pallet_balances::Config for Test {
7777
type Event = ();
7878
type ExistentialDeposit = ExistentialDeposit;
7979
type MaxLocks = ();
80-
type WeightInfo = ();
8180
type MaxReserves = ();
8281
type ReserveIdentifier = [u8; 8];
82+
type WeightInfo = ();
8383
}
8484
parameter_types! {
8585
pub const TransactionByteFee: u64 = 1;

pallets/roaming/roaming-accounting-policies/src/mock.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -60,12 +60,12 @@ impl frame_system::Config for Test {
6060
type Lookup = IdentityLookup<Self::AccountId>;
6161
type OnKilledAccount = ();
6262
type OnNewAccount = ();
63+
type OnSetCode = ();
6364
type Origin = Origin;
6465
type PalletInfo = PalletInfo;
6566
type SS58Prefix = ();
6667
type SystemWeightInfo = ();
6768
type Version = ();
68-
type OnSetCode = ();
6969
}
7070
parameter_types! {
7171
pub const ExistentialDeposit: u64 = 1;
@@ -77,9 +77,9 @@ impl pallet_balances::Config for Test {
7777
type Event = ();
7878
type ExistentialDeposit = ExistentialDeposit;
7979
type MaxLocks = ();
80-
type WeightInfo = ();
8180
type MaxReserves = ();
8281
type ReserveIdentifier = [u8; 8];
82+
type WeightInfo = ();
8383
}
8484
parameter_types! {
8585
pub const TransactionByteFee: u64 = 1;

pallets/roaming/roaming-agreement-policies/src/mock.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -60,12 +60,12 @@ impl frame_system::Config for Test {
6060
type Lookup = IdentityLookup<Self::AccountId>;
6161
type OnKilledAccount = ();
6262
type OnNewAccount = ();
63+
type OnSetCode = ();
6364
type Origin = Origin;
6465
type PalletInfo = PalletInfo;
6566
type SS58Prefix = ();
6667
type SystemWeightInfo = ();
6768
type Version = ();
68-
type OnSetCode = ();
6969
}
7070
parameter_types! {
7171
pub const ExistentialDeposit: u64 = 1;
@@ -77,9 +77,9 @@ impl pallet_balances::Config for Test {
7777
type Event = ();
7878
type ExistentialDeposit = ExistentialDeposit;
7979
type MaxLocks = ();
80-
type WeightInfo = ();
8180
type MaxReserves = ();
8281
type ReserveIdentifier = [u8; 8];
82+
type WeightInfo = ();
8383
}
8484
parameter_types! {
8585
pub const TransactionByteFee: u64 = 1;

0 commit comments

Comments
 (0)