Crate ac_primitives

Source

Re-exports§

pub use config::*;
pub use extrinsics::*;
pub use rpc_numbers::*;
pub use rpc_params::*;
pub use types::*;

Modules§

config
The config used by the API.
extrinsics
Primitives for substrate extrinsics.
rpc_numbers
A number type that can be serialized both as a number or a string that encodes a number in a string.
rpc_params
RPC parameters, originally belonging to jsonrpsee: https://github.com/paritytech/jsonrpsee It is copied & pasted here to avoid std dependencies.
sr25519
Simple sr25519 (Schnorr-Ristretto) API.
types
Re-defintion of substrate primitives. Needed because substrate pallets compile to wasm in no_std.

Structs§

AccountId32
An opaque 32-byte cryptographic identifier.
BlakeTwo256
Blake2-256 Hash implementation.
Block
Abstraction over a substrate block.
Bytes
Hex-serialized shim for Vec<u8>.
Digest
Generic header digest.
H256
Fixed-size uninterpreted hash type with 32 bytes (256 bits) size.
Header
Abstraction over a block header for a substrate chain.
Justifications
Collection of justifications for a given block, multiple justifications may be provided by different consensus engines for the same block.
OpaqueExtrinsic
Simple blob to hold an extrinsic without committing to its format and ensure it is serialized correctly.
RuntimeVersion
Runtime version. This should not be thought of as classic Semver (major/minor/tiny). This triplet have different semantics and mis-interpretation could cause problems. In particular: bug fixes should result in an increment of spec_version and possibly authoring_version, absolutely not impl_version since they change the semantics of the runtime.
SignedBlock
Abstraction over a substrate block and justification.
StorageChangeSet
Storage change set
StorageData
Storage data associated to a StorageKey.
StorageKey
Storage key.
Weight

Enums§

DigestItem
Digest item that is able to encode/decode ‘system’ digest items and provide opaque access to other items.
MultiAddress
A multi-format address wrapper for on-chain accounts.
MultiSignature
Signature verify that can work with any known signature types.

Traits§

BlockTrait
Something which fulfills the abstract idea of a Substrate block. It has types for Extrinsic pieces of information as well as a Header.
HashTrait
Abstraction around hashing
HeaderTrait
Something which fulfills the abstract idea of a Substrate header. It has types for a Number, a Hash and a Hashing. It provides access to an extrinsics_root, state_root and parent_hash, as well as a digest and a block number.

Type Aliases§

ConsensusEngineId
Consensus engine unique ID.