mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-10 06:27:57 +00:00
b316301d61
* begin porting over traits; remove Config use of Hash * port over the Header bits that we need * sp_core_hashing where possible, move Verify to PairSigner, remove unused errors * tidy up Config things and move related bits into one place * fix codegen * copy Era over * move AccountId, Address, Signer to Signer trait and a pass over fixing examples * impl MultiAddress, MultiSignature, AccountId32 and add back to Config (for decoding later) * Copy over StorageKey, StorageData, StorageChangeSet * subxt core compiling with no sp_core or sp_runtime * Get examples compiling * pass over fixing tests * cargo fmt * clippy tweaks and update polkadot.rs * fix codegen docs * port over special DigestItem encoding/decoding * clippy and doc fixes * cargo fmt and example fix * more cargo fmt-ing... * substrate-extra to substrate-compat * cargo.toml comments * simplify PairSigner trait bounds * move RPC types to a separate file * fix docs * Add some tests for things and other PR feedback * bump to latest sp deps * avoid needing substrate-compat feature in a test
40 lines
1.1 KiB
Rust
40 lines
1.1 KiB
Rust
// Copyright 2019-2022 Parity Technologies (UK) Ltd.
|
|
// This file is dual-licensed as Apache-2.0 or GPL-3.0.
|
|
// see LICENSE for license details.
|
|
|
|
//! Create and submit extrinsics.
|
|
//!
|
|
//! An extrinsic is submitted with an "signed extra" and "additional" parameters, which can be
|
|
//! different for each chain. The trait [`crate::config::ExtrinsicParams`] determines exactly which
|
|
//! additional and signed extra parameters are used when constructing an extrinsic, and is a part
|
|
//! of the chain configuration (see [`crate::config::Config`]).
|
|
|
|
mod signer;
|
|
mod tx_client;
|
|
mod tx_payload;
|
|
mod tx_progress;
|
|
|
|
// The PairSigner impl currently relies on Substrate bits and pieces, so make it an optional
|
|
// feature if we want to avoid needing sp_core and sp_runtime.
|
|
#[cfg(feature = "substrate-compat")]
|
|
pub use self::signer::PairSigner;
|
|
|
|
pub use self::{
|
|
signer::Signer,
|
|
tx_client::{
|
|
SubmittableExtrinsic,
|
|
TxClient,
|
|
},
|
|
tx_payload::{
|
|
dynamic,
|
|
DynamicTxPayload,
|
|
StaticTxPayload,
|
|
TxPayload,
|
|
},
|
|
tx_progress::{
|
|
TxInBlock,
|
|
TxProgress,
|
|
TxStatus,
|
|
},
|
|
};
|