Crate ac_primitives
source ·Re-exports§
pub use config::*;
pub use extrinsics::*;
pub use rpc_numbers::*;
pub use rpc_params::*;
pub use types::*;
Modules§
- The config used by the API.
- Primitives for substrate extrinsics.
- A number type that can be serialized both as a number or a string that encodes a number in a string.
- RPC parameters, originally belonging to jsonrpsee: https://github.com/paritytech/jsonrpsee It is copied & pasted here to avoid std dependencies.
- Simple sr25519 (Schnorr-Ristretto) API.
- Re-defintion of substrate primitives. Needed because substrate pallets compile to wasm in no_std.
Structs§
- An opaque 32-byte cryptographic identifier.
- Blake2-256 Hash implementation.
- Abstraction over a substrate block.
- Hex-serialized shim for
Vec<u8>
. - Generic header digest.
- Fixed-size uninterpreted hash type with 32 bytes (256 bits) size.
- Abstraction over a block header for a substrate chain.
- Collection of justifications for a given block, multiple justifications may be provided by different consensus engines for the same block.
- Simple blob to hold an extrinsic without committing to its format and ensure it is serialized correctly.
- 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 possiblyauthoring_version
, absolutely notimpl_version
since they change the semantics of the runtime. - Abstraction over a substrate block and justification.
- Storage change set
- Storage data associated to a
StorageKey
. - Storage key.
Enums§
- Digest item that is able to encode/decode ‘system’ digest items and provide opaque access to other items.
- A multi-format address wrapper for on-chain accounts.
- Signature verify that can work with any known signature types.
Traits§
- Something which fulfills the abstract idea of a Substrate block. It has types for
Extrinsic
pieces of information as well as aHeader
. - Abstraction around hashing
- Something which fulfills the abstract idea of a Substrate header. It has types for a
Number
, aHash
and aHashing
. It provides access to anextrinsics_root
,state_root
andparent_hash
, as well as adigest
and a blocknumber
.
Type Aliases§
- Consensus engine unique ID.