Companion PR for contracts delegate deposit PR (#2913)

* Companion PR for https://github.com/paritytech/substrate/pull/14079

* update lockfile for {"substrate", "polkadot"}

---------

Co-authored-by: parity-processbot <>
This commit is contained in:
PG Herveouandparity-processbot authored and GitHub committed 2023-07-26 12:41:48 +00:00
1 parent c1b95feaac
commit 4233427717
2 files changed
+200 -196

No files matched your search

+196 -196
View File
File diff suppressed because it is too large. Load diff
@@ -10,6 +10,7 @@ use pallet_contracts::{
migration::v12, weights::SubstrateWeight, Config, DebugInfo, DefaultAddressGenerator, Frame,
Schedule,
};
use sp_runtime::Perbill;
pub use parachains_common::AVERAGE_ON_INITIALIZE_RATIO;
@@ -22,6 +23,7 @@ parameter_types! {
pub const DepositPerByte: Balance = deposit(0, 1);
pub const DefaultDepositLimit: Balance = deposit(1024, 1024 * 1024);
pub MySchedule: Schedule<Runtime> = Default::default();
pub CodeHashLockupDepositPercent: Perbill = Perbill::from_percent(30);
}
impl Config for Runtime {
@@ -50,5 +52,7 @@ impl Config for Runtime {
type MaxStorageKeyLen = ConstU32<128>;
type UnsafeUnstableInterface = ConstBool<true>;
type MaxDebugBufferLen = ConstU32<{ 2 * 1024 * 1024 }>;
type MaxDelegateDependencies = ConstU32<32>;
type CodeHashLockupDepositPercent = CodeHashLockupDepositPercent;
type Migrations = (v12::Migration<Runtime>,);
}