Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions runtime/devnet/src/config/contracts.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

use frame_support::{
parameter_types,
traits::{ConstBool, ConstU32, ConstU64, Nothing, Randomness},

Check warning on line 5 in runtime/devnet/src/config/contracts.rs

View workflow job for this annotation

GitHub Actions / clippy

unused import: `ConstU64`

warning: unused import: `ConstU64` --> runtime/devnet/src/config/contracts.rs:5:32 | 5 | traits::{ConstBool, ConstU32, ConstU64, Nothing, Randomness}, | ^^^^^^^^ | = note: `#[warn(unused_imports)]` on by default
};
use frame_system::{pallet_prelude::BlockNumberFor, EnsureSigned};
use pop_runtime_common::UNIT;
Expand Down Expand Up @@ -38,11 +38,13 @@
const ETH: u128 = 1_000_000_000_000_000_000;

parameter_types! {
pub ChainId: u64 = u32::from(crate::genesis::PARA_ID) as u64;
pub const DepositPerItem: Balance = deposit(1, 0);
pub const DepositPerByte: Balance = deposit(0, 1);
pub Schedule: pallet_contracts::Schedule<Runtime> = schedule::<Runtime>();
pub const DefaultDepositLimit: Balance = deposit(1024, 1024 * 1024);
pub const CodeHashLockupDepositPercent: Perbill = Perbill::from_percent(0);
// 30 percent of storage deposit held for using a code hash.
pub const CodeHashLockupDepositPercent: Perbill = Perbill::from_percent(30);
pub const NativeToEthRatio: u32 = (ETH/UNIT) as u32;
}

Expand Down Expand Up @@ -93,9 +95,7 @@
// No runtime dispatchables are callable from contracts.
type CallFilter = Nothing;
type ChainExtension = ();
// EVM chain id. 3,395 is a unique ID still.
type ChainId = ConstU64<3_395>;
// 30 percent of storage deposit held for using a code hash.
type ChainId = ChainId;
type CodeHashLockupDepositPercent = CodeHashLockupDepositPercent;
type Currency = Balances;
type Debug = ();
Expand Down
Loading