Skip to content

Commit

Permalink
Fixed test-cases
Browse files Browse the repository at this point in the history
  • Loading branch information
Ayush committed Aug 11, 2021
1 parent 93448cf commit aeb5687
Show file tree
Hide file tree
Showing 30 changed files with 516 additions and 484 deletions.
14 changes: 7 additions & 7 deletions custom_types.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"Keys": "SessionKeys2",
"Address": "AccountId",
"LookupSource": "AccountId",
"Address": "AccountId",
"LookupSource": "AccountId",
"RoamingOperator": "[u8; 16]",
"RoamingOperatorIndex": "u64",
"RoamingNetwork": "[u8; 16]",
Expand All @@ -24,7 +24,7 @@
"RoamingAccountingPolicyType": "Text",
"RoamingAccountingPolicyUplinkFeeFactor": "u32",
"RoamingAccountingPolicyDownlinkFeeFactor": "u32",
"RoamingAccountingPolicyConfig": {
"RoamingAccountingPolicySetting": {
"policy_type": "Text",
"subscription_fee": "Balance",
"uplink_fee_factor": "u32",
Expand All @@ -34,7 +34,7 @@
"RoamingAgreementPolicyIndex": "u64",
"RoamingAgreementPolicyActivationType": "Text",
"RoamingAgreementPolicyExpiry": "Moment",
"RoamingAgreementPolicyConfig": {
"RoamingAgreementPolicySetting": {
"policy_activation_type": "Text",
"policy_expiry": "u64"
},
Expand All @@ -46,7 +46,7 @@
"RoamingDeviceProfileDevEUI": "Text",
"RoamingDeviceProfileJoinEUI": "Text",
"RoamingDeviceProfileVendorID": "Text",
"RoamingDeviceProfileConfig": {
"RoamingDeviceProfileSetting": {
"device_profile_devaddr": "Text",
"device_profile_deveui": "Text",
"device_profile_joineui": "Text",
Expand All @@ -69,15 +69,15 @@
"RoamingBillingPolicyIndex": "u64",
"RoamingBillingPolicyNextBillingAt": "Moment",
"RoamingBillingPolicyFrequencyInDays": "u64",
"RoamingBillingPolicyConfig": {
"RoamingBillingPolicySetting": {
"policy_next_billing_at": "Moment",
"policy_frequency_in_days": "u64"
},
"RoamingChargingPolicy": "[u8; 16]",
"RoamingChargingPolicyIndex": "u64",
"RoamingChargingPolicyNextChargingAt": "Moment",
"RoamingChargingPolicyDelayAfterBillingInDays": "u64",
"RoamingChargingPolicyConfig": {
"RoamingChargingPolicySetting": {
"policy_next_charging_at": "Moment",
"policy_delay_after_billing_in_days": "u64"
},
Expand Down
4 changes: 2 additions & 2 deletions pallets/exchange-rate/src/mock.rs
Original file line number Diff line number Diff line change
Expand Up @@ -60,12 +60,12 @@ impl frame_system::Config for Test {
type Lookup = IdentityLookup<Self::AccountId>;
type OnKilledAccount = ();
type OnNewAccount = ();
type OnSetCode = ();
type Origin = Origin;
type PalletInfo = PalletInfo;
type SS58Prefix = ();
type SystemWeightInfo = ();
type Version = ();
type OnSetCode = ();
}
parameter_types! {
pub const ExistentialDeposit: u64 = 1;
Expand All @@ -77,9 +77,9 @@ impl pallet_balances::Config for Test {
type Event = ();
type ExistentialDeposit = ExistentialDeposit;
type MaxLocks = ();
type WeightInfo = ();
type MaxReserves = ();
type ReserveIdentifier = [u8; 8];
type WeightInfo = ();
}
parameter_types! {
pub const TransactionByteFee: u64 = 1;
Expand Down
4 changes: 2 additions & 2 deletions pallets/mining/claims/hardware/src/mock.rs
Original file line number Diff line number Diff line change
Expand Up @@ -60,12 +60,12 @@ impl frame_system::Config for Test {
type Lookup = IdentityLookup<Self::AccountId>;
type OnKilledAccount = ();
type OnNewAccount = ();
type OnSetCode = ();
type Origin = Origin;
type PalletInfo = PalletInfo;
type SS58Prefix = ();
type SystemWeightInfo = ();
type Version = ();
type OnSetCode = ();
}
parameter_types! {
pub const ExistentialDeposit: u64 = 1;
Expand All @@ -77,9 +77,9 @@ impl pallet_balances::Config for Test {
type Event = ();
type ExistentialDeposit = ExistentialDeposit;
type MaxLocks = ();
type WeightInfo = ();
type MaxReserves = ();
type ReserveIdentifier = [u8; 8];
type WeightInfo = ();
}
parameter_types! {
pub const TransactionByteFee: u64 = 1;
Expand Down
4 changes: 2 additions & 2 deletions pallets/mining/claims/token/src/mock.rs
Original file line number Diff line number Diff line change
Expand Up @@ -60,12 +60,12 @@ impl frame_system::Config for Test {
type Lookup = IdentityLookup<Self::AccountId>;
type OnKilledAccount = ();
type OnNewAccount = ();
type OnSetCode = ();
type Origin = Origin;
type PalletInfo = PalletInfo;
type SS58Prefix = ();
type SystemWeightInfo = ();
type Version = ();
type OnSetCode = ();
}
parameter_types! {
pub const ExistentialDeposit: u64 = 1;
Expand All @@ -77,9 +77,9 @@ impl pallet_balances::Config for Test {
type Event = ();
type ExistentialDeposit = ExistentialDeposit;
type MaxLocks = ();
type WeightInfo = ();
type MaxReserves = ();
type ReserveIdentifier = [u8; 8];
type WeightInfo = ();
}
parameter_types! {
pub const TransactionByteFee: u64 = 1;
Expand Down
4 changes: 2 additions & 2 deletions pallets/mining/eligibility/hardware/src/mock.rs
Original file line number Diff line number Diff line change
Expand Up @@ -60,12 +60,12 @@ impl frame_system::Config for Test {
type Lookup = IdentityLookup<Self::AccountId>;
type OnKilledAccount = ();
type OnNewAccount = ();
type OnSetCode = ();
type Origin = Origin;
type PalletInfo = PalletInfo;
type SS58Prefix = ();
type SystemWeightInfo = ();
type Version = ();
type OnSetCode = ();
}
parameter_types! {
pub const ExistentialDeposit: u64 = 1;
Expand All @@ -77,9 +77,9 @@ impl pallet_balances::Config for Test {
type Event = ();
type ExistentialDeposit = ExistentialDeposit;
type MaxLocks = ();
type WeightInfo = ();
type MaxReserves = ();
type ReserveIdentifier = [u8; 8];
type WeightInfo = ();
}
parameter_types! {
pub const TransactionByteFee: u64 = 1;
Expand Down
4 changes: 2 additions & 2 deletions pallets/mining/eligibility/token/src/mock.rs
Original file line number Diff line number Diff line change
Expand Up @@ -60,12 +60,12 @@ impl frame_system::Config for Test {
type Lookup = IdentityLookup<Self::AccountId>;
type OnKilledAccount = ();
type OnNewAccount = ();
type OnSetCode = ();
type Origin = Origin;
type PalletInfo = PalletInfo;
type SS58Prefix = ();
type SystemWeightInfo = ();
type Version = ();
type OnSetCode = ();
}
parameter_types! {
pub const ExistentialDeposit: u64 = 1;
Expand All @@ -77,9 +77,9 @@ impl pallet_balances::Config for Test {
type Event = ();
type ExistentialDeposit = ExistentialDeposit;
type MaxLocks = ();
type WeightInfo = ();
type MaxReserves = ();
type ReserveIdentifier = [u8; 8];
type WeightInfo = ();
}
parameter_types! {
pub const TransactionByteFee: u64 = 1;
Expand Down
4 changes: 2 additions & 2 deletions pallets/mining/rates/hardware/src/mock.rs
Original file line number Diff line number Diff line change
Expand Up @@ -60,12 +60,12 @@ impl frame_system::Config for Test {
type Lookup = IdentityLookup<Self::AccountId>;
type OnKilledAccount = ();
type OnNewAccount = ();
type OnSetCode = ();
type Origin = Origin;
type PalletInfo = PalletInfo;
type SS58Prefix = ();
type SystemWeightInfo = ();
type Version = ();
type OnSetCode = ();
}
parameter_types! {
pub const ExistentialDeposit: u64 = 1;
Expand All @@ -78,9 +78,9 @@ impl pallet_balances::Config for Test {
type Event = ();
type ExistentialDeposit = ExistentialDeposit;
type MaxLocks = ();
type WeightInfo = ();
type MaxReserves = ();
type ReserveIdentifier = [u8; 8];
type WeightInfo = ();
}
parameter_types! {
pub const TransactionByteFee: u64 = 1;
Expand Down
4 changes: 2 additions & 2 deletions pallets/mining/rates/token/src/mock.rs
Original file line number Diff line number Diff line change
Expand Up @@ -60,12 +60,12 @@ impl frame_system::Config for Test {
type Lookup = IdentityLookup<Self::AccountId>;
type OnKilledAccount = ();
type OnNewAccount = ();
type OnSetCode = ();
type Origin = Origin;
type PalletInfo = PalletInfo;
type SS58Prefix = ();
type SystemWeightInfo = ();
type Version = ();
type OnSetCode = ();
}
parameter_types! {
pub const ExistentialDeposit: u64 = 1;
Expand All @@ -77,9 +77,9 @@ impl pallet_balances::Config for Test {
type Event = ();
type ExistentialDeposit = ExistentialDeposit;
type MaxLocks = ();
type WeightInfo = ();
type MaxReserves = ();
type ReserveIdentifier = [u8; 8];
type WeightInfo = ();
}
parameter_types! {
pub const TransactionByteFee: u64 = 1;
Expand Down
4 changes: 2 additions & 2 deletions pallets/mining/sampling/hardware/src/mock.rs
Original file line number Diff line number Diff line change
Expand Up @@ -60,12 +60,12 @@ impl frame_system::Config for Test {
type Lookup = IdentityLookup<Self::AccountId>;
type OnKilledAccount = ();
type OnNewAccount = ();
type OnSetCode = ();
type Origin = Origin;
type PalletInfo = PalletInfo;
type SS58Prefix = ();
type SystemWeightInfo = ();
type Version = ();
type OnSetCode = ();
}
parameter_types! {
pub const ExistentialDeposit: u64 = 1;
Expand All @@ -77,9 +77,9 @@ impl pallet_balances::Config for Test {
type Event = ();
type ExistentialDeposit = ExistentialDeposit;
type MaxLocks = ();
type WeightInfo = ();
type MaxReserves = ();
type ReserveIdentifier = [u8; 8];
type WeightInfo = ();
}
parameter_types! {
pub const TransactionByteFee: u64 = 1;
Expand Down
4 changes: 2 additions & 2 deletions pallets/mining/sampling/token/src/mock.rs
Original file line number Diff line number Diff line change
Expand Up @@ -60,12 +60,12 @@ impl frame_system::Config for Test {
type Lookup = IdentityLookup<Self::AccountId>;
type OnKilledAccount = ();
type OnNewAccount = ();
type OnSetCode = ();
type Origin = Origin;
type PalletInfo = PalletInfo;
type SS58Prefix = ();
type SystemWeightInfo = ();
type Version = ();
type OnSetCode = ();
}
parameter_types! {
pub const ExistentialDeposit: u64 = 1;
Expand All @@ -77,9 +77,9 @@ impl pallet_balances::Config for Test {
type Event = ();
type ExistentialDeposit = ExistentialDeposit;
type MaxLocks = ();
type WeightInfo = ();
type MaxReserves = ();
type ReserveIdentifier = [u8; 8];
type WeightInfo = ();
}
parameter_types! {
pub const TransactionByteFee: u64 = 1;
Expand Down
4 changes: 2 additions & 2 deletions pallets/mining/setting/hardware/src/mock.rs
Original file line number Diff line number Diff line change
Expand Up @@ -60,12 +60,12 @@ impl frame_system::Config for Test {
type Lookup = IdentityLookup<Self::AccountId>;
type OnKilledAccount = ();
type OnNewAccount = ();
type OnSetCode = ();
type Origin = Origin;
type PalletInfo = PalletInfo;
type SS58Prefix = ();
type SystemWeightInfo = ();
type Version = ();
type OnSetCode = ();
}
parameter_types! {
pub const ExistentialDeposit: u64 = 1;
Expand All @@ -77,9 +77,9 @@ impl pallet_balances::Config for Test {
type Event = ();
type ExistentialDeposit = ExistentialDeposit;
type MaxLocks = ();
type WeightInfo = ();
type MaxReserves = ();
type ReserveIdentifier = [u8; 8];
type WeightInfo = ();
}
parameter_types! {
pub const TransactionByteFee: u64 = 1;
Expand Down
4 changes: 2 additions & 2 deletions pallets/mining/setting/token/src/mock.rs
Original file line number Diff line number Diff line change
Expand Up @@ -60,12 +60,12 @@ impl frame_system::Config for Test {
type Lookup = IdentityLookup<Self::AccountId>;
type OnKilledAccount = ();
type OnNewAccount = ();
type OnSetCode = ();
type Origin = Origin;
type PalletInfo = PalletInfo;
type SS58Prefix = ();
type SystemWeightInfo = ();
type Version = ();
type OnSetCode = ();
}
parameter_types! {
pub const ExistentialDeposit: u64 = 1;
Expand All @@ -77,9 +77,9 @@ impl pallet_balances::Config for Test {
type Event = ();
type ExistentialDeposit = ExistentialDeposit;
type MaxLocks = ();
type WeightInfo = ();
type MaxReserves = ();
type ReserveIdentifier = [u8; 8];
type WeightInfo = ();
}
parameter_types! {
pub const TransactionByteFee: u64 = 1;
Expand Down
4 changes: 2 additions & 2 deletions pallets/roaming/roaming-accounting-policies/src/mock.rs
Original file line number Diff line number Diff line change
Expand Up @@ -60,12 +60,12 @@ impl frame_system::Config for Test {
type Lookup = IdentityLookup<Self::AccountId>;
type OnKilledAccount = ();
type OnNewAccount = ();
type OnSetCode = ();
type Origin = Origin;
type PalletInfo = PalletInfo;
type SS58Prefix = ();
type SystemWeightInfo = ();
type Version = ();
type OnSetCode = ();
}
parameter_types! {
pub const ExistentialDeposit: u64 = 1;
Expand All @@ -77,9 +77,9 @@ impl pallet_balances::Config for Test {
type Event = ();
type ExistentialDeposit = ExistentialDeposit;
type MaxLocks = ();
type WeightInfo = ();
type MaxReserves = ();
type ReserveIdentifier = [u8; 8];
type WeightInfo = ();
}
parameter_types! {
pub const TransactionByteFee: u64 = 1;
Expand Down
4 changes: 2 additions & 2 deletions pallets/roaming/roaming-agreement-policies/src/mock.rs
Original file line number Diff line number Diff line change
Expand Up @@ -60,12 +60,12 @@ impl frame_system::Config for Test {
type Lookup = IdentityLookup<Self::AccountId>;
type OnKilledAccount = ();
type OnNewAccount = ();
type OnSetCode = ();
type Origin = Origin;
type PalletInfo = PalletInfo;
type SS58Prefix = ();
type SystemWeightInfo = ();
type Version = ();
type OnSetCode = ();
}
parameter_types! {
pub const ExistentialDeposit: u64 = 1;
Expand All @@ -77,9 +77,9 @@ impl pallet_balances::Config for Test {
type Event = ();
type ExistentialDeposit = ExistentialDeposit;
type MaxLocks = ();
type WeightInfo = ();
type MaxReserves = ();
type ReserveIdentifier = [u8; 8];
type WeightInfo = ();
}
parameter_types! {
pub const TransactionByteFee: u64 = 1;
Expand Down
Loading

0 comments on commit aeb5687

Please sign in to comment.