1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// --- paritytech ---
use pallet_preimage::Config;
// --- darwinia-network ---
use crate::*;
use drml_primitives::*;

frame_support::parameter_types! {
	pub const PreimageMaxSize: u32 = 4096 * 1024;
	pub const PreimageBaseDeposit: Balance = COIN;
	// One cent: $10,000 / MB
	pub const PreimageByteDeposit: Balance = 10 * MILLI;
}

impl Config for Runtime {
	type BaseDeposit = PreimageBaseDeposit;
	type ByteDeposit = PreimageByteDeposit;
	type Currency = Balances;
	type Event = Event;
	type ManagerOrigin = Root;
	type MaxSize = PreimageMaxSize;
	type WeightInfo = ();
}