mirror of
https://github.com/pezkuwichain/pezkuwi-runtime-templates.git
synced 2026-06-11 15:21:03 +00:00
[10] updates with multisig introduction
This commit is contained in:
@@ -1,12 +0,0 @@
|
||||
[package]
|
||||
name = "common"
|
||||
version = "0.1.0"
|
||||
authors = ["Anonymous"]
|
||||
edition.workspace = true
|
||||
description = "Logic which is common to all runtimes"
|
||||
license = "Apache-2.0"
|
||||
|
||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||
|
||||
[dependencies]
|
||||
polkadot-core-primitives = { git = "https://github.com/paritytech/polkadot-sdk", branch = "release-polkadot-v1.3.0", default-features = false }
|
||||
@@ -1,16 +0,0 @@
|
||||
pub use currency::*;
|
||||
|
||||
mod currency {
|
||||
use polkadot_core_primitives::Balance;
|
||||
// Unit = the base number of indivisible units for balances
|
||||
pub const UNIT: Balance = 1_000_000_000_000;
|
||||
pub const MILLIUNIT: Balance = 1_000_000_000;
|
||||
pub const MICROUNIT: Balance = 1_000_000;
|
||||
|
||||
/// The existential deposit. Set to 1/10 of the Connected Relay Chain.
|
||||
pub const EXISTENTIAL_DEPOSIT: Balance = MILLIUNIT;
|
||||
|
||||
pub const fn deposit(items: u32, bytes: u32) -> Balance {
|
||||
(items as Balance * 20 * UNIT + bytes as Balance * 100 * MILLIUNIT) / 100
|
||||
}
|
||||
}
|
||||
+7
-4
@@ -7,7 +7,6 @@
|
||||
include!(concat!(env!("OUT_DIR"), "/wasm_binary.rs"));
|
||||
|
||||
pub mod constants;
|
||||
use constants::currency::*;
|
||||
mod weights;
|
||||
pub mod xcm_config;
|
||||
|
||||
@@ -378,9 +377,13 @@ impl InstanceFilter<RuntimeCall> for ProxyType {
|
||||
match self {
|
||||
ProxyType::Any => true,
|
||||
ProxyType::NonTransfer => !matches!(c, RuntimeCall::Balances { .. }),
|
||||
ProxyType::CancelProxy =>
|
||||
matches!(c, RuntimeCall::Proxy(pallet_proxy::Call::reject_announcement { .. })),
|
||||
ProxyType::Collator => matches!(c, RuntimeCall::CollatorSelection { .. }),
|
||||
ProxyType::CancelProxy => matches!(
|
||||
c,
|
||||
RuntimeCall::Proxy(pallet_proxy::Call::reject_announcement { .. })
|
||||
| RuntimeCall::Multisig { .. }
|
||||
),
|
||||
ProxyType::Collator =>
|
||||
matches!(c, RuntimeCall::CollatorSelection { .. } | RuntimeCall::Multisig { .. }),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user