ac_primitives/
lib.rs

1/*
2   Copyright 2019 Supercomputing Systems AG
3
4   Licensed under the Apache License, Version 2.0 (the "License");
5   you may not use this file except in compliance with the License.
6   You may obtain a copy of the License at
7
8	   http://www.apache.org/licenses/LICENSE-2.0
9
10   Unless required by applicable law or agreed to in writing, software
11   distributed under the License is distributed on an "AS IS" BASIS,
12   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13   See the License for the specific language governing permissions and
14   limitations under the License.
15
16*/
17
18#![cfg_attr(not(feature = "std"), no_std)]
19
20extern crate alloc;
21
22// Re-export everything.
23pub use config::*;
24pub use extrinsics::*;
25pub use rpc_numbers::*;
26pub use rpc_params::*;
27pub use types::*;
28
29pub mod config;
30pub mod extrinsics;
31pub mod rpc_numbers;
32pub mod rpc_params;
33pub mod types;
34
35// Re-export substrate types for easy import on user side.
36pub use sp_core::{
37	sr25519,
38	storage::{StorageChangeSet, StorageData, StorageKey},
39	Bytes, H256,
40};
41pub use sp_runtime::{
42	generic::{Block, Digest, DigestItem, Header, SignedBlock},
43	traits::{BlakeTwo256, Block as BlockTrait, Hash as HashTrait, Header as HeaderTrait},
44	AccountId32, ConsensusEngineId, Justifications, MultiAddress, MultiSignature, OpaqueExtrinsic,
45};
46pub use sp_version::RuntimeVersion;
47pub use sp_weights::Weight;