difftreelog
feat set default sponsoring rate limit for contracts
in: master
1 file changed
runtime/src/lib.rsdiffbeforeafterboth154 transaction_version: 1,154 transaction_version: 1,155};155};156156157pub const MILLISECS_PER_BLOCK: u64 = 1200;157pub const MILLISECS_PER_BLOCK: u64 = 12000;158158159pub const SLOT_DURATION: u64 = MILLISECS_PER_BLOCK;159pub const SLOT_DURATION: u64 = MILLISECS_PER_BLOCK;160160163pub const HOURS: BlockNumber = MINUTES * 60;163pub const HOURS: BlockNumber = MINUTES * 60;164pub const DAYS: BlockNumber = HOURS * 24;164pub const DAYS: BlockNumber = HOURS * 24;165166parameter_types! {167 pub const DefaultSponsoringRateLimit: BlockNumber = 1 * DAYS;168}165169166#[derive(codec::Encode, codec::Decode)]170#[derive(codec::Encode, codec::Decode)]167pub enum XCMPMessage<XAccountId, XBalance> {171pub enum XCMPMessage<XAccountId, XBalance> {757761758impl pallet_nft_charge_transaction::Config for Runtime {}762impl pallet_nft_charge_transaction::Config for Runtime {}759763760// impl pallet_contract_helpers::Config for Runtime {}764// impl pallet_contract_helpers::Config for Runtime {765// type DefaultSponsoringRateLimit = DefaultSponsoringRateLimit;766// }761767762parameter_types! {768parameter_types! {763 // 0x842899ECF380553E8a4de75bF534cdf6fBF64049769 // 0x842899ECF380553E8a4de75bF534cdf6fBF64049768774769impl pallet_evm_contract_helpers::Config for Runtime {775impl pallet_evm_contract_helpers::Config for Runtime {770 type ContractAddress = HelpersContractAddress;776 type ContractAddress = HelpersContractAddress;777 type DefaultSponsoringRateLimit = DefaultSponsoringRateLimit;771}778}772779773construct_runtime!(780construct_runtime!(