mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-29 12:37:57 +00:00
a2b8dde5e6
* Add Static type which defers to Encode/Decode and impls EncodeAsType/DecodeAsType * rename to static_type and impl Deref/Mut * Improve type substitution in codegen so that concrete types can be swapped in * A couple of comment tweaks and no need for a macro export * Extend type substitution logic to work recursively on destination type * cargo fmt * Fix a couple of comments * update ui test outpuot * Add docs and missing_docs lint * Add test for replacing multiple of Ident * Update codegen/src/error.rs Co-authored-by: Niklas Adolfsson <niklasadolfsson1@gmail.com> * update copyright year and fix ui test * simplify another error --------- Co-authored-by: Niklas Adolfsson <niklasadolfsson1@gmail.com>
32 lines
987 B
Rust
32 lines
987 B
Rust
// Copyright 2019-2023 Parity Technologies (UK) Ltd.
|
|
// This file is dual-licensed as Apache-2.0 or GPL-3.0.
|
|
// see LICENSE for license details.
|
|
|
|
//! Types associated with accessing and working with storage items.
|
|
|
|
mod storage_address;
|
|
mod storage_client;
|
|
mod storage_type;
|
|
|
|
pub mod utils;
|
|
|
|
pub use storage_client::StorageClient;
|
|
|
|
pub use storage_type::{KeyIter, Storage};
|
|
|
|
// Re-export as this is used in the public API in this module:
|
|
pub use crate::rpc::types::StorageKey;
|
|
|
|
/// Types representing an address which describes where a storage
|
|
/// entry lives and how to properly decode it.
|
|
pub mod address {
|
|
pub use super::storage_address::{
|
|
dynamic, dynamic_root, make_static_storage_map_key, Address, DynamicAddress,
|
|
StaticStorageMapKey, StorageAddress, Yes,
|
|
};
|
|
}
|
|
|
|
// For consistency with other modules, also expose
|
|
// the basic address stuff at the root of the module.
|
|
pub use storage_address::{dynamic, dynamic_root, Address, DynamicAddress, StorageAddress};
|