pezkuwi_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//! - [`storage`]: construct storage request payloads and decode the results you'd get back.
16//! - [`tx`]: construct and sign transactions (extrinsics).
17//! - [`runtime_api`]: construct runtime API request payloads and decode the results you'd get back.
18//! - [`events`]: decode and explore events.
19
20#![deny(missing_docs)]
21#![cfg_attr(not(feature = "std"), no_std)]
22pub extern crate alloc;
23
24pub mod blocks;
25pub mod client;
26pub mod config;
27pub mod constants;
28pub mod custom_values;
29pub mod dynamic;
30pub mod error;
31pub mod events;
32pub mod runtime_api;
33pub mod storage;
34pub mod tx;
35pub mod utils;
36pub mod view_functions;
37
38pub use config::Config;
39pub use error::Error;
40pub use pezkuwi_subxt_metadata::Metadata;
41
42/// Re-exports of some of the key external crates.
43pub mod ext {
44 pub use codec;
45 pub use scale_decode;
46 pub use scale_encode;
47 pub use scale_value;
48}