Named reserve companion (#3176)

* fix build

* fix tests

* update

* fix

* update

* Bump

Co-authored-by: Bryan Chen <xlchen1291@gmail.com>
This commit is contained in:
Gavin Wood
2021-06-04 11:17:59 +02:00
committed by GitHub
parent 8223d3ae71
commit 3d6df31cbe
15 changed files with 208 additions and 164 deletions
+3
View File
@@ -676,6 +676,7 @@ mod tests {
parameter_types! {
pub const ExistentialDeposit: u64 = 1;
pub const MaxReserves: u32 = 50;
}
impl pallet_balances::Config for Test {
@@ -686,6 +687,8 @@ mod tests {
type AccountStore = System;
type WeightInfo = ();
type MaxLocks = ();
type MaxReserves = MaxReserves;
type ReserveIdentifier = [u8; 8];
}
#[derive(Eq, PartialEq, Ord, PartialOrd, Clone, Copy, Debug)]
+2
View File
@@ -671,6 +671,8 @@ mod tests {
type ExistentialDeposit = ExistentialDeposit;
type AccountStore = System;
type MaxLocks = ();
type MaxReserves = ();
type ReserveIdentifier = [u8; 8];
type WeightInfo = ();
}
+2
View File
@@ -821,6 +821,8 @@ mod tests {
type ExistentialDeposit = ExistentialDeposit;
type AccountStore = System;
type MaxLocks = ();
type MaxReserves = ();
type ReserveIdentifier = [u8; 8];
type WeightInfo = ();
}
+2
View File
@@ -138,6 +138,8 @@ mod tests {
type ExistentialDeposit = ();
type AccountStore = System;
type MaxLocks = ();
type MaxReserves = ();
type ReserveIdentifier = [u8; 8];
type WeightInfo = ();
}
@@ -144,6 +144,7 @@ impl pallet_timestamp::Config for Test {
parameter_types! {
pub static ExistentialDeposit: Balance = 1;
pub const MaxReserves: u32 = 50;
}
impl pallet_balances::Config for Test {
@@ -154,6 +155,8 @@ impl pallet_balances::Config for Test {
type ExistentialDeposit = ExistentialDeposit;
type AccountStore = System;
type WeightInfo = ();
type MaxReserves = MaxReserves;
type ReserveIdentifier = [u8; 8];
}
impl configuration::Config for Test { }
@@ -628,6 +628,8 @@ mod tests {
type ExistentialDeposit = ExistentialDeposit;
type AccountStore = System;
type MaxLocks = ();
type MaxReserves = ();
type ReserveIdentifier = [u8; 8];
type WeightInfo = ();
}
+2
View File
@@ -493,6 +493,8 @@ mod tests {
type ExistentialDeposit = ExistentialDeposit;
type AccountStore = System;
type MaxLocks = ();
type MaxReserves = ();
type ReserveIdentifier = [u8; 8];
type WeightInfo = ();
}
+2
View File
@@ -496,6 +496,8 @@ mod tests {
type AccountStore = System;
type WeightInfo = ();
type MaxLocks = ();
type MaxReserves = ();
type ReserveIdentifier = [u8; 8];
}
parameter_types! {