1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
pub use darwinia_balances::{Instance1 as RingInstance, Instance2 as KtonInstance};
use crate::*;
use darwinia_balances::Config;
#[cfg(feature = "runtime-benchmarks")]
frame_support::parameter_types! {
pub const ExistentialDeposit: Balance = 1;
}
#[cfg(not(feature = "runtime-benchmarks"))]
frame_support::parameter_types! {
pub const ExistentialDeposit: Balance = 0;
}
frame_support::parameter_types! {
pub const MaxLocks: u32 = 50;
pub const MaxReserves: u32 = 50;
}
impl Config<RingInstance> for Runtime {
type AccountStore = System;
type Balance = Balance;
type BalanceInfo = AccountData<Balance>;
type DustRemoval = ();
type Event = Event;
type ExistentialDeposit = ExistentialDeposit;
type MaxLocks = MaxLocks;
type MaxReserves = MaxReserves;
type ReserveIdentifier = [u8; 8];
type WeightInfo = ();
}
impl Config<KtonInstance> for Runtime {
type AccountStore = System;
type Balance = Balance;
type BalanceInfo = AccountData<Balance>;
type DustRemoval = ();
type Event = Event;
type ExistentialDeposit = ExistentialDeposit;
type MaxLocks = MaxLocks;
type MaxReserves = MaxReserves;
type ReserveIdentifier = [u8; 8];
type WeightInfo = ();
}