subxt_core/
lib.rs

1// Copyright 2019-2024 Parity Technologies (UK) Ltd.
2// This file is dual-licensed as Apache-2.0 or GPL-3.0.
3// see LICENSE for license details.
4
5//! # subxt-core
6//!
7//! A `#[no_std]` compatible subset of the functionality provided in the `subxt` crate. This
8//! contains the core logic for encoding and decoding things, but nothing related to networking.
9//!
10//! Here's an overview of the main things exposed here:
11//!
12//! - [`blocks`]: decode and explore block bodies.
13//! - [`constants`]: access and validate the constant addresses in some metadata.
14//! - [`custom_values`]: access and validate the custom value addresses in some metadata.
15//! - [`metadata`]: decode bytes into the metadata used throughout this library.
16//! - [`storage`]: construct storage request payloads and decode the results you'd get back.
17//! - [`tx`]: construct and sign transactions (extrinsics).
18//! - [`runtime_api`]: construct runtime API request payloads and decode the results you'd get back.
19//! - [`events`]: decode and explore events.
20//!
21
22#![deny(missing_docs)]
23#![cfg_attr(not(feature = "std"), no_std)]
24pub extern crate alloc;
25
26pub mod blocks;
27pub mod client;
28pub mod config;
29pub mod constants;
30pub mod custom_values;
31pub mod dynamic;
32pub mod error;
33pub mod events;
34pub mod metadata;
35pub mod runtime_api;
36pub mod storage;
37pub mod tx;
38pub mod utils;
39pub mod view_functions;
40
41pub use config::Config;
42pub use error::Error;
43pub use metadata::Metadata;
44
45/// Re-exports of some of the key external crates.
46pub mod ext {
47    pub use codec;
48    pub use scale_decode;
49    pub use scale_encode;
50    pub use scale_value;
51}