Statemine primitives (#1625)

* Statemine primitives

* ref issue in TODO

* fix TODO
This commit is contained in:
Svyatoslav Nikolsky
2022-11-08 17:43:29 +03:00
committed by Bastian Köcher
parent 2c0b6b73e0
commit 3e00c5c022
21 changed files with 305 additions and 77 deletions
@@ -0,0 +1,24 @@
[package]
name = "bp-statemine"
description = "Primitives of Statemine runtime."
version = "0.1.0"
authors = ["Parity Technologies <admin@parity.io>"]
edition = "2021"
license = "GPL-3.0-or-later WITH Classpath-exception-2.0"
[dependencies]
# Bridge Dependencies
bp-polkadot-core = { path = "../polkadot-core", default-features = false }
# Substrate Based Dependencies
sp-version = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false }
[features]
default = ["std"]
std = [
"bp-polkadot-core/std",
"sp-version/std",
]
@@ -0,0 +1,38 @@
// Copyright 2019-2021 Parity Technologies (UK) Ltd.
// This file is part of Parity Bridges Common.
// Parity Bridges Common is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
// Parity Bridges Common is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
// You should have received a copy of the GNU General Public License
// along with Parity Bridges Common. If not, see <http://www.gnu.org/licenses/>.
#![cfg_attr(not(feature = "std"), no_std)]
// RuntimeApi generated functions
#![allow(clippy::too_many_arguments)]
pub use bp_polkadot_core::*;
use sp_version::RuntimeVersion;
/// Statemine Chain.
pub type Statemine = PolkadotLike;
/// Known Statemine runtime version.
pub const VERSION: RuntimeVersion = RuntimeVersion {
spec_name: sp_version::create_runtime_str!("statemine"),
impl_name: sp_version::create_runtime_str!("statemine"),
authoring_version: 1,
spec_version: 9300,
impl_version: 0,
apis: sp_version::create_apis_vec![[]],
transaction_version: 8,
state_version: 1,
};