mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-30 18:41:03 +00:00
Enable permissionless asset creation (#476)
* Enable permissionless asset creation * Fixes * Fixes * Update polkadot-parachains/statemine-runtime/src/lib.rs Co-authored-by: Joshy Orndorff <JoshOrndorff@users.noreply.github.com> * update Cargo.lock Co-authored-by: Alexander Popiak <alexander.popiak@parity.io> Co-authored-by: Joshy Orndorff <JoshOrndorff@users.noreply.github.com> Co-authored-by: joepetrowski <joe@parity.io>
This commit is contained in:
Generated
+1
-1
@@ -10794,7 +10794,7 @@ checksum = "a8f112729512f8e442d81f95a8a7ddf2b7c6b8a1a6f509a95864142b30cab2d3"
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "statemine-runtime"
|
name = "statemine-runtime"
|
||||||
version = "1.0.0"
|
version = "2.0.0"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"cumulus-pallet-aura-ext",
|
"cumulus-pallet-aura-ext",
|
||||||
"cumulus-pallet-dmp-queue",
|
"cumulus-pallet-dmp-queue",
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
[package]
|
[package]
|
||||||
name = 'statemine-runtime'
|
name = 'statemine-runtime'
|
||||||
version = '1.0.0'
|
version = '2.0.0'
|
||||||
authors = ["Parity Technologies <admin@parity.io>"]
|
authors = ["Parity Technologies <admin@parity.io>"]
|
||||||
edition = '2018'
|
edition = '2018'
|
||||||
description = "Kusama variant of Statemint parachain runtime"
|
description = "Kusama variant of Statemint parachain runtime"
|
||||||
|
|||||||
@@ -103,8 +103,8 @@ pub const VERSION: RuntimeVersion = RuntimeVersion {
|
|||||||
spec_name: create_runtime_str!("statemine"),
|
spec_name: create_runtime_str!("statemine"),
|
||||||
impl_name: create_runtime_str!("statemine"),
|
impl_name: create_runtime_str!("statemine"),
|
||||||
authoring_version: 1,
|
authoring_version: 1,
|
||||||
spec_version: 1,
|
spec_version: 2,
|
||||||
impl_version: 1,
|
impl_version: 0,
|
||||||
apis: RUNTIME_API_VERSIONS,
|
apis: RUNTIME_API_VERSIONS,
|
||||||
transaction_version: 1,
|
transaction_version: 1,
|
||||||
};
|
};
|
||||||
@@ -143,16 +143,9 @@ parameter_types! {
|
|||||||
pub const SS58Prefix: u8 = 2;
|
pub const SS58Prefix: u8 = 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Don't allow permission-less asset creation.
|
|
||||||
pub struct BaseFilter;
|
pub struct BaseFilter;
|
||||||
impl Filter<Call> for BaseFilter {
|
impl Filter<Call> for BaseFilter {
|
||||||
fn filter(c: &Call) -> bool {
|
fn filter(_c: &Call) -> bool { true }
|
||||||
!matches!(
|
|
||||||
c,
|
|
||||||
Call::Assets(pallet_assets::Call::create(..))
|
|
||||||
| Call::Uniques(pallet_uniques::Call::create(..))
|
|
||||||
)
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Configure FRAME pallets to include in runtime.
|
// Configure FRAME pallets to include in runtime.
|
||||||
|
|||||||
Reference in New Issue
Block a user