[10] updates with multisig introduction

This commit is contained in:
Nikita Khateev
2023-11-20 18:18:59 +04:00
parent 5e4cef4117
commit a2ef39fb78
3 changed files with 7 additions and 32 deletions
-12
View File
@@ -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 }
-16
View File
@@ -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
View File
@@ -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 { .. }),
}
}
}