#[allow(dead_code, unused_imports, non_camel_case_types)]
#[allow(clippy::all)]
#[allow(rustdoc::broken_intra_doc_links)]
pub mod api {
#[allow(unused_imports)]
mod root_mod {
pub use super::*;
}
pub static PALLETS: [&str; 9usize] = [
"System",
"Timestamp",
"Aura",
"Grandpa",
"Balances",
"TransactionPayment",
"Sudo",
"RandomnessCollectiveFlip",
"Contracts",
];
pub static RUNTIME_APIS: [&str; 12usize] = [
"ContractsApi",
"Core",
"Metadata",
"BlockBuilder",
"TaggedTransactionQueue",
"OffchainWorkerApi",
"AuraApi",
"SessionKeys",
"GrandpaApi",
"AccountNonceApi",
"TransactionPaymentApi",
"TransactionPaymentCallApi",
];
#[doc = r" The error type returned when there is a runtime issue."]
pub type DispatchError = runtime_types::sp_runtime::DispatchError;
#[doc = r" The outer event enum."]
pub type Event = runtime_types::madya_solo_runtime::RuntimeEvent;
#[doc = r" The outer extrinsic enum."]
pub type Call = runtime_types::madya_solo_runtime::RuntimeCall;
#[doc = r" The outer error enum representing the DispatchError's Module variant."]
pub type Error = runtime_types::madya_solo_runtime::RuntimeError;
pub fn constants() -> ConstantsApi {
ConstantsApi
}
pub fn storage() -> StorageApi {
StorageApi
}
pub fn tx() -> TransactionApi {
TransactionApi
}
pub fn apis() -> runtime_apis::RuntimeApi {
runtime_apis::RuntimeApi
}
pub mod runtime_apis {
use super::root_mod;
use super::runtime_types;
use ::subxt::ext::codec::Encode;
pub struct RuntimeApi;
impl RuntimeApi {
pub fn contracts_api(&self) -> contracts_api::ContractsApi {
contracts_api::ContractsApi
}
pub fn core(&self) -> core::Core {
core::Core
}
pub fn metadata(&self) -> metadata::Metadata {
metadata::Metadata
}
pub fn block_builder(&self) -> block_builder::BlockBuilder {
block_builder::BlockBuilder
}
pub fn tagged_transaction_queue(
&self,
) -> tagged_transaction_queue::TaggedTransactionQueue {
tagged_transaction_queue::TaggedTransactionQueue
}
pub fn offchain_worker_api(&self) -> offchain_worker_api::OffchainWorkerApi {
offchain_worker_api::OffchainWorkerApi
}
pub fn aura_api(&self) -> aura_api::AuraApi {
aura_api::AuraApi
}
pub fn session_keys(&self) -> session_keys::SessionKeys {
session_keys::SessionKeys
}
pub fn grandpa_api(&self) -> grandpa_api::GrandpaApi {
grandpa_api::GrandpaApi
}
pub fn account_nonce_api(&self) -> account_nonce_api::AccountNonceApi {
account_nonce_api::AccountNonceApi
}
pub fn transaction_payment_api(
&self,
) -> transaction_payment_api::TransactionPaymentApi {
transaction_payment_api::TransactionPaymentApi
}
pub fn transaction_payment_call_api(
&self,
) -> transaction_payment_call_api::TransactionPaymentCallApi {
transaction_payment_call_api::TransactionPaymentCallApi
}
}
pub mod contracts_api {
use super::root_mod;
use super::runtime_types;
#[doc = " The API used to dry-run contract interactions."]
pub struct ContractsApi;
impl ContractsApi {
#[doc = " Perform a call from a specified account to a given contract."]
#[doc = ""]
#[doc = " See [`crate::Pallet::bare_call`]."]
pub fn call(
&self,
origin: ::subxt::utils::AccountId32,
dest: ::subxt::utils::AccountId32,
value: ::core::primitive::u128,
gas_limit: ::core::option::Option<runtime_types::sp_weights::weight_v2::Weight>,
storage_deposit_limit: ::core::option::Option<::core::primitive::u128>,
input_data: ::std::vec::Vec<::core::primitive::u8>,
) -> ::subxt::runtime_api::Payload<
types::Call,
runtime_types::pallet_contracts_primitives::ContractResult<
::core::result::Result<
runtime_types::pallet_contracts_primitives::ExecReturnValue,
runtime_types::sp_runtime::DispatchError,
>,
::core::primitive::u128,
runtime_types::frame_system::EventRecord<
runtime_types::madya_solo_runtime::RuntimeEvent,
::subxt::utils::H256,
>,
>,
> {
::subxt::runtime_api::Payload::new_static(
"ContractsApi",
"call",
types::Call {
origin,
dest,
value,
gas_limit,
storage_deposit_limit,
input_data,
},
[
180u8, 109u8, 89u8, 236u8, 136u8, 85u8, 145u8, 224u8, 51u8, 184u8,
212u8, 168u8, 222u8, 199u8, 160u8, 60u8, 151u8, 55u8, 153u8, 5u8, 20u8,
169u8, 147u8, 218u8, 19u8, 140u8, 237u8, 60u8, 206u8, 37u8, 193u8,
65u8,
],
)
}
#[doc = " Instantiate a new contract."]
#[doc = ""]
#[doc = " See `[crate::Pallet::bare_instantiate]`."]
pub fn instantiate(
&self,
origin: ::subxt::utils::AccountId32,
value: ::core::primitive::u128,
gas_limit: ::core::option::Option<runtime_types::sp_weights::weight_v2::Weight>,
storage_deposit_limit: ::core::option::Option<::core::primitive::u128>,
code: runtime_types::pallet_contracts_primitives::Code<::subxt::utils::H256>,
data: ::std::vec::Vec<::core::primitive::u8>,
salt: ::std::vec::Vec<::core::primitive::u8>,
) -> ::subxt::runtime_api::Payload<
types::Instantiate,
runtime_types::pallet_contracts_primitives::ContractResult<
::core::result::Result<
runtime_types::pallet_contracts_primitives::InstantiateReturnValue<
::subxt::utils::AccountId32,
>,
runtime_types::sp_runtime::DispatchError,
>,
::core::primitive::u128,
runtime_types::frame_system::EventRecord<
runtime_types::madya_solo_runtime::RuntimeEvent,
::subxt::utils::H256,
>,
>,
> {
::subxt::runtime_api::Payload::new_static(
"ContractsApi",
"instantiate",
types::Instantiate {
origin,
value,
gas_limit,
storage_deposit_limit,
code,
data,
salt,
},
[
186u8, 210u8, 77u8, 224u8, 84u8, 107u8, 231u8, 156u8, 81u8, 227u8,
136u8, 149u8, 168u8, 154u8, 161u8, 212u8, 151u8, 111u8, 202u8, 2u8,
218u8, 158u8, 19u8, 123u8, 7u8, 36u8, 9u8, 100u8, 96u8, 16u8, 139u8,
76u8,
],
)
}
#[doc = " Upload new code without instantiating a contract from it."]
#[doc = ""]
#[doc = " See [`crate::Pallet::bare_upload_code`]."]
pub fn upload_code(
&self,
origin: ::subxt::utils::AccountId32,
code: ::std::vec::Vec<::core::primitive::u8>,
storage_deposit_limit: ::core::option::Option<::core::primitive::u128>,
determinism: runtime_types::pallet_contracts::wasm::Determinism,
) -> ::subxt::runtime_api::Payload<
types::UploadCode,
::core::result::Result<
runtime_types::pallet_contracts_primitives::CodeUploadReturnValue<
::subxt::utils::H256,
::core::primitive::u128,
>,
runtime_types::sp_runtime::DispatchError,
>,
> {
::subxt::runtime_api::Payload::new_static(
"ContractsApi",
"upload_code",
types::UploadCode {
origin,
code,
storage_deposit_limit,
determinism,
},
[
231u8, 114u8, 110u8, 91u8, 142u8, 108u8, 124u8, 161u8, 13u8, 8u8,
127u8, 134u8, 133u8, 152u8, 137u8, 67u8, 59u8, 78u8, 120u8, 75u8,
172u8, 211u8, 23u8, 227u8, 90u8, 203u8, 204u8, 129u8, 142u8, 226u8,
32u8, 213u8,
],
)
}
#[doc = " Query a given storage key in a given contract."]
#[doc = ""]
#[doc = " Returns `Ok(Some(Vec<u8>))` if the storage value exists under the given key in the"]
#[doc = " specified account and `Ok(None)` if it doesn't. If the account specified by the address"]
#[doc = " doesn't exist, or doesn't have a contract then `Err` is returned."]
pub fn get_storage(
&self,
address: ::subxt::utils::AccountId32,
key: ::std::vec::Vec<::core::primitive::u8>,
) -> ::subxt::runtime_api::Payload<
types::GetStorage,
::core::result::Result<
::core::option::Option<::std::vec::Vec<::core::primitive::u8>>,
runtime_types::pallet_contracts_primitives::ContractAccessError,
>,
> {
::subxt::runtime_api::Payload::new_static(
"ContractsApi",
"get_storage",
types::GetStorage { address, key },
[
49u8, 103u8, 100u8, 132u8, 135u8, 193u8, 145u8, 48u8, 154u8, 78u8,
41u8, 43u8, 81u8, 109u8, 146u8, 199u8, 6u8, 111u8, 184u8, 102u8, 46u8,
76u8, 174u8, 148u8, 106u8, 184u8, 131u8, 137u8, 194u8, 98u8, 179u8,
45u8,
],
)
}
}
pub mod types {
use super::runtime_types;
#[derive(
:: subxt :: ext :: codec :: Decode,
:: subxt :: ext :: codec :: Encode,
:: subxt :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
# [codec (crate = :: subxt :: ext :: codec)]
#[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
pub struct Call {
pub origin: ::subxt::utils::AccountId32,
pub dest: ::subxt::utils::AccountId32,
pub value: ::core::primitive::u128,
pub gas_limit:
::core::option::Option<runtime_types::sp_weights::weight_v2::Weight>,
pub storage_deposit_limit: ::core::option::Option<::core::primitive::u128>,
pub input_data: ::std::vec::Vec<::core::primitive::u8>,
}
#[derive(
:: subxt :: ext :: codec :: Decode,
:: subxt :: ext :: codec :: Encode,
:: subxt :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
# [codec (crate = :: subxt :: ext :: codec)]
#[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
pub struct Instantiate {
pub origin: ::subxt::utils::AccountId32,
pub value: ::core::primitive::u128,
pub gas_limit:
::core::option::Option<runtime_types::sp_weights::weight_v2::Weight>,
pub storage_deposit_limit: ::core::option::Option<::core::primitive::u128>,
pub code:
runtime_types::pallet_contracts_primitives::Code<::subxt::utils::H256>,
pub data: ::std::vec::Vec<::core::primitive::u8>,
pub salt: ::std::vec::Vec<::core::primitive::u8>,
}
#[derive(
:: subxt :: ext :: codec :: Decode,
:: subxt :: ext :: codec :: Encode,
:: subxt :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
# [codec (crate = :: subxt :: ext :: codec)]
#[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
pub struct UploadCode {
pub origin: ::subxt::utils::AccountId32,
pub code: ::std::vec::Vec<::core::primitive::u8>,
pub storage_deposit_limit: ::core::option::Option<::core::primitive::u128>,
pub determinism: runtime_types::pallet_contracts::wasm::Determinism,
}
#[derive(
:: subxt :: ext :: codec :: Decode,
:: subxt :: ext :: codec :: Encode,
:: subxt :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
# [codec (crate = :: subxt :: ext :: codec)]
#[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
pub struct GetStorage {
pub address: ::subxt::utils::AccountId32,
pub key: ::std::vec::Vec<::core::primitive::u8>,
}
}
}
pub mod core {
use super::root_mod;
use super::runtime_types;
#[doc = " The `Core` runtime api that every Substrate runtime needs to implement."]
pub struct Core;
impl Core {
#[doc = " Returns the version of the runtime."]
pub fn version(
&self,
) -> ::subxt::runtime_api::Payload<
types::Version,
runtime_types::sp_version::RuntimeVersion,
> {
::subxt::runtime_api::Payload::new_static(
"Core",
"version",
types::Version {},
[
76u8, 202u8, 17u8, 117u8, 189u8, 237u8, 239u8, 237u8, 151u8, 17u8,
125u8, 159u8, 218u8, 92u8, 57u8, 238u8, 64u8, 147u8, 40u8, 72u8, 157u8,
116u8, 37u8, 195u8, 156u8, 27u8, 123u8, 173u8, 178u8, 102u8, 136u8,
6u8,
],
)
}
#[doc = " Execute the given block."]
pub fn execute_block(
&self,
block : runtime_types :: sp_runtime :: generic :: block :: Block < runtime_types :: sp_runtime :: generic :: header :: Header < :: core :: primitive :: u32 > , :: subxt :: utils :: UncheckedExtrinsic < :: subxt :: utils :: MultiAddress < :: subxt :: utils :: AccountId32 , () > , runtime_types :: madya_solo_runtime :: RuntimeCall , runtime_types :: sp_runtime :: MultiSignature , (runtime_types :: frame_system :: extensions :: check_non_zero_sender :: CheckNonZeroSender , runtime_types :: frame_system :: extensions :: check_spec_version :: CheckSpecVersion , runtime_types :: frame_system :: extensions :: check_tx_version :: CheckTxVersion , runtime_types :: frame_system :: extensions :: check_genesis :: CheckGenesis , runtime_types :: frame_system :: extensions :: check_mortality :: CheckMortality , runtime_types :: frame_system :: extensions :: check_nonce :: CheckNonce , runtime_types :: frame_system :: extensions :: check_weight :: CheckWeight , runtime_types :: pallet_transaction_payment :: ChargeTransactionPayment ,) > >,
) -> ::subxt::runtime_api::Payload<types::ExecuteBlock, ()> {
::subxt::runtime_api::Payload::new_static(
"Core",
"execute_block",
types::ExecuteBlock { block },
[
133u8, 135u8, 228u8, 65u8, 106u8, 27u8, 85u8, 158u8, 112u8, 254u8,
93u8, 26u8, 102u8, 201u8, 118u8, 216u8, 249u8, 247u8, 91u8, 74u8, 56u8,
208u8, 231u8, 115u8, 131u8, 29u8, 209u8, 6u8, 65u8, 57u8, 214u8, 125u8,
],
)
}
#[doc = " Initialize a block with the given header."]
pub fn initialize_block(
&self,
header: runtime_types::sp_runtime::generic::header::Header<
::core::primitive::u32,
>,
) -> ::subxt::runtime_api::Payload<types::InitializeBlock, ()> {
::subxt::runtime_api::Payload::new_static(
"Core",
"initialize_block",
types::InitializeBlock { header },
[
146u8, 138u8, 72u8, 240u8, 63u8, 96u8, 110u8, 189u8, 77u8, 92u8, 96u8,
232u8, 41u8, 217u8, 105u8, 148u8, 83u8, 190u8, 152u8, 219u8, 19u8,
87u8, 163u8, 1u8, 232u8, 25u8, 221u8, 74u8, 224u8, 67u8, 223u8, 34u8,
],
)
}
}
pub mod types {
use super::runtime_types;
#[derive(
:: subxt :: ext :: codec :: Decode,
:: subxt :: ext :: codec :: Encode,
:: subxt :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
# [codec (crate = :: subxt :: ext :: codec)]
#[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
pub struct Version {}
#[derive(
:: subxt :: ext :: codec :: Decode,
:: subxt :: ext :: codec :: Encode,
:: subxt :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
# [codec (crate = :: subxt :: ext :: codec)]
#[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
pub struct ExecuteBlock { pub block : runtime_types :: sp_runtime :: generic :: block :: Block < runtime_types :: sp_runtime :: generic :: header :: Header < :: core :: primitive :: u32 > , :: subxt :: utils :: UncheckedExtrinsic < :: subxt :: utils :: MultiAddress < :: subxt :: utils :: AccountId32 , () > , runtime_types :: madya_solo_runtime :: RuntimeCall , runtime_types :: sp_runtime :: MultiSignature , (runtime_types :: frame_system :: extensions :: check_non_zero_sender :: CheckNonZeroSender , runtime_types :: frame_system :: extensions :: check_spec_version :: CheckSpecVersion , runtime_types :: frame_system :: extensions :: check_tx_version :: CheckTxVersion , runtime_types :: frame_system :: extensions :: check_genesis :: CheckGenesis , runtime_types :: frame_system :: extensions :: check_mortality :: CheckMortality , runtime_types :: frame_system :: extensions :: check_nonce :: CheckNonce , runtime_types :: frame_system :: extensions :: check_weight :: CheckWeight , runtime_types :: pallet_transaction_payment :: ChargeTransactionPayment ,) > > , }
#[derive(
:: subxt :: ext :: codec :: Decode,
:: subxt :: ext :: codec :: Encode,
:: subxt :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
# [codec (crate = :: subxt :: ext :: codec)]
#[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
pub struct InitializeBlock {
pub header:
runtime_types::sp_runtime::generic::header::Header<::core::primitive::u32>,
}
}
}
pub mod metadata {
use super::root_mod;
use super::runtime_types;
#[doc = " The `Metadata` api trait that returns metadata for the runtime."]
pub struct Metadata;
impl Metadata {
#[doc = " Returns the metadata of a runtime."]
pub fn metadata(
&self,
) -> ::subxt::runtime_api::Payload<
types::Metadata,
runtime_types::sp_core::OpaqueMetadata,
> {
::subxt::runtime_api::Payload::new_static(
"Metadata",
"metadata",
types::Metadata {},
[
231u8, 24u8, 67u8, 152u8, 23u8, 26u8, 188u8, 82u8, 229u8, 6u8, 185u8,
27u8, 175u8, 68u8, 83u8, 122u8, 69u8, 89u8, 185u8, 74u8, 248u8, 87u8,
217u8, 124u8, 193u8, 252u8, 199u8, 186u8, 196u8, 179u8, 179u8, 96u8,
],
)
}
#[doc = " Returns the metadata at a given version."]
#[doc = ""]
#[doc = " If the given `version` isn't supported, this will return `None`."]
#[doc = " Use [`Self::metadata_versions`] to find out about supported metadata version of the runtime."]
pub fn metadata_at_version(
&self,
version: ::core::primitive::u32,
) -> ::subxt::runtime_api::Payload<
types::MetadataAtVersion,
::core::option::Option<runtime_types::sp_core::OpaqueMetadata>,
> {
::subxt::runtime_api::Payload::new_static(
"Metadata",
"metadata_at_version",
types::MetadataAtVersion { version },
[
131u8, 53u8, 212u8, 234u8, 16u8, 25u8, 120u8, 252u8, 153u8, 153u8,
216u8, 28u8, 54u8, 113u8, 52u8, 236u8, 146u8, 68u8, 142u8, 8u8, 10u8,
169u8, 131u8, 142u8, 204u8, 38u8, 48u8, 108u8, 134u8, 86u8, 226u8,
61u8,
],
)
}
#[doc = " Returns the supported metadata versions."]
#[doc = ""]
#[doc = " This can be used to call `metadata_at_version`."]
pub fn metadata_versions(
&self,
) -> ::subxt::runtime_api::Payload<
types::MetadataVersions,
::std::vec::Vec<::core::primitive::u32>,
> {
::subxt::runtime_api::Payload::new_static(
"Metadata",
"metadata_versions",
types::MetadataVersions {},
[
23u8, 144u8, 137u8, 91u8, 188u8, 39u8, 231u8, 208u8, 252u8, 218u8,
224u8, 176u8, 77u8, 32u8, 130u8, 212u8, 223u8, 76u8, 100u8, 190u8,
82u8, 94u8, 190u8, 8u8, 82u8, 244u8, 225u8, 179u8, 85u8, 176u8, 56u8,
16u8,
],
)
}
}
pub mod types {
use super::runtime_types;
#[derive(
:: subxt :: ext :: codec :: Decode,
:: subxt :: ext :: codec :: Encode,
:: subxt :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
# [codec (crate = :: subxt :: ext :: codec)]
#[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
pub struct Metadata {}
#[derive(
:: subxt :: ext :: codec :: Decode,
:: subxt :: ext :: codec :: Encode,
:: subxt :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
# [codec (crate = :: subxt :: ext :: codec)]
#[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
pub struct MetadataAtVersion {
pub version: ::core::primitive::u32,
}
#[derive(
:: subxt :: ext :: codec :: Decode,
:: subxt :: ext :: codec :: Encode,
:: subxt :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
# [codec (crate = :: subxt :: ext :: codec)]
#[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
pub struct MetadataVersions {}
}
}
pub mod block_builder {
use super::root_mod;
use super::runtime_types;
#[doc = " The `BlockBuilder` api trait that provides the required functionality for building a block."]
pub struct BlockBuilder;
impl BlockBuilder {
#[doc = " Apply the given extrinsic."]
#[doc = ""]
#[doc = " Returns an inclusion outcome which specifies if this extrinsic is included in"]
#[doc = " this block or not."]
pub fn apply_extrinsic(
&self,
extrinsic : :: subxt :: utils :: UncheckedExtrinsic < :: subxt :: utils :: MultiAddress < :: subxt :: utils :: AccountId32 , () > , runtime_types :: madya_solo_runtime :: RuntimeCall , runtime_types :: sp_runtime :: MultiSignature , (runtime_types :: frame_system :: extensions :: check_non_zero_sender :: CheckNonZeroSender , runtime_types :: frame_system :: extensions :: check_spec_version :: CheckSpecVersion , runtime_types :: frame_system :: extensions :: check_tx_version :: CheckTxVersion , runtime_types :: frame_system :: extensions :: check_genesis :: CheckGenesis , runtime_types :: frame_system :: extensions :: check_mortality :: CheckMortality , runtime_types :: frame_system :: extensions :: check_nonce :: CheckNonce , runtime_types :: frame_system :: extensions :: check_weight :: CheckWeight , runtime_types :: pallet_transaction_payment :: ChargeTransactionPayment ,) >,
) -> ::subxt::runtime_api::Payload<
types::ApplyExtrinsic,
::core::result::Result<
::core::result::Result<(), runtime_types::sp_runtime::DispatchError>,
runtime_types::sp_runtime::transaction_validity::TransactionValidityError,
>,
> {
::subxt::runtime_api::Payload::new_static(
"BlockBuilder",
"apply_extrinsic",
types::ApplyExtrinsic { extrinsic },
[
72u8, 54u8, 139u8, 3u8, 118u8, 136u8, 65u8, 47u8, 6u8, 105u8, 125u8,
223u8, 160u8, 29u8, 103u8, 74u8, 79u8, 149u8, 48u8, 90u8, 237u8, 2u8,
97u8, 201u8, 123u8, 34u8, 167u8, 37u8, 187u8, 35u8, 176u8, 97u8,
],
)
}
#[doc = " Finish the current block."]
pub fn finalize_block(
&self,
) -> ::subxt::runtime_api::Payload<
types::FinalizeBlock,
runtime_types::sp_runtime::generic::header::Header<::core::primitive::u32>,
> {
::subxt::runtime_api::Payload::new_static(
"BlockBuilder",
"finalize_block",
types::FinalizeBlock {},
[
244u8, 207u8, 24u8, 33u8, 13u8, 69u8, 9u8, 249u8, 145u8, 143u8, 122u8,
96u8, 197u8, 55u8, 64u8, 111u8, 238u8, 224u8, 34u8, 201u8, 27u8, 146u8,
232u8, 99u8, 191u8, 30u8, 114u8, 16u8, 32u8, 220u8, 58u8, 62u8,
],
)
}
#[doc = " Generate inherent extrinsics. The inherent data will vary from chain to chain."] pub fn inherent_extrinsics (& self , inherent : runtime_types :: sp_inherents :: InherentData ,) -> :: subxt :: runtime_api :: Payload < types :: InherentExtrinsics , :: std :: vec :: Vec < :: subxt :: utils :: UncheckedExtrinsic < :: subxt :: utils :: MultiAddress < :: subxt :: utils :: AccountId32 , () > , runtime_types :: madya_solo_runtime :: RuntimeCall , runtime_types :: sp_runtime :: MultiSignature , (runtime_types :: frame_system :: extensions :: check_non_zero_sender :: CheckNonZeroSender , runtime_types :: frame_system :: extensions :: check_spec_version :: CheckSpecVersion , runtime_types :: frame_system :: extensions :: check_tx_version :: CheckTxVersion , runtime_types :: frame_system :: extensions :: check_genesis :: CheckGenesis , runtime_types :: frame_system :: extensions :: check_mortality :: CheckMortality , runtime_types :: frame_system :: extensions :: check_nonce :: CheckNonce , runtime_types :: frame_system :: extensions :: check_weight :: CheckWeight , runtime_types :: pallet_transaction_payment :: ChargeTransactionPayment ,) > > >{
::subxt::runtime_api::Payload::new_static(
"BlockBuilder",
"inherent_extrinsics",
types::InherentExtrinsics { inherent },
[
254u8, 110u8, 245u8, 201u8, 250u8, 192u8, 27u8, 228u8, 151u8, 213u8,
166u8, 89u8, 94u8, 81u8, 189u8, 234u8, 64u8, 18u8, 245u8, 80u8, 29u8,
18u8, 140u8, 129u8, 113u8, 236u8, 135u8, 55u8, 79u8, 159u8, 175u8,
183u8,
],
)
}
#[doc = " Check that the inherents are valid. The inherent data will vary from chain to chain."]
pub fn check_inherents(
&self,
block : runtime_types :: sp_runtime :: generic :: block :: Block < runtime_types :: sp_runtime :: generic :: header :: Header < :: core :: primitive :: u32 > , :: subxt :: utils :: UncheckedExtrinsic < :: subxt :: utils :: MultiAddress < :: subxt :: utils :: AccountId32 , () > , runtime_types :: madya_solo_runtime :: RuntimeCall , runtime_types :: sp_runtime :: MultiSignature , (runtime_types :: frame_system :: extensions :: check_non_zero_sender :: CheckNonZeroSender , runtime_types :: frame_system :: extensions :: check_spec_version :: CheckSpecVersion , runtime_types :: frame_system :: extensions :: check_tx_version :: CheckTxVersion , runtime_types :: frame_system :: extensions :: check_genesis :: CheckGenesis , runtime_types :: frame_system :: extensions :: check_mortality :: CheckMortality , runtime_types :: frame_system :: extensions :: check_nonce :: CheckNonce , runtime_types :: frame_system :: extensions :: check_weight :: CheckWeight , runtime_types :: pallet_transaction_payment :: ChargeTransactionPayment ,) > >,
data: runtime_types::sp_inherents::InherentData,
) -> ::subxt::runtime_api::Payload<
types::CheckInherents,
runtime_types::sp_inherents::CheckInherentsResult,
> {
::subxt::runtime_api::Payload::new_static(
"BlockBuilder",
"check_inherents",
types::CheckInherents { block, data },
[
153u8, 134u8, 1u8, 215u8, 139u8, 11u8, 53u8, 51u8, 210u8, 175u8, 197u8,
28u8, 38u8, 209u8, 175u8, 247u8, 142u8, 157u8, 50u8, 151u8, 164u8,
191u8, 181u8, 118u8, 80u8, 97u8, 160u8, 248u8, 110u8, 217u8, 181u8,
234u8,
],
)
}
}
pub mod types {
use super::runtime_types;
#[derive(
:: subxt :: ext :: codec :: Decode,
:: subxt :: ext :: codec :: Encode,
:: subxt :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
# [codec (crate = :: subxt :: ext :: codec)]
#[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
pub struct ApplyExtrinsic { pub extrinsic : :: subxt :: utils :: UncheckedExtrinsic < :: subxt :: utils :: MultiAddress < :: subxt :: utils :: AccountId32 , () > , runtime_types :: madya_solo_runtime :: RuntimeCall , runtime_types :: sp_runtime :: MultiSignature , (runtime_types :: frame_system :: extensions :: check_non_zero_sender :: CheckNonZeroSender , runtime_types :: frame_system :: extensions :: check_spec_version :: CheckSpecVersion , runtime_types :: frame_system :: extensions :: check_tx_version :: CheckTxVersion , runtime_types :: frame_system :: extensions :: check_genesis :: CheckGenesis , runtime_types :: frame_system :: extensions :: check_mortality :: CheckMortality , runtime_types :: frame_system :: extensions :: check_nonce :: CheckNonce , runtime_types :: frame_system :: extensions :: check_weight :: CheckWeight , runtime_types :: pallet_transaction_payment :: ChargeTransactionPayment ,) > , }
#[derive(
:: subxt :: ext :: codec :: Decode,
:: subxt :: ext :: codec :: Encode,
:: subxt :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
# [codec (crate = :: subxt :: ext :: codec)]
#[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
pub struct FinalizeBlock {}
#[derive(
:: subxt :: ext :: codec :: Decode,
:: subxt :: ext :: codec :: Encode,
:: subxt :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
# [codec (crate = :: subxt :: ext :: codec)]
#[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
pub struct InherentExtrinsics {
pub inherent: runtime_types::sp_inherents::InherentData,
}
#[derive(
:: subxt :: ext :: codec :: Decode,
:: subxt :: ext :: codec :: Encode,
:: subxt :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
# [codec (crate = :: subxt :: ext :: codec)]
#[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
pub struct CheckInherents { pub block : runtime_types :: sp_runtime :: generic :: block :: Block < runtime_types :: sp_runtime :: generic :: header :: Header < :: core :: primitive :: u32 > , :: subxt :: utils :: UncheckedExtrinsic < :: subxt :: utils :: MultiAddress < :: subxt :: utils :: AccountId32 , () > , runtime_types :: madya_solo_runtime :: RuntimeCall , runtime_types :: sp_runtime :: MultiSignature , (runtime_types :: frame_system :: extensions :: check_non_zero_sender :: CheckNonZeroSender , runtime_types :: frame_system :: extensions :: check_spec_version :: CheckSpecVersion , runtime_types :: frame_system :: extensions :: check_tx_version :: CheckTxVersion , runtime_types :: frame_system :: extensions :: check_genesis :: CheckGenesis , runtime_types :: frame_system :: extensions :: check_mortality :: CheckMortality , runtime_types :: frame_system :: extensions :: check_nonce :: CheckNonce , runtime_types :: frame_system :: extensions :: check_weight :: CheckWeight , runtime_types :: pallet_transaction_payment :: ChargeTransactionPayment ,) > > , pub data : runtime_types :: sp_inherents :: InherentData , }
}
}
pub mod tagged_transaction_queue {
use super::root_mod;
use super::runtime_types;
#[doc = " The `TaggedTransactionQueue` api trait for interfering with the transaction queue."]
pub struct TaggedTransactionQueue;
impl TaggedTransactionQueue {
#[doc = " Validate the transaction."]
#[doc = ""]
#[doc = " This method is invoked by the transaction pool to learn details about given transaction."]
#[doc = " The implementation should make sure to verify the correctness of the transaction"]
#[doc = " against current state. The given `block_hash` corresponds to the hash of the block"]
#[doc = " that is used as current state."]
#[doc = ""]
#[doc = " Note that this call may be performed by the pool multiple times and transactions"]
#[doc = " might be verified in any possible order."]
pub fn validate_transaction(
&self,
source: runtime_types::sp_runtime::transaction_validity::TransactionSource,
tx : :: subxt :: utils :: UncheckedExtrinsic < :: subxt :: utils :: MultiAddress < :: subxt :: utils :: AccountId32 , () > , runtime_types :: madya_solo_runtime :: RuntimeCall , runtime_types :: sp_runtime :: MultiSignature , (runtime_types :: frame_system :: extensions :: check_non_zero_sender :: CheckNonZeroSender , runtime_types :: frame_system :: extensions :: check_spec_version :: CheckSpecVersion , runtime_types :: frame_system :: extensions :: check_tx_version :: CheckTxVersion , runtime_types :: frame_system :: extensions :: check_genesis :: CheckGenesis , runtime_types :: frame_system :: extensions :: check_mortality :: CheckMortality , runtime_types :: frame_system :: extensions :: check_nonce :: CheckNonce , runtime_types :: frame_system :: extensions :: check_weight :: CheckWeight , runtime_types :: pallet_transaction_payment :: ChargeTransactionPayment ,) >,
block_hash: ::subxt::utils::H256,
) -> ::subxt::runtime_api::Payload<
types::ValidateTransaction,
::core::result::Result<
runtime_types::sp_runtime::transaction_validity::ValidTransaction,
runtime_types::sp_runtime::transaction_validity::TransactionValidityError,
>,
> {
::subxt::runtime_api::Payload::new_static(
"TaggedTransactionQueue",
"validate_transaction",
types::ValidateTransaction {
source,
tx,
block_hash,
},
[
196u8, 50u8, 90u8, 49u8, 109u8, 251u8, 200u8, 35u8, 23u8, 150u8, 140u8,
143u8, 232u8, 164u8, 133u8, 89u8, 32u8, 240u8, 115u8, 39u8, 95u8, 70u8,
162u8, 76u8, 122u8, 73u8, 151u8, 144u8, 234u8, 120u8, 100u8, 29u8,
],
)
}
}
pub mod types {
use super::runtime_types;
#[derive(
:: subxt :: ext :: codec :: Decode,
:: subxt :: ext :: codec :: Encode,
:: subxt :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
# [codec (crate = :: subxt :: ext :: codec)]
#[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
pub struct ValidateTransaction { pub source : runtime_types :: sp_runtime :: transaction_validity :: TransactionSource , pub tx : :: subxt :: utils :: UncheckedExtrinsic < :: subxt :: utils :: MultiAddress < :: subxt :: utils :: AccountId32 , () > , runtime_types :: madya_solo_runtime :: RuntimeCall , runtime_types :: sp_runtime :: MultiSignature , (runtime_types :: frame_system :: extensions :: check_non_zero_sender :: CheckNonZeroSender , runtime_types :: frame_system :: extensions :: check_spec_version :: CheckSpecVersion , runtime_types :: frame_system :: extensions :: check_tx_version :: CheckTxVersion , runtime_types :: frame_system :: extensions :: check_genesis :: CheckGenesis , runtime_types :: frame_system :: extensions :: check_mortality :: CheckMortality , runtime_types :: frame_system :: extensions :: check_nonce :: CheckNonce , runtime_types :: frame_system :: extensions :: check_weight :: CheckWeight , runtime_types :: pallet_transaction_payment :: ChargeTransactionPayment ,) > , pub block_hash : :: subxt :: utils :: H256 , }
}
}
pub mod offchain_worker_api {
use super::root_mod;
use super::runtime_types;
#[doc = " The offchain worker api."]
pub struct OffchainWorkerApi;
impl OffchainWorkerApi {
#[doc = " Starts the off-chain task for given block header."]
pub fn offchain_worker(
&self,
header: runtime_types::sp_runtime::generic::header::Header<
::core::primitive::u32,
>,
) -> ::subxt::runtime_api::Payload<types::OffchainWorker, ()> {
::subxt::runtime_api::Payload::new_static(
"OffchainWorkerApi",
"offchain_worker",
types::OffchainWorker { header },
[
10u8, 135u8, 19u8, 153u8, 33u8, 216u8, 18u8, 242u8, 33u8, 140u8, 4u8,
223u8, 200u8, 130u8, 103u8, 118u8, 137u8, 24u8, 19u8, 127u8, 161u8,
29u8, 184u8, 111u8, 222u8, 111u8, 253u8, 73u8, 45u8, 31u8, 79u8, 60u8,
],
)
}
}
pub mod types {
use super::runtime_types;
#[derive(
:: subxt :: ext :: codec :: Decode,
:: subxt :: ext :: codec :: Encode,
:: subxt :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
# [codec (crate = :: subxt :: ext :: codec)]
#[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
pub struct OffchainWorker {
pub header:
runtime_types::sp_runtime::generic::header::Header<::core::primitive::u32>,
}
}
}
pub mod aura_api {
use super::root_mod;
use super::runtime_types;
#[doc = " API necessary for block authorship with aura."]
pub struct AuraApi;
impl AuraApi {
#[doc = " Returns the slot duration for Aura."]
#[doc = ""]
#[doc = " Currently, only the value provided by this type at genesis will be used."]
pub fn slot_duration(
&self,
) -> ::subxt::runtime_api::Payload<
types::SlotDuration,
runtime_types::sp_consensus_slots::SlotDuration,
> {
::subxt::runtime_api::Payload::new_static(
"AuraApi",
"slot_duration",
types::SlotDuration {},
[
233u8, 210u8, 132u8, 172u8, 100u8, 125u8, 239u8, 92u8, 114u8, 82u8,
7u8, 110u8, 179u8, 196u8, 10u8, 19u8, 211u8, 15u8, 174u8, 2u8, 91u8,
73u8, 133u8, 100u8, 205u8, 201u8, 191u8, 60u8, 163u8, 122u8, 215u8,
10u8,
],
)
}
#[doc = " Return the current set of authorities."]
pub fn authorities(
&self,
) -> ::subxt::runtime_api::Payload<
types::Authorities,
::std::vec::Vec<runtime_types::sp_consensus_aura::sr25519::app_sr25519::Public>,
> {
::subxt::runtime_api::Payload::new_static(
"AuraApi",
"authorities",
types::Authorities {},
[
96u8, 136u8, 226u8, 244u8, 105u8, 189u8, 8u8, 250u8, 71u8, 230u8, 37u8,
123u8, 218u8, 47u8, 179u8, 16u8, 170u8, 181u8, 165u8, 77u8, 102u8,
51u8, 43u8, 51u8, 186u8, 84u8, 49u8, 15u8, 208u8, 226u8, 129u8, 230u8,
],
)
}
}
pub mod types {
use super::runtime_types;
#[derive(
:: subxt :: ext :: codec :: Decode,
:: subxt :: ext :: codec :: Encode,
:: subxt :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
# [codec (crate = :: subxt :: ext :: codec)]
#[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
pub struct SlotDuration {}
#[derive(
:: subxt :: ext :: codec :: Decode,
:: subxt :: ext :: codec :: Encode,
:: subxt :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
# [codec (crate = :: subxt :: ext :: codec)]
#[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
pub struct Authorities {}
}
}
pub mod session_keys {
use super::root_mod;
use super::runtime_types;
#[doc = " Session keys runtime api."]
pub struct SessionKeys;
impl SessionKeys {
#[doc = " Generate a set of session keys with optionally using the given seed."]
#[doc = " The keys should be stored within the keystore exposed via runtime"]
#[doc = " externalities."]
#[doc = ""]
#[doc = " The seed needs to be a valid `utf8` string."]
#[doc = ""]
#[doc = " Returns the concatenated SCALE encoded public keys."]
pub fn generate_session_keys(
&self,
seed: ::core::option::Option<::std::vec::Vec<::core::primitive::u8>>,
) -> ::subxt::runtime_api::Payload<
types::GenerateSessionKeys,
::std::vec::Vec<::core::primitive::u8>,
> {
::subxt::runtime_api::Payload::new_static(
"SessionKeys",
"generate_session_keys",
types::GenerateSessionKeys { seed },
[
96u8, 171u8, 164u8, 166u8, 175u8, 102u8, 101u8, 47u8, 133u8, 95u8,
102u8, 202u8, 83u8, 26u8, 238u8, 47u8, 126u8, 132u8, 22u8, 11u8, 33u8,
190u8, 175u8, 94u8, 58u8, 245u8, 46u8, 80u8, 195u8, 184u8, 107u8, 65u8,
],
)
}
#[doc = " Decode the given public session keys."]
#[doc = ""]
#[doc = " Returns the list of public raw public keys + key type."]
pub fn decode_session_keys(
&self,
encoded: ::std::vec::Vec<::core::primitive::u8>,
) -> ::subxt::runtime_api::Payload<
types::DecodeSessionKeys,
::core::option::Option<
::std::vec::Vec<(
::std::vec::Vec<::core::primitive::u8>,
runtime_types::sp_core::crypto::KeyTypeId,
)>,
>,
> {
::subxt::runtime_api::Payload::new_static(
"SessionKeys",
"decode_session_keys",
types::DecodeSessionKeys { encoded },
[
57u8, 242u8, 18u8, 51u8, 132u8, 110u8, 238u8, 255u8, 39u8, 194u8, 8u8,
54u8, 198u8, 178u8, 75u8, 151u8, 148u8, 176u8, 144u8, 197u8, 87u8,
29u8, 179u8, 235u8, 176u8, 78u8, 252u8, 103u8, 72u8, 203u8, 151u8,
248u8,
],
)
}
}
pub mod types {
use super::runtime_types;
#[derive(
:: subxt :: ext :: codec :: Decode,
:: subxt :: ext :: codec :: Encode,
:: subxt :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
# [codec (crate = :: subxt :: ext :: codec)]
#[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
pub struct GenerateSessionKeys {
pub seed: ::core::option::Option<::std::vec::Vec<::core::primitive::u8>>,
}
#[derive(
:: subxt :: ext :: codec :: Decode,
:: subxt :: ext :: codec :: Encode,
:: subxt :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
# [codec (crate = :: subxt :: ext :: codec)]
#[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
pub struct DecodeSessionKeys {
pub encoded: ::std::vec::Vec<::core::primitive::u8>,
}
}
}
pub mod grandpa_api {
use super::root_mod;
use super::runtime_types;
#[doc = " APIs for integrating the GRANDPA finality gadget into runtimes."]
#[doc = " This should be implemented on the runtime side."]
#[doc = ""]
#[doc = " This is primarily used for negotiating authority-set changes for the"]
#[doc = " gadget. GRANDPA uses a signaling model of changing authority sets:"]
#[doc = " changes should be signaled with a delay of N blocks, and then automatically"]
#[doc = " applied in the runtime after those N blocks have passed."]
#[doc = ""]
#[doc = " The consensus protocol will coordinate the handoff externally."]
pub struct GrandpaApi;
impl GrandpaApi {
#[doc = " Get the current GRANDPA authorities and weights. This should not change except"]
#[doc = " for when changes are scheduled and the corresponding delay has passed."]
#[doc = ""]
#[doc = " When called at block B, it will return the set of authorities that should be"]
#[doc = " used to finalize descendants of this block (B+1, B+2, ...). The block B itself"]
#[doc = " is finalized by the authorities from block B-1."]
pub fn grandpa_authorities(
&self,
) -> ::subxt::runtime_api::Payload<
types::GrandpaAuthorities,
::std::vec::Vec<(
runtime_types::sp_consensus_grandpa::app::Public,
::core::primitive::u64,
)>,
> {
::subxt::runtime_api::Payload::new_static(
"GrandpaApi",
"grandpa_authorities",
types::GrandpaAuthorities {},
[
166u8, 76u8, 160u8, 101u8, 242u8, 145u8, 213u8, 10u8, 16u8, 130u8,
230u8, 196u8, 125u8, 152u8, 92u8, 143u8, 119u8, 223u8, 140u8, 189u8,
203u8, 95u8, 52u8, 105u8, 147u8, 107u8, 135u8, 228u8, 62u8, 178u8,
128u8, 33u8,
],
)
}
#[doc = " Submits an unsigned extrinsic to report an equivocation. The caller"]
#[doc = " must provide the equivocation proof and a key ownership proof"]
#[doc = " (should be obtained using `generate_key_ownership_proof`). The"]
#[doc = " extrinsic will be unsigned and should only be accepted for local"]
#[doc = " authorship (not to be broadcast to the network). This method returns"]
#[doc = " `None` when creation of the extrinsic fails, e.g. if equivocation"]
#[doc = " reporting is disabled for the given runtime (i.e. this method is"]
#[doc = " hardcoded to return `None`). Only useful in an offchain context."]
pub fn submit_report_equivocation_unsigned_extrinsic(
&self,
equivocation_proof: runtime_types::sp_consensus_grandpa::EquivocationProof<
::subxt::utils::H256,
::core::primitive::u32,
>,
key_owner_proof: runtime_types::sp_consensus_grandpa::OpaqueKeyOwnershipProof,
) -> ::subxt::runtime_api::Payload<
types::SubmitReportEquivocationUnsignedExtrinsic,
::core::option::Option<()>,
> {
::subxt::runtime_api::Payload::new_static(
"GrandpaApi",
"submit_report_equivocation_unsigned_extrinsic",
types::SubmitReportEquivocationUnsignedExtrinsic {
equivocation_proof,
key_owner_proof,
},
[
112u8, 94u8, 150u8, 250u8, 132u8, 127u8, 185u8, 24u8, 113u8, 62u8,
28u8, 171u8, 83u8, 9u8, 41u8, 228u8, 92u8, 137u8, 29u8, 190u8, 214u8,
232u8, 100u8, 66u8, 100u8, 168u8, 149u8, 122u8, 93u8, 17u8, 236u8,
104u8,
],
)
}
#[doc = " Generates a proof of key ownership for the given authority in the"]
#[doc = " given set. An example usage of this module is coupled with the"]
#[doc = " session historical module to prove that a given authority key is"]
#[doc = " tied to a given staking identity during a specific session. Proofs"]
#[doc = " of key ownership are necessary for submitting equivocation reports."]
#[doc = " NOTE: even though the API takes a `set_id` as parameter the current"]
#[doc = " implementations ignore this parameter and instead rely on this"]
#[doc = " method being called at the correct block height, i.e. any point at"]
#[doc = " which the given set id is live on-chain. Future implementations will"]
#[doc = " instead use indexed data through an offchain worker, not requiring"]
#[doc = " older states to be available."]
pub fn generate_key_ownership_proof(
&self,
set_id: ::core::primitive::u64,
authority_id: runtime_types::sp_consensus_grandpa::app::Public,
) -> ::subxt::runtime_api::Payload<
types::GenerateKeyOwnershipProof,
::core::option::Option<
runtime_types::sp_consensus_grandpa::OpaqueKeyOwnershipProof,
>,
> {
::subxt::runtime_api::Payload::new_static(
"GrandpaApi",
"generate_key_ownership_proof",
types::GenerateKeyOwnershipProof {
set_id,
authority_id,
},
[
40u8, 126u8, 113u8, 27u8, 245u8, 45u8, 123u8, 138u8, 12u8, 3u8, 125u8,
186u8, 151u8, 53u8, 186u8, 93u8, 13u8, 150u8, 163u8, 176u8, 206u8,
89u8, 244u8, 127u8, 182u8, 85u8, 203u8, 41u8, 101u8, 183u8, 209u8,
179u8,
],
)
}
#[doc = " Get current GRANDPA authority set id."]
pub fn current_set_id(
&self,
) -> ::subxt::runtime_api::Payload<types::CurrentSetId, ::core::primitive::u64>
{
::subxt::runtime_api::Payload::new_static(
"GrandpaApi",
"current_set_id",
types::CurrentSetId {},
[
42u8, 230u8, 120u8, 211u8, 156u8, 245u8, 109u8, 86u8, 100u8, 146u8,
234u8, 205u8, 41u8, 183u8, 109u8, 42u8, 17u8, 33u8, 156u8, 25u8, 139u8,
84u8, 101u8, 75u8, 232u8, 198u8, 87u8, 136u8, 218u8, 233u8, 103u8,
156u8,
],
)
}
}
pub mod types {
use super::runtime_types;
#[derive(
:: subxt :: ext :: codec :: Decode,
:: subxt :: ext :: codec :: Encode,
:: subxt :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
# [codec (crate = :: subxt :: ext :: codec)]
#[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
pub struct GrandpaAuthorities {}
#[derive(
:: subxt :: ext :: codec :: Decode,
:: subxt :: ext :: codec :: Encode,
:: subxt :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
# [codec (crate = :: subxt :: ext :: codec)]
#[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
pub struct SubmitReportEquivocationUnsignedExtrinsic {
pub equivocation_proof: runtime_types::sp_consensus_grandpa::EquivocationProof<
::subxt::utils::H256,
::core::primitive::u32,
>,
pub key_owner_proof:
runtime_types::sp_consensus_grandpa::OpaqueKeyOwnershipProof,
}
#[derive(
:: subxt :: ext :: codec :: Decode,
:: subxt :: ext :: codec :: Encode,
:: subxt :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
# [codec (crate = :: subxt :: ext :: codec)]
#[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
pub struct GenerateKeyOwnershipProof {
pub set_id: ::core::primitive::u64,
pub authority_id: runtime_types::sp_consensus_grandpa::app::Public,
}
#[derive(
:: subxt :: ext :: codec :: Decode,
:: subxt :: ext :: codec :: Encode,
:: subxt :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
# [codec (crate = :: subxt :: ext :: codec)]
#[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
pub struct CurrentSetId {}
}
}
pub mod account_nonce_api {
use super::root_mod;
use super::runtime_types;
#[doc = " The API to query account nonce."]
pub struct AccountNonceApi;
impl AccountNonceApi {
#[doc = " Get current account nonce of given `AccountId`."]
pub fn account_nonce(
&self,
account: ::subxt::utils::AccountId32,
) -> ::subxt::runtime_api::Payload<types::AccountNonce, ::core::primitive::u32>
{
::subxt::runtime_api::Payload::new_static(
"AccountNonceApi",
"account_nonce",
types::AccountNonce { account },
[
231u8, 82u8, 7u8, 227u8, 131u8, 2u8, 215u8, 252u8, 173u8, 82u8, 11u8,
103u8, 200u8, 25u8, 114u8, 116u8, 79u8, 229u8, 152u8, 150u8, 236u8,
37u8, 101u8, 26u8, 220u8, 146u8, 182u8, 101u8, 73u8, 55u8, 191u8,
171u8,
],
)
}
}
pub mod types {
use super::runtime_types;
#[derive(
:: subxt :: ext :: codec :: Decode,
:: subxt :: ext :: codec :: Encode,
:: subxt :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
# [codec (crate = :: subxt :: ext :: codec)]
#[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
pub struct AccountNonce {
pub account: ::subxt::utils::AccountId32,
}
}
}
pub mod transaction_payment_api {
use super::root_mod;
use super::runtime_types;
pub struct TransactionPaymentApi;
impl TransactionPaymentApi {
pub fn query_info(
&self,
uxt : :: subxt :: utils :: UncheckedExtrinsic < :: subxt :: utils :: MultiAddress < :: subxt :: utils :: AccountId32 , () > , runtime_types :: madya_solo_runtime :: RuntimeCall , runtime_types :: sp_runtime :: MultiSignature , (runtime_types :: frame_system :: extensions :: check_non_zero_sender :: CheckNonZeroSender , runtime_types :: frame_system :: extensions :: check_spec_version :: CheckSpecVersion , runtime_types :: frame_system :: extensions :: check_tx_version :: CheckTxVersion , runtime_types :: frame_system :: extensions :: check_genesis :: CheckGenesis , runtime_types :: frame_system :: extensions :: check_mortality :: CheckMortality , runtime_types :: frame_system :: extensions :: check_nonce :: CheckNonce , runtime_types :: frame_system :: extensions :: check_weight :: CheckWeight , runtime_types :: pallet_transaction_payment :: ChargeTransactionPayment ,) >,
len: ::core::primitive::u32,
) -> ::subxt::runtime_api::Payload<
types::QueryInfo,
runtime_types::pallet_transaction_payment::types::RuntimeDispatchInfo<
::core::primitive::u128,
runtime_types::sp_weights::weight_v2::Weight,
>,
> {
::subxt::runtime_api::Payload::new_static(
"TransactionPaymentApi",
"query_info",
types::QueryInfo { uxt, len },
[
56u8, 30u8, 174u8, 34u8, 202u8, 24u8, 177u8, 189u8, 145u8, 36u8, 1u8,
156u8, 98u8, 209u8, 178u8, 49u8, 198u8, 23u8, 150u8, 173u8, 35u8,
205u8, 147u8, 129u8, 42u8, 22u8, 69u8, 3u8, 129u8, 8u8, 196u8, 139u8,
],
)
}
pub fn query_fee_details(
&self,
uxt : :: subxt :: utils :: UncheckedExtrinsic < :: subxt :: utils :: MultiAddress < :: subxt :: utils :: AccountId32 , () > , runtime_types :: madya_solo_runtime :: RuntimeCall , runtime_types :: sp_runtime :: MultiSignature , (runtime_types :: frame_system :: extensions :: check_non_zero_sender :: CheckNonZeroSender , runtime_types :: frame_system :: extensions :: check_spec_version :: CheckSpecVersion , runtime_types :: frame_system :: extensions :: check_tx_version :: CheckTxVersion , runtime_types :: frame_system :: extensions :: check_genesis :: CheckGenesis , runtime_types :: frame_system :: extensions :: check_mortality :: CheckMortality , runtime_types :: frame_system :: extensions :: check_nonce :: CheckNonce , runtime_types :: frame_system :: extensions :: check_weight :: CheckWeight , runtime_types :: pallet_transaction_payment :: ChargeTransactionPayment ,) >,
len: ::core::primitive::u32,
) -> ::subxt::runtime_api::Payload<
types::QueryFeeDetails,
runtime_types::pallet_transaction_payment::types::FeeDetails<
::core::primitive::u128,
>,
> {
::subxt::runtime_api::Payload::new_static(
"TransactionPaymentApi",
"query_fee_details",
types::QueryFeeDetails { uxt, len },
[
117u8, 60u8, 137u8, 159u8, 237u8, 252u8, 216u8, 238u8, 232u8, 1u8,
100u8, 152u8, 26u8, 185u8, 145u8, 125u8, 68u8, 189u8, 4u8, 30u8, 125u8,
7u8, 196u8, 153u8, 235u8, 51u8, 219u8, 108u8, 185u8, 254u8, 100u8,
201u8,
],
)
}
pub fn query_weight_to_fee(
&self,
weight: runtime_types::sp_weights::weight_v2::Weight,
) -> ::subxt::runtime_api::Payload<types::QueryWeightToFee, ::core::primitive::u128>
{
::subxt::runtime_api::Payload::new_static(
"TransactionPaymentApi",
"query_weight_to_fee",
types::QueryWeightToFee { weight },
[
206u8, 243u8, 189u8, 83u8, 231u8, 244u8, 247u8, 52u8, 126u8, 208u8,
224u8, 5u8, 163u8, 108u8, 254u8, 114u8, 214u8, 156u8, 227u8, 217u8,
211u8, 198u8, 121u8, 164u8, 110u8, 54u8, 181u8, 146u8, 50u8, 146u8,
146u8, 23u8,
],
)
}
pub fn query_length_to_fee(
&self,
length: ::core::primitive::u32,
) -> ::subxt::runtime_api::Payload<types::QueryLengthToFee, ::core::primitive::u128>
{
::subxt::runtime_api::Payload::new_static(
"TransactionPaymentApi",
"query_length_to_fee",
types::QueryLengthToFee { length },
[
92u8, 132u8, 29u8, 119u8, 66u8, 11u8, 196u8, 224u8, 129u8, 23u8, 249u8,
12u8, 32u8, 28u8, 92u8, 50u8, 188u8, 101u8, 203u8, 229u8, 248u8, 216u8,
130u8, 150u8, 212u8, 161u8, 81u8, 254u8, 116u8, 89u8, 162u8, 48u8,
],
)
}
}
pub mod types {
use super::runtime_types;
#[derive(
:: subxt :: ext :: codec :: Decode,
:: subxt :: ext :: codec :: Encode,
:: subxt :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
# [codec (crate = :: subxt :: ext :: codec)]
#[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
pub struct QueryInfo { pub uxt : :: subxt :: utils :: UncheckedExtrinsic < :: subxt :: utils :: MultiAddress < :: subxt :: utils :: AccountId32 , () > , runtime_types :: madya_solo_runtime :: RuntimeCall , runtime_types :: sp_runtime :: MultiSignature , (runtime_types :: frame_system :: extensions :: check_non_zero_sender :: CheckNonZeroSender , runtime_types :: frame_system :: extensions :: check_spec_version :: CheckSpecVersion , runtime_types :: frame_system :: extensions :: check_tx_version :: CheckTxVersion , runtime_types :: frame_system :: extensions :: check_genesis :: CheckGenesis , runtime_types :: frame_system :: extensions :: check_mortality :: CheckMortality , runtime_types :: frame_system :: extensions :: check_nonce :: CheckNonce , runtime_types :: frame_system :: extensions :: check_weight :: CheckWeight , runtime_types :: pallet_transaction_payment :: ChargeTransactionPayment ,) > , pub len : :: core :: primitive :: u32 , }
#[derive(
:: subxt :: ext :: codec :: Decode,
:: subxt :: ext :: codec :: Encode,
:: subxt :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
# [codec (crate = :: subxt :: ext :: codec)]
#[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
pub struct QueryFeeDetails { pub uxt : :: subxt :: utils :: UncheckedExtrinsic < :: subxt :: utils :: MultiAddress < :: subxt :: utils :: AccountId32 , () > , runtime_types :: madya_solo_runtime :: RuntimeCall , runtime_types :: sp_runtime :: MultiSignature , (runtime_types :: frame_system :: extensions :: check_non_zero_sender :: CheckNonZeroSender , runtime_types :: frame_system :: extensions :: check_spec_version :: CheckSpecVersion , runtime_types :: frame_system :: extensions :: check_tx_version :: CheckTxVersion , runtime_types :: frame_system :: extensions :: check_genesis :: CheckGenesis , runtime_types :: frame_system :: extensions :: check_mortality :: CheckMortality , runtime_types :: frame_system :: extensions :: check_nonce :: CheckNonce , runtime_types :: frame_system :: extensions :: check_weight :: CheckWeight , runtime_types :: pallet_transaction_payment :: ChargeTransactionPayment ,) > , pub len : :: core :: primitive :: u32 , }
#[derive(
:: subxt :: ext :: codec :: Decode,
:: subxt :: ext :: codec :: Encode,
:: subxt :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
# [codec (crate = :: subxt :: ext :: codec)]
#[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
pub struct QueryWeightToFee {
pub weight: runtime_types::sp_weights::weight_v2::Weight,
}
#[derive(
:: subxt :: ext :: codec :: Decode,
:: subxt :: ext :: codec :: Encode,
:: subxt :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
# [codec (crate = :: subxt :: ext :: codec)]
#[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
pub struct QueryLengthToFee {
pub length: ::core::primitive::u32,
}
}
}
pub mod transaction_payment_call_api {
use super::root_mod;
use super::runtime_types;
pub struct TransactionPaymentCallApi;
impl TransactionPaymentCallApi {
#[doc = " Query information of a dispatch class, weight, and fee of a given encoded `Call`."]
pub fn query_call_info(
&self,
call: runtime_types::madya_solo_runtime::RuntimeCall,
len: ::core::primitive::u32,
) -> ::subxt::runtime_api::Payload<
types::QueryCallInfo,
runtime_types::pallet_transaction_payment::types::RuntimeDispatchInfo<
::core::primitive::u128,
runtime_types::sp_weights::weight_v2::Weight,
>,
> {
::subxt::runtime_api::Payload::new_static(
"TransactionPaymentCallApi",
"query_call_info",
types::QueryCallInfo { call, len },
[
229u8, 196u8, 204u8, 136u8, 189u8, 107u8, 51u8, 14u8, 100u8, 38u8,
13u8, 9u8, 207u8, 177u8, 53u8, 132u8, 162u8, 104u8, 21u8, 134u8, 182u8,
50u8, 71u8, 242u8, 77u8, 85u8, 146u8, 62u8, 29u8, 149u8, 223u8, 22u8,
],
)
}
#[doc = " Query fee details of a given encoded `Call`."]
pub fn query_call_fee_details(
&self,
call: runtime_types::madya_solo_runtime::RuntimeCall,
len: ::core::primitive::u32,
) -> ::subxt::runtime_api::Payload<
types::QueryCallFeeDetails,
runtime_types::pallet_transaction_payment::types::FeeDetails<
::core::primitive::u128,
>,
> {
::subxt::runtime_api::Payload::new_static(
"TransactionPaymentCallApi",
"query_call_fee_details",
types::QueryCallFeeDetails { call, len },
[
232u8, 165u8, 140u8, 217u8, 179u8, 207u8, 90u8, 231u8, 71u8, 217u8,
119u8, 255u8, 5u8, 62u8, 128u8, 238u8, 181u8, 107u8, 151u8, 251u8,
136u8, 235u8, 47u8, 65u8, 38u8, 103u8, 97u8, 153u8, 70u8, 245u8, 99u8,
131u8,
],
)
}
#[doc = " Query the output of the current `WeightToFee` given some input."]
pub fn query_weight_to_fee(
&self,
weight: runtime_types::sp_weights::weight_v2::Weight,
) -> ::subxt::runtime_api::Payload<types::QueryWeightToFee, ::core::primitive::u128>
{
::subxt::runtime_api::Payload::new_static(
"TransactionPaymentCallApi",
"query_weight_to_fee",
types::QueryWeightToFee { weight },
[
117u8, 91u8, 94u8, 22u8, 248u8, 212u8, 15u8, 23u8, 97u8, 116u8, 64u8,
228u8, 83u8, 123u8, 87u8, 77u8, 97u8, 7u8, 98u8, 181u8, 6u8, 165u8,
114u8, 141u8, 164u8, 113u8, 126u8, 88u8, 174u8, 171u8, 224u8, 35u8,
],
)
}
#[doc = " Query the output of the current `LengthToFee` given some input."]
pub fn query_length_to_fee(
&self,
length: ::core::primitive::u32,
) -> ::subxt::runtime_api::Payload<types::QueryLengthToFee, ::core::primitive::u128>
{
::subxt::runtime_api::Payload::new_static(
"TransactionPaymentCallApi",
"query_length_to_fee",
types::QueryLengthToFee { length },
[
246u8, 40u8, 4u8, 160u8, 152u8, 94u8, 170u8, 53u8, 205u8, 122u8, 5u8,
69u8, 70u8, 25u8, 128u8, 156u8, 119u8, 134u8, 116u8, 147u8, 14u8,
164u8, 65u8, 140u8, 86u8, 13u8, 250u8, 218u8, 89u8, 95u8, 234u8, 228u8,
],
)
}
}
pub mod types {
use super::runtime_types;
#[derive(
:: subxt :: ext :: codec :: Decode,
:: subxt :: ext :: codec :: Encode,
:: subxt :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
# [codec (crate = :: subxt :: ext :: codec)]
#[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
pub struct QueryCallInfo {
pub call: runtime_types::madya_solo_runtime::RuntimeCall,
pub len: ::core::primitive::u32,
}
#[derive(
:: subxt :: ext :: codec :: Decode,
:: subxt :: ext :: codec :: Encode,
:: subxt :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
# [codec (crate = :: subxt :: ext :: codec)]
#[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
pub struct QueryCallFeeDetails {
pub call: runtime_types::madya_solo_runtime::RuntimeCall,
pub len: ::core::primitive::u32,
}
#[derive(
:: subxt :: ext :: codec :: Decode,
:: subxt :: ext :: codec :: Encode,
:: subxt :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
# [codec (crate = :: subxt :: ext :: codec)]
#[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
pub struct QueryWeightToFee {
pub weight: runtime_types::sp_weights::weight_v2::Weight,
}
#[derive(
:: subxt :: ext :: codec :: Decode,
:: subxt :: ext :: codec :: Encode,
:: subxt :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
# [codec (crate = :: subxt :: ext :: codec)]
#[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
pub struct QueryLengthToFee {
pub length: ::core::primitive::u32,
}
}
}
}
pub fn custom() -> CustomValuesApi {
CustomValuesApi
}
pub struct CustomValuesApi;
impl CustomValuesApi {}
pub struct ConstantsApi;
impl ConstantsApi {
pub fn system(&self) -> system::constants::ConstantsApi {
system::constants::ConstantsApi
}
pub fn timestamp(&self) -> timestamp::constants::ConstantsApi {
timestamp::constants::ConstantsApi
}
pub fn grandpa(&self) -> grandpa::constants::ConstantsApi {
grandpa::constants::ConstantsApi
}
pub fn balances(&self) -> balances::constants::ConstantsApi {
balances::constants::ConstantsApi
}
pub fn transaction_payment(&self) -> transaction_payment::constants::ConstantsApi {
transaction_payment::constants::ConstantsApi
}
pub fn contracts(&self) -> contracts::constants::ConstantsApi {
contracts::constants::ConstantsApi
}
}
pub struct StorageApi;
impl StorageApi {
pub fn system(&self) -> system::storage::StorageApi {
system::storage::StorageApi
}
pub fn timestamp(&self) -> timestamp::storage::StorageApi {
timestamp::storage::StorageApi
}
pub fn aura(&self) -> aura::storage::StorageApi {
aura::storage::StorageApi
}
pub fn grandpa(&self) -> grandpa::storage::StorageApi {
grandpa::storage::StorageApi
}
pub fn balances(&self) -> balances::storage::StorageApi {
balances::storage::StorageApi
}
pub fn transaction_payment(&self) -> transaction_payment::storage::StorageApi {
transaction_payment::storage::StorageApi
}
pub fn sudo(&self) -> sudo::storage::StorageApi {
sudo::storage::StorageApi
}
pub fn randomness_collective_flip(
&self,
) -> randomness_collective_flip::storage::StorageApi {
randomness_collective_flip::storage::StorageApi
}
pub fn contracts(&self) -> contracts::storage::StorageApi {
contracts::storage::StorageApi
}
}
pub struct TransactionApi;
impl TransactionApi {
pub fn system(&self) -> system::calls::TransactionApi {
system::calls::TransactionApi
}
pub fn timestamp(&self) -> timestamp::calls::TransactionApi {
timestamp::calls::TransactionApi
}
pub fn grandpa(&self) -> grandpa::calls::TransactionApi {
grandpa::calls::TransactionApi
}
pub fn balances(&self) -> balances::calls::TransactionApi {
balances::calls::TransactionApi
}
pub fn sudo(&self) -> sudo::calls::TransactionApi {
sudo::calls::TransactionApi
}
pub fn contracts(&self) -> contracts::calls::TransactionApi {
contracts::calls::TransactionApi
}
}
#[doc = r" check whether the metadata provided is aligned with this statically generated code."]
pub fn is_codegen_valid_for(metadata: &::subxt::Metadata) -> bool {
let runtime_metadata_hash = metadata
.hasher()
.only_these_pallets(&PALLETS)
.only_these_runtime_apis(&RUNTIME_APIS)
.hash();
runtime_metadata_hash
== [
204u8, 210u8, 4u8, 87u8, 184u8, 244u8, 84u8, 222u8, 211u8, 18u8, 181u8, 128u8,
196u8, 24u8, 251u8, 92u8, 90u8, 135u8, 105u8, 32u8, 14u8, 99u8, 13u8, 131u8, 215u8,
61u8, 172u8, 47u8, 194u8, 77u8, 195u8, 177u8,
]
}
pub mod system {
use super::root_mod;
use super::runtime_types;
#[doc = "Error for the System pallet"]
pub type Error = runtime_types::frame_system::pallet::Error;
#[doc = "Contains a variant per dispatchable extrinsic that this pallet has."]
pub type Call = runtime_types::frame_system::pallet::Call;
pub mod calls {
use super::root_mod;
use super::runtime_types;
type DispatchError = runtime_types::sp_runtime::DispatchError;
pub mod types {
use super::runtime_types;
#[derive(
:: subxt :: ext :: codec :: Decode,
:: subxt :: ext :: codec :: Encode,
:: subxt :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
# [codec (crate = :: subxt :: ext :: codec)]
#[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
pub struct Remark {
pub remark: ::std::vec::Vec<::core::primitive::u8>,
}
impl ::subxt::blocks::StaticExtrinsic for Remark {
const PALLET: &'static str = "System";
const CALL: &'static str = "remark";
}
#[derive(
:: subxt :: ext :: codec :: CompactAs,
:: subxt :: ext :: codec :: Decode,
:: subxt :: ext :: codec :: Encode,
:: subxt :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
# [codec (crate = :: subxt :: ext :: codec)]
#[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
pub struct SetHeapPages {
pub pages: ::core::primitive::u64,
}
impl ::subxt::blocks::StaticExtrinsic for SetHeapPages {
const PALLET: &'static str = "System";
const CALL: &'static str = "set_heap_pages";
}
#[derive(
:: subxt :: ext :: codec :: Decode,
:: subxt :: ext :: codec :: Encode,
:: subxt :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
# [codec (crate = :: subxt :: ext :: codec)]
#[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
pub struct SetCode {
pub code: ::std::vec::Vec<::core::primitive::u8>,
}
impl ::subxt::blocks::StaticExtrinsic for SetCode {
const PALLET: &'static str = "System";
const CALL: &'static str = "set_code";
}
#[derive(
:: subxt :: ext :: codec :: Decode,
:: subxt :: ext :: codec :: Encode,
:: subxt :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
# [codec (crate = :: subxt :: ext :: codec)]
#[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
pub struct SetCodeWithoutChecks {
pub code: ::std::vec::Vec<::core::primitive::u8>,
}
impl ::subxt::blocks::StaticExtrinsic for SetCodeWithoutChecks {
const PALLET: &'static str = "System";
const CALL: &'static str = "set_code_without_checks";
}
#[derive(
:: subxt :: ext :: codec :: Decode,
:: subxt :: ext :: codec :: Encode,
:: subxt :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
# [codec (crate = :: subxt :: ext :: codec)]
#[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
pub struct SetStorage {
pub items: ::std::vec::Vec<(
::std::vec::Vec<::core::primitive::u8>,
::std::vec::Vec<::core::primitive::u8>,
)>,
}
impl ::subxt::blocks::StaticExtrinsic for SetStorage {
const PALLET: &'static str = "System";
const CALL: &'static str = "set_storage";
}
#[derive(
:: subxt :: ext :: codec :: Decode,
:: subxt :: ext :: codec :: Encode,
:: subxt :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
# [codec (crate = :: subxt :: ext :: codec)]
#[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
pub struct KillStorage {
pub keys: ::std::vec::Vec<::std::vec::Vec<::core::primitive::u8>>,
}
impl ::subxt::blocks::StaticExtrinsic for KillStorage {
const PALLET: &'static str = "System";
const CALL: &'static str = "kill_storage";
}
#[derive(
:: subxt :: ext :: codec :: Decode,
:: subxt :: ext :: codec :: Encode,
:: subxt :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
# [codec (crate = :: subxt :: ext :: codec)]
#[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
pub struct KillPrefix {
pub prefix: ::std::vec::Vec<::core::primitive::u8>,
pub subkeys: ::core::primitive::u32,
}
impl ::subxt::blocks::StaticExtrinsic for KillPrefix {
const PALLET: &'static str = "System";
const CALL: &'static str = "kill_prefix";
}
#[derive(
:: subxt :: ext :: codec :: Decode,
:: subxt :: ext :: codec :: Encode,
:: subxt :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
# [codec (crate = :: subxt :: ext :: codec)]
#[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
pub struct RemarkWithEvent {
pub remark: ::std::vec::Vec<::core::primitive::u8>,
}
impl ::subxt::blocks::StaticExtrinsic for RemarkWithEvent {
const PALLET: &'static str = "System";
const CALL: &'static str = "remark_with_event";
}
}
pub struct TransactionApi;
impl TransactionApi {
#[doc = "See [`Pallet::remark`]."]
pub fn remark(
&self,
remark: ::std::vec::Vec<::core::primitive::u8>,
) -> ::subxt::tx::Payload<types::Remark> {
::subxt::tx::Payload::new_static(
"System",
"remark",
types::Remark { remark },
[
43u8, 126u8, 180u8, 174u8, 141u8, 48u8, 52u8, 125u8, 166u8, 212u8,
216u8, 98u8, 100u8, 24u8, 132u8, 71u8, 101u8, 64u8, 246u8, 169u8, 33u8,
250u8, 147u8, 208u8, 2u8, 40u8, 129u8, 209u8, 232u8, 207u8, 207u8,
13u8,
],
)
}
#[doc = "See [`Pallet::set_heap_pages`]."]
pub fn set_heap_pages(
&self,
pages: ::core::primitive::u64,
) -> ::subxt::tx::Payload<types::SetHeapPages> {
::subxt::tx::Payload::new_static(
"System",
"set_heap_pages",
types::SetHeapPages { pages },
[
188u8, 191u8, 99u8, 216u8, 219u8, 109u8, 141u8, 50u8, 78u8, 235u8,
215u8, 242u8, 195u8, 24u8, 111u8, 76u8, 229u8, 64u8, 99u8, 225u8,
134u8, 121u8, 81u8, 209u8, 127u8, 223u8, 98u8, 215u8, 150u8, 70u8,
57u8, 147u8,
],
)
}
#[doc = "See [`Pallet::set_code`]."]
pub fn set_code(
&self,
code: ::std::vec::Vec<::core::primitive::u8>,
) -> ::subxt::tx::Payload<types::SetCode> {
::subxt::tx::Payload::new_static(
"System",
"set_code",
types::SetCode { code },
[
233u8, 248u8, 88u8, 245u8, 28u8, 65u8, 25u8, 169u8, 35u8, 237u8, 19u8,
203u8, 136u8, 160u8, 18u8, 3u8, 20u8, 197u8, 81u8, 169u8, 244u8, 188u8,
27u8, 147u8, 147u8, 236u8, 65u8, 25u8, 3u8, 143u8, 182u8, 22u8,
],
)
}
#[doc = "See [`Pallet::set_code_without_checks`]."]
pub fn set_code_without_checks(
&self,
code: ::std::vec::Vec<::core::primitive::u8>,
) -> ::subxt::tx::Payload<types::SetCodeWithoutChecks> {
::subxt::tx::Payload::new_static(
"System",
"set_code_without_checks",
types::SetCodeWithoutChecks { code },
[
82u8, 212u8, 157u8, 44u8, 70u8, 0u8, 143u8, 15u8, 109u8, 109u8, 107u8,
157u8, 141u8, 42u8, 169u8, 11u8, 15u8, 186u8, 252u8, 138u8, 10u8,
147u8, 15u8, 178u8, 247u8, 229u8, 213u8, 98u8, 207u8, 231u8, 119u8,
115u8,
],
)
}
#[doc = "See [`Pallet::set_storage`]."]
pub fn set_storage(
&self,
items: ::std::vec::Vec<(
::std::vec::Vec<::core::primitive::u8>,
::std::vec::Vec<::core::primitive::u8>,
)>,
) -> ::subxt::tx::Payload<types::SetStorage> {
::subxt::tx::Payload::new_static(
"System",
"set_storage",
types::SetStorage { items },
[
141u8, 216u8, 52u8, 222u8, 223u8, 136u8, 123u8, 181u8, 19u8, 75u8,
163u8, 102u8, 229u8, 189u8, 158u8, 142u8, 95u8, 235u8, 240u8, 49u8,
150u8, 76u8, 78u8, 137u8, 126u8, 88u8, 183u8, 88u8, 231u8, 146u8,
234u8, 43u8,
],
)
}
#[doc = "See [`Pallet::kill_storage`]."]
pub fn kill_storage(
&self,
keys: ::std::vec::Vec<::std::vec::Vec<::core::primitive::u8>>,
) -> ::subxt::tx::Payload<types::KillStorage> {
::subxt::tx::Payload::new_static(
"System",
"kill_storage",
types::KillStorage { keys },
[
73u8, 63u8, 196u8, 36u8, 144u8, 114u8, 34u8, 213u8, 108u8, 93u8, 209u8,
234u8, 153u8, 185u8, 33u8, 91u8, 187u8, 195u8, 223u8, 130u8, 58u8,
156u8, 63u8, 47u8, 228u8, 249u8, 216u8, 139u8, 143u8, 177u8, 41u8,
35u8,
],
)
}
#[doc = "See [`Pallet::kill_prefix`]."]
pub fn kill_prefix(
&self,
prefix: ::std::vec::Vec<::core::primitive::u8>,
subkeys: ::core::primitive::u32,
) -> ::subxt::tx::Payload<types::KillPrefix> {
::subxt::tx::Payload::new_static(
"System",
"kill_prefix",
types::KillPrefix { prefix, subkeys },
[
184u8, 57u8, 139u8, 24u8, 208u8, 87u8, 108u8, 215u8, 198u8, 189u8,
175u8, 242u8, 167u8, 215u8, 97u8, 63u8, 110u8, 166u8, 238u8, 98u8,
67u8, 236u8, 111u8, 110u8, 234u8, 81u8, 102u8, 5u8, 182u8, 5u8, 214u8,
85u8,
],
)
}
#[doc = "See [`Pallet::remark_with_event`]."]
pub fn remark_with_event(
&self,
remark: ::std::vec::Vec<::core::primitive::u8>,
) -> ::subxt::tx::Payload<types::RemarkWithEvent> {
::subxt::tx::Payload::new_static(
"System",
"remark_with_event",
types::RemarkWithEvent { remark },
[
120u8, 120u8, 153u8, 92u8, 184u8, 85u8, 34u8, 2u8, 174u8, 206u8, 105u8,
228u8, 233u8, 130u8, 80u8, 246u8, 228u8, 59u8, 234u8, 240u8, 4u8, 49u8,
147u8, 170u8, 115u8, 91u8, 149u8, 200u8, 228u8, 181u8, 8u8, 154u8,
],
)
}
}
}
#[doc = "Event for the System pallet."]
pub type Event = runtime_types::frame_system::pallet::Event;
pub mod events {
use super::runtime_types;
#[derive(
:: subxt :: ext :: codec :: Decode,
:: subxt :: ext :: codec :: Encode,
:: subxt :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
# [codec (crate = :: subxt :: ext :: codec)]
#[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
#[doc = "An extrinsic completed successfully."]
pub struct ExtrinsicSuccess {
pub dispatch_info: runtime_types::frame_support::dispatch::DispatchInfo,
}
impl ::subxt::events::StaticEvent for ExtrinsicSuccess {
const PALLET: &'static str = "System";
const EVENT: &'static str = "ExtrinsicSuccess";
}
#[derive(
:: subxt :: ext :: codec :: Decode,
:: subxt :: ext :: codec :: Encode,
:: subxt :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
# [codec (crate = :: subxt :: ext :: codec)]
#[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
#[doc = "An extrinsic failed."]
pub struct ExtrinsicFailed {
pub dispatch_error: runtime_types::sp_runtime::DispatchError,
pub dispatch_info: runtime_types::frame_support::dispatch::DispatchInfo,
}
impl ::subxt::events::StaticEvent for ExtrinsicFailed {
const PALLET: &'static str = "System";
const EVENT: &'static str = "ExtrinsicFailed";
}
#[derive(
:: subxt :: ext :: codec :: Decode,
:: subxt :: ext :: codec :: Encode,
:: subxt :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
# [codec (crate = :: subxt :: ext :: codec)]
#[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
#[doc = "`:code` was updated."]
pub struct CodeUpdated;
impl ::subxt::events::StaticEvent for CodeUpdated {
const PALLET: &'static str = "System";
const EVENT: &'static str = "CodeUpdated";
}
#[derive(
:: subxt :: ext :: codec :: Decode,
:: subxt :: ext :: codec :: Encode,
:: subxt :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
# [codec (crate = :: subxt :: ext :: codec)]
#[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
#[doc = "A new account was created."]
pub struct NewAccount {
pub account: ::subxt::utils::AccountId32,
}
impl ::subxt::events::StaticEvent for NewAccount {
const PALLET: &'static str = "System";
const EVENT: &'static str = "NewAccount";
}
#[derive(
:: subxt :: ext :: codec :: Decode,
:: subxt :: ext :: codec :: Encode,
:: subxt :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
# [codec (crate = :: subxt :: ext :: codec)]
#[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
#[doc = "An account was reaped."]
pub struct KilledAccount {
pub account: ::subxt::utils::AccountId32,
}
impl ::subxt::events::StaticEvent for KilledAccount {
const PALLET: &'static str = "System";
const EVENT: &'static str = "KilledAccount";
}
#[derive(
:: subxt :: ext :: codec :: Decode,
:: subxt :: ext :: codec :: Encode,
:: subxt :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
# [codec (crate = :: subxt :: ext :: codec)]
#[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
#[doc = "On on-chain remark happened."]
pub struct Remarked {
pub sender: ::subxt::utils::AccountId32,
pub hash: ::subxt::utils::H256,
}
impl ::subxt::events::StaticEvent for Remarked {
const PALLET: &'static str = "System";
const EVENT: &'static str = "Remarked";
}
}
pub mod storage {
use super::runtime_types;
pub struct StorageApi;
impl StorageApi {
#[doc = " The full account information for a particular account ID."]
pub fn account_iter(
&self,
) -> ::subxt::storage::address::Address<
::subxt::storage::address::StaticStorageMapKey,
runtime_types::frame_system::AccountInfo<
::core::primitive::u32,
runtime_types::pallet_balances::types::AccountData<::core::primitive::u128>,
>,
(),
::subxt::storage::address::Yes,
::subxt::storage::address::Yes,
> {
::subxt::storage::address::Address::new_static(
"System",
"Account",
vec![],
[
14u8, 233u8, 115u8, 214u8, 0u8, 109u8, 222u8, 121u8, 162u8, 65u8, 60u8,
175u8, 209u8, 79u8, 222u8, 124u8, 22u8, 235u8, 138u8, 176u8, 133u8,
124u8, 90u8, 158u8, 85u8, 45u8, 37u8, 174u8, 47u8, 79u8, 47u8, 166u8,
],
)
}
#[doc = " The full account information for a particular account ID."]
pub fn account(
&self,
_0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>,
) -> ::subxt::storage::address::Address<
::subxt::storage::address::StaticStorageMapKey,
runtime_types::frame_system::AccountInfo<
::core::primitive::u32,
runtime_types::pallet_balances::types::AccountData<::core::primitive::u128>,
>,
::subxt::storage::address::Yes,
::subxt::storage::address::Yes,
(),
> {
::subxt::storage::address::Address::new_static(
"System",
"Account",
vec![::subxt::storage::address::make_static_storage_map_key(
_0.borrow(),
)],
[
14u8, 233u8, 115u8, 214u8, 0u8, 109u8, 222u8, 121u8, 162u8, 65u8, 60u8,
175u8, 209u8, 79u8, 222u8, 124u8, 22u8, 235u8, 138u8, 176u8, 133u8,
124u8, 90u8, 158u8, 85u8, 45u8, 37u8, 174u8, 47u8, 79u8, 47u8, 166u8,
],
)
}
#[doc = " Total extrinsics count for the current block."]
pub fn extrinsic_count(
&self,
) -> ::subxt::storage::address::Address<
::subxt::storage::address::StaticStorageMapKey,
::core::primitive::u32,
::subxt::storage::address::Yes,
(),
(),
> {
::subxt::storage::address::Address::new_static(
"System",
"ExtrinsicCount",
vec![],
[
102u8, 76u8, 236u8, 42u8, 40u8, 231u8, 33u8, 222u8, 123u8, 147u8,
153u8, 148u8, 234u8, 203u8, 181u8, 119u8, 6u8, 187u8, 177u8, 199u8,
120u8, 47u8, 137u8, 254u8, 96u8, 100u8, 165u8, 182u8, 249u8, 230u8,
159u8, 79u8,
],
)
}
#[doc = " The current weight for the block."]
pub fn block_weight(
&self,
) -> ::subxt::storage::address::Address<
::subxt::storage::address::StaticStorageMapKey,
runtime_types::frame_support::dispatch::PerDispatchClass<
runtime_types::sp_weights::weight_v2::Weight,
>,
::subxt::storage::address::Yes,
::subxt::storage::address::Yes,
(),
> {
::subxt::storage::address::Address::new_static(
"System",
"BlockWeight",
vec![],
[
158u8, 46u8, 228u8, 89u8, 210u8, 214u8, 84u8, 154u8, 50u8, 68u8, 63u8,
62u8, 43u8, 42u8, 99u8, 27u8, 54u8, 42u8, 146u8, 44u8, 241u8, 216u8,
229u8, 30u8, 216u8, 255u8, 165u8, 238u8, 181u8, 130u8, 36u8, 102u8,
],
)
}
#[doc = " Total length (in bytes) for all extrinsics put together, for the current block."]
pub fn all_extrinsics_len(
&self,
) -> ::subxt::storage::address::Address<
::subxt::storage::address::StaticStorageMapKey,
::core::primitive::u32,
::subxt::storage::address::Yes,
(),
(),
> {
::subxt::storage::address::Address::new_static(
"System",
"AllExtrinsicsLen",
vec![],
[
117u8, 86u8, 61u8, 243u8, 41u8, 51u8, 102u8, 214u8, 137u8, 100u8,
243u8, 185u8, 122u8, 174u8, 187u8, 117u8, 86u8, 189u8, 63u8, 135u8,
101u8, 218u8, 203u8, 201u8, 237u8, 254u8, 128u8, 183u8, 169u8, 221u8,
242u8, 65u8,
],
)
}
#[doc = " Map of block numbers to block hashes."]
pub fn block_hash_iter(
&self,
) -> ::subxt::storage::address::Address<
::subxt::storage::address::StaticStorageMapKey,
::subxt::utils::H256,
(),
::subxt::storage::address::Yes,
::subxt::storage::address::Yes,
> {
::subxt::storage::address::Address::new_static(
"System",
"BlockHash",
vec![],
[
217u8, 32u8, 215u8, 253u8, 24u8, 182u8, 207u8, 178u8, 157u8, 24u8,
103u8, 100u8, 195u8, 165u8, 69u8, 152u8, 112u8, 181u8, 56u8, 192u8,
164u8, 16u8, 20u8, 222u8, 28u8, 214u8, 144u8, 142u8, 146u8, 69u8,
202u8, 118u8,
],
)
}
#[doc = " Map of block numbers to block hashes."]
pub fn block_hash(
&self,
_0: impl ::std::borrow::Borrow<::core::primitive::u32>,
) -> ::subxt::storage::address::Address<
::subxt::storage::address::StaticStorageMapKey,
::subxt::utils::H256,
::subxt::storage::address::Yes,
::subxt::storage::address::Yes,
(),
> {
::subxt::storage::address::Address::new_static(
"System",
"BlockHash",
vec![::subxt::storage::address::make_static_storage_map_key(
_0.borrow(),
)],
[
217u8, 32u8, 215u8, 253u8, 24u8, 182u8, 207u8, 178u8, 157u8, 24u8,
103u8, 100u8, 195u8, 165u8, 69u8, 152u8, 112u8, 181u8, 56u8, 192u8,
164u8, 16u8, 20u8, 222u8, 28u8, 214u8, 144u8, 142u8, 146u8, 69u8,
202u8, 118u8,
],
)
}
#[doc = " Extrinsics data for the current block (maps an extrinsic's index to its data)."]
pub fn extrinsic_data_iter(
&self,
) -> ::subxt::storage::address::Address<
::subxt::storage::address::StaticStorageMapKey,
::std::vec::Vec<::core::primitive::u8>,
(),
::subxt::storage::address::Yes,
::subxt::storage::address::Yes,
> {
::subxt::storage::address::Address::new_static(
"System",
"ExtrinsicData",
vec![],
[
160u8, 180u8, 122u8, 18u8, 196u8, 26u8, 2u8, 37u8, 115u8, 232u8, 133u8,
220u8, 106u8, 245u8, 4u8, 129u8, 42u8, 84u8, 241u8, 45u8, 199u8, 179u8,
128u8, 61u8, 170u8, 137u8, 231u8, 156u8, 247u8, 57u8, 47u8, 38u8,
],
)
}
#[doc = " Extrinsics data for the current block (maps an extrinsic's index to its data)."]
pub fn extrinsic_data(
&self,
_0: impl ::std::borrow::Borrow<::core::primitive::u32>,
) -> ::subxt::storage::address::Address<
::subxt::storage::address::StaticStorageMapKey,
::std::vec::Vec<::core::primitive::u8>,
::subxt::storage::address::Yes,
::subxt::storage::address::Yes,
(),
> {
::subxt::storage::address::Address::new_static(
"System",
"ExtrinsicData",
vec![::subxt::storage::address::make_static_storage_map_key(
_0.borrow(),
)],
[
160u8, 180u8, 122u8, 18u8, 196u8, 26u8, 2u8, 37u8, 115u8, 232u8, 133u8,
220u8, 106u8, 245u8, 4u8, 129u8, 42u8, 84u8, 241u8, 45u8, 199u8, 179u8,
128u8, 61u8, 170u8, 137u8, 231u8, 156u8, 247u8, 57u8, 47u8, 38u8,
],
)
}
#[doc = " The current block number being processed. Set by `execute_block`."]
pub fn number(
&self,
) -> ::subxt::storage::address::Address<
::subxt::storage::address::StaticStorageMapKey,
::core::primitive::u32,
::subxt::storage::address::Yes,
::subxt::storage::address::Yes,
(),
> {
::subxt::storage::address::Address::new_static(
"System",
"Number",
vec![],
[
30u8, 194u8, 177u8, 90u8, 194u8, 232u8, 46u8, 180u8, 85u8, 129u8, 14u8,
9u8, 8u8, 8u8, 23u8, 95u8, 230u8, 5u8, 13u8, 105u8, 125u8, 2u8, 22u8,
200u8, 78u8, 93u8, 115u8, 28u8, 150u8, 113u8, 48u8, 53u8,
],
)
}
#[doc = " Hash of the previous block."]
pub fn parent_hash(
&self,
) -> ::subxt::storage::address::Address<
::subxt::storage::address::StaticStorageMapKey,
::subxt::utils::H256,
::subxt::storage::address::Yes,
::subxt::storage::address::Yes,
(),
> {
::subxt::storage::address::Address::new_static(
"System",
"ParentHash",
vec![],
[
26u8, 130u8, 11u8, 216u8, 155u8, 71u8, 128u8, 170u8, 30u8, 153u8, 21u8,
192u8, 62u8, 93u8, 137u8, 80u8, 120u8, 81u8, 202u8, 94u8, 248u8, 125u8,
71u8, 82u8, 141u8, 229u8, 32u8, 56u8, 73u8, 50u8, 101u8, 78u8,
],
)
}
#[doc = " Digest of the current block, also part of the block header."]
pub fn digest(
&self,
) -> ::subxt::storage::address::Address<
::subxt::storage::address::StaticStorageMapKey,
runtime_types::sp_runtime::generic::digest::Digest,
::subxt::storage::address::Yes,
::subxt::storage::address::Yes,
(),
> {
::subxt::storage::address::Address::new_static(
"System",
"Digest",
vec![],
[
61u8, 64u8, 237u8, 91u8, 145u8, 232u8, 17u8, 254u8, 181u8, 16u8, 234u8,
91u8, 51u8, 140u8, 254u8, 131u8, 98u8, 135u8, 21u8, 37u8, 251u8, 20u8,
58u8, 92u8, 123u8, 141u8, 14u8, 227u8, 146u8, 46u8, 222u8, 117u8,
],
)
}
#[doc = " Events deposited for the current block."]
#[doc = ""]
#[doc = " NOTE: The item is unbound and should therefore never be read on chain."]
#[doc = " It could otherwise inflate the PoV size of a block."]
#[doc = ""]
#[doc = " Events have a large in-memory size. Box the events to not go out-of-memory"]
#[doc = " just in case someone still reads them from within the runtime."]
pub fn events(
&self,
) -> ::subxt::storage::address::Address<
::subxt::storage::address::StaticStorageMapKey,
::std::vec::Vec<
runtime_types::frame_system::EventRecord<
runtime_types::madya_solo_runtime::RuntimeEvent,
::subxt::utils::H256,
>,
>,
::subxt::storage::address::Yes,
::subxt::storage::address::Yes,
(),
> {
::subxt::storage::address::Address::new_static(
"System",
"Events",
vec![],
[
40u8, 44u8, 236u8, 140u8, 219u8, 191u8, 222u8, 114u8, 48u8, 54u8,
119u8, 246u8, 134u8, 154u8, 70u8, 102u8, 192u8, 49u8, 178u8, 38u8,
180u8, 161u8, 16u8, 106u8, 0u8, 130u8, 96u8, 12u8, 207u8, 93u8, 135u8,
234u8,
],
)
}
#[doc = " The number of events in the `Events<T>` list."]
pub fn event_count(
&self,
) -> ::subxt::storage::address::Address<
::subxt::storage::address::StaticStorageMapKey,
::core::primitive::u32,
::subxt::storage::address::Yes,
::subxt::storage::address::Yes,
(),
> {
::subxt::storage::address::Address::new_static(
"System",
"EventCount",
vec![],
[
175u8, 24u8, 252u8, 184u8, 210u8, 167u8, 146u8, 143u8, 164u8, 80u8,
151u8, 205u8, 189u8, 189u8, 55u8, 220u8, 47u8, 101u8, 181u8, 33u8,
254u8, 131u8, 13u8, 143u8, 3u8, 244u8, 245u8, 45u8, 2u8, 210u8, 79u8,
133u8,
],
)
}
#[doc = " Mapping between a topic (represented by T::Hash) and a vector of indexes"]
#[doc = " of events in the `<Events<T>>` list."]
#[doc = ""]
#[doc = " All topic vectors have deterministic storage locations depending on the topic. This"]
#[doc = " allows light-clients to leverage the changes trie storage tracking mechanism and"]
#[doc = " in case of changes fetch the list of events of interest."]
#[doc = ""]
#[doc = " The value has the type `(BlockNumberFor<T>, EventIndex)` because if we used only just"]
#[doc = " the `EventIndex` then in case if the topic has the same contents on the next block"]
#[doc = " no notification will be triggered thus the event might be lost."]
pub fn event_topics_iter(
&self,
) -> ::subxt::storage::address::Address<
::subxt::storage::address::StaticStorageMapKey,
::std::vec::Vec<(::core::primitive::u32, ::core::primitive::u32)>,
(),
::subxt::storage::address::Yes,
::subxt::storage::address::Yes,
> {
::subxt::storage::address::Address::new_static(
"System",
"EventTopics",
vec![],
[
40u8, 225u8, 14u8, 75u8, 44u8, 176u8, 76u8, 34u8, 143u8, 107u8, 69u8,
133u8, 114u8, 13u8, 172u8, 250u8, 141u8, 73u8, 12u8, 65u8, 217u8, 63u8,
120u8, 241u8, 48u8, 106u8, 143u8, 161u8, 128u8, 100u8, 166u8, 59u8,
],
)
}
#[doc = " Mapping between a topic (represented by T::Hash) and a vector of indexes"]
#[doc = " of events in the `<Events<T>>` list."]
#[doc = ""]
#[doc = " All topic vectors have deterministic storage locations depending on the topic. This"]
#[doc = " allows light-clients to leverage the changes trie storage tracking mechanism and"]
#[doc = " in case of changes fetch the list of events of interest."]
#[doc = ""]
#[doc = " The value has the type `(BlockNumberFor<T>, EventIndex)` because if we used only just"]
#[doc = " the `EventIndex` then in case if the topic has the same contents on the next block"]
#[doc = " no notification will be triggered thus the event might be lost."]
pub fn event_topics(
&self,
_0: impl ::std::borrow::Borrow<::subxt::utils::H256>,
) -> ::subxt::storage::address::Address<
::subxt::storage::address::StaticStorageMapKey,
::std::vec::Vec<(::core::primitive::u32, ::core::primitive::u32)>,
::subxt::storage::address::Yes,
::subxt::storage::address::Yes,
(),
> {
::subxt::storage::address::Address::new_static(
"System",
"EventTopics",
vec![::subxt::storage::address::make_static_storage_map_key(
_0.borrow(),
)],
[
40u8, 225u8, 14u8, 75u8, 44u8, 176u8, 76u8, 34u8, 143u8, 107u8, 69u8,
133u8, 114u8, 13u8, 172u8, 250u8, 141u8, 73u8, 12u8, 65u8, 217u8, 63u8,
120u8, 241u8, 48u8, 106u8, 143u8, 161u8, 128u8, 100u8, 166u8, 59u8,
],
)
}
#[doc = " Stores the `spec_version` and `spec_name` of when the last runtime upgrade happened."]
pub fn last_runtime_upgrade(
&self,
) -> ::subxt::storage::address::Address<
::subxt::storage::address::StaticStorageMapKey,
runtime_types::frame_system::LastRuntimeUpgradeInfo,
::subxt::storage::address::Yes,
(),
(),
> {
::subxt::storage::address::Address::new_static(
"System",
"LastRuntimeUpgrade",
vec![],
[
137u8, 29u8, 175u8, 75u8, 197u8, 208u8, 91u8, 207u8, 156u8, 87u8,
148u8, 68u8, 91u8, 140u8, 22u8, 233u8, 1u8, 229u8, 56u8, 34u8, 40u8,
194u8, 253u8, 30u8, 163u8, 39u8, 54u8, 209u8, 13u8, 27u8, 139u8, 184u8,
],
)
}
#[doc = " True if we have upgraded so that `type RefCount` is `u32`. False (default) if not."]
pub fn upgraded_to_u32_ref_count(
&self,
) -> ::subxt::storage::address::Address<
::subxt::storage::address::StaticStorageMapKey,
::core::primitive::bool,
::subxt::storage::address::Yes,
::subxt::storage::address::Yes,
(),
> {
::subxt::storage::address::Address::new_static(
"System",
"UpgradedToU32RefCount",
vec![],
[
229u8, 73u8, 9u8, 132u8, 186u8, 116u8, 151u8, 171u8, 145u8, 29u8, 34u8,
130u8, 52u8, 146u8, 124u8, 175u8, 79u8, 189u8, 147u8, 230u8, 234u8,
107u8, 124u8, 31u8, 2u8, 22u8, 86u8, 190u8, 4u8, 147u8, 50u8, 245u8,
],
)
}
#[doc = " True if we have upgraded so that AccountInfo contains three types of `RefCount`. False"]
#[doc = " (default) if not."]
pub fn upgraded_to_triple_ref_count(
&self,
) -> ::subxt::storage::address::Address<
::subxt::storage::address::StaticStorageMapKey,
::core::primitive::bool,
::subxt::storage::address::Yes,
::subxt::storage::address::Yes,
(),
> {
::subxt::storage::address::Address::new_static(
"System",
"UpgradedToTripleRefCount",
vec![],
[
97u8, 66u8, 124u8, 243u8, 27u8, 167u8, 147u8, 81u8, 254u8, 201u8,
101u8, 24u8, 40u8, 231u8, 14u8, 179u8, 154u8, 163u8, 71u8, 81u8, 185u8,
167u8, 82u8, 254u8, 189u8, 3u8, 101u8, 207u8, 206u8, 194u8, 155u8,
151u8,
],
)
}
#[doc = " The execution phase of the block."]
pub fn execution_phase(
&self,
) -> ::subxt::storage::address::Address<
::subxt::storage::address::StaticStorageMapKey,
runtime_types::frame_system::Phase,
::subxt::storage::address::Yes,
(),
(),
> {
::subxt::storage::address::Address::new_static(
"System",
"ExecutionPhase",
vec![],
[
191u8, 129u8, 100u8, 134u8, 126u8, 116u8, 154u8, 203u8, 220u8, 200u8,
0u8, 26u8, 161u8, 250u8, 133u8, 205u8, 146u8, 24u8, 5u8, 156u8, 158u8,
35u8, 36u8, 253u8, 52u8, 235u8, 86u8, 167u8, 35u8, 100u8, 119u8, 27u8,
],
)
}
}
}
pub mod constants {
use super::runtime_types;
pub struct ConstantsApi;
impl ConstantsApi {
#[doc = " Block & extrinsics weights: base values and limits."]
pub fn block_weights(
&self,
) -> ::subxt::constants::Address<runtime_types::frame_system::limits::BlockWeights>
{
::subxt::constants::Address::new_static(
"System",
"BlockWeights",
[
176u8, 124u8, 225u8, 136u8, 25u8, 73u8, 247u8, 33u8, 82u8, 206u8, 85u8,
190u8, 127u8, 102u8, 71u8, 11u8, 185u8, 8u8, 58u8, 0u8, 94u8, 55u8,
163u8, 177u8, 104u8, 59u8, 60u8, 136u8, 246u8, 116u8, 0u8, 239u8,
],
)
}
#[doc = " The maximum length of a block (in bytes)."]
pub fn block_length(
&self,
) -> ::subxt::constants::Address<runtime_types::frame_system::limits::BlockLength>
{
::subxt::constants::Address::new_static(
"System",
"BlockLength",
[
23u8, 242u8, 225u8, 39u8, 225u8, 67u8, 152u8, 41u8, 155u8, 104u8, 68u8,
229u8, 185u8, 133u8, 10u8, 143u8, 184u8, 152u8, 234u8, 44u8, 140u8,
96u8, 166u8, 235u8, 162u8, 160u8, 72u8, 7u8, 35u8, 194u8, 3u8, 37u8,
],
)
}
#[doc = " Maximum number of block number to block hash mappings to keep (oldest pruned first)."]
pub fn block_hash_count(
&self,
) -> ::subxt::constants::Address<::core::primitive::u32> {
::subxt::constants::Address::new_static(
"System",
"BlockHashCount",
[
98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8,
125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8,
178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8,
145u8,
],
)
}
#[doc = " The weight of runtime database operations the runtime can invoke."]
pub fn db_weight(
&self,
) -> ::subxt::constants::Address<runtime_types::sp_weights::RuntimeDbWeight>
{
::subxt::constants::Address::new_static(
"System",
"DbWeight",
[
42u8, 43u8, 178u8, 142u8, 243u8, 203u8, 60u8, 173u8, 118u8, 111u8,
200u8, 170u8, 102u8, 70u8, 237u8, 187u8, 198u8, 120u8, 153u8, 232u8,
183u8, 76u8, 74u8, 10u8, 70u8, 243u8, 14u8, 218u8, 213u8, 126u8, 29u8,
177u8,
],
)
}
#[doc = " Get the chain's current version."]
pub fn version(
&self,
) -> ::subxt::constants::Address<runtime_types::sp_version::RuntimeVersion>
{
::subxt::constants::Address::new_static(
"System",
"Version",
[
219u8, 45u8, 162u8, 245u8, 177u8, 246u8, 48u8, 126u8, 191u8, 157u8,
228u8, 83u8, 111u8, 133u8, 183u8, 13u8, 148u8, 108u8, 92u8, 102u8,
72u8, 205u8, 74u8, 242u8, 233u8, 79u8, 20u8, 170u8, 72u8, 202u8, 158u8,
165u8,
],
)
}
#[doc = " The designated SS58 prefix of this chain."]
#[doc = ""]
#[doc = " This replaces the \"ss58Format\" property declared in the chain spec. Reason is"]
#[doc = " that the runtime should know about the prefix in order to make use of it as"]
#[doc = " an identifier of the chain."]
pub fn ss58_prefix(&self) -> ::subxt::constants::Address<::core::primitive::u16> {
::subxt::constants::Address::new_static(
"System",
"SS58Prefix",
[
116u8, 33u8, 2u8, 170u8, 181u8, 147u8, 171u8, 169u8, 167u8, 227u8,
41u8, 144u8, 11u8, 236u8, 82u8, 100u8, 74u8, 60u8, 184u8, 72u8, 169u8,
90u8, 208u8, 135u8, 15u8, 117u8, 10u8, 123u8, 128u8, 193u8, 29u8, 70u8,
],
)
}
}
}
}
pub mod timestamp {
use super::root_mod;
use super::runtime_types;
#[doc = "Contains a variant per dispatchable extrinsic that this pallet has."]
pub type Call = runtime_types::pallet_timestamp::pallet::Call;
pub mod calls {
use super::root_mod;
use super::runtime_types;
type DispatchError = runtime_types::sp_runtime::DispatchError;
pub mod types {
use super::runtime_types;
#[derive(
:: subxt :: ext :: codec :: Decode,
:: subxt :: ext :: codec :: Encode,
:: subxt :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
# [codec (crate = :: subxt :: ext :: codec)]
#[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
pub struct Set {
#[codec(compact)]
pub now: ::core::primitive::u64,
}
impl ::subxt::blocks::StaticExtrinsic for Set {
const PALLET: &'static str = "Timestamp";
const CALL: &'static str = "set";
}
}
pub struct TransactionApi;
impl TransactionApi {
#[doc = "See [`Pallet::set`]."]
pub fn set(&self, now: ::core::primitive::u64) -> ::subxt::tx::Payload<types::Set> {
::subxt::tx::Payload::new_static(
"Timestamp",
"set",
types::Set { now },
[
37u8, 95u8, 49u8, 218u8, 24u8, 22u8, 0u8, 95u8, 72u8, 35u8, 155u8,
199u8, 213u8, 54u8, 207u8, 22u8, 185u8, 193u8, 221u8, 70u8, 18u8,
200u8, 4u8, 231u8, 195u8, 173u8, 6u8, 122u8, 11u8, 203u8, 231u8, 227u8,
],
)
}
}
}
pub mod storage {
use super::runtime_types;
pub struct StorageApi;
impl StorageApi {
#[doc = " Current time for the current block."]
pub fn now(
&self,
) -> ::subxt::storage::address::Address<
::subxt::storage::address::StaticStorageMapKey,
::core::primitive::u64,
::subxt::storage::address::Yes,
::subxt::storage::address::Yes,
(),
> {
::subxt::storage::address::Address::new_static(
"Timestamp",
"Now",
vec![],
[
44u8, 50u8, 80u8, 30u8, 195u8, 146u8, 123u8, 238u8, 8u8, 163u8, 187u8,
92u8, 61u8, 39u8, 51u8, 29u8, 173u8, 169u8, 217u8, 158u8, 85u8, 187u8,
141u8, 26u8, 12u8, 115u8, 51u8, 11u8, 200u8, 244u8, 138u8, 152u8,
],
)
}
#[doc = " Did the timestamp get updated in this block?"]
pub fn did_update(
&self,
) -> ::subxt::storage::address::Address<
::subxt::storage::address::StaticStorageMapKey,
::core::primitive::bool,
::subxt::storage::address::Yes,
::subxt::storage::address::Yes,
(),
> {
::subxt::storage::address::Address::new_static(
"Timestamp",
"DidUpdate",
vec![],
[
229u8, 175u8, 246u8, 102u8, 237u8, 158u8, 212u8, 229u8, 238u8, 214u8,
205u8, 160u8, 164u8, 252u8, 195u8, 75u8, 139u8, 110u8, 22u8, 34u8,
248u8, 204u8, 107u8, 46u8, 20u8, 200u8, 238u8, 167u8, 71u8, 41u8,
214u8, 140u8,
],
)
}
}
}
pub mod constants {
use super::runtime_types;
pub struct ConstantsApi;
impl ConstantsApi {
#[doc = " The minimum period between blocks. Beware that this is different to the *expected*"]
#[doc = " period that the block production apparatus provides. Your chosen consensus system will"]
#[doc = " generally work with this to determine a sensible block time. e.g. For Aura, it will be"]
#[doc = " double this period on default settings."]
pub fn minimum_period(
&self,
) -> ::subxt::constants::Address<::core::primitive::u64> {
::subxt::constants::Address::new_static(
"Timestamp",
"MinimumPeriod",
[
128u8, 214u8, 205u8, 242u8, 181u8, 142u8, 124u8, 231u8, 190u8, 146u8,
59u8, 226u8, 157u8, 101u8, 103u8, 117u8, 249u8, 65u8, 18u8, 191u8,
103u8, 119u8, 53u8, 85u8, 81u8, 96u8, 220u8, 42u8, 184u8, 239u8, 42u8,
246u8,
],
)
}
}
}
}
pub mod aura {
use super::root_mod;
use super::runtime_types;
pub mod storage {
use super::runtime_types;
pub struct StorageApi;
impl StorageApi {
#[doc = " The current authority set."]
pub fn authorities(
&self,
) -> ::subxt::storage::address::Address<
::subxt::storage::address::StaticStorageMapKey,
runtime_types::bounded_collections::bounded_vec::BoundedVec<
runtime_types::sp_consensus_aura::sr25519::app_sr25519::Public,
>,
::subxt::storage::address::Yes,
::subxt::storage::address::Yes,
(),
> {
::subxt::storage::address::Address::new_static(
"Aura",
"Authorities",
vec![],
[
232u8, 129u8, 167u8, 104u8, 47u8, 188u8, 238u8, 164u8, 6u8, 29u8,
129u8, 45u8, 64u8, 182u8, 194u8, 47u8, 0u8, 73u8, 63u8, 102u8, 204u8,
94u8, 111u8, 96u8, 137u8, 7u8, 141u8, 110u8, 180u8, 80u8, 228u8, 16u8,
],
)
}
#[doc = " The current slot of this block."]
#[doc = ""]
#[doc = " This will be set in `on_initialize`."]
pub fn current_slot(
&self,
) -> ::subxt::storage::address::Address<
::subxt::storage::address::StaticStorageMapKey,
runtime_types::sp_consensus_slots::Slot,
::subxt::storage::address::Yes,
::subxt::storage::address::Yes,
(),
> {
::subxt::storage::address::Address::new_static(
"Aura",
"CurrentSlot",
vec![],
[
112u8, 199u8, 115u8, 248u8, 217u8, 242u8, 45u8, 231u8, 178u8, 53u8,
236u8, 167u8, 219u8, 238u8, 81u8, 243u8, 39u8, 140u8, 68u8, 19u8,
201u8, 169u8, 211u8, 133u8, 135u8, 213u8, 150u8, 105u8, 60u8, 252u8,
43u8, 57u8,
],
)
}
}
}
}
pub mod grandpa {
use super::root_mod;
use super::runtime_types;
#[doc = "The `Error` enum of this pallet."]
pub type Error = runtime_types::pallet_grandpa::pallet::Error;
#[doc = "Contains a variant per dispatchable extrinsic that this pallet has."]
pub type Call = runtime_types::pallet_grandpa::pallet::Call;
pub mod calls {
use super::root_mod;
use super::runtime_types;
type DispatchError = runtime_types::sp_runtime::DispatchError;
pub mod types {
use super::runtime_types;
#[derive(
:: subxt :: ext :: codec :: Decode,
:: subxt :: ext :: codec :: Encode,
:: subxt :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
# [codec (crate = :: subxt :: ext :: codec)]
#[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
pub struct ReportEquivocation {
pub equivocation_proof: ::std::boxed::Box<
runtime_types::sp_consensus_grandpa::EquivocationProof<
::subxt::utils::H256,
::core::primitive::u32,
>,
>,
pub key_owner_proof: runtime_types::sp_core::Void,
}
impl ::subxt::blocks::StaticExtrinsic for ReportEquivocation {
const PALLET: &'static str = "Grandpa";
const CALL: &'static str = "report_equivocation";
}
#[derive(
:: subxt :: ext :: codec :: Decode,
:: subxt :: ext :: codec :: Encode,
:: subxt :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
# [codec (crate = :: subxt :: ext :: codec)]
#[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
pub struct ReportEquivocationUnsigned {
pub equivocation_proof: ::std::boxed::Box<
runtime_types::sp_consensus_grandpa::EquivocationProof<
::subxt::utils::H256,
::core::primitive::u32,
>,
>,
pub key_owner_proof: runtime_types::sp_core::Void,
}
impl ::subxt::blocks::StaticExtrinsic for ReportEquivocationUnsigned {
const PALLET: &'static str = "Grandpa";
const CALL: &'static str = "report_equivocation_unsigned";
}
#[derive(
:: subxt :: ext :: codec :: Decode,
:: subxt :: ext :: codec :: Encode,
:: subxt :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
# [codec (crate = :: subxt :: ext :: codec)]
#[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
pub struct NoteStalled {
pub delay: ::core::primitive::u32,
pub best_finalized_block_number: ::core::primitive::u32,
}
impl ::subxt::blocks::StaticExtrinsic for NoteStalled {
const PALLET: &'static str = "Grandpa";
const CALL: &'static str = "note_stalled";
}
}
pub struct TransactionApi;
impl TransactionApi {
#[doc = "See [`Pallet::report_equivocation`]."]
pub fn report_equivocation(
&self,
equivocation_proof: runtime_types::sp_consensus_grandpa::EquivocationProof<
::subxt::utils::H256,
::core::primitive::u32,
>,
key_owner_proof: runtime_types::sp_core::Void,
) -> ::subxt::tx::Payload<types::ReportEquivocation> {
::subxt::tx::Payload::new_static(
"Grandpa",
"report_equivocation",
types::ReportEquivocation {
equivocation_proof: ::std::boxed::Box::new(equivocation_proof),
key_owner_proof,
},
[
158u8, 70u8, 189u8, 51u8, 231u8, 191u8, 199u8, 33u8, 64u8, 156u8, 71u8,
243u8, 122u8, 199u8, 216u8, 10u8, 45u8, 73u8, 198u8, 141u8, 31u8,
209u8, 58u8, 164u8, 219u8, 124u8, 242u8, 26u8, 114u8, 52u8, 65u8,
106u8,
],
)
}
#[doc = "See [`Pallet::report_equivocation_unsigned`]."]
pub fn report_equivocation_unsigned(
&self,
equivocation_proof: runtime_types::sp_consensus_grandpa::EquivocationProof<
::subxt::utils::H256,
::core::primitive::u32,
>,
key_owner_proof: runtime_types::sp_core::Void,
) -> ::subxt::tx::Payload<types::ReportEquivocationUnsigned> {
::subxt::tx::Payload::new_static(
"Grandpa",
"report_equivocation_unsigned",
types::ReportEquivocationUnsigned {
equivocation_proof: ::std::boxed::Box::new(equivocation_proof),
key_owner_proof,
},
[
53u8, 23u8, 255u8, 215u8, 105u8, 11u8, 67u8, 177u8, 234u8, 248u8,
183u8, 57u8, 230u8, 239u8, 54u8, 238u8, 115u8, 170u8, 153u8, 18u8,
55u8, 195u8, 85u8, 98u8, 109u8, 194u8, 57u8, 225u8, 139u8, 237u8,
171u8, 152u8,
],
)
}
#[doc = "See [`Pallet::note_stalled`]."]
pub fn note_stalled(
&self,
delay: ::core::primitive::u32,
best_finalized_block_number: ::core::primitive::u32,
) -> ::subxt::tx::Payload<types::NoteStalled> {
::subxt::tx::Payload::new_static(
"Grandpa",
"note_stalled",
types::NoteStalled {
delay,
best_finalized_block_number,
},
[
158u8, 25u8, 64u8, 114u8, 131u8, 139u8, 227u8, 132u8, 42u8, 107u8,
40u8, 249u8, 18u8, 93u8, 254u8, 86u8, 37u8, 67u8, 250u8, 35u8, 241u8,
194u8, 209u8, 20u8, 39u8, 75u8, 186u8, 21u8, 48u8, 124u8, 151u8, 31u8,
],
)
}
}
}
#[doc = "The `Event` enum of this pallet"]
pub type Event = runtime_types::pallet_grandpa::pallet::Event;
pub mod events {
use super::runtime_types;
#[derive(
:: subxt :: ext :: codec :: Decode,
:: subxt :: ext :: codec :: Encode,
:: subxt :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
# [codec (crate = :: subxt :: ext :: codec)]
#[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
#[doc = "New authority set has been applied."]
pub struct NewAuthorities {
pub authority_set: ::std::vec::Vec<(
runtime_types::sp_consensus_grandpa::app::Public,
::core::primitive::u64,
)>,
}
impl ::subxt::events::StaticEvent for NewAuthorities {
const PALLET: &'static str = "Grandpa";
const EVENT: &'static str = "NewAuthorities";
}
#[derive(
:: subxt :: ext :: codec :: Decode,
:: subxt :: ext :: codec :: Encode,
:: subxt :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
# [codec (crate = :: subxt :: ext :: codec)]
#[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
#[doc = "Current authority set has been paused."]
pub struct Paused;
impl ::subxt::events::StaticEvent for Paused {
const PALLET: &'static str = "Grandpa";
const EVENT: &'static str = "Paused";
}
#[derive(
:: subxt :: ext :: codec :: Decode,
:: subxt :: ext :: codec :: Encode,
:: subxt :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
# [codec (crate = :: subxt :: ext :: codec)]
#[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
#[doc = "Current authority set has been resumed."]
pub struct Resumed;
impl ::subxt::events::StaticEvent for Resumed {
const PALLET: &'static str = "Grandpa";
const EVENT: &'static str = "Resumed";
}
}
pub mod storage {
use super::runtime_types;
pub struct StorageApi;
impl StorageApi {
#[doc = " State of the current authority set."]
pub fn state(
&self,
) -> ::subxt::storage::address::Address<
::subxt::storage::address::StaticStorageMapKey,
runtime_types::pallet_grandpa::StoredState<::core::primitive::u32>,
::subxt::storage::address::Yes,
::subxt::storage::address::Yes,
(),
> {
::subxt::storage::address::Address::new_static(
"Grandpa",
"State",
vec![],
[
73u8, 71u8, 112u8, 83u8, 238u8, 75u8, 44u8, 9u8, 180u8, 33u8, 30u8,
121u8, 98u8, 96u8, 61u8, 133u8, 16u8, 70u8, 30u8, 249u8, 34u8, 148u8,
15u8, 239u8, 164u8, 157u8, 52u8, 27u8, 144u8, 52u8, 223u8, 109u8,
],
)
}
#[doc = " Pending change: (signaled at, scheduled change)."]
pub fn pending_change(
&self,
) -> ::subxt::storage::address::Address<
::subxt::storage::address::StaticStorageMapKey,
runtime_types::pallet_grandpa::StoredPendingChange<::core::primitive::u32>,
::subxt::storage::address::Yes,
(),
(),
> {
::subxt::storage::address::Address::new_static(
"Grandpa",
"PendingChange",
vec![],
[
150u8, 194u8, 185u8, 248u8, 239u8, 43u8, 141u8, 253u8, 61u8, 106u8,
74u8, 164u8, 209u8, 204u8, 206u8, 200u8, 32u8, 38u8, 11u8, 78u8, 84u8,
243u8, 181u8, 142u8, 179u8, 151u8, 81u8, 204u8, 244u8, 150u8, 137u8,
250u8,
],
)
}
#[doc = " next block number where we can force a change."]
pub fn next_forced(
&self,
) -> ::subxt::storage::address::Address<
::subxt::storage::address::StaticStorageMapKey,
::core::primitive::u32,
::subxt::storage::address::Yes,
(),
(),
> {
::subxt::storage::address::Address::new_static(
"Grandpa",
"NextForced",
vec![],
[
3u8, 231u8, 56u8, 18u8, 87u8, 112u8, 227u8, 126u8, 180u8, 131u8, 255u8,
141u8, 82u8, 34u8, 61u8, 47u8, 234u8, 37u8, 95u8, 62u8, 33u8, 235u8,
231u8, 122u8, 125u8, 8u8, 223u8, 95u8, 255u8, 204u8, 40u8, 97u8,
],
)
}
#[doc = " `true` if we are currently stalled."]
pub fn stalled(
&self,
) -> ::subxt::storage::address::Address<
::subxt::storage::address::StaticStorageMapKey,
(::core::primitive::u32, ::core::primitive::u32),
::subxt::storage::address::Yes,
(),
(),
> {
::subxt::storage::address::Address::new_static(
"Grandpa",
"Stalled",
vec![],
[
6u8, 81u8, 205u8, 142u8, 195u8, 48u8, 0u8, 247u8, 108u8, 170u8, 10u8,
249u8, 72u8, 206u8, 32u8, 103u8, 109u8, 57u8, 51u8, 21u8, 144u8, 204u8,
79u8, 8u8, 191u8, 185u8, 38u8, 34u8, 118u8, 223u8, 75u8, 241u8,
],
)
}
#[doc = " The number of changes (both in terms of keys and underlying economic responsibilities)"]
#[doc = " in the \"set\" of Grandpa validators from genesis."]
pub fn current_set_id(
&self,
) -> ::subxt::storage::address::Address<
::subxt::storage::address::StaticStorageMapKey,
::core::primitive::u64,
::subxt::storage::address::Yes,
::subxt::storage::address::Yes,
(),
> {
::subxt::storage::address::Address::new_static(
"Grandpa",
"CurrentSetId",
vec![],
[
234u8, 215u8, 218u8, 42u8, 30u8, 76u8, 129u8, 40u8, 125u8, 137u8,
207u8, 47u8, 46u8, 213u8, 159u8, 50u8, 175u8, 81u8, 155u8, 123u8,
246u8, 175u8, 156u8, 68u8, 22u8, 113u8, 135u8, 137u8, 163u8, 18u8,
115u8, 73u8,
],
)
}
#[doc = " A mapping from grandpa set ID to the index of the *most recent* session for which its"]
#[doc = " members were responsible."]
#[doc = ""]
#[doc = " This is only used for validating equivocation proofs. An equivocation proof must"]
#[doc = " contains a key-ownership proof for a given session, therefore we need a way to tie"]
#[doc = " together sessions and GRANDPA set ids, i.e. we need to validate that a validator"]
#[doc = " was the owner of a given key on a given session, and what the active set ID was"]
#[doc = " during that session."]
#[doc = ""]
#[doc = " TWOX-NOTE: `SetId` is not under user control."]
pub fn set_id_session_iter(
&self,
) -> ::subxt::storage::address::Address<
::subxt::storage::address::StaticStorageMapKey,
::core::primitive::u32,
(),
(),
::subxt::storage::address::Yes,
> {
::subxt::storage::address::Address::new_static(
"Grandpa",
"SetIdSession",
vec![],
[
47u8, 0u8, 239u8, 121u8, 187u8, 213u8, 254u8, 50u8, 238u8, 10u8, 162u8,
65u8, 189u8, 166u8, 37u8, 74u8, 82u8, 81u8, 160u8, 20u8, 180u8, 253u8,
238u8, 18u8, 209u8, 203u8, 38u8, 148u8, 16u8, 105u8, 72u8, 169u8,
],
)
}
#[doc = " A mapping from grandpa set ID to the index of the *most recent* session for which its"]
#[doc = " members were responsible."]
#[doc = ""]
#[doc = " This is only used for validating equivocation proofs. An equivocation proof must"]
#[doc = " contains a key-ownership proof for a given session, therefore we need a way to tie"]
#[doc = " together sessions and GRANDPA set ids, i.e. we need to validate that a validator"]
#[doc = " was the owner of a given key on a given session, and what the active set ID was"]
#[doc = " during that session."]
#[doc = ""]
#[doc = " TWOX-NOTE: `SetId` is not under user control."]
pub fn set_id_session(
&self,
_0: impl ::std::borrow::Borrow<::core::primitive::u64>,
) -> ::subxt::storage::address::Address<
::subxt::storage::address::StaticStorageMapKey,
::core::primitive::u32,
::subxt::storage::address::Yes,
(),
(),
> {
::subxt::storage::address::Address::new_static(
"Grandpa",
"SetIdSession",
vec![::subxt::storage::address::make_static_storage_map_key(
_0.borrow(),
)],
[
47u8, 0u8, 239u8, 121u8, 187u8, 213u8, 254u8, 50u8, 238u8, 10u8, 162u8,
65u8, 189u8, 166u8, 37u8, 74u8, 82u8, 81u8, 160u8, 20u8, 180u8, 253u8,
238u8, 18u8, 209u8, 203u8, 38u8, 148u8, 16u8, 105u8, 72u8, 169u8,
],
)
}
}
}
pub mod constants {
use super::runtime_types;
pub struct ConstantsApi;
impl ConstantsApi {
#[doc = " Max Authorities in use"]
pub fn max_authorities(
&self,
) -> ::subxt::constants::Address<::core::primitive::u32> {
::subxt::constants::Address::new_static(
"Grandpa",
"MaxAuthorities",
[
98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8,
125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8,
178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8,
145u8,
],
)
}
#[doc = " The maximum number of entries to keep in the set id to session index mapping."]
#[doc = ""]
#[doc = " Since the `SetIdSession` map is only used for validating equivocations this"]
#[doc = " value should relate to the bonding duration of whatever staking system is"]
#[doc = " being used (if any). If equivocation handling is not enabled then this value"]
#[doc = " can be zero."]
pub fn max_set_id_session_entries(
&self,
) -> ::subxt::constants::Address<::core::primitive::u64> {
::subxt::constants::Address::new_static(
"Grandpa",
"MaxSetIdSessionEntries",
[
128u8, 214u8, 205u8, 242u8, 181u8, 142u8, 124u8, 231u8, 190u8, 146u8,
59u8, 226u8, 157u8, 101u8, 103u8, 117u8, 249u8, 65u8, 18u8, 191u8,
103u8, 119u8, 53u8, 85u8, 81u8, 96u8, 220u8, 42u8, 184u8, 239u8, 42u8,
246u8,
],
)
}
}
}
}
pub mod balances {
use super::root_mod;
use super::runtime_types;
#[doc = "The `Error` enum of this pallet."]
pub type Error = runtime_types::pallet_balances::pallet::Error;
#[doc = "Contains a variant per dispatchable extrinsic that this pallet has."]
pub type Call = runtime_types::pallet_balances::pallet::Call;
pub mod calls {
use super::root_mod;
use super::runtime_types;
type DispatchError = runtime_types::sp_runtime::DispatchError;
pub mod types {
use super::runtime_types;
#[derive(
:: subxt :: ext :: codec :: Decode,
:: subxt :: ext :: codec :: Encode,
:: subxt :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
# [codec (crate = :: subxt :: ext :: codec)]
#[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
pub struct TransferAllowDeath {
pub dest: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>,
#[codec(compact)]
pub value: ::core::primitive::u128,
}
impl ::subxt::blocks::StaticExtrinsic for TransferAllowDeath {
const PALLET: &'static str = "Balances";
const CALL: &'static str = "transfer_allow_death";
}
#[derive(
:: subxt :: ext :: codec :: Decode,
:: subxt :: ext :: codec :: Encode,
:: subxt :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
# [codec (crate = :: subxt :: ext :: codec)]
#[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
pub struct SetBalanceDeprecated {
pub who: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>,
#[codec(compact)]
pub new_free: ::core::primitive::u128,
#[codec(compact)]
pub old_reserved: ::core::primitive::u128,
}
impl ::subxt::blocks::StaticExtrinsic for SetBalanceDeprecated {
const PALLET: &'static str = "Balances";
const CALL: &'static str = "set_balance_deprecated";
}
#[derive(
:: subxt :: ext :: codec :: Decode,
:: subxt :: ext :: codec :: Encode,
:: subxt :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
# [codec (crate = :: subxt :: ext :: codec)]
#[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
pub struct ForceTransfer {
pub source: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>,
pub dest: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>,
#[codec(compact)]
pub value: ::core::primitive::u128,
}
impl ::subxt::blocks::StaticExtrinsic for ForceTransfer {
const PALLET: &'static str = "Balances";
const CALL: &'static str = "force_transfer";
}
#[derive(
:: subxt :: ext :: codec :: Decode,
:: subxt :: ext :: codec :: Encode,
:: subxt :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
# [codec (crate = :: subxt :: ext :: codec)]
#[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
pub struct TransferKeepAlive {
pub dest: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>,
#[codec(compact)]
pub value: ::core::primitive::u128,
}
impl ::subxt::blocks::StaticExtrinsic for TransferKeepAlive {
const PALLET: &'static str = "Balances";
const CALL: &'static str = "transfer_keep_alive";
}
#[derive(
:: subxt :: ext :: codec :: Decode,
:: subxt :: ext :: codec :: Encode,
:: subxt :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
# [codec (crate = :: subxt :: ext :: codec)]
#[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
pub struct TransferAll {
pub dest: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>,
pub keep_alive: ::core::primitive::bool,
}
impl ::subxt::blocks::StaticExtrinsic for TransferAll {
const PALLET: &'static str = "Balances";
const CALL: &'static str = "transfer_all";
}
#[derive(
:: subxt :: ext :: codec :: Decode,
:: subxt :: ext :: codec :: Encode,
:: subxt :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
# [codec (crate = :: subxt :: ext :: codec)]
#[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
pub struct ForceUnreserve {
pub who: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>,
pub amount: ::core::primitive::u128,
}
impl ::subxt::blocks::StaticExtrinsic for ForceUnreserve {
const PALLET: &'static str = "Balances";
const CALL: &'static str = "force_unreserve";
}
#[derive(
:: subxt :: ext :: codec :: Decode,
:: subxt :: ext :: codec :: Encode,
:: subxt :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
# [codec (crate = :: subxt :: ext :: codec)]
#[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
pub struct UpgradeAccounts {
pub who: ::std::vec::Vec<::subxt::utils::AccountId32>,
}
impl ::subxt::blocks::StaticExtrinsic for UpgradeAccounts {
const PALLET: &'static str = "Balances";
const CALL: &'static str = "upgrade_accounts";
}
#[derive(
:: subxt :: ext :: codec :: Decode,
:: subxt :: ext :: codec :: Encode,
:: subxt :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
# [codec (crate = :: subxt :: ext :: codec)]
#[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
pub struct Transfer {
pub dest: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>,
#[codec(compact)]
pub value: ::core::primitive::u128,
}
impl ::subxt::blocks::StaticExtrinsic for Transfer {
const PALLET: &'static str = "Balances";
const CALL: &'static str = "transfer";
}
#[derive(
:: subxt :: ext :: codec :: Decode,
:: subxt :: ext :: codec :: Encode,
:: subxt :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
# [codec (crate = :: subxt :: ext :: codec)]
#[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
pub struct ForceSetBalance {
pub who: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>,
#[codec(compact)]
pub new_free: ::core::primitive::u128,
}
impl ::subxt::blocks::StaticExtrinsic for ForceSetBalance {
const PALLET: &'static str = "Balances";
const CALL: &'static str = "force_set_balance";
}
}
pub struct TransactionApi;
impl TransactionApi {
#[doc = "See [`Pallet::transfer_allow_death`]."]
pub fn transfer_allow_death(
&self,
dest: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>,
value: ::core::primitive::u128,
) -> ::subxt::tx::Payload<types::TransferAllowDeath> {
::subxt::tx::Payload::new_static(
"Balances",
"transfer_allow_death",
types::TransferAllowDeath { dest, value },
[
51u8, 166u8, 195u8, 10u8, 139u8, 218u8, 55u8, 130u8, 6u8, 194u8, 35u8,
140u8, 27u8, 205u8, 214u8, 222u8, 102u8, 43u8, 143u8, 145u8, 86u8,
219u8, 210u8, 147u8, 13u8, 39u8, 51u8, 21u8, 237u8, 179u8, 132u8,
130u8,
],
)
}
#[doc = "See [`Pallet::set_balance_deprecated`]."]
pub fn set_balance_deprecated(
&self,
who: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>,
new_free: ::core::primitive::u128,
old_reserved: ::core::primitive::u128,
) -> ::subxt::tx::Payload<types::SetBalanceDeprecated> {
::subxt::tx::Payload::new_static(
"Balances",
"set_balance_deprecated",
types::SetBalanceDeprecated {
who,
new_free,
old_reserved,
},
[
125u8, 171u8, 21u8, 186u8, 108u8, 185u8, 241u8, 145u8, 125u8, 8u8,
12u8, 42u8, 96u8, 114u8, 80u8, 80u8, 227u8, 76u8, 20u8, 208u8, 93u8,
219u8, 36u8, 50u8, 209u8, 155u8, 70u8, 45u8, 6u8, 57u8, 156u8, 77u8,
],
)
}
#[doc = "See [`Pallet::force_transfer`]."]
pub fn force_transfer(
&self,
source: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>,
dest: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>,
value: ::core::primitive::u128,
) -> ::subxt::tx::Payload<types::ForceTransfer> {
::subxt::tx::Payload::new_static(
"Balances",
"force_transfer",
types::ForceTransfer {
source,
dest,
value,
},
[
154u8, 93u8, 222u8, 27u8, 12u8, 248u8, 63u8, 213u8, 224u8, 86u8, 250u8,
153u8, 249u8, 102u8, 83u8, 160u8, 79u8, 125u8, 105u8, 222u8, 77u8,
180u8, 90u8, 105u8, 81u8, 217u8, 60u8, 25u8, 213u8, 51u8, 185u8, 96u8,
],
)
}
#[doc = "See [`Pallet::transfer_keep_alive`]."]
pub fn transfer_keep_alive(
&self,
dest: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>,
value: ::core::primitive::u128,
) -> ::subxt::tx::Payload<types::TransferKeepAlive> {
::subxt::tx::Payload::new_static(
"Balances",
"transfer_keep_alive",
types::TransferKeepAlive { dest, value },
[
245u8, 14u8, 190u8, 193u8, 32u8, 210u8, 74u8, 92u8, 25u8, 182u8, 76u8,
55u8, 247u8, 83u8, 114u8, 75u8, 143u8, 236u8, 117u8, 25u8, 54u8, 157u8,
208u8, 207u8, 233u8, 89u8, 70u8, 161u8, 235u8, 242u8, 222u8, 59u8,
],
)
}
#[doc = "See [`Pallet::transfer_all`]."]
pub fn transfer_all(
&self,
dest: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>,
keep_alive: ::core::primitive::bool,
) -> ::subxt::tx::Payload<types::TransferAll> {
::subxt::tx::Payload::new_static(
"Balances",
"transfer_all",
types::TransferAll { dest, keep_alive },
[
105u8, 132u8, 49u8, 144u8, 195u8, 250u8, 34u8, 46u8, 213u8, 248u8,
112u8, 188u8, 81u8, 228u8, 136u8, 18u8, 67u8, 172u8, 37u8, 38u8, 238u8,
9u8, 34u8, 15u8, 67u8, 34u8, 148u8, 195u8, 223u8, 29u8, 154u8, 6u8,
],
)
}
#[doc = "See [`Pallet::force_unreserve`]."]
pub fn force_unreserve(
&self,
who: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>,
amount: ::core::primitive::u128,
) -> ::subxt::tx::Payload<types::ForceUnreserve> {
::subxt::tx::Payload::new_static(
"Balances",
"force_unreserve",
types::ForceUnreserve { who, amount },
[
142u8, 151u8, 64u8, 205u8, 46u8, 64u8, 62u8, 122u8, 108u8, 49u8, 223u8,
140u8, 120u8, 153u8, 35u8, 165u8, 187u8, 38u8, 157u8, 200u8, 123u8,
199u8, 198u8, 168u8, 208u8, 159u8, 39u8, 134u8, 92u8, 103u8, 84u8,
171u8,
],
)
}
#[doc = "See [`Pallet::upgrade_accounts`]."]
pub fn upgrade_accounts(
&self,
who: ::std::vec::Vec<::subxt::utils::AccountId32>,
) -> ::subxt::tx::Payload<types::UpgradeAccounts> {
::subxt::tx::Payload::new_static(
"Balances",
"upgrade_accounts",
types::UpgradeAccounts { who },
[
66u8, 200u8, 179u8, 104u8, 65u8, 2u8, 101u8, 56u8, 130u8, 161u8, 224u8,
233u8, 255u8, 124u8, 70u8, 122u8, 8u8, 49u8, 103u8, 178u8, 68u8, 47u8,
214u8, 166u8, 217u8, 116u8, 178u8, 50u8, 212u8, 164u8, 98u8, 226u8,
],
)
}
#[doc = "See [`Pallet::transfer`]."]
pub fn transfer(
&self,
dest: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>,
value: ::core::primitive::u128,
) -> ::subxt::tx::Payload<types::Transfer> {
::subxt::tx::Payload::new_static(
"Balances",
"transfer",
types::Transfer { dest, value },
[
154u8, 145u8, 140u8, 54u8, 50u8, 123u8, 225u8, 249u8, 200u8, 217u8,
172u8, 110u8, 233u8, 198u8, 77u8, 198u8, 211u8, 89u8, 8u8, 13u8, 240u8,
94u8, 28u8, 13u8, 242u8, 217u8, 168u8, 23u8, 106u8, 254u8, 249u8,
120u8,
],
)
}
#[doc = "See [`Pallet::force_set_balance`]."]
pub fn force_set_balance(
&self,
who: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>,
new_free: ::core::primitive::u128,
) -> ::subxt::tx::Payload<types::ForceSetBalance> {
::subxt::tx::Payload::new_static(
"Balances",
"force_set_balance",
types::ForceSetBalance { who, new_free },
[
114u8, 229u8, 59u8, 204u8, 180u8, 83u8, 17u8, 4u8, 59u8, 4u8, 55u8,
39u8, 151u8, 196u8, 124u8, 60u8, 209u8, 65u8, 193u8, 11u8, 44u8, 164u8,
116u8, 93u8, 169u8, 30u8, 199u8, 165u8, 55u8, 231u8, 223u8, 43u8,
],
)
}
}
}
#[doc = "The `Event` enum of this pallet"]
pub type Event = runtime_types::pallet_balances::pallet::Event;
pub mod events {
use super::runtime_types;
#[derive(
:: subxt :: ext :: codec :: Decode,
:: subxt :: ext :: codec :: Encode,
:: subxt :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
# [codec (crate = :: subxt :: ext :: codec)]
#[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
#[doc = "An account was created with some free balance."]
pub struct Endowed {
pub account: ::subxt::utils::AccountId32,
pub free_balance: ::core::primitive::u128,
}
impl ::subxt::events::StaticEvent for Endowed {
const PALLET: &'static str = "Balances";
const EVENT: &'static str = "Endowed";
}
#[derive(
:: subxt :: ext :: codec :: Decode,
:: subxt :: ext :: codec :: Encode,
:: subxt :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
# [codec (crate = :: subxt :: ext :: codec)]
#[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
#[doc = "An account was removed whose balance was non-zero but below ExistentialDeposit,"]
#[doc = "resulting in an outright loss."]
pub struct DustLost {
pub account: ::subxt::utils::AccountId32,
pub amount: ::core::primitive::u128,
}
impl ::subxt::events::StaticEvent for DustLost {
const PALLET: &'static str = "Balances";
const EVENT: &'static str = "DustLost";
}
#[derive(
:: subxt :: ext :: codec :: Decode,
:: subxt :: ext :: codec :: Encode,
:: subxt :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
# [codec (crate = :: subxt :: ext :: codec)]
#[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
#[doc = "Transfer succeeded."]
pub struct Transfer {
pub from: ::subxt::utils::AccountId32,
pub to: ::subxt::utils::AccountId32,
pub amount: ::core::primitive::u128,
}
impl ::subxt::events::StaticEvent for Transfer {
const PALLET: &'static str = "Balances";
const EVENT: &'static str = "Transfer";
}
#[derive(
:: subxt :: ext :: codec :: Decode,
:: subxt :: ext :: codec :: Encode,
:: subxt :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
# [codec (crate = :: subxt :: ext :: codec)]
#[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
#[doc = "A balance was set by root."]
pub struct BalanceSet {
pub who: ::subxt::utils::AccountId32,
pub free: ::core::primitive::u128,
}
impl ::subxt::events::StaticEvent for BalanceSet {
const PALLET: &'static str = "Balances";
const EVENT: &'static str = "BalanceSet";
}
#[derive(
:: subxt :: ext :: codec :: Decode,
:: subxt :: ext :: codec :: Encode,
:: subxt :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
# [codec (crate = :: subxt :: ext :: codec)]
#[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
#[doc = "Some balance was reserved (moved from free to reserved)."]
pub struct Reserved {
pub who: ::subxt::utils::AccountId32,
pub amount: ::core::primitive::u128,
}
impl ::subxt::events::StaticEvent for Reserved {
const PALLET: &'static str = "Balances";
const EVENT: &'static str = "Reserved";
}
#[derive(
:: subxt :: ext :: codec :: Decode,
:: subxt :: ext :: codec :: Encode,
:: subxt :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
# [codec (crate = :: subxt :: ext :: codec)]
#[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
#[doc = "Some balance was unreserved (moved from reserved to free)."]
pub struct Unreserved {
pub who: ::subxt::utils::AccountId32,
pub amount: ::core::primitive::u128,
}
impl ::subxt::events::StaticEvent for Unreserved {
const PALLET: &'static str = "Balances";
const EVENT: &'static str = "Unreserved";
}
#[derive(
:: subxt :: ext :: codec :: Decode,
:: subxt :: ext :: codec :: Encode,
:: subxt :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
# [codec (crate = :: subxt :: ext :: codec)]
#[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
#[doc = "Some balance was moved from the reserve of the first account to the second account."]
#[doc = "Final argument indicates the destination balance type."]
pub struct ReserveRepatriated {
pub from: ::subxt::utils::AccountId32,
pub to: ::subxt::utils::AccountId32,
pub amount: ::core::primitive::u128,
pub destination_status:
runtime_types::frame_support::traits::tokens::misc::BalanceStatus,
}
impl ::subxt::events::StaticEvent for ReserveRepatriated {
const PALLET: &'static str = "Balances";
const EVENT: &'static str = "ReserveRepatriated";
}
#[derive(
:: subxt :: ext :: codec :: Decode,
:: subxt :: ext :: codec :: Encode,
:: subxt :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
# [codec (crate = :: subxt :: ext :: codec)]
#[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
#[doc = "Some amount was deposited (e.g. for transaction fees)."]
pub struct Deposit {
pub who: ::subxt::utils::AccountId32,
pub amount: ::core::primitive::u128,
}
impl ::subxt::events::StaticEvent for Deposit {
const PALLET: &'static str = "Balances";
const EVENT: &'static str = "Deposit";
}
#[derive(
:: subxt :: ext :: codec :: Decode,
:: subxt :: ext :: codec :: Encode,
:: subxt :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
# [codec (crate = :: subxt :: ext :: codec)]
#[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
#[doc = "Some amount was withdrawn from the account (e.g. for transaction fees)."]
pub struct Withdraw {
pub who: ::subxt::utils::AccountId32,
pub amount: ::core::primitive::u128,
}
impl ::subxt::events::StaticEvent for Withdraw {
const PALLET: &'static str = "Balances";
const EVENT: &'static str = "Withdraw";
}
#[derive(
:: subxt :: ext :: codec :: Decode,
:: subxt :: ext :: codec :: Encode,
:: subxt :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
# [codec (crate = :: subxt :: ext :: codec)]
#[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
#[doc = "Some amount was removed from the account (e.g. for misbehavior)."]
pub struct Slashed {
pub who: ::subxt::utils::AccountId32,
pub amount: ::core::primitive::u128,
}
impl ::subxt::events::StaticEvent for Slashed {
const PALLET: &'static str = "Balances";
const EVENT: &'static str = "Slashed";
}
#[derive(
:: subxt :: ext :: codec :: Decode,
:: subxt :: ext :: codec :: Encode,
:: subxt :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
# [codec (crate = :: subxt :: ext :: codec)]
#[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
#[doc = "Some amount was minted into an account."]
pub struct Minted {
pub who: ::subxt::utils::AccountId32,
pub amount: ::core::primitive::u128,
}
impl ::subxt::events::StaticEvent for Minted {
const PALLET: &'static str = "Balances";
const EVENT: &'static str = "Minted";
}
#[derive(
:: subxt :: ext :: codec :: Decode,
:: subxt :: ext :: codec :: Encode,
:: subxt :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
# [codec (crate = :: subxt :: ext :: codec)]
#[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
#[doc = "Some amount was burned from an account."]
pub struct Burned {
pub who: ::subxt::utils::AccountId32,
pub amount: ::core::primitive::u128,
}
impl ::subxt::events::StaticEvent for Burned {
const PALLET: &'static str = "Balances";
const EVENT: &'static str = "Burned";
}
#[derive(
:: subxt :: ext :: codec :: Decode,
:: subxt :: ext :: codec :: Encode,
:: subxt :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
# [codec (crate = :: subxt :: ext :: codec)]
#[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
#[doc = "Some amount was suspended from an account (it can be restored later)."]
pub struct Suspended {
pub who: ::subxt::utils::AccountId32,
pub amount: ::core::primitive::u128,
}
impl ::subxt::events::StaticEvent for Suspended {
const PALLET: &'static str = "Balances";
const EVENT: &'static str = "Suspended";
}
#[derive(
:: subxt :: ext :: codec :: Decode,
:: subxt :: ext :: codec :: Encode,
:: subxt :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
# [codec (crate = :: subxt :: ext :: codec)]
#[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
#[doc = "Some amount was restored into an account."]
pub struct Restored {
pub who: ::subxt::utils::AccountId32,
pub amount: ::core::primitive::u128,
}
impl ::subxt::events::StaticEvent for Restored {
const PALLET: &'static str = "Balances";
const EVENT: &'static str = "Restored";
}
#[derive(
:: subxt :: ext :: codec :: Decode,
:: subxt :: ext :: codec :: Encode,
:: subxt :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
# [codec (crate = :: subxt :: ext :: codec)]
#[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
#[doc = "An account was upgraded."]
pub struct Upgraded {
pub who: ::subxt::utils::AccountId32,
}
impl ::subxt::events::StaticEvent for Upgraded {
const PALLET: &'static str = "Balances";
const EVENT: &'static str = "Upgraded";
}
#[derive(
:: subxt :: ext :: codec :: CompactAs,
:: subxt :: ext :: codec :: Decode,
:: subxt :: ext :: codec :: Encode,
:: subxt :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
# [codec (crate = :: subxt :: ext :: codec)]
#[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
#[doc = "Total issuance was increased by `amount`, creating a credit to be balanced."]
pub struct Issued {
pub amount: ::core::primitive::u128,
}
impl ::subxt::events::StaticEvent for Issued {
const PALLET: &'static str = "Balances";
const EVENT: &'static str = "Issued";
}
#[derive(
:: subxt :: ext :: codec :: CompactAs,
:: subxt :: ext :: codec :: Decode,
:: subxt :: ext :: codec :: Encode,
:: subxt :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
# [codec (crate = :: subxt :: ext :: codec)]
#[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
#[doc = "Total issuance was decreased by `amount`, creating a debt to be balanced."]
pub struct Rescinded {
pub amount: ::core::primitive::u128,
}
impl ::subxt::events::StaticEvent for Rescinded {
const PALLET: &'static str = "Balances";
const EVENT: &'static str = "Rescinded";
}
#[derive(
:: subxt :: ext :: codec :: Decode,
:: subxt :: ext :: codec :: Encode,
:: subxt :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
# [codec (crate = :: subxt :: ext :: codec)]
#[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
#[doc = "Some balance was locked."]
pub struct Locked {
pub who: ::subxt::utils::AccountId32,
pub amount: ::core::primitive::u128,
}
impl ::subxt::events::StaticEvent for Locked {
const PALLET: &'static str = "Balances";
const EVENT: &'static str = "Locked";
}
#[derive(
:: subxt :: ext :: codec :: Decode,
:: subxt :: ext :: codec :: Encode,
:: subxt :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
# [codec (crate = :: subxt :: ext :: codec)]
#[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
#[doc = "Some balance was unlocked."]
pub struct Unlocked {
pub who: ::subxt::utils::AccountId32,
pub amount: ::core::primitive::u128,
}
impl ::subxt::events::StaticEvent for Unlocked {
const PALLET: &'static str = "Balances";
const EVENT: &'static str = "Unlocked";
}
#[derive(
:: subxt :: ext :: codec :: Decode,
:: subxt :: ext :: codec :: Encode,
:: subxt :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
# [codec (crate = :: subxt :: ext :: codec)]
#[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
#[doc = "Some balance was frozen."]
pub struct Frozen {
pub who: ::subxt::utils::AccountId32,
pub amount: ::core::primitive::u128,
}
impl ::subxt::events::StaticEvent for Frozen {
const PALLET: &'static str = "Balances";
const EVENT: &'static str = "Frozen";
}
#[derive(
:: subxt :: ext :: codec :: Decode,
:: subxt :: ext :: codec :: Encode,
:: subxt :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
# [codec (crate = :: subxt :: ext :: codec)]
#[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
#[doc = "Some balance was thawed."]
pub struct Thawed {
pub who: ::subxt::utils::AccountId32,
pub amount: ::core::primitive::u128,
}
impl ::subxt::events::StaticEvent for Thawed {
const PALLET: &'static str = "Balances";
const EVENT: &'static str = "Thawed";
}
}
pub mod storage {
use super::runtime_types;
pub struct StorageApi;
impl StorageApi {
#[doc = " The total units issued in the system."]
pub fn total_issuance(
&self,
) -> ::subxt::storage::address::Address<
::subxt::storage::address::StaticStorageMapKey,
::core::primitive::u128,
::subxt::storage::address::Yes,
::subxt::storage::address::Yes,
(),
> {
::subxt::storage::address::Address::new_static(
"Balances",
"TotalIssuance",
vec![],
[
116u8, 70u8, 119u8, 194u8, 69u8, 37u8, 116u8, 206u8, 171u8, 70u8,
171u8, 210u8, 226u8, 111u8, 184u8, 204u8, 206u8, 11u8, 68u8, 72u8,
255u8, 19u8, 194u8, 11u8, 27u8, 194u8, 81u8, 204u8, 59u8, 224u8, 202u8,
185u8,
],
)
}
#[doc = " The total units of outstanding deactivated balance in the system."]
pub fn inactive_issuance(
&self,
) -> ::subxt::storage::address::Address<
::subxt::storage::address::StaticStorageMapKey,
::core::primitive::u128,
::subxt::storage::address::Yes,
::subxt::storage::address::Yes,
(),
> {
::subxt::storage::address::Address::new_static(
"Balances",
"InactiveIssuance",
vec![],
[
212u8, 185u8, 19u8, 50u8, 250u8, 72u8, 173u8, 50u8, 4u8, 104u8, 161u8,
249u8, 77u8, 247u8, 204u8, 248u8, 11u8, 18u8, 57u8, 4u8, 82u8, 110u8,
30u8, 216u8, 16u8, 37u8, 87u8, 67u8, 189u8, 235u8, 214u8, 155u8,
],
)
}
#[doc = " The Balances pallet example of storing the balance of an account."]
#[doc = ""]
#[doc = " # Example"]
#[doc = ""]
#[doc = " ```nocompile"]
#[doc = " impl pallet_balances::Config for Runtime {"]
#[doc = " type AccountStore = StorageMapShim<Self::Account<Runtime>, frame_system::Provider<Runtime>, AccountId, Self::AccountData<Balance>>"]
#[doc = " }"]
#[doc = " ```"]
#[doc = ""]
#[doc = " You can also store the balance of an account in the `System` pallet."]
#[doc = ""]
#[doc = " # Example"]
#[doc = ""]
#[doc = " ```nocompile"]
#[doc = " impl pallet_balances::Config for Runtime {"]
#[doc = " type AccountStore = System"]
#[doc = " }"]
#[doc = " ```"]
#[doc = ""]
#[doc = " But this comes with tradeoffs, storing account balances in the system pallet stores"]
#[doc = " `frame_system` data alongside the account data contrary to storing account balances in the"]
#[doc = " `Balances` pallet, which uses a `StorageMap` to store balances data only."]
#[doc = " NOTE: This is only used in the case that this pallet is used to store balances."]
pub fn account_iter(
&self,
) -> ::subxt::storage::address::Address<
::subxt::storage::address::StaticStorageMapKey,
runtime_types::pallet_balances::types::AccountData<::core::primitive::u128>,
(),
::subxt::storage::address::Yes,
::subxt::storage::address::Yes,
> {
::subxt::storage::address::Address::new_static(
"Balances",
"Account",
vec![],
[
213u8, 38u8, 200u8, 69u8, 218u8, 0u8, 112u8, 181u8, 160u8, 23u8, 96u8,
90u8, 3u8, 88u8, 126u8, 22u8, 103u8, 74u8, 64u8, 69u8, 29u8, 247u8,
18u8, 17u8, 234u8, 143u8, 189u8, 22u8, 247u8, 194u8, 154u8, 249u8,
],
)
}
#[doc = " The Balances pallet example of storing the balance of an account."]
#[doc = ""]
#[doc = " # Example"]
#[doc = ""]
#[doc = " ```nocompile"]
#[doc = " impl pallet_balances::Config for Runtime {"]
#[doc = " type AccountStore = StorageMapShim<Self::Account<Runtime>, frame_system::Provider<Runtime>, AccountId, Self::AccountData<Balance>>"]
#[doc = " }"]
#[doc = " ```"]
#[doc = ""]
#[doc = " You can also store the balance of an account in the `System` pallet."]
#[doc = ""]
#[doc = " # Example"]
#[doc = ""]
#[doc = " ```nocompile"]
#[doc = " impl pallet_balances::Config for Runtime {"]
#[doc = " type AccountStore = System"]
#[doc = " }"]
#[doc = " ```"]
#[doc = ""]
#[doc = " But this comes with tradeoffs, storing account balances in the system pallet stores"]
#[doc = " `frame_system` data alongside the account data contrary to storing account balances in the"]
#[doc = " `Balances` pallet, which uses a `StorageMap` to store balances data only."]
#[doc = " NOTE: This is only used in the case that this pallet is used to store balances."]
pub fn account(
&self,
_0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>,
) -> ::subxt::storage::address::Address<
::subxt::storage::address::StaticStorageMapKey,
runtime_types::pallet_balances::types::AccountData<::core::primitive::u128>,
::subxt::storage::address::Yes,
::subxt::storage::address::Yes,
(),
> {
::subxt::storage::address::Address::new_static(
"Balances",
"Account",
vec![::subxt::storage::address::make_static_storage_map_key(
_0.borrow(),
)],
[
213u8, 38u8, 200u8, 69u8, 218u8, 0u8, 112u8, 181u8, 160u8, 23u8, 96u8,
90u8, 3u8, 88u8, 126u8, 22u8, 103u8, 74u8, 64u8, 69u8, 29u8, 247u8,
18u8, 17u8, 234u8, 143u8, 189u8, 22u8, 247u8, 194u8, 154u8, 249u8,
],
)
}
#[doc = " Any liquidity locks on some account balances."]
#[doc = " NOTE: Should only be accessed when setting, changing and freeing a lock."]
pub fn locks_iter(
&self,
) -> ::subxt::storage::address::Address<
::subxt::storage::address::StaticStorageMapKey,
runtime_types::bounded_collections::weak_bounded_vec::WeakBoundedVec<
runtime_types::pallet_balances::types::BalanceLock<::core::primitive::u128>,
>,
(),
::subxt::storage::address::Yes,
::subxt::storage::address::Yes,
> {
::subxt::storage::address::Address::new_static(
"Balances",
"Locks",
vec![],
[
10u8, 223u8, 55u8, 0u8, 249u8, 69u8, 168u8, 41u8, 75u8, 35u8, 120u8,
167u8, 18u8, 132u8, 9u8, 20u8, 91u8, 51u8, 27u8, 69u8, 136u8, 187u8,
13u8, 220u8, 163u8, 122u8, 26u8, 141u8, 174u8, 249u8, 85u8, 37u8,
],
)
}
#[doc = " Any liquidity locks on some account balances."]
#[doc = " NOTE: Should only be accessed when setting, changing and freeing a lock."]
pub fn locks(
&self,
_0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>,
) -> ::subxt::storage::address::Address<
::subxt::storage::address::StaticStorageMapKey,
runtime_types::bounded_collections::weak_bounded_vec::WeakBoundedVec<
runtime_types::pallet_balances::types::BalanceLock<::core::primitive::u128>,
>,
::subxt::storage::address::Yes,
::subxt::storage::address::Yes,
(),
> {
::subxt::storage::address::Address::new_static(
"Balances",
"Locks",
vec![::subxt::storage::address::make_static_storage_map_key(
_0.borrow(),
)],
[
10u8, 223u8, 55u8, 0u8, 249u8, 69u8, 168u8, 41u8, 75u8, 35u8, 120u8,
167u8, 18u8, 132u8, 9u8, 20u8, 91u8, 51u8, 27u8, 69u8, 136u8, 187u8,
13u8, 220u8, 163u8, 122u8, 26u8, 141u8, 174u8, 249u8, 85u8, 37u8,
],
)
}
#[doc = " Named reserves on some account balances."]
pub fn reserves_iter(
&self,
) -> ::subxt::storage::address::Address<
::subxt::storage::address::StaticStorageMapKey,
runtime_types::bounded_collections::bounded_vec::BoundedVec<
runtime_types::pallet_balances::types::ReserveData<
[::core::primitive::u8; 8usize],
::core::primitive::u128,
>,
>,
(),
::subxt::storage::address::Yes,
::subxt::storage::address::Yes,
> {
::subxt::storage::address::Address::new_static(
"Balances",
"Reserves",
vec![],
[
112u8, 10u8, 241u8, 77u8, 64u8, 187u8, 106u8, 159u8, 13u8, 153u8,
140u8, 178u8, 182u8, 50u8, 1u8, 55u8, 149u8, 92u8, 196u8, 229u8, 170u8,
106u8, 193u8, 88u8, 255u8, 244u8, 2u8, 193u8, 62u8, 235u8, 204u8, 91u8,
],
)
}
#[doc = " Named reserves on some account balances."]
pub fn reserves(
&self,
_0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>,
) -> ::subxt::storage::address::Address<
::subxt::storage::address::StaticStorageMapKey,
runtime_types::bounded_collections::bounded_vec::BoundedVec<
runtime_types::pallet_balances::types::ReserveData<
[::core::primitive::u8; 8usize],
::core::primitive::u128,
>,
>,
::subxt::storage::address::Yes,
::subxt::storage::address::Yes,
(),
> {
::subxt::storage::address::Address::new_static(
"Balances",
"Reserves",
vec![::subxt::storage::address::make_static_storage_map_key(
_0.borrow(),
)],
[
112u8, 10u8, 241u8, 77u8, 64u8, 187u8, 106u8, 159u8, 13u8, 153u8,
140u8, 178u8, 182u8, 50u8, 1u8, 55u8, 149u8, 92u8, 196u8, 229u8, 170u8,
106u8, 193u8, 88u8, 255u8, 244u8, 2u8, 193u8, 62u8, 235u8, 204u8, 91u8,
],
)
}
#[doc = " Holds on account balances."]
pub fn holds_iter(
&self,
) -> ::subxt::storage::address::Address<
::subxt::storage::address::StaticStorageMapKey,
runtime_types::bounded_collections::bounded_vec::BoundedVec<
runtime_types::pallet_balances::types::IdAmount<
(),
::core::primitive::u128,
>,
>,
(),
::subxt::storage::address::Yes,
::subxt::storage::address::Yes,
> {
::subxt::storage::address::Address::new_static(
"Balances",
"Holds",
vec![],
[
53u8, 126u8, 215u8, 237u8, 42u8, 223u8, 188u8, 150u8, 230u8, 107u8,
95u8, 24u8, 26u8, 235u8, 158u8, 149u8, 193u8, 191u8, 10u8, 194u8,
231u8, 59u8, 35u8, 167u8, 186u8, 89u8, 43u8, 126u8, 215u8, 117u8, 1u8,
202u8,
],
)
}
#[doc = " Holds on account balances."]
pub fn holds(
&self,
_0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>,
) -> ::subxt::storage::address::Address<
::subxt::storage::address::StaticStorageMapKey,
runtime_types::bounded_collections::bounded_vec::BoundedVec<
runtime_types::pallet_balances::types::IdAmount<
(),
::core::primitive::u128,
>,
>,
::subxt::storage::address::Yes,
::subxt::storage::address::Yes,
(),
> {
::subxt::storage::address::Address::new_static(
"Balances",
"Holds",
vec![::subxt::storage::address::make_static_storage_map_key(
_0.borrow(),
)],
[
53u8, 126u8, 215u8, 237u8, 42u8, 223u8, 188u8, 150u8, 230u8, 107u8,
95u8, 24u8, 26u8, 235u8, 158u8, 149u8, 193u8, 191u8, 10u8, 194u8,
231u8, 59u8, 35u8, 167u8, 186u8, 89u8, 43u8, 126u8, 215u8, 117u8, 1u8,
202u8,
],
)
}
#[doc = " Freeze locks on account balances."]
pub fn freezes_iter(
&self,
) -> ::subxt::storage::address::Address<
::subxt::storage::address::StaticStorageMapKey,
runtime_types::bounded_collections::bounded_vec::BoundedVec<
runtime_types::pallet_balances::types::IdAmount<
(),
::core::primitive::u128,
>,
>,
(),
::subxt::storage::address::Yes,
::subxt::storage::address::Yes,
> {
::subxt::storage::address::Address::new_static(
"Balances",
"Freezes",
vec![],
[
69u8, 49u8, 165u8, 76u8, 135u8, 142u8, 179u8, 118u8, 50u8, 109u8, 53u8,
112u8, 110u8, 94u8, 30u8, 93u8, 173u8, 38u8, 27u8, 142u8, 19u8, 5u8,
163u8, 4u8, 68u8, 218u8, 179u8, 224u8, 118u8, 218u8, 115u8, 64u8,
],
)
}
#[doc = " Freeze locks on account balances."]
pub fn freezes(
&self,
_0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>,
) -> ::subxt::storage::address::Address<
::subxt::storage::address::StaticStorageMapKey,
runtime_types::bounded_collections::bounded_vec::BoundedVec<
runtime_types::pallet_balances::types::IdAmount<
(),
::core::primitive::u128,
>,
>,
::subxt::storage::address::Yes,
::subxt::storage::address::Yes,
(),
> {
::subxt::storage::address::Address::new_static(
"Balances",
"Freezes",
vec![::subxt::storage::address::make_static_storage_map_key(
_0.borrow(),
)],
[
69u8, 49u8, 165u8, 76u8, 135u8, 142u8, 179u8, 118u8, 50u8, 109u8, 53u8,
112u8, 110u8, 94u8, 30u8, 93u8, 173u8, 38u8, 27u8, 142u8, 19u8, 5u8,
163u8, 4u8, 68u8, 218u8, 179u8, 224u8, 118u8, 218u8, 115u8, 64u8,
],
)
}
}
}
pub mod constants {
use super::runtime_types;
pub struct ConstantsApi;
impl ConstantsApi {
#[doc = " The minimum amount required to keep an account open. MUST BE GREATER THAN ZERO!"]
#[doc = ""]
#[doc = " If you *really* need it to be zero, you can enable the feature `insecure_zero_ed` for"]
#[doc = " this pallet. However, you do so at your own risk: this will open up a major DoS vector."]
#[doc = " In case you have multiple sources of provider references, you may also get unexpected"]
#[doc = " behaviour if you set this to zero."]
#[doc = ""]
#[doc = " Bottom line: Do yourself a favour and make it at least one!"]
pub fn existential_deposit(
&self,
) -> ::subxt::constants::Address<::core::primitive::u128> {
::subxt::constants::Address::new_static(
"Balances",
"ExistentialDeposit",
[
84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8,
27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8,
136u8, 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, 148u8, 156u8,
],
)
}
#[doc = " The maximum number of locks that should exist on an account."]
#[doc = " Not strictly enforced, but used for weight estimation."]
pub fn max_locks(&self) -> ::subxt::constants::Address<::core::primitive::u32> {
::subxt::constants::Address::new_static(
"Balances",
"MaxLocks",
[
98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8,
125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8,
178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8,
145u8,
],
)
}
#[doc = " The maximum number of named reserves that can exist on an account."]
pub fn max_reserves(&self) -> ::subxt::constants::Address<::core::primitive::u32> {
::subxt::constants::Address::new_static(
"Balances",
"MaxReserves",
[
98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8,
125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8,
178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8,
145u8,
],
)
}
#[doc = " The maximum number of holds that can exist on an account at any time."]
pub fn max_holds(&self) -> ::subxt::constants::Address<::core::primitive::u32> {
::subxt::constants::Address::new_static(
"Balances",
"MaxHolds",
[
98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8,
125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8,
178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8,
145u8,
],
)
}
#[doc = " The maximum number of individual freeze locks that can exist on an account at any time."]
pub fn max_freezes(&self) -> ::subxt::constants::Address<::core::primitive::u32> {
::subxt::constants::Address::new_static(
"Balances",
"MaxFreezes",
[
98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8,
125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8,
178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8,
145u8,
],
)
}
}
}
}
pub mod transaction_payment {
use super::root_mod;
use super::runtime_types;
#[doc = "The `Event` enum of this pallet"]
pub type Event = runtime_types::pallet_transaction_payment::pallet::Event;
pub mod events {
use super::runtime_types;
#[derive(
:: subxt :: ext :: codec :: Decode,
:: subxt :: ext :: codec :: Encode,
:: subxt :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
# [codec (crate = :: subxt :: ext :: codec)]
#[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
#[doc = "A transaction fee `actual_fee`, of which `tip` was added to the minimum inclusion fee,"]
#[doc = "has been paid by `who`."]
pub struct TransactionFeePaid {
pub who: ::subxt::utils::AccountId32,
pub actual_fee: ::core::primitive::u128,
pub tip: ::core::primitive::u128,
}
impl ::subxt::events::StaticEvent for TransactionFeePaid {
const PALLET: &'static str = "TransactionPayment";
const EVENT: &'static str = "TransactionFeePaid";
}
}
pub mod storage {
use super::runtime_types;
pub struct StorageApi;
impl StorageApi {
pub fn next_fee_multiplier(
&self,
) -> ::subxt::storage::address::Address<
::subxt::storage::address::StaticStorageMapKey,
runtime_types::sp_arithmetic::fixed_point::FixedU128,
::subxt::storage::address::Yes,
::subxt::storage::address::Yes,
(),
> {
::subxt::storage::address::Address::new_static(
"TransactionPayment",
"NextFeeMultiplier",
vec![],
[
247u8, 39u8, 81u8, 170u8, 225u8, 226u8, 82u8, 147u8, 34u8, 113u8,
147u8, 213u8, 59u8, 80u8, 139u8, 35u8, 36u8, 196u8, 152u8, 19u8, 9u8,
159u8, 176u8, 79u8, 249u8, 201u8, 170u8, 1u8, 129u8, 79u8, 146u8,
197u8,
],
)
}
pub fn storage_version(
&self,
) -> ::subxt::storage::address::Address<
::subxt::storage::address::StaticStorageMapKey,
runtime_types::pallet_transaction_payment::Releases,
::subxt::storage::address::Yes,
::subxt::storage::address::Yes,
(),
> {
::subxt::storage::address::Address::new_static(
"TransactionPayment",
"StorageVersion",
vec![],
[
105u8, 243u8, 158u8, 241u8, 159u8, 231u8, 253u8, 6u8, 4u8, 32u8, 85u8,
178u8, 126u8, 31u8, 203u8, 134u8, 154u8, 38u8, 122u8, 155u8, 150u8,
251u8, 174u8, 15u8, 74u8, 134u8, 216u8, 244u8, 168u8, 175u8, 158u8,
144u8,
],
)
}
}
}
pub mod constants {
use super::runtime_types;
pub struct ConstantsApi;
impl ConstantsApi {
#[doc = " A fee mulitplier for `Operational` extrinsics to compute \"virtual tip\" to boost their"]
#[doc = " `priority`"]
#[doc = ""]
#[doc = " This value is multipled by the `final_fee` to obtain a \"virtual tip\" that is later"]
#[doc = " added to a tip component in regular `priority` calculations."]
#[doc = " It means that a `Normal` transaction can front-run a similarly-sized `Operational`"]
#[doc = " extrinsic (with no tip), by including a tip value greater than the virtual tip."]
#[doc = ""]
#[doc = " ```rust,ignore"]
#[doc = " // For `Normal`"]
#[doc = " let priority = priority_calc(tip);"]
#[doc = ""]
#[doc = " // For `Operational`"]
#[doc = " let virtual_tip = (inclusion_fee + tip) * OperationalFeeMultiplier;"]
#[doc = " let priority = priority_calc(tip + virtual_tip);"]
#[doc = " ```"]
#[doc = ""]
#[doc = " Note that since we use `final_fee` the multiplier applies also to the regular `tip`"]
#[doc = " sent with the transaction. So, not only does the transaction get a priority bump based"]
#[doc = " on the `inclusion_fee`, but we also amplify the impact of tips applied to `Operational`"]
#[doc = " transactions."]
pub fn operational_fee_multiplier(
&self,
) -> ::subxt::constants::Address<::core::primitive::u8> {
::subxt::constants::Address::new_static(
"TransactionPayment",
"OperationalFeeMultiplier",
[
141u8, 130u8, 11u8, 35u8, 226u8, 114u8, 92u8, 179u8, 168u8, 110u8,
28u8, 91u8, 221u8, 64u8, 4u8, 148u8, 201u8, 193u8, 185u8, 66u8, 226u8,
114u8, 97u8, 79u8, 62u8, 212u8, 202u8, 114u8, 237u8, 228u8, 183u8,
165u8,
],
)
}
}
}
}
pub mod sudo {
use super::root_mod;
use super::runtime_types;
#[doc = "Error for the Sudo pallet"]
pub type Error = runtime_types::pallet_sudo::pallet::Error;
#[doc = "Contains a variant per dispatchable extrinsic that this pallet has."]
pub type Call = runtime_types::pallet_sudo::pallet::Call;
pub mod calls {
use super::root_mod;
use super::runtime_types;
type DispatchError = runtime_types::sp_runtime::DispatchError;
pub mod types {
use super::runtime_types;
#[derive(
:: subxt :: ext :: codec :: Decode,
:: subxt :: ext :: codec :: Encode,
:: subxt :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
# [codec (crate = :: subxt :: ext :: codec)]
#[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
pub struct Sudo {
pub call: ::std::boxed::Box<runtime_types::madya_solo_runtime::RuntimeCall>,
}
impl ::subxt::blocks::StaticExtrinsic for Sudo {
const PALLET: &'static str = "Sudo";
const CALL: &'static str = "sudo";
}
#[derive(
:: subxt :: ext :: codec :: Decode,
:: subxt :: ext :: codec :: Encode,
:: subxt :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
# [codec (crate = :: subxt :: ext :: codec)]
#[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
pub struct SudoUncheckedWeight {
pub call: ::std::boxed::Box<runtime_types::madya_solo_runtime::RuntimeCall>,
pub weight: runtime_types::sp_weights::weight_v2::Weight,
}
impl ::subxt::blocks::StaticExtrinsic for SudoUncheckedWeight {
const PALLET: &'static str = "Sudo";
const CALL: &'static str = "sudo_unchecked_weight";
}
#[derive(
:: subxt :: ext :: codec :: Decode,
:: subxt :: ext :: codec :: Encode,
:: subxt :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
# [codec (crate = :: subxt :: ext :: codec)]
#[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
pub struct SetKey {
pub new: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>,
}
impl ::subxt::blocks::StaticExtrinsic for SetKey {
const PALLET: &'static str = "Sudo";
const CALL: &'static str = "set_key";
}
#[derive(
:: subxt :: ext :: codec :: Decode,
:: subxt :: ext :: codec :: Encode,
:: subxt :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
# [codec (crate = :: subxt :: ext :: codec)]
#[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
pub struct SudoAs {
pub who: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>,
pub call: ::std::boxed::Box<runtime_types::madya_solo_runtime::RuntimeCall>,
}
impl ::subxt::blocks::StaticExtrinsic for SudoAs {
const PALLET: &'static str = "Sudo";
const CALL: &'static str = "sudo_as";
}
}
pub struct TransactionApi;
impl TransactionApi {
#[doc = "See [`Pallet::sudo`]."]
pub fn sudo(
&self,
call: runtime_types::madya_solo_runtime::RuntimeCall,
) -> ::subxt::tx::Payload<types::Sudo> {
::subxt::tx::Payload::new_static(
"Sudo",
"sudo",
types::Sudo {
call: ::std::boxed::Box::new(call),
},
[
37u8, 216u8, 86u8, 137u8, 82u8, 124u8, 191u8, 54u8, 244u8, 39u8, 136u8,
248u8, 88u8, 229u8, 240u8, 174u8, 133u8, 22u8, 117u8, 255u8, 128u8,
106u8, 94u8, 98u8, 61u8, 37u8, 81u8, 60u8, 203u8, 67u8, 215u8, 225u8,
],
)
}
#[doc = "See [`Pallet::sudo_unchecked_weight`]."]
pub fn sudo_unchecked_weight(
&self,
call: runtime_types::madya_solo_runtime::RuntimeCall,
weight: runtime_types::sp_weights::weight_v2::Weight,
) -> ::subxt::tx::Payload<types::SudoUncheckedWeight> {
::subxt::tx::Payload::new_static(
"Sudo",
"sudo_unchecked_weight",
types::SudoUncheckedWeight {
call: ::std::boxed::Box::new(call),
weight,
},
[
49u8, 120u8, 203u8, 150u8, 11u8, 221u8, 206u8, 49u8, 104u8, 152u8,
211u8, 107u8, 244u8, 180u8, 173u8, 215u8, 138u8, 190u8, 75u8, 164u8,
240u8, 126u8, 144u8, 194u8, 240u8, 102u8, 177u8, 155u8, 217u8, 219u8,
55u8, 161u8,
],
)
}
#[doc = "See [`Pallet::set_key`]."]
pub fn set_key(
&self,
new: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>,
) -> ::subxt::tx::Payload<types::SetKey> {
::subxt::tx::Payload::new_static(
"Sudo",
"set_key",
types::SetKey { new },
[
9u8, 73u8, 39u8, 205u8, 188u8, 127u8, 143u8, 54u8, 128u8, 94u8, 8u8,
227u8, 197u8, 44u8, 70u8, 93u8, 228u8, 196u8, 64u8, 165u8, 226u8,
158u8, 101u8, 192u8, 22u8, 193u8, 102u8, 84u8, 21u8, 35u8, 92u8, 198u8,
],
)
}
#[doc = "See [`Pallet::sudo_as`]."]
pub fn sudo_as(
&self,
who: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>,
call: runtime_types::madya_solo_runtime::RuntimeCall,
) -> ::subxt::tx::Payload<types::SudoAs> {
::subxt::tx::Payload::new_static(
"Sudo",
"sudo_as",
types::SudoAs {
who,
call: ::std::boxed::Box::new(call),
},
[
45u8, 98u8, 195u8, 224u8, 73u8, 160u8, 113u8, 143u8, 99u8, 7u8, 60u8,
92u8, 183u8, 25u8, 113u8, 59u8, 142u8, 124u8, 83u8, 128u8, 102u8,
210u8, 133u8, 101u8, 217u8, 182u8, 253u8, 38u8, 138u8, 245u8, 40u8,
254u8,
],
)
}
}
}
#[doc = "The `Event` enum of this pallet"]
pub type Event = runtime_types::pallet_sudo::pallet::Event;
pub mod events {
use super::runtime_types;
#[derive(
:: subxt :: ext :: codec :: Decode,
:: subxt :: ext :: codec :: Encode,
:: subxt :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
# [codec (crate = :: subxt :: ext :: codec)]
#[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
#[doc = "A sudo just took place. \\[result\\]"]
pub struct Sudid {
pub sudo_result:
::core::result::Result<(), runtime_types::sp_runtime::DispatchError>,
}
impl ::subxt::events::StaticEvent for Sudid {
const PALLET: &'static str = "Sudo";
const EVENT: &'static str = "Sudid";
}
#[derive(
:: subxt :: ext :: codec :: Decode,
:: subxt :: ext :: codec :: Encode,
:: subxt :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
# [codec (crate = :: subxt :: ext :: codec)]
#[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
#[doc = "The \\[sudoer\\] just switched identity; the old key is supplied if one existed."]
pub struct KeyChanged {
pub old_sudoer: ::core::option::Option<::subxt::utils::AccountId32>,
}
impl ::subxt::events::StaticEvent for KeyChanged {
const PALLET: &'static str = "Sudo";
const EVENT: &'static str = "KeyChanged";
}
#[derive(
:: subxt :: ext :: codec :: Decode,
:: subxt :: ext :: codec :: Encode,
:: subxt :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
# [codec (crate = :: subxt :: ext :: codec)]
#[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
#[doc = "A sudo just took place. \\[result\\]"]
pub struct SudoAsDone {
pub sudo_result:
::core::result::Result<(), runtime_types::sp_runtime::DispatchError>,
}
impl ::subxt::events::StaticEvent for SudoAsDone {
const PALLET: &'static str = "Sudo";
const EVENT: &'static str = "SudoAsDone";
}
}
pub mod storage {
use super::runtime_types;
pub struct StorageApi;
impl StorageApi {
#[doc = " The `AccountId` of the sudo key."]
pub fn key(
&self,
) -> ::subxt::storage::address::Address<
::subxt::storage::address::StaticStorageMapKey,
::subxt::utils::AccountId32,
::subxt::storage::address::Yes,
(),
(),
> {
::subxt::storage::address::Address::new_static(
"Sudo",
"Key",
vec![],
[
72u8, 14u8, 225u8, 162u8, 205u8, 247u8, 227u8, 105u8, 116u8, 57u8, 4u8,
31u8, 84u8, 137u8, 227u8, 228u8, 133u8, 245u8, 206u8, 227u8, 117u8,
36u8, 252u8, 151u8, 107u8, 15u8, 180u8, 4u8, 4u8, 152u8, 195u8, 144u8,
],
)
}
}
}
}
pub mod randomness_collective_flip {
use super::root_mod;
use super::runtime_types;
pub mod storage {
use super::runtime_types;
pub struct StorageApi;
impl StorageApi {
#[doc = " Series of block headers from the last 81 blocks that acts as random seed material. This"]
#[doc = " is arranged as a ring buffer with `block_number % 81` being the index into the `Vec` of"]
#[doc = " the oldest hash."]
pub fn random_material(
&self,
) -> ::subxt::storage::address::Address<
::subxt::storage::address::StaticStorageMapKey,
runtime_types::bounded_collections::bounded_vec::BoundedVec<
::subxt::utils::H256,
>,
::subxt::storage::address::Yes,
::subxt::storage::address::Yes,
(),
> {
::subxt::storage::address::Address::new_static(
"RandomnessCollectiveFlip",
"RandomMaterial",
vec![],
[
195u8, 232u8, 244u8, 162u8, 110u8, 137u8, 66u8, 57u8, 51u8, 221u8,
143u8, 38u8, 51u8, 183u8, 105u8, 245u8, 175u8, 13u8, 33u8, 192u8, 53u8,
16u8, 161u8, 76u8, 219u8, 177u8, 144u8, 192u8, 96u8, 166u8, 117u8,
247u8,
],
)
}
}
}
}
pub mod contracts {
use super::root_mod;
use super::runtime_types;
#[doc = "The `Error` enum of this pallet."]
pub type Error = runtime_types::pallet_contracts::pallet::Error;
#[doc = "Contains a variant per dispatchable extrinsic that this pallet has."]
pub type Call = runtime_types::pallet_contracts::pallet::Call;
pub mod calls {
use super::root_mod;
use super::runtime_types;
type DispatchError = runtime_types::sp_runtime::DispatchError;
pub mod types {
use super::runtime_types;
#[derive(
:: subxt :: ext :: codec :: Decode,
:: subxt :: ext :: codec :: Encode,
:: subxt :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
# [codec (crate = :: subxt :: ext :: codec)]
#[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
pub struct CallOldWeight {
pub dest: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>,
#[codec(compact)]
pub value: ::core::primitive::u128,
#[codec(compact)]
pub gas_limit: ::core::primitive::u64,
pub storage_deposit_limit: ::core::option::Option<
::subxt::ext::codec::Compact<::core::primitive::u128>,
>,
pub data: ::std::vec::Vec<::core::primitive::u8>,
}
impl ::subxt::blocks::StaticExtrinsic for CallOldWeight {
const PALLET: &'static str = "Contracts";
const CALL: &'static str = "call_old_weight";
}
#[derive(
:: subxt :: ext :: codec :: Decode,
:: subxt :: ext :: codec :: Encode,
:: subxt :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
# [codec (crate = :: subxt :: ext :: codec)]
#[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
pub struct InstantiateWithCodeOldWeight {
#[codec(compact)]
pub value: ::core::primitive::u128,
#[codec(compact)]
pub gas_limit: ::core::primitive::u64,
pub storage_deposit_limit: ::core::option::Option<
::subxt::ext::codec::Compact<::core::primitive::u128>,
>,
pub code: ::std::vec::Vec<::core::primitive::u8>,
pub data: ::std::vec::Vec<::core::primitive::u8>,
pub salt: ::std::vec::Vec<::core::primitive::u8>,
}
impl ::subxt::blocks::StaticExtrinsic for InstantiateWithCodeOldWeight {
const PALLET: &'static str = "Contracts";
const CALL: &'static str = "instantiate_with_code_old_weight";
}
#[derive(
:: subxt :: ext :: codec :: Decode,
:: subxt :: ext :: codec :: Encode,
:: subxt :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
# [codec (crate = :: subxt :: ext :: codec)]
#[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
pub struct InstantiateOldWeight {
#[codec(compact)]
pub value: ::core::primitive::u128,
#[codec(compact)]
pub gas_limit: ::core::primitive::u64,
pub storage_deposit_limit: ::core::option::Option<
::subxt::ext::codec::Compact<::core::primitive::u128>,
>,
pub code_hash: ::subxt::utils::H256,
pub data: ::std::vec::Vec<::core::primitive::u8>,
pub salt: ::std::vec::Vec<::core::primitive::u8>,
}
impl ::subxt::blocks::StaticExtrinsic for InstantiateOldWeight {
const PALLET: &'static str = "Contracts";
const CALL: &'static str = "instantiate_old_weight";
}
#[derive(
:: subxt :: ext :: codec :: Decode,
:: subxt :: ext :: codec :: Encode,
:: subxt :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
# [codec (crate = :: subxt :: ext :: codec)]
#[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
pub struct UploadCode {
pub code: ::std::vec::Vec<::core::primitive::u8>,
pub storage_deposit_limit: ::core::option::Option<
::subxt::ext::codec::Compact<::core::primitive::u128>,
>,
pub determinism: runtime_types::pallet_contracts::wasm::Determinism,
}
impl ::subxt::blocks::StaticExtrinsic for UploadCode {
const PALLET: &'static str = "Contracts";
const CALL: &'static str = "upload_code";
}
#[derive(
:: subxt :: ext :: codec :: Decode,
:: subxt :: ext :: codec :: Encode,
:: subxt :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
# [codec (crate = :: subxt :: ext :: codec)]
#[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
pub struct RemoveCode {
pub code_hash: ::subxt::utils::H256,
}
impl ::subxt::blocks::StaticExtrinsic for RemoveCode {
const PALLET: &'static str = "Contracts";
const CALL: &'static str = "remove_code";
}
#[derive(
:: subxt :: ext :: codec :: Decode,
:: subxt :: ext :: codec :: Encode,
:: subxt :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
# [codec (crate = :: subxt :: ext :: codec)]
#[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
pub struct SetCode {
pub dest: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>,
pub code_hash: ::subxt::utils::H256,
}
impl ::subxt::blocks::StaticExtrinsic for SetCode {
const PALLET: &'static str = "Contracts";
const CALL: &'static str = "set_code";
}
#[derive(
:: subxt :: ext :: codec :: Decode,
:: subxt :: ext :: codec :: Encode,
:: subxt :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
# [codec (crate = :: subxt :: ext :: codec)]
#[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
pub struct Call {
pub dest: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>,
#[codec(compact)]
pub value: ::core::primitive::u128,
pub gas_limit: runtime_types::sp_weights::weight_v2::Weight,
pub storage_deposit_limit: ::core::option::Option<
::subxt::ext::codec::Compact<::core::primitive::u128>,
>,
pub data: ::std::vec::Vec<::core::primitive::u8>,
}
impl ::subxt::blocks::StaticExtrinsic for Call {
const PALLET: &'static str = "Contracts";
const CALL: &'static str = "call";
}
#[derive(
:: subxt :: ext :: codec :: Decode,
:: subxt :: ext :: codec :: Encode,
:: subxt :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
# [codec (crate = :: subxt :: ext :: codec)]
#[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
pub struct InstantiateWithCode {
#[codec(compact)]
pub value: ::core::primitive::u128,
pub gas_limit: runtime_types::sp_weights::weight_v2::Weight,
pub storage_deposit_limit: ::core::option::Option<
::subxt::ext::codec::Compact<::core::primitive::u128>,
>,
pub code: ::std::vec::Vec<::core::primitive::u8>,
pub data: ::std::vec::Vec<::core::primitive::u8>,
pub salt: ::std::vec::Vec<::core::primitive::u8>,
}
impl ::subxt::blocks::StaticExtrinsic for InstantiateWithCode {
const PALLET: &'static str = "Contracts";
const CALL: &'static str = "instantiate_with_code";
}
#[derive(
:: subxt :: ext :: codec :: Decode,
:: subxt :: ext :: codec :: Encode,
:: subxt :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
# [codec (crate = :: subxt :: ext :: codec)]
#[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
pub struct Instantiate {
#[codec(compact)]
pub value: ::core::primitive::u128,
pub gas_limit: runtime_types::sp_weights::weight_v2::Weight,
pub storage_deposit_limit: ::core::option::Option<
::subxt::ext::codec::Compact<::core::primitive::u128>,
>,
pub code_hash: ::subxt::utils::H256,
pub data: ::std::vec::Vec<::core::primitive::u8>,
pub salt: ::std::vec::Vec<::core::primitive::u8>,
}
impl ::subxt::blocks::StaticExtrinsic for Instantiate {
const PALLET: &'static str = "Contracts";
const CALL: &'static str = "instantiate";
}
#[derive(
:: subxt :: ext :: codec :: Decode,
:: subxt :: ext :: codec :: Encode,
:: subxt :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
# [codec (crate = :: subxt :: ext :: codec)]
#[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
pub struct Migrate {
pub weight_limit: runtime_types::sp_weights::weight_v2::Weight,
}
impl ::subxt::blocks::StaticExtrinsic for Migrate {
const PALLET: &'static str = "Contracts";
const CALL: &'static str = "migrate";
}
}
pub struct TransactionApi;
impl TransactionApi {
#[doc = "See [`Pallet::call_old_weight`]."]
pub fn call_old_weight(
&self,
dest: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>,
value: ::core::primitive::u128,
gas_limit: ::core::primitive::u64,
storage_deposit_limit: ::core::option::Option<
::subxt::ext::codec::Compact<::core::primitive::u128>,
>,
data: ::std::vec::Vec<::core::primitive::u8>,
) -> ::subxt::tx::Payload<types::CallOldWeight> {
::subxt::tx::Payload::new_static(
"Contracts",
"call_old_weight",
types::CallOldWeight {
dest,
value,
gas_limit,
storage_deposit_limit,
data,
},
[
159u8, 201u8, 54u8, 189u8, 207u8, 238u8, 0u8, 63u8, 0u8, 188u8, 150u8,
113u8, 13u8, 9u8, 199u8, 250u8, 77u8, 35u8, 174u8, 97u8, 13u8, 249u8,
21u8, 172u8, 49u8, 32u8, 228u8, 13u8, 229u8, 107u8, 135u8, 182u8,
],
)
}
#[doc = "See [`Pallet::instantiate_with_code_old_weight`]."]
pub fn instantiate_with_code_old_weight(
&self,
value: ::core::primitive::u128,
gas_limit: ::core::primitive::u64,
storage_deposit_limit: ::core::option::Option<
::subxt::ext::codec::Compact<::core::primitive::u128>,
>,
code: ::std::vec::Vec<::core::primitive::u8>,
data: ::std::vec::Vec<::core::primitive::u8>,
salt: ::std::vec::Vec<::core::primitive::u8>,
) -> ::subxt::tx::Payload<types::InstantiateWithCodeOldWeight> {
::subxt::tx::Payload::new_static(
"Contracts",
"instantiate_with_code_old_weight",
types::InstantiateWithCodeOldWeight {
value,
gas_limit,
storage_deposit_limit,
code,
data,
salt,
},
[
48u8, 125u8, 188u8, 220u8, 158u8, 122u8, 158u8, 63u8, 0u8, 249u8,
164u8, 200u8, 199u8, 2u8, 21u8, 168u8, 84u8, 158u8, 120u8, 17u8, 82u8,
54u8, 115u8, 185u8, 69u8, 236u8, 64u8, 176u8, 187u8, 201u8, 230u8,
98u8,
],
)
}
#[doc = "See [`Pallet::instantiate_old_weight`]."]
pub fn instantiate_old_weight(
&self,
value: ::core::primitive::u128,
gas_limit: ::core::primitive::u64,
storage_deposit_limit: ::core::option::Option<
::subxt::ext::codec::Compact<::core::primitive::u128>,
>,
code_hash: ::subxt::utils::H256,
data: ::std::vec::Vec<::core::primitive::u8>,
salt: ::std::vec::Vec<::core::primitive::u8>,
) -> ::subxt::tx::Payload<types::InstantiateOldWeight> {
::subxt::tx::Payload::new_static(
"Contracts",
"instantiate_old_weight",
types::InstantiateOldWeight {
value,
gas_limit,
storage_deposit_limit,
code_hash,
data,
salt,
},
[
145u8, 119u8, 37u8, 211u8, 172u8, 215u8, 72u8, 110u8, 71u8, 230u8,
212u8, 56u8, 78u8, 221u8, 239u8, 159u8, 110u8, 219u8, 71u8, 10u8,
248u8, 112u8, 237u8, 188u8, 198u8, 0u8, 28u8, 255u8, 147u8, 152u8,
162u8, 83u8,
],
)
}
#[doc = "See [`Pallet::upload_code`]."]
pub fn upload_code(
&self,
code: ::std::vec::Vec<::core::primitive::u8>,
storage_deposit_limit: ::core::option::Option<
::subxt::ext::codec::Compact<::core::primitive::u128>,
>,
determinism: runtime_types::pallet_contracts::wasm::Determinism,
) -> ::subxt::tx::Payload<types::UploadCode> {
::subxt::tx::Payload::new_static(
"Contracts",
"upload_code",
types::UploadCode {
code,
storage_deposit_limit,
determinism,
},
[
159u8, 17u8, 234u8, 83u8, 162u8, 68u8, 117u8, 80u8, 64u8, 251u8, 31u8,
38u8, 214u8, 227u8, 235u8, 74u8, 97u8, 72u8, 83u8, 197u8, 7u8, 57u8,
212u8, 217u8, 219u8, 139u8, 182u8, 248u8, 92u8, 91u8, 56u8, 2u8,
],
)
}
#[doc = "See [`Pallet::remove_code`]."]
pub fn remove_code(
&self,
code_hash: ::subxt::utils::H256,
) -> ::subxt::tx::Payload<types::RemoveCode> {
::subxt::tx::Payload::new_static(
"Contracts",
"remove_code",
types::RemoveCode { code_hash },
[
99u8, 184u8, 12u8, 208u8, 123u8, 158u8, 140u8, 21u8, 190u8, 152u8,
95u8, 79u8, 217u8, 131u8, 161u8, 160u8, 21u8, 56u8, 167u8, 27u8, 90u8,
255u8, 75u8, 0u8, 133u8, 111u8, 119u8, 217u8, 157u8, 67u8, 238u8, 69u8,
],
)
}
#[doc = "See [`Pallet::set_code`]."]
pub fn set_code(
&self,
dest: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>,
code_hash: ::subxt::utils::H256,
) -> ::subxt::tx::Payload<types::SetCode> {
::subxt::tx::Payload::new_static(
"Contracts",
"set_code",
types::SetCode { dest, code_hash },
[
66u8, 53u8, 180u8, 182u8, 167u8, 134u8, 212u8, 45u8, 162u8, 121u8,
89u8, 105u8, 7u8, 166u8, 112u8, 13u8, 250u8, 115u8, 128u8, 235u8,
124u8, 55u8, 166u8, 5u8, 158u8, 163u8, 159u8, 113u8, 243u8, 103u8,
214u8, 108u8,
],
)
}
#[doc = "See [`Pallet::call`]."]
pub fn call(
&self,
dest: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>,
value: ::core::primitive::u128,
gas_limit: runtime_types::sp_weights::weight_v2::Weight,
storage_deposit_limit: ::core::option::Option<
::subxt::ext::codec::Compact<::core::primitive::u128>,
>,
data: ::std::vec::Vec<::core::primitive::u8>,
) -> ::subxt::tx::Payload<types::Call> {
::subxt::tx::Payload::new_static(
"Contracts",
"call",
types::Call {
dest,
value,
gas_limit,
storage_deposit_limit,
data,
},
[
38u8, 98u8, 23u8, 7u8, 215u8, 169u8, 8u8, 156u8, 72u8, 172u8, 166u8,
189u8, 34u8, 9u8, 193u8, 204u8, 20u8, 152u8, 48u8, 40u8, 106u8, 109u8,
23u8, 64u8, 48u8, 131u8, 99u8, 37u8, 49u8, 26u8, 210u8, 196u8,
],
)
}
#[doc = "See [`Pallet::instantiate_with_code`]."]
pub fn instantiate_with_code(
&self,
value: ::core::primitive::u128,
gas_limit: runtime_types::sp_weights::weight_v2::Weight,
storage_deposit_limit: ::core::option::Option<
::subxt::ext::codec::Compact<::core::primitive::u128>,
>,
code: ::std::vec::Vec<::core::primitive::u8>,
data: ::std::vec::Vec<::core::primitive::u8>,
salt: ::std::vec::Vec<::core::primitive::u8>,
) -> ::subxt::tx::Payload<types::InstantiateWithCode> {
::subxt::tx::Payload::new_static(
"Contracts",
"instantiate_with_code",
types::InstantiateWithCode {
value,
gas_limit,
storage_deposit_limit,
code,
data,
salt,
},
[
34u8, 182u8, 171u8, 163u8, 86u8, 205u8, 184u8, 72u8, 117u8, 214u8,
11u8, 24u8, 73u8, 6u8, 158u8, 16u8, 5u8, 212u8, 209u8, 64u8, 66u8,
98u8, 47u8, 14u8, 96u8, 132u8, 22u8, 37u8, 202u8, 148u8, 83u8, 125u8,
],
)
}
#[doc = "See [`Pallet::instantiate`]."]
pub fn instantiate(
&self,
value: ::core::primitive::u128,
gas_limit: runtime_types::sp_weights::weight_v2::Weight,
storage_deposit_limit: ::core::option::Option<
::subxt::ext::codec::Compact<::core::primitive::u128>,
>,
code_hash: ::subxt::utils::H256,
data: ::std::vec::Vec<::core::primitive::u8>,
salt: ::std::vec::Vec<::core::primitive::u8>,
) -> ::subxt::tx::Payload<types::Instantiate> {
::subxt::tx::Payload::new_static(
"Contracts",
"instantiate",
types::Instantiate {
value,
gas_limit,
storage_deposit_limit,
code_hash,
data,
salt,
},
[
221u8, 142u8, 55u8, 187u8, 6u8, 98u8, 228u8, 231u8, 38u8, 81u8, 222u8,
86u8, 205u8, 122u8, 32u8, 236u8, 237u8, 50u8, 201u8, 140u8, 111u8,
23u8, 242u8, 212u8, 118u8, 212u8, 98u8, 247u8, 166u8, 196u8, 206u8,
232u8,
],
)
}
#[doc = "See [`Pallet::migrate`]."]
pub fn migrate(
&self,
weight_limit: runtime_types::sp_weights::weight_v2::Weight,
) -> ::subxt::tx::Payload<types::Migrate> {
::subxt::tx::Payload::new_static(
"Contracts",
"migrate",
types::Migrate { weight_limit },
[
11u8, 183u8, 183u8, 30u8, 18u8, 17u8, 58u8, 145u8, 254u8, 126u8, 21u8,
155u8, 27u8, 218u8, 95u8, 35u8, 38u8, 102u8, 234u8, 241u8, 67u8, 99u8,
183u8, 164u8, 5u8, 66u8, 186u8, 77u8, 234u8, 76u8, 206u8, 248u8,
],
)
}
}
}
#[doc = "The `Event` enum of this pallet"]
pub type Event = runtime_types::pallet_contracts::pallet::Event;
pub mod events {
use super::runtime_types;
#[derive(
:: subxt :: ext :: codec :: Decode,
:: subxt :: ext :: codec :: Encode,
:: subxt :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
# [codec (crate = :: subxt :: ext :: codec)]
#[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
#[doc = "Contract deployed by address at the specified address."]
pub struct Instantiated {
pub deployer: ::subxt::utils::AccountId32,
pub contract: ::subxt::utils::AccountId32,
}
impl ::subxt::events::StaticEvent for Instantiated {
const PALLET: &'static str = "Contracts";
const EVENT: &'static str = "Instantiated";
}
#[derive(
:: subxt :: ext :: codec :: Decode,
:: subxt :: ext :: codec :: Encode,
:: subxt :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
# [codec (crate = :: subxt :: ext :: codec)]
#[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
#[doc = "Contract has been removed."]
#[doc = ""]
#[doc = "# Note"]
#[doc = ""]
#[doc = "The only way for a contract to be removed and emitting this event is by calling"]
#[doc = "`seal_terminate`."]
pub struct Terminated {
pub contract: ::subxt::utils::AccountId32,
pub beneficiary: ::subxt::utils::AccountId32,
}
impl ::subxt::events::StaticEvent for Terminated {
const PALLET: &'static str = "Contracts";
const EVENT: &'static str = "Terminated";
}
#[derive(
:: subxt :: ext :: codec :: Decode,
:: subxt :: ext :: codec :: Encode,
:: subxt :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
# [codec (crate = :: subxt :: ext :: codec)]
#[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
#[doc = "Code with the specified hash has been stored."]
pub struct CodeStored {
pub code_hash: ::subxt::utils::H256,
}
impl ::subxt::events::StaticEvent for CodeStored {
const PALLET: &'static str = "Contracts";
const EVENT: &'static str = "CodeStored";
}
#[derive(
:: subxt :: ext :: codec :: Decode,
:: subxt :: ext :: codec :: Encode,
:: subxt :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
# [codec (crate = :: subxt :: ext :: codec)]
#[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
#[doc = "A custom event emitted by the contract."]
pub struct ContractEmitted {
pub contract: ::subxt::utils::AccountId32,
pub data: ::std::vec::Vec<::core::primitive::u8>,
}
impl ::subxt::events::StaticEvent for ContractEmitted {
const PALLET: &'static str = "Contracts";
const EVENT: &'static str = "ContractEmitted";
}
#[derive(
:: subxt :: ext :: codec :: Decode,
:: subxt :: ext :: codec :: Encode,
:: subxt :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
# [codec (crate = :: subxt :: ext :: codec)]
#[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
#[doc = "A code with the specified hash was removed."]
pub struct CodeRemoved {
pub code_hash: ::subxt::utils::H256,
}
impl ::subxt::events::StaticEvent for CodeRemoved {
const PALLET: &'static str = "Contracts";
const EVENT: &'static str = "CodeRemoved";
}
#[derive(
:: subxt :: ext :: codec :: Decode,
:: subxt :: ext :: codec :: Encode,
:: subxt :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
# [codec (crate = :: subxt :: ext :: codec)]
#[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
#[doc = "A contract's code was updated."]
pub struct ContractCodeUpdated {
pub contract: ::subxt::utils::AccountId32,
pub new_code_hash: ::subxt::utils::H256,
pub old_code_hash: ::subxt::utils::H256,
}
impl ::subxt::events::StaticEvent for ContractCodeUpdated {
const PALLET: &'static str = "Contracts";
const EVENT: &'static str = "ContractCodeUpdated";
}
#[derive(
:: subxt :: ext :: codec :: Decode,
:: subxt :: ext :: codec :: Encode,
:: subxt :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
# [codec (crate = :: subxt :: ext :: codec)]
#[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
#[doc = "A contract was called either by a plain account or another contract."]
#[doc = ""]
#[doc = "# Note"]
#[doc = ""]
#[doc = "Please keep in mind that like all events this is only emitted for successful"]
#[doc = "calls. This is because on failure all storage changes including events are"]
#[doc = "rolled back."]
pub struct Called {
pub caller: runtime_types::pallet_contracts::Origin<
runtime_types::madya_solo_runtime::Runtime,
>,
pub contract: ::subxt::utils::AccountId32,
}
impl ::subxt::events::StaticEvent for Called {
const PALLET: &'static str = "Contracts";
const EVENT: &'static str = "Called";
}
#[derive(
:: subxt :: ext :: codec :: Decode,
:: subxt :: ext :: codec :: Encode,
:: subxt :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
# [codec (crate = :: subxt :: ext :: codec)]
#[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
#[doc = "A contract delegate called a code hash."]
#[doc = ""]
#[doc = "# Note"]
#[doc = ""]
#[doc = "Please keep in mind that like all events this is only emitted for successful"]
#[doc = "calls. This is because on failure all storage changes including events are"]
#[doc = "rolled back."]
pub struct DelegateCalled {
pub contract: ::subxt::utils::AccountId32,
pub code_hash: ::subxt::utils::H256,
}
impl ::subxt::events::StaticEvent for DelegateCalled {
const PALLET: &'static str = "Contracts";
const EVENT: &'static str = "DelegateCalled";
}
}
pub mod storage {
use super::runtime_types;
pub struct StorageApi;
impl StorageApi {
#[doc = " A mapping from a contract's code hash to its code."]
pub fn pristine_code_iter(
&self,
) -> ::subxt::storage::address::Address<
::subxt::storage::address::StaticStorageMapKey,
runtime_types::bounded_collections::bounded_vec::BoundedVec<
::core::primitive::u8,
>,
(),
(),
::subxt::storage::address::Yes,
> {
::subxt::storage::address::Address::new_static(
"Contracts",
"PristineCode",
vec![],
[
6u8, 31u8, 218u8, 40u8, 203u8, 188u8, 155u8, 242u8, 11u8, 64u8, 196u8,
23u8, 70u8, 117u8, 21u8, 42u8, 68u8, 254u8, 90u8, 190u8, 155u8, 117u8,
153u8, 198u8, 119u8, 35u8, 52u8, 217u8, 209u8, 144u8, 1u8, 66u8,
],
)
}
#[doc = " A mapping from a contract's code hash to its code."]
pub fn pristine_code(
&self,
_0: impl ::std::borrow::Borrow<::subxt::utils::H256>,
) -> ::subxt::storage::address::Address<
::subxt::storage::address::StaticStorageMapKey,
runtime_types::bounded_collections::bounded_vec::BoundedVec<
::core::primitive::u8,
>,
::subxt::storage::address::Yes,
(),
(),
> {
::subxt::storage::address::Address::new_static(
"Contracts",
"PristineCode",
vec![::subxt::storage::address::make_static_storage_map_key(
_0.borrow(),
)],
[
6u8, 31u8, 218u8, 40u8, 203u8, 188u8, 155u8, 242u8, 11u8, 64u8, 196u8,
23u8, 70u8, 117u8, 21u8, 42u8, 68u8, 254u8, 90u8, 190u8, 155u8, 117u8,
153u8, 198u8, 119u8, 35u8, 52u8, 217u8, 209u8, 144u8, 1u8, 66u8,
],
)
}
#[doc = " A mapping from a contract's code hash to its code info."]
pub fn code_info_of_iter(
&self,
) -> ::subxt::storage::address::Address<
::subxt::storage::address::StaticStorageMapKey,
runtime_types::pallet_contracts::wasm::CodeInfo,
(),
(),
::subxt::storage::address::Yes,
> {
::subxt::storage::address::Address::new_static(
"Contracts",
"CodeInfoOf",
vec![],
[
16u8, 119u8, 167u8, 116u8, 213u8, 33u8, 175u8, 218u8, 170u8, 250u8,
110u8, 248u8, 215u8, 25u8, 10u8, 143u8, 21u8, 37u8, 88u8, 239u8, 35u8,
53u8, 133u8, 126u8, 97u8, 32u8, 60u8, 8u8, 180u8, 123u8, 229u8, 163u8,
],
)
}
#[doc = " A mapping from a contract's code hash to its code info."]
pub fn code_info_of(
&self,
_0: impl ::std::borrow::Borrow<::subxt::utils::H256>,
) -> ::subxt::storage::address::Address<
::subxt::storage::address::StaticStorageMapKey,
runtime_types::pallet_contracts::wasm::CodeInfo,
::subxt::storage::address::Yes,
(),
(),
> {
::subxt::storage::address::Address::new_static(
"Contracts",
"CodeInfoOf",
vec![::subxt::storage::address::make_static_storage_map_key(
_0.borrow(),
)],
[
16u8, 119u8, 167u8, 116u8, 213u8, 33u8, 175u8, 218u8, 170u8, 250u8,
110u8, 248u8, 215u8, 25u8, 10u8, 143u8, 21u8, 37u8, 88u8, 239u8, 35u8,
53u8, 133u8, 126u8, 97u8, 32u8, 60u8, 8u8, 180u8, 123u8, 229u8, 163u8,
],
)
}
#[doc = " This is a **monotonic** counter incremented on contract instantiation."]
#[doc = ""]
#[doc = " This is used in order to generate unique trie ids for contracts."]
#[doc = " The trie id of a new contract is calculated from hash(account_id, nonce)."]
#[doc = " The nonce is required because otherwise the following sequence would lead to"]
#[doc = " a possible collision of storage:"]
#[doc = ""]
#[doc = " 1. Create a new contract."]
#[doc = " 2. Terminate the contract."]
#[doc = " 3. Immediately recreate the contract with the same account_id."]
#[doc = ""]
#[doc = " This is bad because the contents of a trie are deleted lazily and there might be"]
#[doc = " storage of the old instantiation still in it when the new contract is created. Please"]
#[doc = " note that we can't replace the counter by the block number because the sequence above"]
#[doc = " can happen in the same block. We also can't keep the account counter in memory only"]
#[doc = " because storage is the only way to communicate across different extrinsics in the"]
#[doc = " same block."]
#[doc = ""]
#[doc = " # Note"]
#[doc = ""]
#[doc = " Do not use it to determine the number of contracts. It won't be decremented if"]
#[doc = " a contract is destroyed."]
pub fn nonce(
&self,
) -> ::subxt::storage::address::Address<
::subxt::storage::address::StaticStorageMapKey,
::core::primitive::u64,
::subxt::storage::address::Yes,
::subxt::storage::address::Yes,
(),
> {
::subxt::storage::address::Address::new_static(
"Contracts",
"Nonce",
vec![],
[
47u8, 101u8, 89u8, 252u8, 98u8, 25u8, 178u8, 154u8, 17u8, 57u8, 185u8,
10u8, 133u8, 94u8, 73u8, 160u8, 137u8, 150u8, 97u8, 119u8, 8u8, 146u8,
149u8, 146u8, 212u8, 60u8, 141u8, 24u8, 124u8, 28u8, 57u8, 19u8,
],
)
}
#[doc = " The code associated with a given account."]
#[doc = ""]
#[doc = " TWOX-NOTE: SAFE since `AccountId` is a secure hash."]
pub fn contract_info_of_iter(
&self,
) -> ::subxt::storage::address::Address<
::subxt::storage::address::StaticStorageMapKey,
runtime_types::pallet_contracts::storage::ContractInfo,
(),
(),
::subxt::storage::address::Yes,
> {
::subxt::storage::address::Address::new_static(
"Contracts",
"ContractInfoOf",
vec![],
[
248u8, 123u8, 214u8, 11u8, 141u8, 157u8, 174u8, 206u8, 251u8, 239u8,
184u8, 167u8, 218u8, 140u8, 245u8, 159u8, 190u8, 198u8, 167u8, 196u8,
205u8, 229u8, 6u8, 194u8, 88u8, 26u8, 57u8, 94u8, 140u8, 76u8, 8u8,
144u8,
],
)
}
#[doc = " The code associated with a given account."]
#[doc = ""]
#[doc = " TWOX-NOTE: SAFE since `AccountId` is a secure hash."]
pub fn contract_info_of(
&self,
_0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>,
) -> ::subxt::storage::address::Address<
::subxt::storage::address::StaticStorageMapKey,
runtime_types::pallet_contracts::storage::ContractInfo,
::subxt::storage::address::Yes,
(),
(),
> {
::subxt::storage::address::Address::new_static(
"Contracts",
"ContractInfoOf",
vec![::subxt::storage::address::make_static_storage_map_key(
_0.borrow(),
)],
[
248u8, 123u8, 214u8, 11u8, 141u8, 157u8, 174u8, 206u8, 251u8, 239u8,
184u8, 167u8, 218u8, 140u8, 245u8, 159u8, 190u8, 198u8, 167u8, 196u8,
205u8, 229u8, 6u8, 194u8, 88u8, 26u8, 57u8, 94u8, 140u8, 76u8, 8u8,
144u8,
],
)
}
#[doc = " Evicted contracts that await child trie deletion."]
#[doc = ""]
#[doc = " Child trie deletion is a heavy operation depending on the amount of storage items"]
#[doc = " stored in said trie. Therefore this operation is performed lazily in `on_idle`."]
pub fn deletion_queue_iter(
&self,
) -> ::subxt::storage::address::Address<
::subxt::storage::address::StaticStorageMapKey,
runtime_types::bounded_collections::bounded_vec::BoundedVec<
::core::primitive::u8,
>,
(),
(),
::subxt::storage::address::Yes,
> {
::subxt::storage::address::Address::new_static(
"Contracts",
"DeletionQueue",
vec![],
[
233u8, 193u8, 191u8, 44u8, 151u8, 46u8, 124u8, 188u8, 132u8, 227u8,
107u8, 210u8, 37u8, 110u8, 172u8, 95u8, 12u8, 114u8, 63u8, 83u8, 60u8,
163u8, 58u8, 174u8, 160u8, 47u8, 198u8, 156u8, 216u8, 182u8, 65u8,
229u8,
],
)
}
#[doc = " Evicted contracts that await child trie deletion."]
#[doc = ""]
#[doc = " Child trie deletion is a heavy operation depending on the amount of storage items"]
#[doc = " stored in said trie. Therefore this operation is performed lazily in `on_idle`."]
pub fn deletion_queue(
&self,
_0: impl ::std::borrow::Borrow<::core::primitive::u32>,
) -> ::subxt::storage::address::Address<
::subxt::storage::address::StaticStorageMapKey,
runtime_types::bounded_collections::bounded_vec::BoundedVec<
::core::primitive::u8,
>,
::subxt::storage::address::Yes,
(),
(),
> {
::subxt::storage::address::Address::new_static(
"Contracts",
"DeletionQueue",
vec![::subxt::storage::address::make_static_storage_map_key(
_0.borrow(),
)],
[
233u8, 193u8, 191u8, 44u8, 151u8, 46u8, 124u8, 188u8, 132u8, 227u8,
107u8, 210u8, 37u8, 110u8, 172u8, 95u8, 12u8, 114u8, 63u8, 83u8, 60u8,
163u8, 58u8, 174u8, 160u8, 47u8, 198u8, 156u8, 216u8, 182u8, 65u8,
229u8,
],
)
}
#[doc = " A pair of monotonic counters used to track the latest contract marked for deletion"]
#[doc = " and the latest deleted contract in queue."]
pub fn deletion_queue_counter(
&self,
) -> ::subxt::storage::address::Address<
::subxt::storage::address::StaticStorageMapKey,
runtime_types::pallet_contracts::storage::DeletionQueueManager,
::subxt::storage::address::Yes,
::subxt::storage::address::Yes,
(),
> {
::subxt::storage::address::Address::new_static(
"Contracts",
"DeletionQueueCounter",
vec![],
[
124u8, 63u8, 32u8, 109u8, 8u8, 113u8, 105u8, 172u8, 87u8, 88u8, 244u8,
191u8, 252u8, 196u8, 10u8, 137u8, 101u8, 87u8, 124u8, 220u8, 178u8,
155u8, 163u8, 214u8, 116u8, 121u8, 129u8, 129u8, 173u8, 76u8, 188u8,
41u8,
],
)
}
#[doc = " A migration can span across multiple blocks. This storage defines a cursor to track the"]
#[doc = " progress of the migration, enabling us to resume from the last completed position."]
pub fn migration_in_progress(
&self,
) -> ::subxt::storage::address::Address<
::subxt::storage::address::StaticStorageMapKey,
runtime_types::bounded_collections::bounded_vec::BoundedVec<
::core::primitive::u8,
>,
::subxt::storage::address::Yes,
(),
(),
> {
::subxt::storage::address::Address::new_static(
"Contracts",
"MigrationInProgress",
vec![],
[
238u8, 96u8, 248u8, 141u8, 247u8, 233u8, 27u8, 21u8, 187u8, 56u8,
195u8, 67u8, 21u8, 215u8, 30u8, 236u8, 151u8, 163u8, 115u8, 117u8,
154u8, 54u8, 37u8, 240u8, 136u8, 240u8, 35u8, 192u8, 168u8, 250u8,
132u8, 63u8,
],
)
}
}
}
pub mod constants {
use super::runtime_types;
pub struct ConstantsApi;
impl ConstantsApi {
#[doc = " Cost schedule and limits."]
pub fn schedule(
&self,
) -> ::subxt::constants::Address<runtime_types::pallet_contracts::schedule::Schedule>
{
::subxt::constants::Address::new_static(
"Contracts",
"Schedule",
[
206u8, 138u8, 245u8, 112u8, 185u8, 93u8, 92u8, 41u8, 132u8, 217u8,
98u8, 105u8, 54u8, 227u8, 212u8, 56u8, 48u8, 0u8, 251u8, 95u8, 56u8,
140u8, 22u8, 211u8, 105u8, 238u8, 183u8, 142u8, 65u8, 20u8, 13u8, 80u8,
],
)
}
#[doc = " The amount of balance a caller has to pay for each byte of storage."]
#[doc = ""]
#[doc = " # Note"]
#[doc = ""]
#[doc = " Changing this value for an existing chain might need a storage migration."]
pub fn deposit_per_byte(
&self,
) -> ::subxt::constants::Address<::core::primitive::u128> {
::subxt::constants::Address::new_static(
"Contracts",
"DepositPerByte",
[
84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8,
27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8,
136u8, 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, 148u8, 156u8,
],
)
}
#[doc = " Fallback value to limit the storage deposit if it's not being set by the caller."]
pub fn default_deposit_limit(
&self,
) -> ::subxt::constants::Address<::core::primitive::u128> {
::subxt::constants::Address::new_static(
"Contracts",
"DefaultDepositLimit",
[
84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8,
27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8,
136u8, 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, 148u8, 156u8,
],
)
}
#[doc = " The amount of balance a caller has to pay for each storage item."]
#[doc = ""]
#[doc = " # Note"]
#[doc = ""]
#[doc = " Changing this value for an existing chain might need a storage migration."]
pub fn deposit_per_item(
&self,
) -> ::subxt::constants::Address<::core::primitive::u128> {
::subxt::constants::Address::new_static(
"Contracts",
"DepositPerItem",
[
84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8,
27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8,
136u8, 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, 148u8, 156u8,
],
)
}
#[doc = " The maximum length of a contract code in bytes."]
#[doc = ""]
#[doc = " The value should be chosen carefully taking into the account the overall memory limit"]
#[doc = " your runtime has, as well as the [maximum allowed callstack"]
#[doc = " depth](#associatedtype.CallStack). Look into the `integrity_test()` for some insights."]
pub fn max_code_len(&self) -> ::subxt::constants::Address<::core::primitive::u32> {
::subxt::constants::Address::new_static(
"Contracts",
"MaxCodeLen",
[
98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8,
125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8,
178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8,
145u8,
],
)
}
#[doc = " The maximum allowable length in bytes for storage keys."]
pub fn max_storage_key_len(
&self,
) -> ::subxt::constants::Address<::core::primitive::u32> {
::subxt::constants::Address::new_static(
"Contracts",
"MaxStorageKeyLen",
[
98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8,
125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8,
178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8,
145u8,
],
)
}
#[doc = " Make contract callable functions marked as `#[unstable]` available."]
#[doc = ""]
#[doc = " Contracts that use `#[unstable]` functions won't be able to be uploaded unless"]
#[doc = " this is set to `true`. This is only meant for testnets and dev nodes in order to"]
#[doc = " experiment with new features."]
#[doc = ""]
#[doc = " # Warning"]
#[doc = ""]
#[doc = " Do **not** set to `true` on productions chains."]
pub fn unsafe_unstable_interface(
&self,
) -> ::subxt::constants::Address<::core::primitive::bool> {
::subxt::constants::Address::new_static(
"Contracts",
"UnsafeUnstableInterface",
[
165u8, 28u8, 112u8, 190u8, 18u8, 129u8, 182u8, 206u8, 237u8, 1u8, 68u8,
252u8, 125u8, 234u8, 185u8, 50u8, 149u8, 164u8, 47u8, 126u8, 134u8,
100u8, 14u8, 86u8, 209u8, 39u8, 20u8, 4u8, 233u8, 115u8, 102u8, 131u8,
],
)
}
#[doc = " The maximum length of the debug buffer in bytes."]
pub fn max_debug_buffer_len(
&self,
) -> ::subxt::constants::Address<::core::primitive::u32> {
::subxt::constants::Address::new_static(
"Contracts",
"MaxDebugBufferLen",
[
98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8,
125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8,
178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8,
145u8,
],
)
}
}
}
}
pub mod runtime_types {
use super::runtime_types;
pub mod bounded_collections {
use super::runtime_types;
pub mod bounded_vec {
use super::runtime_types;
#[derive(
:: subxt :: ext :: codec :: Decode,
:: subxt :: ext :: codec :: Encode,
:: subxt :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
# [codec (crate = :: subxt :: ext :: codec)]
#[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
pub struct BoundedVec<_0>(pub ::std::vec::Vec<_0>);
}
pub mod weak_bounded_vec {
use super::runtime_types;
#[derive(
:: subxt :: ext :: codec :: Decode,
:: subxt :: ext :: codec :: Encode,
:: subxt :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
# [codec (crate = :: subxt :: ext :: codec)]
#[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
pub struct WeakBoundedVec<_0>(pub ::std::vec::Vec<_0>);
}
}
pub mod finality_grandpa {
use super::runtime_types;
#[derive(
:: subxt :: ext :: codec :: Decode,
:: subxt :: ext :: codec :: Encode,
:: subxt :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
# [codec (crate = :: subxt :: ext :: codec)]
#[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
pub struct Equivocation<_0, _1, _2> {
pub round_number: ::core::primitive::u64,
pub identity: _0,
pub first: (_1, _2),
pub second: (_1, _2),
}
#[derive(
:: subxt :: ext :: codec :: Decode,
:: subxt :: ext :: codec :: Encode,
:: subxt :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
# [codec (crate = :: subxt :: ext :: codec)]
#[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
pub struct Precommit<_0, _1> {
pub target_hash: _0,
pub target_number: _1,
}
#[derive(
:: subxt :: ext :: codec :: Decode,
:: subxt :: ext :: codec :: Encode,
:: subxt :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
# [codec (crate = :: subxt :: ext :: codec)]
#[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
pub struct Prevote<_0, _1> {
pub target_hash: _0,
pub target_number: _1,
}
}
pub mod frame_support {
use super::runtime_types;
pub mod dispatch {
use super::runtime_types;
#[derive(
:: subxt :: ext :: codec :: Decode,
:: subxt :: ext :: codec :: Encode,
:: subxt :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
# [codec (crate = :: subxt :: ext :: codec)]
#[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
pub enum DispatchClass {
#[codec(index = 0)]
Normal,
#[codec(index = 1)]
Operational,
#[codec(index = 2)]
Mandatory,
}
#[derive(
:: subxt :: ext :: codec :: Decode,
:: subxt :: ext :: codec :: Encode,
:: subxt :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
# [codec (crate = :: subxt :: ext :: codec)]
#[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
pub struct DispatchInfo {
pub weight: runtime_types::sp_weights::weight_v2::Weight,
pub class: runtime_types::frame_support::dispatch::DispatchClass,
pub pays_fee: runtime_types::frame_support::dispatch::Pays,
}
#[derive(
:: subxt :: ext :: codec :: Decode,
:: subxt :: ext :: codec :: Encode,
:: subxt :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
# [codec (crate = :: subxt :: ext :: codec)]
#[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
pub enum Pays {
#[codec(index = 0)]
Yes,
#[codec(index = 1)]
No,
}
#[derive(
:: subxt :: ext :: codec :: Decode,
:: subxt :: ext :: codec :: Encode,
:: subxt :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
# [codec (crate = :: subxt :: ext :: codec)]
#[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
pub struct PerDispatchClass<_0> {
pub normal: _0,
pub operational: _0,
pub mandatory: _0,
}
}
pub mod traits {
use super::runtime_types;
pub mod tokens {
use super::runtime_types;
pub mod misc {
use super::runtime_types;
#[derive(
:: subxt :: ext :: codec :: Decode,
:: subxt :: ext :: codec :: Encode,
:: subxt :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
# [codec (crate = :: subxt :: ext :: codec)]
#[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
pub enum BalanceStatus {
#[codec(index = 0)]
Free,
#[codec(index = 1)]
Reserved,
}
}
}
}
}
pub mod frame_system {
use super::runtime_types;
pub mod extensions {
use super::runtime_types;
pub mod check_genesis {
use super::runtime_types;
#[derive(
:: subxt :: ext :: codec :: Decode,
:: subxt :: ext :: codec :: Encode,
:: subxt :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
# [codec (crate = :: subxt :: ext :: codec)]
#[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
pub struct CheckGenesis;
}
pub mod check_mortality {
use super::runtime_types;
#[derive(
:: subxt :: ext :: codec :: Decode,
:: subxt :: ext :: codec :: Encode,
:: subxt :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
# [codec (crate = :: subxt :: ext :: codec)]
#[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
pub struct CheckMortality(pub runtime_types::sp_runtime::generic::era::Era);
}
pub mod check_non_zero_sender {
use super::runtime_types;
#[derive(
:: subxt :: ext :: codec :: Decode,
:: subxt :: ext :: codec :: Encode,
:: subxt :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
# [codec (crate = :: subxt :: ext :: codec)]
#[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
pub struct CheckNonZeroSender;
}
pub mod check_nonce {
use super::runtime_types;
#[derive(
:: subxt :: ext :: codec :: Decode,
:: subxt :: ext :: codec :: Encode,
:: subxt :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
# [codec (crate = :: subxt :: ext :: codec)]
#[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
pub struct CheckNonce(#[codec(compact)] pub ::core::primitive::u32);
}
pub mod check_spec_version {
use super::runtime_types;
#[derive(
:: subxt :: ext :: codec :: Decode,
:: subxt :: ext :: codec :: Encode,
:: subxt :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
# [codec (crate = :: subxt :: ext :: codec)]
#[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
pub struct CheckSpecVersion;
}
pub mod check_tx_version {
use super::runtime_types;
#[derive(
:: subxt :: ext :: codec :: Decode,
:: subxt :: ext :: codec :: Encode,
:: subxt :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
# [codec (crate = :: subxt :: ext :: codec)]
#[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
pub struct CheckTxVersion;
}
pub mod check_weight {
use super::runtime_types;
#[derive(
:: subxt :: ext :: codec :: Decode,
:: subxt :: ext :: codec :: Encode,
:: subxt :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
# [codec (crate = :: subxt :: ext :: codec)]
#[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
pub struct CheckWeight;
}
}
pub mod limits {
use super::runtime_types;
#[derive(
:: subxt :: ext :: codec :: Decode,
:: subxt :: ext :: codec :: Encode,
:: subxt :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
# [codec (crate = :: subxt :: ext :: codec)]
#[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
pub struct BlockLength {
pub max: runtime_types::frame_support::dispatch::PerDispatchClass<
::core::primitive::u32,
>,
}
#[derive(
:: subxt :: ext :: codec :: Decode,
:: subxt :: ext :: codec :: Encode,
:: subxt :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
# [codec (crate = :: subxt :: ext :: codec)]
#[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
pub struct BlockWeights {
pub base_block: runtime_types::sp_weights::weight_v2::Weight,
pub max_block: runtime_types::sp_weights::weight_v2::Weight,
pub per_class: runtime_types::frame_support::dispatch::PerDispatchClass<
runtime_types::frame_system::limits::WeightsPerClass,
>,
}
#[derive(
:: subxt :: ext :: codec :: Decode,
:: subxt :: ext :: codec :: Encode,
:: subxt :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
# [codec (crate = :: subxt :: ext :: codec)]
#[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
pub struct WeightsPerClass {
pub base_extrinsic: runtime_types::sp_weights::weight_v2::Weight,
pub max_extrinsic:
::core::option::Option<runtime_types::sp_weights::weight_v2::Weight>,
pub max_total:
::core::option::Option<runtime_types::sp_weights::weight_v2::Weight>,
pub reserved:
::core::option::Option<runtime_types::sp_weights::weight_v2::Weight>,
}
}
pub mod pallet {
use super::runtime_types;
#[derive(
:: subxt :: ext :: codec :: Decode,
:: subxt :: ext :: codec :: Encode,
:: subxt :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
# [codec (crate = :: subxt :: ext :: codec)]
#[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
#[doc = "Contains a variant per dispatchable extrinsic that this pallet has."]
pub enum Call {
#[codec(index = 0)]
#[doc = "See [`Pallet::remark`]."]
remark {
remark: ::std::vec::Vec<::core::primitive::u8>,
},
#[codec(index = 1)]
#[doc = "See [`Pallet::set_heap_pages`]."]
set_heap_pages { pages: ::core::primitive::u64 },
#[codec(index = 2)]
#[doc = "See [`Pallet::set_code`]."]
set_code {
code: ::std::vec::Vec<::core::primitive::u8>,
},
#[codec(index = 3)]
#[doc = "See [`Pallet::set_code_without_checks`]."]
set_code_without_checks {
code: ::std::vec::Vec<::core::primitive::u8>,
},
#[codec(index = 4)]
#[doc = "See [`Pallet::set_storage`]."]
set_storage {
items: ::std::vec::Vec<(
::std::vec::Vec<::core::primitive::u8>,
::std::vec::Vec<::core::primitive::u8>,
)>,
},
#[codec(index = 5)]
#[doc = "See [`Pallet::kill_storage`]."]
kill_storage {
keys: ::std::vec::Vec<::std::vec::Vec<::core::primitive::u8>>,
},
#[codec(index = 6)]
#[doc = "See [`Pallet::kill_prefix`]."]
kill_prefix {
prefix: ::std::vec::Vec<::core::primitive::u8>,
subkeys: ::core::primitive::u32,
},
#[codec(index = 7)]
#[doc = "See [`Pallet::remark_with_event`]."]
remark_with_event {
remark: ::std::vec::Vec<::core::primitive::u8>,
},
}
#[derive(
:: subxt :: ext :: codec :: Decode,
:: subxt :: ext :: codec :: Encode,
:: subxt :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
# [codec (crate = :: subxt :: ext :: codec)]
#[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
#[doc = "Error for the System pallet"]
pub enum Error {
#[codec(index = 0)]
#[doc = "The name of specification does not match between the current runtime"]
#[doc = "and the new runtime."]
InvalidSpecName,
#[codec(index = 1)]
#[doc = "The specification version is not allowed to decrease between the current runtime"]
#[doc = "and the new runtime."]
SpecVersionNeedsToIncrease,
#[codec(index = 2)]
#[doc = "Failed to extract the runtime version from the new runtime."]
#[doc = ""]
#[doc = "Either calling `Core_version` or decoding `RuntimeVersion` failed."]
FailedToExtractRuntimeVersion,
#[codec(index = 3)]
#[doc = "Suicide called when the account has non-default composite data."]
NonDefaultComposite,
#[codec(index = 4)]
#[doc = "There is a non-zero reference count preventing the account from being purged."]
NonZeroRefCount,
#[codec(index = 5)]
#[doc = "The origin filter prevent the call to be dispatched."]
CallFiltered,
}
#[derive(
:: subxt :: ext :: codec :: Decode,
:: subxt :: ext :: codec :: Encode,
:: subxt :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
# [codec (crate = :: subxt :: ext :: codec)]
#[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
#[doc = "Event for the System pallet."]
pub enum Event {
#[codec(index = 0)]
#[doc = "An extrinsic completed successfully."]
ExtrinsicSuccess {
dispatch_info: runtime_types::frame_support::dispatch::DispatchInfo,
},
#[codec(index = 1)]
#[doc = "An extrinsic failed."]
ExtrinsicFailed {
dispatch_error: runtime_types::sp_runtime::DispatchError,
dispatch_info: runtime_types::frame_support::dispatch::DispatchInfo,
},
#[codec(index = 2)]
#[doc = "`:code` was updated."]
CodeUpdated,
#[codec(index = 3)]
#[doc = "A new account was created."]
NewAccount {
account: ::subxt::utils::AccountId32,
},
#[codec(index = 4)]
#[doc = "An account was reaped."]
KilledAccount {
account: ::subxt::utils::AccountId32,
},
#[codec(index = 5)]
#[doc = "On on-chain remark happened."]
Remarked {
sender: ::subxt::utils::AccountId32,
hash: ::subxt::utils::H256,
},
}
}
#[derive(
:: subxt :: ext :: codec :: Decode,
:: subxt :: ext :: codec :: Encode,
:: subxt :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
# [codec (crate = :: subxt :: ext :: codec)]
#[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
pub struct AccountInfo<_0, _1> {
pub nonce: _0,
pub consumers: ::core::primitive::u32,
pub providers: ::core::primitive::u32,
pub sufficients: ::core::primitive::u32,
pub data: _1,
}
#[derive(
:: subxt :: ext :: codec :: Decode,
:: subxt :: ext :: codec :: Encode,
:: subxt :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
# [codec (crate = :: subxt :: ext :: codec)]
#[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
pub struct EventRecord<_0, _1> {
pub phase: runtime_types::frame_system::Phase,
pub event: _0,
pub topics: ::std::vec::Vec<_1>,
}
#[derive(
:: subxt :: ext :: codec :: Decode,
:: subxt :: ext :: codec :: Encode,
:: subxt :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
# [codec (crate = :: subxt :: ext :: codec)]
#[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
pub struct LastRuntimeUpgradeInfo {
#[codec(compact)]
pub spec_version: ::core::primitive::u32,
pub spec_name: ::std::string::String,
}
#[derive(
:: subxt :: ext :: codec :: Decode,
:: subxt :: ext :: codec :: Encode,
:: subxt :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
# [codec (crate = :: subxt :: ext :: codec)]
#[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
pub enum Phase {
#[codec(index = 0)]
ApplyExtrinsic(::core::primitive::u32),
#[codec(index = 1)]
Finalization,
#[codec(index = 2)]
Initialization,
}
}
pub mod madya_solo_runtime {
use super::runtime_types;
#[derive(
:: subxt :: ext :: codec :: Decode,
:: subxt :: ext :: codec :: Encode,
:: subxt :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
# [codec (crate = :: subxt :: ext :: codec)]
#[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
pub struct Runtime;
#[derive(
:: subxt :: ext :: codec :: Decode,
:: subxt :: ext :: codec :: Encode,
:: subxt :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
# [codec (crate = :: subxt :: ext :: codec)]
#[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
pub enum RuntimeCall {
#[codec(index = 0)]
System(runtime_types::frame_system::pallet::Call),
#[codec(index = 1)]
Timestamp(runtime_types::pallet_timestamp::pallet::Call),
#[codec(index = 3)]
Grandpa(runtime_types::pallet_grandpa::pallet::Call),
#[codec(index = 4)]
Balances(runtime_types::pallet_balances::pallet::Call),
#[codec(index = 6)]
Sudo(runtime_types::pallet_sudo::pallet::Call),
#[codec(index = 8)]
Contracts(runtime_types::pallet_contracts::pallet::Call),
}
#[derive(
:: subxt :: ext :: codec :: Decode,
:: subxt :: ext :: codec :: Encode,
:: subxt :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
# [codec (crate = :: subxt :: ext :: codec)]
#[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
pub enum RuntimeError {
#[codec(index = 0)]
System(runtime_types::frame_system::pallet::Error),
#[codec(index = 3)]
Grandpa(runtime_types::pallet_grandpa::pallet::Error),
#[codec(index = 4)]
Balances(runtime_types::pallet_balances::pallet::Error),
#[codec(index = 6)]
Sudo(runtime_types::pallet_sudo::pallet::Error),
#[codec(index = 8)]
Contracts(runtime_types::pallet_contracts::pallet::Error),
}
#[derive(
:: subxt :: ext :: codec :: Decode,
:: subxt :: ext :: codec :: Encode,
:: subxt :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
# [codec (crate = :: subxt :: ext :: codec)]
#[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
pub enum RuntimeEvent {
#[codec(index = 0)]
System(runtime_types::frame_system::pallet::Event),
#[codec(index = 3)]
Grandpa(runtime_types::pallet_grandpa::pallet::Event),
#[codec(index = 4)]
Balances(runtime_types::pallet_balances::pallet::Event),
#[codec(index = 5)]
TransactionPayment(runtime_types::pallet_transaction_payment::pallet::Event),
#[codec(index = 6)]
Sudo(runtime_types::pallet_sudo::pallet::Event),
#[codec(index = 8)]
Contracts(runtime_types::pallet_contracts::pallet::Event),
}
}
pub mod pallet_balances {
use super::runtime_types;
pub mod pallet {
use super::runtime_types;
#[derive(
:: subxt :: ext :: codec :: Decode,
:: subxt :: ext :: codec :: Encode,
:: subxt :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
# [codec (crate = :: subxt :: ext :: codec)]
#[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
#[doc = "Contains a variant per dispatchable extrinsic that this pallet has."]
pub enum Call {
#[codec(index = 0)]
#[doc = "See [`Pallet::transfer_allow_death`]."]
transfer_allow_death {
dest: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>,
#[codec(compact)]
value: ::core::primitive::u128,
},
#[codec(index = 1)]
#[doc = "See [`Pallet::set_balance_deprecated`]."]
set_balance_deprecated {
who: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>,
#[codec(compact)]
new_free: ::core::primitive::u128,
#[codec(compact)]
old_reserved: ::core::primitive::u128,
},
#[codec(index = 2)]
#[doc = "See [`Pallet::force_transfer`]."]
force_transfer {
source: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>,
dest: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>,
#[codec(compact)]
value: ::core::primitive::u128,
},
#[codec(index = 3)]
#[doc = "See [`Pallet::transfer_keep_alive`]."]
transfer_keep_alive {
dest: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>,
#[codec(compact)]
value: ::core::primitive::u128,
},
#[codec(index = 4)]
#[doc = "See [`Pallet::transfer_all`]."]
transfer_all {
dest: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>,
keep_alive: ::core::primitive::bool,
},
#[codec(index = 5)]
#[doc = "See [`Pallet::force_unreserve`]."]
force_unreserve {
who: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>,
amount: ::core::primitive::u128,
},
#[codec(index = 6)]
#[doc = "See [`Pallet::upgrade_accounts`]."]
upgrade_accounts {
who: ::std::vec::Vec<::subxt::utils::AccountId32>,
},
#[codec(index = 7)]
#[doc = "See [`Pallet::transfer`]."]
transfer {
dest: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>,
#[codec(compact)]
value: ::core::primitive::u128,
},
#[codec(index = 8)]
#[doc = "See [`Pallet::force_set_balance`]."]
force_set_balance {
who: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>,
#[codec(compact)]
new_free: ::core::primitive::u128,
},
}
#[derive(
:: subxt :: ext :: codec :: Decode,
:: subxt :: ext :: codec :: Encode,
:: subxt :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
# [codec (crate = :: subxt :: ext :: codec)]
#[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
#[doc = "The `Error` enum of this pallet."]
pub enum Error {
#[codec(index = 0)]
#[doc = "Vesting balance too high to send value."]
VestingBalance,
#[codec(index = 1)]
#[doc = "Account liquidity restrictions prevent withdrawal."]
LiquidityRestrictions,
#[codec(index = 2)]
#[doc = "Balance too low to send value."]
InsufficientBalance,
#[codec(index = 3)]
#[doc = "Value too low to create account due to existential deposit."]
ExistentialDeposit,
#[codec(index = 4)]
#[doc = "Transfer/payment would kill account."]
Expendability,
#[codec(index = 5)]
#[doc = "A vesting schedule already exists for this account."]
ExistingVestingSchedule,
#[codec(index = 6)]
#[doc = "Beneficiary account must pre-exist."]
DeadAccount,
#[codec(index = 7)]
#[doc = "Number of named reserves exceed `MaxReserves`."]
TooManyReserves,
#[codec(index = 8)]
#[doc = "Number of holds exceed `MaxHolds`."]
TooManyHolds,
#[codec(index = 9)]
#[doc = "Number of freezes exceed `MaxFreezes`."]
TooManyFreezes,
}
#[derive(
:: subxt :: ext :: codec :: Decode,
:: subxt :: ext :: codec :: Encode,
:: subxt :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
# [codec (crate = :: subxt :: ext :: codec)]
#[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
#[doc = "The `Event` enum of this pallet"]
pub enum Event {
#[codec(index = 0)]
#[doc = "An account was created with some free balance."]
Endowed {
account: ::subxt::utils::AccountId32,
free_balance: ::core::primitive::u128,
},
#[codec(index = 1)]
#[doc = "An account was removed whose balance was non-zero but below ExistentialDeposit,"]
#[doc = "resulting in an outright loss."]
DustLost {
account: ::subxt::utils::AccountId32,
amount: ::core::primitive::u128,
},
#[codec(index = 2)]
#[doc = "Transfer succeeded."]
Transfer {
from: ::subxt::utils::AccountId32,
to: ::subxt::utils::AccountId32,
amount: ::core::primitive::u128,
},
#[codec(index = 3)]
#[doc = "A balance was set by root."]
BalanceSet {
who: ::subxt::utils::AccountId32,
free: ::core::primitive::u128,
},
#[codec(index = 4)]
#[doc = "Some balance was reserved (moved from free to reserved)."]
Reserved {
who: ::subxt::utils::AccountId32,
amount: ::core::primitive::u128,
},
#[codec(index = 5)]
#[doc = "Some balance was unreserved (moved from reserved to free)."]
Unreserved {
who: ::subxt::utils::AccountId32,
amount: ::core::primitive::u128,
},
#[codec(index = 6)]
#[doc = "Some balance was moved from the reserve of the first account to the second account."]
#[doc = "Final argument indicates the destination balance type."]
ReserveRepatriated {
from: ::subxt::utils::AccountId32,
to: ::subxt::utils::AccountId32,
amount: ::core::primitive::u128,
destination_status:
runtime_types::frame_support::traits::tokens::misc::BalanceStatus,
},
#[codec(index = 7)]
#[doc = "Some amount was deposited (e.g. for transaction fees)."]
Deposit {
who: ::subxt::utils::AccountId32,
amount: ::core::primitive::u128,
},
#[codec(index = 8)]
#[doc = "Some amount was withdrawn from the account (e.g. for transaction fees)."]
Withdraw {
who: ::subxt::utils::AccountId32,
amount: ::core::primitive::u128,
},
#[codec(index = 9)]
#[doc = "Some amount was removed from the account (e.g. for misbehavior)."]
Slashed {
who: ::subxt::utils::AccountId32,
amount: ::core::primitive::u128,
},
#[codec(index = 10)]
#[doc = "Some amount was minted into an account."]
Minted {
who: ::subxt::utils::AccountId32,
amount: ::core::primitive::u128,
},
#[codec(index = 11)]
#[doc = "Some amount was burned from an account."]
Burned {
who: ::subxt::utils::AccountId32,
amount: ::core::primitive::u128,
},
#[codec(index = 12)]
#[doc = "Some amount was suspended from an account (it can be restored later)."]
Suspended {
who: ::subxt::utils::AccountId32,
amount: ::core::primitive::u128,
},
#[codec(index = 13)]
#[doc = "Some amount was restored into an account."]
Restored {
who: ::subxt::utils::AccountId32,
amount: ::core::primitive::u128,
},
#[codec(index = 14)]
#[doc = "An account was upgraded."]
Upgraded { who: ::subxt::utils::AccountId32 },
#[codec(index = 15)]
#[doc = "Total issuance was increased by `amount`, creating a credit to be balanced."]
Issued { amount: ::core::primitive::u128 },
#[codec(index = 16)]
#[doc = "Total issuance was decreased by `amount`, creating a debt to be balanced."]
Rescinded { amount: ::core::primitive::u128 },
#[codec(index = 17)]
#[doc = "Some balance was locked."]
Locked {
who: ::subxt::utils::AccountId32,
amount: ::core::primitive::u128,
},
#[codec(index = 18)]
#[doc = "Some balance was unlocked."]
Unlocked {
who: ::subxt::utils::AccountId32,
amount: ::core::primitive::u128,
},
#[codec(index = 19)]
#[doc = "Some balance was frozen."]
Frozen {
who: ::subxt::utils::AccountId32,
amount: ::core::primitive::u128,
},
#[codec(index = 20)]
#[doc = "Some balance was thawed."]
Thawed {
who: ::subxt::utils::AccountId32,
amount: ::core::primitive::u128,
},
}
}
pub mod types {
use super::runtime_types;
#[derive(
:: subxt :: ext :: codec :: Decode,
:: subxt :: ext :: codec :: Encode,
:: subxt :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
# [codec (crate = :: subxt :: ext :: codec)]
#[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
pub struct AccountData<_0> {
pub free: _0,
pub reserved: _0,
pub frozen: _0,
pub flags: runtime_types::pallet_balances::types::ExtraFlags,
}
#[derive(
:: subxt :: ext :: codec :: Decode,
:: subxt :: ext :: codec :: Encode,
:: subxt :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
# [codec (crate = :: subxt :: ext :: codec)]
#[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
pub struct BalanceLock<_0> {
pub id: [::core::primitive::u8; 8usize],
pub amount: _0,
pub reasons: runtime_types::pallet_balances::types::Reasons,
}
#[derive(
:: subxt :: ext :: codec :: CompactAs,
:: subxt :: ext :: codec :: Decode,
:: subxt :: ext :: codec :: Encode,
:: subxt :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
# [codec (crate = :: subxt :: ext :: codec)]
#[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
pub struct ExtraFlags(pub ::core::primitive::u128);
#[derive(
:: subxt :: ext :: codec :: Decode,
:: subxt :: ext :: codec :: Encode,
:: subxt :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
# [codec (crate = :: subxt :: ext :: codec)]
#[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
pub struct IdAmount<_0, _1> {
pub id: _0,
pub amount: _1,
}
#[derive(
:: subxt :: ext :: codec :: Decode,
:: subxt :: ext :: codec :: Encode,
:: subxt :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
# [codec (crate = :: subxt :: ext :: codec)]
#[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
pub enum Reasons {
#[codec(index = 0)]
Fee,
#[codec(index = 1)]
Misc,
#[codec(index = 2)]
All,
}
#[derive(
:: subxt :: ext :: codec :: Decode,
:: subxt :: ext :: codec :: Encode,
:: subxt :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
# [codec (crate = :: subxt :: ext :: codec)]
#[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
pub struct ReserveData<_0, _1> {
pub id: _0,
pub amount: _1,
}
}
}
pub mod pallet_contracts {
use super::runtime_types;
pub mod pallet {
use super::runtime_types;
#[derive(
:: subxt :: ext :: codec :: Decode,
:: subxt :: ext :: codec :: Encode,
:: subxt :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
# [codec (crate = :: subxt :: ext :: codec)]
#[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
#[doc = "Contains a variant per dispatchable extrinsic that this pallet has."]
pub enum Call {
#[codec(index = 0)]
#[doc = "See [`Pallet::call_old_weight`]."]
call_old_weight {
dest: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>,
#[codec(compact)]
value: ::core::primitive::u128,
#[codec(compact)]
gas_limit: ::core::primitive::u64,
storage_deposit_limit: ::core::option::Option<
::subxt::ext::codec::Compact<::core::primitive::u128>,
>,
data: ::std::vec::Vec<::core::primitive::u8>,
},
#[codec(index = 1)]
#[doc = "See [`Pallet::instantiate_with_code_old_weight`]."]
instantiate_with_code_old_weight {
#[codec(compact)]
value: ::core::primitive::u128,
#[codec(compact)]
gas_limit: ::core::primitive::u64,
storage_deposit_limit: ::core::option::Option<
::subxt::ext::codec::Compact<::core::primitive::u128>,
>,
code: ::std::vec::Vec<::core::primitive::u8>,
data: ::std::vec::Vec<::core::primitive::u8>,
salt: ::std::vec::Vec<::core::primitive::u8>,
},
#[codec(index = 2)]
#[doc = "See [`Pallet::instantiate_old_weight`]."]
instantiate_old_weight {
#[codec(compact)]
value: ::core::primitive::u128,
#[codec(compact)]
gas_limit: ::core::primitive::u64,
storage_deposit_limit: ::core::option::Option<
::subxt::ext::codec::Compact<::core::primitive::u128>,
>,
code_hash: ::subxt::utils::H256,
data: ::std::vec::Vec<::core::primitive::u8>,
salt: ::std::vec::Vec<::core::primitive::u8>,
},
#[codec(index = 3)]
#[doc = "See [`Pallet::upload_code`]."]
upload_code {
code: ::std::vec::Vec<::core::primitive::u8>,
storage_deposit_limit: ::core::option::Option<
::subxt::ext::codec::Compact<::core::primitive::u128>,
>,
determinism: runtime_types::pallet_contracts::wasm::Determinism,
},
#[codec(index = 4)]
#[doc = "See [`Pallet::remove_code`]."]
remove_code { code_hash: ::subxt::utils::H256 },
#[codec(index = 5)]
#[doc = "See [`Pallet::set_code`]."]
set_code {
dest: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>,
code_hash: ::subxt::utils::H256,
},
#[codec(index = 6)]
#[doc = "See [`Pallet::call`]."]
call {
dest: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>,
#[codec(compact)]
value: ::core::primitive::u128,
gas_limit: runtime_types::sp_weights::weight_v2::Weight,
storage_deposit_limit: ::core::option::Option<
::subxt::ext::codec::Compact<::core::primitive::u128>,
>,
data: ::std::vec::Vec<::core::primitive::u8>,
},
#[codec(index = 7)]
#[doc = "See [`Pallet::instantiate_with_code`]."]
instantiate_with_code {
#[codec(compact)]
value: ::core::primitive::u128,
gas_limit: runtime_types::sp_weights::weight_v2::Weight,
storage_deposit_limit: ::core::option::Option<
::subxt::ext::codec::Compact<::core::primitive::u128>,
>,
code: ::std::vec::Vec<::core::primitive::u8>,
data: ::std::vec::Vec<::core::primitive::u8>,
salt: ::std::vec::Vec<::core::primitive::u8>,
},
#[codec(index = 8)]
#[doc = "See [`Pallet::instantiate`]."]
instantiate {
#[codec(compact)]
value: ::core::primitive::u128,
gas_limit: runtime_types::sp_weights::weight_v2::Weight,
storage_deposit_limit: ::core::option::Option<
::subxt::ext::codec::Compact<::core::primitive::u128>,
>,
code_hash: ::subxt::utils::H256,
data: ::std::vec::Vec<::core::primitive::u8>,
salt: ::std::vec::Vec<::core::primitive::u8>,
},
#[codec(index = 9)]
#[doc = "See [`Pallet::migrate`]."]
migrate {
weight_limit: runtime_types::sp_weights::weight_v2::Weight,
},
}
#[derive(
:: subxt :: ext :: codec :: Decode,
:: subxt :: ext :: codec :: Encode,
:: subxt :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
# [codec (crate = :: subxt :: ext :: codec)]
#[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
#[doc = "The `Error` enum of this pallet."]
pub enum Error {
#[codec(index = 0)]
#[doc = "Invalid schedule supplied, e.g. with zero weight of a basic operation."]
InvalidSchedule,
#[codec(index = 1)]
#[doc = "Invalid combination of flags supplied to `seal_call` or `seal_delegate_call`."]
InvalidCallFlags,
#[codec(index = 2)]
#[doc = "The executed contract exhausted its gas limit."]
OutOfGas,
#[codec(index = 3)]
#[doc = "The output buffer supplied to a contract API call was too small."]
OutputBufferTooSmall,
#[codec(index = 4)]
#[doc = "Performing the requested transfer failed. Probably because there isn't enough"]
#[doc = "free balance in the sender's account."]
TransferFailed,
#[codec(index = 5)]
#[doc = "Performing a call was denied because the calling depth reached the limit"]
#[doc = "of what is specified in the schedule."]
MaxCallDepthReached,
#[codec(index = 6)]
#[doc = "No contract was found at the specified address."]
ContractNotFound,
#[codec(index = 7)]
#[doc = "The code supplied to `instantiate_with_code` exceeds the limit specified in the"]
#[doc = "current schedule."]
CodeTooLarge,
#[codec(index = 8)]
#[doc = "No code could be found at the supplied code hash."]
CodeNotFound,
#[codec(index = 9)]
#[doc = "No code info could be found at the supplied code hash."]
CodeInfoNotFound,
#[codec(index = 10)]
#[doc = "A buffer outside of sandbox memory was passed to a contract API function."]
OutOfBounds,
#[codec(index = 11)]
#[doc = "Input passed to a contract API function failed to decode as expected type."]
DecodingFailed,
#[codec(index = 12)]
#[doc = "Contract trapped during execution."]
ContractTrapped,
#[codec(index = 13)]
#[doc = "The size defined in `T::MaxValueSize` was exceeded."]
ValueTooLarge,
#[codec(index = 14)]
#[doc = "Termination of a contract is not allowed while the contract is already"]
#[doc = "on the call stack. Can be triggered by `seal_terminate`."]
TerminatedWhileReentrant,
#[codec(index = 15)]
#[doc = "`seal_call` forwarded this contracts input. It therefore is no longer available."]
InputForwarded,
#[codec(index = 16)]
#[doc = "The subject passed to `seal_random` exceeds the limit."]
RandomSubjectTooLong,
#[codec(index = 17)]
#[doc = "The amount of topics passed to `seal_deposit_events` exceeds the limit."]
TooManyTopics,
#[codec(index = 18)]
#[doc = "The chain does not provide a chain extension. Calling the chain extension results"]
#[doc = "in this error. Note that this usually shouldn't happen as deploying such contracts"]
#[doc = "is rejected."]
NoChainExtension,
#[codec(index = 19)]
#[doc = "A contract with the same AccountId already exists."]
DuplicateContract,
#[codec(index = 20)]
#[doc = "A contract self destructed in its constructor."]
#[doc = ""]
#[doc = "This can be triggered by a call to `seal_terminate`."]
TerminatedInConstructor,
#[codec(index = 21)]
#[doc = "A call tried to invoke a contract that is flagged as non-reentrant."]
#[doc = "The only other cause is that a call from a contract into the runtime tried to call back"]
#[doc = "into `pallet-contracts`. This would make the whole pallet reentrant with regard to"]
#[doc = "contract code execution which is not supported."]
ReentranceDenied,
#[codec(index = 22)]
#[doc = "Origin doesn't have enough balance to pay the required storage deposits."]
StorageDepositNotEnoughFunds,
#[codec(index = 23)]
#[doc = "More storage was created than allowed by the storage deposit limit."]
StorageDepositLimitExhausted,
#[codec(index = 24)]
#[doc = "Code removal was denied because the code is still in use by at least one contract."]
CodeInUse,
#[codec(index = 25)]
#[doc = "The contract ran to completion but decided to revert its storage changes."]
#[doc = "Please note that this error is only returned from extrinsics. When called directly"]
#[doc = "or via RPC an `Ok` will be returned. In this case the caller needs to inspect the flags"]
#[doc = "to determine whether a reversion has taken place."]
ContractReverted,
#[codec(index = 26)]
#[doc = "The contract's code was found to be invalid during validation."]
#[doc = ""]
#[doc = "The most likely cause of this is that an API was used which is not supported by the"]
#[doc = "node. This happens if an older node is used with a new version of ink!. Try updating"]
#[doc = "your node to the newest available version."]
#[doc = ""]
#[doc = "A more detailed error can be found on the node console if debug messages are enabled"]
#[doc = "by supplying `-lruntime::contracts=debug`."]
CodeRejected,
#[codec(index = 27)]
#[doc = "An indetermistic code was used in a context where this is not permitted."]
Indeterministic,
#[codec(index = 28)]
#[doc = "A pending migration needs to complete before the extrinsic can be called."]
MigrationInProgress,
#[codec(index = 29)]
#[doc = "Migrate dispatch call was attempted but no migration was performed."]
NoMigrationPerformed,
}
#[derive(
:: subxt :: ext :: codec :: Decode,
:: subxt :: ext :: codec :: Encode,
:: subxt :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
# [codec (crate = :: subxt :: ext :: codec)]
#[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
#[doc = "The `Event` enum of this pallet"]
pub enum Event {
#[codec(index = 0)]
#[doc = "Contract deployed by address at the specified address."]
Instantiated {
deployer: ::subxt::utils::AccountId32,
contract: ::subxt::utils::AccountId32,
},
#[codec(index = 1)]
#[doc = "Contract has been removed."]
#[doc = ""]
#[doc = "# Note"]
#[doc = ""]
#[doc = "The only way for a contract to be removed and emitting this event is by calling"]
#[doc = "`seal_terminate`."]
Terminated {
contract: ::subxt::utils::AccountId32,
beneficiary: ::subxt::utils::AccountId32,
},
#[codec(index = 2)]
#[doc = "Code with the specified hash has been stored."]
CodeStored { code_hash: ::subxt::utils::H256 },
#[codec(index = 3)]
#[doc = "A custom event emitted by the contract."]
ContractEmitted {
contract: ::subxt::utils::AccountId32,
data: ::std::vec::Vec<::core::primitive::u8>,
},
#[codec(index = 4)]
#[doc = "A code with the specified hash was removed."]
CodeRemoved { code_hash: ::subxt::utils::H256 },
#[codec(index = 5)]
#[doc = "A contract's code was updated."]
ContractCodeUpdated {
contract: ::subxt::utils::AccountId32,
new_code_hash: ::subxt::utils::H256,
old_code_hash: ::subxt::utils::H256,
},
#[codec(index = 6)]
#[doc = "A contract was called either by a plain account or another contract."]
#[doc = ""]
#[doc = "# Note"]
#[doc = ""]
#[doc = "Please keep in mind that like all events this is only emitted for successful"]
#[doc = "calls. This is because on failure all storage changes including events are"]
#[doc = "rolled back."]
Called {
caller: runtime_types::pallet_contracts::Origin<
runtime_types::madya_solo_runtime::Runtime,
>,
contract: ::subxt::utils::AccountId32,
},
#[codec(index = 7)]
#[doc = "A contract delegate called a code hash."]
#[doc = ""]
#[doc = "# Note"]
#[doc = ""]
#[doc = "Please keep in mind that like all events this is only emitted for successful"]
#[doc = "calls. This is because on failure all storage changes including events are"]
#[doc = "rolled back."]
DelegateCalled {
contract: ::subxt::utils::AccountId32,
code_hash: ::subxt::utils::H256,
},
}
}
pub mod schedule {
use super::runtime_types;
#[derive(
:: subxt :: ext :: codec :: Decode,
:: subxt :: ext :: codec :: Encode,
:: subxt :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
# [codec (crate = :: subxt :: ext :: codec)]
#[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
pub struct HostFnWeights {
pub caller: runtime_types::sp_weights::weight_v2::Weight,
pub is_contract: runtime_types::sp_weights::weight_v2::Weight,
pub code_hash: runtime_types::sp_weights::weight_v2::Weight,
pub own_code_hash: runtime_types::sp_weights::weight_v2::Weight,
pub caller_is_origin: runtime_types::sp_weights::weight_v2::Weight,
pub caller_is_root: runtime_types::sp_weights::weight_v2::Weight,
pub address: runtime_types::sp_weights::weight_v2::Weight,
pub gas_left: runtime_types::sp_weights::weight_v2::Weight,
pub balance: runtime_types::sp_weights::weight_v2::Weight,
pub value_transferred: runtime_types::sp_weights::weight_v2::Weight,
pub minimum_balance: runtime_types::sp_weights::weight_v2::Weight,
pub block_number: runtime_types::sp_weights::weight_v2::Weight,
pub now: runtime_types::sp_weights::weight_v2::Weight,
pub weight_to_fee: runtime_types::sp_weights::weight_v2::Weight,
pub input: runtime_types::sp_weights::weight_v2::Weight,
pub input_per_byte: runtime_types::sp_weights::weight_v2::Weight,
pub r#return: runtime_types::sp_weights::weight_v2::Weight,
pub return_per_byte: runtime_types::sp_weights::weight_v2::Weight,
pub terminate: runtime_types::sp_weights::weight_v2::Weight,
pub random: runtime_types::sp_weights::weight_v2::Weight,
pub deposit_event: runtime_types::sp_weights::weight_v2::Weight,
pub deposit_event_per_topic: runtime_types::sp_weights::weight_v2::Weight,
pub deposit_event_per_byte: runtime_types::sp_weights::weight_v2::Weight,
pub debug_message: runtime_types::sp_weights::weight_v2::Weight,
pub debug_message_per_byte: runtime_types::sp_weights::weight_v2::Weight,
pub set_storage: runtime_types::sp_weights::weight_v2::Weight,
pub set_storage_per_new_byte: runtime_types::sp_weights::weight_v2::Weight,
pub set_storage_per_old_byte: runtime_types::sp_weights::weight_v2::Weight,
pub set_code_hash: runtime_types::sp_weights::weight_v2::Weight,
pub clear_storage: runtime_types::sp_weights::weight_v2::Weight,
pub clear_storage_per_byte: runtime_types::sp_weights::weight_v2::Weight,
pub contains_storage: runtime_types::sp_weights::weight_v2::Weight,
pub contains_storage_per_byte: runtime_types::sp_weights::weight_v2::Weight,
pub get_storage: runtime_types::sp_weights::weight_v2::Weight,
pub get_storage_per_byte: runtime_types::sp_weights::weight_v2::Weight,
pub take_storage: runtime_types::sp_weights::weight_v2::Weight,
pub take_storage_per_byte: runtime_types::sp_weights::weight_v2::Weight,
pub transfer: runtime_types::sp_weights::weight_v2::Weight,
pub call: runtime_types::sp_weights::weight_v2::Weight,
pub delegate_call: runtime_types::sp_weights::weight_v2::Weight,
pub call_transfer_surcharge: runtime_types::sp_weights::weight_v2::Weight,
pub call_per_cloned_byte: runtime_types::sp_weights::weight_v2::Weight,
pub instantiate: runtime_types::sp_weights::weight_v2::Weight,
pub instantiate_transfer_surcharge:
runtime_types::sp_weights::weight_v2::Weight,
pub instantiate_per_input_byte: runtime_types::sp_weights::weight_v2::Weight,
pub instantiate_per_salt_byte: runtime_types::sp_weights::weight_v2::Weight,
pub hash_sha2_256: runtime_types::sp_weights::weight_v2::Weight,
pub hash_sha2_256_per_byte: runtime_types::sp_weights::weight_v2::Weight,
pub hash_keccak_256: runtime_types::sp_weights::weight_v2::Weight,
pub hash_keccak_256_per_byte: runtime_types::sp_weights::weight_v2::Weight,
pub hash_blake2_256: runtime_types::sp_weights::weight_v2::Weight,
pub hash_blake2_256_per_byte: runtime_types::sp_weights::weight_v2::Weight,
pub hash_blake2_128: runtime_types::sp_weights::weight_v2::Weight,
pub hash_blake2_128_per_byte: runtime_types::sp_weights::weight_v2::Weight,
pub ecdsa_recover: runtime_types::sp_weights::weight_v2::Weight,
pub ecdsa_to_eth_address: runtime_types::sp_weights::weight_v2::Weight,
pub sr25519_verify: runtime_types::sp_weights::weight_v2::Weight,
pub sr25519_verify_per_byte: runtime_types::sp_weights::weight_v2::Weight,
pub reentrance_count: runtime_types::sp_weights::weight_v2::Weight,
pub account_reentrance_count: runtime_types::sp_weights::weight_v2::Weight,
pub instantiation_nonce: runtime_types::sp_weights::weight_v2::Weight,
}
#[derive(
:: subxt :: ext :: codec :: CompactAs,
:: subxt :: ext :: codec :: Decode,
:: subxt :: ext :: codec :: Encode,
:: subxt :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
# [codec (crate = :: subxt :: ext :: codec)]
#[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
pub struct InstructionWeights {
pub base: ::core::primitive::u32,
}
#[derive(
:: subxt :: ext :: codec :: Decode,
:: subxt :: ext :: codec :: Encode,
:: subxt :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
# [codec (crate = :: subxt :: ext :: codec)]
#[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
pub struct Limits {
pub event_topics: ::core::primitive::u32,
pub globals: ::core::primitive::u32,
pub locals: ::core::primitive::u32,
pub parameters: ::core::primitive::u32,
pub memory_pages: ::core::primitive::u32,
pub table_size: ::core::primitive::u32,
pub br_table_size: ::core::primitive::u32,
pub subject_len: ::core::primitive::u32,
pub payload_len: ::core::primitive::u32,
pub runtime_memory: ::core::primitive::u32,
}
#[derive(
:: subxt :: ext :: codec :: Decode,
:: subxt :: ext :: codec :: Encode,
:: subxt :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
# [codec (crate = :: subxt :: ext :: codec)]
#[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
pub struct Schedule {
pub limits: runtime_types::pallet_contracts::schedule::Limits,
pub instruction_weights:
runtime_types::pallet_contracts::schedule::InstructionWeights,
pub host_fn_weights: runtime_types::pallet_contracts::schedule::HostFnWeights,
}
}
pub mod storage {
use super::runtime_types;
#[derive(
:: subxt :: ext :: codec :: Decode,
:: subxt :: ext :: codec :: Encode,
:: subxt :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
# [codec (crate = :: subxt :: ext :: codec)]
#[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
pub struct ContractInfo {
pub trie_id: runtime_types::bounded_collections::bounded_vec::BoundedVec<
::core::primitive::u8,
>,
pub deposit_account: runtime_types::pallet_contracts::storage::DepositAccount,
pub code_hash: ::subxt::utils::H256,
pub storage_bytes: ::core::primitive::u32,
pub storage_items: ::core::primitive::u32,
pub storage_byte_deposit: ::core::primitive::u128,
pub storage_item_deposit: ::core::primitive::u128,
pub storage_base_deposit: ::core::primitive::u128,
}
#[derive(
:: subxt :: ext :: codec :: Decode,
:: subxt :: ext :: codec :: Encode,
:: subxt :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
# [codec (crate = :: subxt :: ext :: codec)]
#[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
pub struct DeletionQueueManager {
pub insert_counter: ::core::primitive::u32,
pub delete_counter: ::core::primitive::u32,
}
#[derive(
:: subxt :: ext :: codec :: Decode,
:: subxt :: ext :: codec :: Encode,
:: subxt :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
# [codec (crate = :: subxt :: ext :: codec)]
#[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
pub struct DepositAccount(pub ::subxt::utils::AccountId32);
}
pub mod wasm {
use super::runtime_types;
#[derive(
:: subxt :: ext :: codec :: Decode,
:: subxt :: ext :: codec :: Encode,
:: subxt :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
# [codec (crate = :: subxt :: ext :: codec)]
#[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
pub struct CodeInfo {
pub owner: ::subxt::utils::AccountId32,
#[codec(compact)]
pub deposit: ::core::primitive::u128,
#[codec(compact)]
pub refcount: ::core::primitive::u64,
pub determinism: runtime_types::pallet_contracts::wasm::Determinism,
pub code_len: ::core::primitive::u32,
}
#[derive(
:: subxt :: ext :: codec :: Decode,
:: subxt :: ext :: codec :: Encode,
:: subxt :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
# [codec (crate = :: subxt :: ext :: codec)]
#[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
pub enum Determinism {
#[codec(index = 0)]
Enforced,
#[codec(index = 1)]
Relaxed,
}
}
#[derive(
:: subxt :: ext :: codec :: Decode,
:: subxt :: ext :: codec :: Encode,
:: subxt :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
# [codec (crate = :: subxt :: ext :: codec)]
#[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
pub enum Origin<_0> {
#[codec(index = 0)]
Root,
#[codec(index = 1)]
Signed(::subxt::utils::AccountId32),
__Ignore(::core::marker::PhantomData<_0>),
}
}
pub mod pallet_contracts_primitives {
use super::runtime_types;
#[derive(
:: subxt :: ext :: codec :: Decode,
:: subxt :: ext :: codec :: Encode,
:: subxt :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
# [codec (crate = :: subxt :: ext :: codec)]
#[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
pub enum Code<_0> {
#[codec(index = 0)]
Upload(::std::vec::Vec<::core::primitive::u8>),
#[codec(index = 1)]
Existing(_0),
}
#[derive(
:: subxt :: ext :: codec :: Decode,
:: subxt :: ext :: codec :: Encode,
:: subxt :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
# [codec (crate = :: subxt :: ext :: codec)]
#[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
pub struct CodeUploadReturnValue<_0, _1> {
pub code_hash: _0,
pub deposit: _1,
}
#[derive(
:: subxt :: ext :: codec :: Decode,
:: subxt :: ext :: codec :: Encode,
:: subxt :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
# [codec (crate = :: subxt :: ext :: codec)]
#[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
pub enum ContractAccessError {
#[codec(index = 0)]
DoesntExist,
#[codec(index = 1)]
KeyDecodingFailed,
#[codec(index = 2)]
MigrationInProgress,
}
#[derive(
:: subxt :: ext :: codec :: Decode,
:: subxt :: ext :: codec :: Encode,
:: subxt :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
# [codec (crate = :: subxt :: ext :: codec)]
#[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
pub struct ContractResult<_0, _1, _2> {
pub gas_consumed: runtime_types::sp_weights::weight_v2::Weight,
pub gas_required: runtime_types::sp_weights::weight_v2::Weight,
pub storage_deposit: runtime_types::pallet_contracts_primitives::StorageDeposit<_1>,
pub debug_message: ::std::vec::Vec<::core::primitive::u8>,
pub result: _0,
pub events: ::core::option::Option<::std::vec::Vec<_2>>,
}
#[derive(
:: subxt :: ext :: codec :: Decode,
:: subxt :: ext :: codec :: Encode,
:: subxt :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
# [codec (crate = :: subxt :: ext :: codec)]
#[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
pub struct ExecReturnValue {
pub flags: runtime_types::pallet_contracts_primitives::ReturnFlags,
pub data: ::std::vec::Vec<::core::primitive::u8>,
}
#[derive(
:: subxt :: ext :: codec :: Decode,
:: subxt :: ext :: codec :: Encode,
:: subxt :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
# [codec (crate = :: subxt :: ext :: codec)]
#[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
pub struct InstantiateReturnValue<_0> {
pub result: runtime_types::pallet_contracts_primitives::ExecReturnValue,
pub account_id: _0,
}
#[derive(
:: subxt :: ext :: codec :: CompactAs,
:: subxt :: ext :: codec :: Decode,
:: subxt :: ext :: codec :: Encode,
:: subxt :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
# [codec (crate = :: subxt :: ext :: codec)]
#[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
pub struct ReturnFlags {
pub bits: ::core::primitive::u32,
}
#[derive(
:: subxt :: ext :: codec :: Decode,
:: subxt :: ext :: codec :: Encode,
:: subxt :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
# [codec (crate = :: subxt :: ext :: codec)]
#[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
pub enum StorageDeposit<_0> {
#[codec(index = 0)]
Refund(_0),
#[codec(index = 1)]
Charge(_0),
}
}
pub mod pallet_grandpa {
use super::runtime_types;
pub mod pallet {
use super::runtime_types;
#[derive(
:: subxt :: ext :: codec :: Decode,
:: subxt :: ext :: codec :: Encode,
:: subxt :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
# [codec (crate = :: subxt :: ext :: codec)]
#[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
#[doc = "Contains a variant per dispatchable extrinsic that this pallet has."]
pub enum Call {
#[codec(index = 0)]
#[doc = "See [`Pallet::report_equivocation`]."]
report_equivocation {
equivocation_proof: ::std::boxed::Box<
runtime_types::sp_consensus_grandpa::EquivocationProof<
::subxt::utils::H256,
::core::primitive::u32,
>,
>,
key_owner_proof: runtime_types::sp_core::Void,
},
#[codec(index = 1)]
#[doc = "See [`Pallet::report_equivocation_unsigned`]."]
report_equivocation_unsigned {
equivocation_proof: ::std::boxed::Box<
runtime_types::sp_consensus_grandpa::EquivocationProof<
::subxt::utils::H256,
::core::primitive::u32,
>,
>,
key_owner_proof: runtime_types::sp_core::Void,
},
#[codec(index = 2)]
#[doc = "See [`Pallet::note_stalled`]."]
note_stalled {
delay: ::core::primitive::u32,
best_finalized_block_number: ::core::primitive::u32,
},
}
#[derive(
:: subxt :: ext :: codec :: Decode,
:: subxt :: ext :: codec :: Encode,
:: subxt :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
# [codec (crate = :: subxt :: ext :: codec)]
#[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
#[doc = "The `Error` enum of this pallet."]
pub enum Error {
#[codec(index = 0)]
#[doc = "Attempt to signal GRANDPA pause when the authority set isn't live"]
#[doc = "(either paused or already pending pause)."]
PauseFailed,
#[codec(index = 1)]
#[doc = "Attempt to signal GRANDPA resume when the authority set isn't paused"]
#[doc = "(either live or already pending resume)."]
ResumeFailed,
#[codec(index = 2)]
#[doc = "Attempt to signal GRANDPA change with one already pending."]
ChangePending,
#[codec(index = 3)]
#[doc = "Cannot signal forced change so soon after last."]
TooSoon,
#[codec(index = 4)]
#[doc = "A key ownership proof provided as part of an equivocation report is invalid."]
InvalidKeyOwnershipProof,
#[codec(index = 5)]
#[doc = "An equivocation proof provided as part of an equivocation report is invalid."]
InvalidEquivocationProof,
#[codec(index = 6)]
#[doc = "A given equivocation report is valid but already previously reported."]
DuplicateOffenceReport,
}
#[derive(
:: subxt :: ext :: codec :: Decode,
:: subxt :: ext :: codec :: Encode,
:: subxt :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
# [codec (crate = :: subxt :: ext :: codec)]
#[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
#[doc = "The `Event` enum of this pallet"]
pub enum Event {
#[codec(index = 0)]
#[doc = "New authority set has been applied."]
NewAuthorities {
authority_set: ::std::vec::Vec<(
runtime_types::sp_consensus_grandpa::app::Public,
::core::primitive::u64,
)>,
},
#[codec(index = 1)]
#[doc = "Current authority set has been paused."]
Paused,
#[codec(index = 2)]
#[doc = "Current authority set has been resumed."]
Resumed,
}
}
#[derive(
:: subxt :: ext :: codec :: Decode,
:: subxt :: ext :: codec :: Encode,
:: subxt :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
# [codec (crate = :: subxt :: ext :: codec)]
#[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
pub struct StoredPendingChange<_0> {
pub scheduled_at: _0,
pub delay: _0,
pub next_authorities:
runtime_types::bounded_collections::weak_bounded_vec::WeakBoundedVec<(
runtime_types::sp_consensus_grandpa::app::Public,
::core::primitive::u64,
)>,
pub forced: ::core::option::Option<_0>,
}
#[derive(
:: subxt :: ext :: codec :: Decode,
:: subxt :: ext :: codec :: Encode,
:: subxt :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
# [codec (crate = :: subxt :: ext :: codec)]
#[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
pub enum StoredState<_0> {
#[codec(index = 0)]
Live,
#[codec(index = 1)]
PendingPause { scheduled_at: _0, delay: _0 },
#[codec(index = 2)]
Paused,
#[codec(index = 3)]
PendingResume { scheduled_at: _0, delay: _0 },
}
}
pub mod pallet_sudo {
use super::runtime_types;
pub mod pallet {
use super::runtime_types;
#[derive(
:: subxt :: ext :: codec :: Decode,
:: subxt :: ext :: codec :: Encode,
:: subxt :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
# [codec (crate = :: subxt :: ext :: codec)]
#[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
#[doc = "Contains a variant per dispatchable extrinsic that this pallet has."]
pub enum Call {
#[codec(index = 0)]
#[doc = "See [`Pallet::sudo`]."]
sudo {
call: ::std::boxed::Box<runtime_types::madya_solo_runtime::RuntimeCall>,
},
#[codec(index = 1)]
#[doc = "See [`Pallet::sudo_unchecked_weight`]."]
sudo_unchecked_weight {
call: ::std::boxed::Box<runtime_types::madya_solo_runtime::RuntimeCall>,
weight: runtime_types::sp_weights::weight_v2::Weight,
},
#[codec(index = 2)]
#[doc = "See [`Pallet::set_key`]."]
set_key {
new: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>,
},
#[codec(index = 3)]
#[doc = "See [`Pallet::sudo_as`]."]
sudo_as {
who: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>,
call: ::std::boxed::Box<runtime_types::madya_solo_runtime::RuntimeCall>,
},
}
#[derive(
:: subxt :: ext :: codec :: Decode,
:: subxt :: ext :: codec :: Encode,
:: subxt :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
# [codec (crate = :: subxt :: ext :: codec)]
#[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
#[doc = "Error for the Sudo pallet"]
pub enum Error {
#[codec(index = 0)]
#[doc = "Sender must be the Sudo account"]
RequireSudo,
}
#[derive(
:: subxt :: ext :: codec :: Decode,
:: subxt :: ext :: codec :: Encode,
:: subxt :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
# [codec (crate = :: subxt :: ext :: codec)]
#[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
#[doc = "The `Event` enum of this pallet"]
pub enum Event {
#[codec(index = 0)]
#[doc = "A sudo just took place. \\[result\\]"]
Sudid {
sudo_result:
::core::result::Result<(), runtime_types::sp_runtime::DispatchError>,
},
#[codec(index = 1)]
#[doc = "The \\[sudoer\\] just switched identity; the old key is supplied if one existed."]
KeyChanged {
old_sudoer: ::core::option::Option<::subxt::utils::AccountId32>,
},
#[codec(index = 2)]
#[doc = "A sudo just took place. \\[result\\]"]
SudoAsDone {
sudo_result:
::core::result::Result<(), runtime_types::sp_runtime::DispatchError>,
},
}
}
}
pub mod pallet_timestamp {
use super::runtime_types;
pub mod pallet {
use super::runtime_types;
#[derive(
:: subxt :: ext :: codec :: Decode,
:: subxt :: ext :: codec :: Encode,
:: subxt :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
# [codec (crate = :: subxt :: ext :: codec)]
#[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
#[doc = "Contains a variant per dispatchable extrinsic that this pallet has."]
pub enum Call {
#[codec(index = 0)]
#[doc = "See [`Pallet::set`]."]
set {
#[codec(compact)]
now: ::core::primitive::u64,
},
}
}
}
pub mod pallet_transaction_payment {
use super::runtime_types;
pub mod pallet {
use super::runtime_types;
#[derive(
:: subxt :: ext :: codec :: Decode,
:: subxt :: ext :: codec :: Encode,
:: subxt :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
# [codec (crate = :: subxt :: ext :: codec)]
#[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
#[doc = "The `Event` enum of this pallet"]
pub enum Event {
#[codec(index = 0)]
#[doc = "A transaction fee `actual_fee`, of which `tip` was added to the minimum inclusion fee,"]
#[doc = "has been paid by `who`."]
TransactionFeePaid {
who: ::subxt::utils::AccountId32,
actual_fee: ::core::primitive::u128,
tip: ::core::primitive::u128,
},
}
}
pub mod types {
use super::runtime_types;
#[derive(
:: subxt :: ext :: codec :: Decode,
:: subxt :: ext :: codec :: Encode,
:: subxt :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
# [codec (crate = :: subxt :: ext :: codec)]
#[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
pub struct FeeDetails<_0> {
pub inclusion_fee: ::core::option::Option<
runtime_types::pallet_transaction_payment::types::InclusionFee<_0>,
>,
pub tip: _0,
}
#[derive(
:: subxt :: ext :: codec :: Decode,
:: subxt :: ext :: codec :: Encode,
:: subxt :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
# [codec (crate = :: subxt :: ext :: codec)]
#[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
pub struct InclusionFee<_0> {
pub base_fee: _0,
pub len_fee: _0,
pub adjusted_weight_fee: _0,
}
#[derive(
:: subxt :: ext :: codec :: Decode,
:: subxt :: ext :: codec :: Encode,
:: subxt :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
# [codec (crate = :: subxt :: ext :: codec)]
#[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
pub struct RuntimeDispatchInfo<_0, _1> {
pub weight: _1,
pub class: runtime_types::frame_support::dispatch::DispatchClass,
pub partial_fee: _0,
}
}
#[derive(
:: subxt :: ext :: codec :: Decode,
:: subxt :: ext :: codec :: Encode,
:: subxt :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
# [codec (crate = :: subxt :: ext :: codec)]
#[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
pub struct ChargeTransactionPayment(#[codec(compact)] pub ::core::primitive::u128);
#[derive(
:: subxt :: ext :: codec :: Decode,
:: subxt :: ext :: codec :: Encode,
:: subxt :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
# [codec (crate = :: subxt :: ext :: codec)]
#[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
pub enum Releases {
#[codec(index = 0)]
V1Ancient,
#[codec(index = 1)]
V2,
}
}
pub mod sp_arithmetic {
use super::runtime_types;
pub mod fixed_point {
use super::runtime_types;
#[derive(
:: subxt :: ext :: codec :: CompactAs,
:: subxt :: ext :: codec :: Decode,
:: subxt :: ext :: codec :: Encode,
:: subxt :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
# [codec (crate = :: subxt :: ext :: codec)]
#[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
pub struct FixedU128(pub ::core::primitive::u128);
}
#[derive(
:: subxt :: ext :: codec :: Decode,
:: subxt :: ext :: codec :: Encode,
:: subxt :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
# [codec (crate = :: subxt :: ext :: codec)]
#[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
pub enum ArithmeticError {
#[codec(index = 0)]
Underflow,
#[codec(index = 1)]
Overflow,
#[codec(index = 2)]
DivisionByZero,
}
}
pub mod sp_consensus_aura {
use super::runtime_types;
pub mod sr25519 {
use super::runtime_types;
pub mod app_sr25519 {
use super::runtime_types;
#[derive(
:: subxt :: ext :: codec :: Decode,
:: subxt :: ext :: codec :: Encode,
:: subxt :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
# [codec (crate = :: subxt :: ext :: codec)]
#[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
pub struct Public(pub runtime_types::sp_core::sr25519::Public);
}
}
}
pub mod sp_consensus_grandpa {
use super::runtime_types;
pub mod app {
use super::runtime_types;
#[derive(
:: subxt :: ext :: codec :: Decode,
:: subxt :: ext :: codec :: Encode,
:: subxt :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
# [codec (crate = :: subxt :: ext :: codec)]
#[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
pub struct Public(pub runtime_types::sp_core::ed25519::Public);
#[derive(
:: subxt :: ext :: codec :: Decode,
:: subxt :: ext :: codec :: Encode,
:: subxt :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
# [codec (crate = :: subxt :: ext :: codec)]
#[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
pub struct Signature(pub runtime_types::sp_core::ed25519::Signature);
}
#[derive(
:: subxt :: ext :: codec :: Decode,
:: subxt :: ext :: codec :: Encode,
:: subxt :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
# [codec (crate = :: subxt :: ext :: codec)]
#[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
pub enum Equivocation<_0, _1> {
#[codec(index = 0)]
Prevote(
runtime_types::finality_grandpa::Equivocation<
runtime_types::sp_consensus_grandpa::app::Public,
runtime_types::finality_grandpa::Prevote<_0, _1>,
runtime_types::sp_consensus_grandpa::app::Signature,
>,
),
#[codec(index = 1)]
Precommit(
runtime_types::finality_grandpa::Equivocation<
runtime_types::sp_consensus_grandpa::app::Public,
runtime_types::finality_grandpa::Precommit<_0, _1>,
runtime_types::sp_consensus_grandpa::app::Signature,
>,
),
}
#[derive(
:: subxt :: ext :: codec :: Decode,
:: subxt :: ext :: codec :: Encode,
:: subxt :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
# [codec (crate = :: subxt :: ext :: codec)]
#[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
pub struct EquivocationProof<_0, _1> {
pub set_id: ::core::primitive::u64,
pub equivocation: runtime_types::sp_consensus_grandpa::Equivocation<_0, _1>,
}
#[derive(
:: subxt :: ext :: codec :: Decode,
:: subxt :: ext :: codec :: Encode,
:: subxt :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
# [codec (crate = :: subxt :: ext :: codec)]
#[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
pub struct OpaqueKeyOwnershipProof(pub ::std::vec::Vec<::core::primitive::u8>);
}
pub mod sp_consensus_slots {
use super::runtime_types;
#[derive(
:: subxt :: ext :: codec :: CompactAs,
:: subxt :: ext :: codec :: Decode,
:: subxt :: ext :: codec :: Encode,
:: subxt :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
# [codec (crate = :: subxt :: ext :: codec)]
#[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
pub struct Slot(pub ::core::primitive::u64);
#[derive(
:: subxt :: ext :: codec :: CompactAs,
:: subxt :: ext :: codec :: Decode,
:: subxt :: ext :: codec :: Encode,
:: subxt :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
# [codec (crate = :: subxt :: ext :: codec)]
#[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
pub struct SlotDuration(pub ::core::primitive::u64);
}
pub mod sp_core {
use super::runtime_types;
pub mod crypto {
use super::runtime_types;
#[derive(
:: subxt :: ext :: codec :: Decode,
:: subxt :: ext :: codec :: Encode,
:: subxt :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
# [codec (crate = :: subxt :: ext :: codec)]
#[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
pub struct KeyTypeId(pub [::core::primitive::u8; 4usize]);
}
pub mod ecdsa {
use super::runtime_types;
#[derive(
:: subxt :: ext :: codec :: Decode,
:: subxt :: ext :: codec :: Encode,
:: subxt :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
# [codec (crate = :: subxt :: ext :: codec)]
#[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
pub struct Signature(pub [::core::primitive::u8; 65usize]);
}
pub mod ed25519 {
use super::runtime_types;
#[derive(
:: subxt :: ext :: codec :: Decode,
:: subxt :: ext :: codec :: Encode,
:: subxt :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
# [codec (crate = :: subxt :: ext :: codec)]
#[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
pub struct Public(pub [::core::primitive::u8; 32usize]);
#[derive(
:: subxt :: ext :: codec :: Decode,
:: subxt :: ext :: codec :: Encode,
:: subxt :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
# [codec (crate = :: subxt :: ext :: codec)]
#[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
pub struct Signature(pub [::core::primitive::u8; 64usize]);
}
pub mod sr25519 {
use super::runtime_types;
#[derive(
:: subxt :: ext :: codec :: Decode,
:: subxt :: ext :: codec :: Encode,
:: subxt :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
# [codec (crate = :: subxt :: ext :: codec)]
#[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
pub struct Public(pub [::core::primitive::u8; 32usize]);
#[derive(
:: subxt :: ext :: codec :: Decode,
:: subxt :: ext :: codec :: Encode,
:: subxt :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
# [codec (crate = :: subxt :: ext :: codec)]
#[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
pub struct Signature(pub [::core::primitive::u8; 64usize]);
}
#[derive(
:: subxt :: ext :: codec :: Decode,
:: subxt :: ext :: codec :: Encode,
:: subxt :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
# [codec (crate = :: subxt :: ext :: codec)]
#[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
pub struct OpaqueMetadata(pub ::std::vec::Vec<::core::primitive::u8>);
#[derive(
:: subxt :: ext :: codec :: Decode,
:: subxt :: ext :: codec :: Encode,
:: subxt :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
# [codec (crate = :: subxt :: ext :: codec)]
#[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
pub enum Void {}
}
pub mod sp_inherents {
use super::runtime_types;
#[derive(
:: subxt :: ext :: codec :: Decode,
:: subxt :: ext :: codec :: Encode,
:: subxt :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
# [codec (crate = :: subxt :: ext :: codec)]
#[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
pub struct CheckInherentsResult {
pub okay: ::core::primitive::bool,
pub fatal_error: ::core::primitive::bool,
pub errors: runtime_types::sp_inherents::InherentData,
}
#[derive(
:: subxt :: ext :: codec :: Decode,
:: subxt :: ext :: codec :: Encode,
:: subxt :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
# [codec (crate = :: subxt :: ext :: codec)]
#[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
pub struct InherentData {
pub data: ::subxt::utils::KeyedVec<
[::core::primitive::u8; 8usize],
::std::vec::Vec<::core::primitive::u8>,
>,
}
}
pub mod sp_runtime {
use super::runtime_types;
pub mod generic {
use super::runtime_types;
pub mod block {
use super::runtime_types;
#[derive(
:: subxt :: ext :: codec :: Decode,
:: subxt :: ext :: codec :: Encode,
:: subxt :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
# [codec (crate = :: subxt :: ext :: codec)]
#[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
pub struct Block<_0, _1> {
pub header: _0,
pub extrinsics: ::std::vec::Vec<_1>,
}
}
pub mod digest {
use super::runtime_types;
#[derive(
:: subxt :: ext :: codec :: Decode,
:: subxt :: ext :: codec :: Encode,
:: subxt :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
# [codec (crate = :: subxt :: ext :: codec)]
#[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
pub struct Digest {
pub logs:
::std::vec::Vec<runtime_types::sp_runtime::generic::digest::DigestItem>,
}
#[derive(
:: subxt :: ext :: codec :: Decode,
:: subxt :: ext :: codec :: Encode,
:: subxt :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
# [codec (crate = :: subxt :: ext :: codec)]
#[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
pub enum DigestItem {
#[codec(index = 6)]
PreRuntime(
[::core::primitive::u8; 4usize],
::std::vec::Vec<::core::primitive::u8>,
),
#[codec(index = 4)]
Consensus(
[::core::primitive::u8; 4usize],
::std::vec::Vec<::core::primitive::u8>,
),
#[codec(index = 5)]
Seal(
[::core::primitive::u8; 4usize],
::std::vec::Vec<::core::primitive::u8>,
),
#[codec(index = 0)]
Other(::std::vec::Vec<::core::primitive::u8>),
#[codec(index = 8)]
RuntimeEnvironmentUpdated,
}
}
pub mod era {
use super::runtime_types;
#[derive(
:: subxt :: ext :: codec :: Decode,
:: subxt :: ext :: codec :: Encode,
:: subxt :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
# [codec (crate = :: subxt :: ext :: codec)]
#[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
pub enum Era {
#[codec(index = 0)]
Immortal,
#[codec(index = 1)]
Mortal1(::core::primitive::u8),
#[codec(index = 2)]
Mortal2(::core::primitive::u8),
#[codec(index = 3)]
Mortal3(::core::primitive::u8),
#[codec(index = 4)]
Mortal4(::core::primitive::u8),
#[codec(index = 5)]
Mortal5(::core::primitive::u8),
#[codec(index = 6)]
Mortal6(::core::primitive::u8),
#[codec(index = 7)]
Mortal7(::core::primitive::u8),
#[codec(index = 8)]
Mortal8(::core::primitive::u8),
#[codec(index = 9)]
Mortal9(::core::primitive::u8),
#[codec(index = 10)]
Mortal10(::core::primitive::u8),
#[codec(index = 11)]
Mortal11(::core::primitive::u8),
#[codec(index = 12)]
Mortal12(::core::primitive::u8),
#[codec(index = 13)]
Mortal13(::core::primitive::u8),
#[codec(index = 14)]
Mortal14(::core::primitive::u8),
#[codec(index = 15)]
Mortal15(::core::primitive::u8),
#[codec(index = 16)]
Mortal16(::core::primitive::u8),
#[codec(index = 17)]
Mortal17(::core::primitive::u8),
#[codec(index = 18)]
Mortal18(::core::primitive::u8),
#[codec(index = 19)]
Mortal19(::core::primitive::u8),
#[codec(index = 20)]
Mortal20(::core::primitive::u8),
#[codec(index = 21)]
Mortal21(::core::primitive::u8),
#[codec(index = 22)]
Mortal22(::core::primitive::u8),
#[codec(index = 23)]
Mortal23(::core::primitive::u8),
#[codec(index = 24)]
Mortal24(::core::primitive::u8),
#[codec(index = 25)]
Mortal25(::core::primitive::u8),
#[codec(index = 26)]
Mortal26(::core::primitive::u8),
#[codec(index = 27)]
Mortal27(::core::primitive::u8),
#[codec(index = 28)]
Mortal28(::core::primitive::u8),
#[codec(index = 29)]
Mortal29(::core::primitive::u8),
#[codec(index = 30)]
Mortal30(::core::primitive::u8),
#[codec(index = 31)]
Mortal31(::core::primitive::u8),
#[codec(index = 32)]
Mortal32(::core::primitive::u8),
#[codec(index = 33)]
Mortal33(::core::primitive::u8),
#[codec(index = 34)]
Mortal34(::core::primitive::u8),
#[codec(index = 35)]
Mortal35(::core::primitive::u8),
#[codec(index = 36)]
Mortal36(::core::primitive::u8),
#[codec(index = 37)]
Mortal37(::core::primitive::u8),
#[codec(index = 38)]
Mortal38(::core::primitive::u8),
#[codec(index = 39)]
Mortal39(::core::primitive::u8),
#[codec(index = 40)]
Mortal40(::core::primitive::u8),
#[codec(index = 41)]
Mortal41(::core::primitive::u8),
#[codec(index = 42)]
Mortal42(::core::primitive::u8),
#[codec(index = 43)]
Mortal43(::core::primitive::u8),
#[codec(index = 44)]
Mortal44(::core::primitive::u8),
#[codec(index = 45)]
Mortal45(::core::primitive::u8),
#[codec(index = 46)]
Mortal46(::core::primitive::u8),
#[codec(index = 47)]
Mortal47(::core::primitive::u8),
#[codec(index = 48)]
Mortal48(::core::primitive::u8),
#[codec(index = 49)]
Mortal49(::core::primitive::u8),
#[codec(index = 50)]
Mortal50(::core::primitive::u8),
#[codec(index = 51)]
Mortal51(::core::primitive::u8),
#[codec(index = 52)]
Mortal52(::core::primitive::u8),
#[codec(index = 53)]
Mortal53(::core::primitive::u8),
#[codec(index = 54)]
Mortal54(::core::primitive::u8),
#[codec(index = 55)]
Mortal55(::core::primitive::u8),
#[codec(index = 56)]
Mortal56(::core::primitive::u8),
#[codec(index = 57)]
Mortal57(::core::primitive::u8),
#[codec(index = 58)]
Mortal58(::core::primitive::u8),
#[codec(index = 59)]
Mortal59(::core::primitive::u8),
#[codec(index = 60)]
Mortal60(::core::primitive::u8),
#[codec(index = 61)]
Mortal61(::core::primitive::u8),
#[codec(index = 62)]
Mortal62(::core::primitive::u8),
#[codec(index = 63)]
Mortal63(::core::primitive::u8),
#[codec(index = 64)]
Mortal64(::core::primitive::u8),
#[codec(index = 65)]
Mortal65(::core::primitive::u8),
#[codec(index = 66)]
Mortal66(::core::primitive::u8),
#[codec(index = 67)]
Mortal67(::core::primitive::u8),
#[codec(index = 68)]
Mortal68(::core::primitive::u8),
#[codec(index = 69)]
Mortal69(::core::primitive::u8),
#[codec(index = 70)]
Mortal70(::core::primitive::u8),
#[codec(index = 71)]
Mortal71(::core::primitive::u8),
#[codec(index = 72)]
Mortal72(::core::primitive::u8),
#[codec(index = 73)]
Mortal73(::core::primitive::u8),
#[codec(index = 74)]
Mortal74(::core::primitive::u8),
#[codec(index = 75)]
Mortal75(::core::primitive::u8),
#[codec(index = 76)]
Mortal76(::core::primitive::u8),
#[codec(index = 77)]
Mortal77(::core::primitive::u8),
#[codec(index = 78)]
Mortal78(::core::primitive::u8),
#[codec(index = 79)]
Mortal79(::core::primitive::u8),
#[codec(index = 80)]
Mortal80(::core::primitive::u8),
#[codec(index = 81)]
Mortal81(::core::primitive::u8),
#[codec(index = 82)]
Mortal82(::core::primitive::u8),
#[codec(index = 83)]
Mortal83(::core::primitive::u8),
#[codec(index = 84)]
Mortal84(::core::primitive::u8),
#[codec(index = 85)]
Mortal85(::core::primitive::u8),
#[codec(index = 86)]
Mortal86(::core::primitive::u8),
#[codec(index = 87)]
Mortal87(::core::primitive::u8),
#[codec(index = 88)]
Mortal88(::core::primitive::u8),
#[codec(index = 89)]
Mortal89(::core::primitive::u8),
#[codec(index = 90)]
Mortal90(::core::primitive::u8),
#[codec(index = 91)]
Mortal91(::core::primitive::u8),
#[codec(index = 92)]
Mortal92(::core::primitive::u8),
#[codec(index = 93)]
Mortal93(::core::primitive::u8),
#[codec(index = 94)]
Mortal94(::core::primitive::u8),
#[codec(index = 95)]
Mortal95(::core::primitive::u8),
#[codec(index = 96)]
Mortal96(::core::primitive::u8),
#[codec(index = 97)]
Mortal97(::core::primitive::u8),
#[codec(index = 98)]
Mortal98(::core::primitive::u8),
#[codec(index = 99)]
Mortal99(::core::primitive::u8),
#[codec(index = 100)]
Mortal100(::core::primitive::u8),
#[codec(index = 101)]
Mortal101(::core::primitive::u8),
#[codec(index = 102)]
Mortal102(::core::primitive::u8),
#[codec(index = 103)]
Mortal103(::core::primitive::u8),
#[codec(index = 104)]
Mortal104(::core::primitive::u8),
#[codec(index = 105)]
Mortal105(::core::primitive::u8),
#[codec(index = 106)]
Mortal106(::core::primitive::u8),
#[codec(index = 107)]
Mortal107(::core::primitive::u8),
#[codec(index = 108)]
Mortal108(::core::primitive::u8),
#[codec(index = 109)]
Mortal109(::core::primitive::u8),
#[codec(index = 110)]
Mortal110(::core::primitive::u8),
#[codec(index = 111)]
Mortal111(::core::primitive::u8),
#[codec(index = 112)]
Mortal112(::core::primitive::u8),
#[codec(index = 113)]
Mortal113(::core::primitive::u8),
#[codec(index = 114)]
Mortal114(::core::primitive::u8),
#[codec(index = 115)]
Mortal115(::core::primitive::u8),
#[codec(index = 116)]
Mortal116(::core::primitive::u8),
#[codec(index = 117)]
Mortal117(::core::primitive::u8),
#[codec(index = 118)]
Mortal118(::core::primitive::u8),
#[codec(index = 119)]
Mortal119(::core::primitive::u8),
#[codec(index = 120)]
Mortal120(::core::primitive::u8),
#[codec(index = 121)]
Mortal121(::core::primitive::u8),
#[codec(index = 122)]
Mortal122(::core::primitive::u8),
#[codec(index = 123)]
Mortal123(::core::primitive::u8),
#[codec(index = 124)]
Mortal124(::core::primitive::u8),
#[codec(index = 125)]
Mortal125(::core::primitive::u8),
#[codec(index = 126)]
Mortal126(::core::primitive::u8),
#[codec(index = 127)]
Mortal127(::core::primitive::u8),
#[codec(index = 128)]
Mortal128(::core::primitive::u8),
#[codec(index = 129)]
Mortal129(::core::primitive::u8),
#[codec(index = 130)]
Mortal130(::core::primitive::u8),
#[codec(index = 131)]
Mortal131(::core::primitive::u8),
#[codec(index = 132)]
Mortal132(::core::primitive::u8),
#[codec(index = 133)]
Mortal133(::core::primitive::u8),
#[codec(index = 134)]
Mortal134(::core::primitive::u8),
#[codec(index = 135)]
Mortal135(::core::primitive::u8),
#[codec(index = 136)]
Mortal136(::core::primitive::u8),
#[codec(index = 137)]
Mortal137(::core::primitive::u8),
#[codec(index = 138)]
Mortal138(::core::primitive::u8),
#[codec(index = 139)]
Mortal139(::core::primitive::u8),
#[codec(index = 140)]
Mortal140(::core::primitive::u8),
#[codec(index = 141)]
Mortal141(::core::primitive::u8),
#[codec(index = 142)]
Mortal142(::core::primitive::u8),
#[codec(index = 143)]
Mortal143(::core::primitive::u8),
#[codec(index = 144)]
Mortal144(::core::primitive::u8),
#[codec(index = 145)]
Mortal145(::core::primitive::u8),
#[codec(index = 146)]
Mortal146(::core::primitive::u8),
#[codec(index = 147)]
Mortal147(::core::primitive::u8),
#[codec(index = 148)]
Mortal148(::core::primitive::u8),
#[codec(index = 149)]
Mortal149(::core::primitive::u8),
#[codec(index = 150)]
Mortal150(::core::primitive::u8),
#[codec(index = 151)]
Mortal151(::core::primitive::u8),
#[codec(index = 152)]
Mortal152(::core::primitive::u8),
#[codec(index = 153)]
Mortal153(::core::primitive::u8),
#[codec(index = 154)]
Mortal154(::core::primitive::u8),
#[codec(index = 155)]
Mortal155(::core::primitive::u8),
#[codec(index = 156)]
Mortal156(::core::primitive::u8),
#[codec(index = 157)]
Mortal157(::core::primitive::u8),
#[codec(index = 158)]
Mortal158(::core::primitive::u8),
#[codec(index = 159)]
Mortal159(::core::primitive::u8),
#[codec(index = 160)]
Mortal160(::core::primitive::u8),
#[codec(index = 161)]
Mortal161(::core::primitive::u8),
#[codec(index = 162)]
Mortal162(::core::primitive::u8),
#[codec(index = 163)]
Mortal163(::core::primitive::u8),
#[codec(index = 164)]
Mortal164(::core::primitive::u8),
#[codec(index = 165)]
Mortal165(::core::primitive::u8),
#[codec(index = 166)]
Mortal166(::core::primitive::u8),
#[codec(index = 167)]
Mortal167(::core::primitive::u8),
#[codec(index = 168)]
Mortal168(::core::primitive::u8),
#[codec(index = 169)]
Mortal169(::core::primitive::u8),
#[codec(index = 170)]
Mortal170(::core::primitive::u8),
#[codec(index = 171)]
Mortal171(::core::primitive::u8),
#[codec(index = 172)]
Mortal172(::core::primitive::u8),
#[codec(index = 173)]
Mortal173(::core::primitive::u8),
#[codec(index = 174)]
Mortal174(::core::primitive::u8),
#[codec(index = 175)]
Mortal175(::core::primitive::u8),
#[codec(index = 176)]
Mortal176(::core::primitive::u8),
#[codec(index = 177)]
Mortal177(::core::primitive::u8),
#[codec(index = 178)]
Mortal178(::core::primitive::u8),
#[codec(index = 179)]
Mortal179(::core::primitive::u8),
#[codec(index = 180)]
Mortal180(::core::primitive::u8),
#[codec(index = 181)]
Mortal181(::core::primitive::u8),
#[codec(index = 182)]
Mortal182(::core::primitive::u8),
#[codec(index = 183)]
Mortal183(::core::primitive::u8),
#[codec(index = 184)]
Mortal184(::core::primitive::u8),
#[codec(index = 185)]
Mortal185(::core::primitive::u8),
#[codec(index = 186)]
Mortal186(::core::primitive::u8),
#[codec(index = 187)]
Mortal187(::core::primitive::u8),
#[codec(index = 188)]
Mortal188(::core::primitive::u8),
#[codec(index = 189)]
Mortal189(::core::primitive::u8),
#[codec(index = 190)]
Mortal190(::core::primitive::u8),
#[codec(index = 191)]
Mortal191(::core::primitive::u8),
#[codec(index = 192)]
Mortal192(::core::primitive::u8),
#[codec(index = 193)]
Mortal193(::core::primitive::u8),
#[codec(index = 194)]
Mortal194(::core::primitive::u8),
#[codec(index = 195)]
Mortal195(::core::primitive::u8),
#[codec(index = 196)]
Mortal196(::core::primitive::u8),
#[codec(index = 197)]
Mortal197(::core::primitive::u8),
#[codec(index = 198)]
Mortal198(::core::primitive::u8),
#[codec(index = 199)]
Mortal199(::core::primitive::u8),
#[codec(index = 200)]
Mortal200(::core::primitive::u8),
#[codec(index = 201)]
Mortal201(::core::primitive::u8),
#[codec(index = 202)]
Mortal202(::core::primitive::u8),
#[codec(index = 203)]
Mortal203(::core::primitive::u8),
#[codec(index = 204)]
Mortal204(::core::primitive::u8),
#[codec(index = 205)]
Mortal205(::core::primitive::u8),
#[codec(index = 206)]
Mortal206(::core::primitive::u8),
#[codec(index = 207)]
Mortal207(::core::primitive::u8),
#[codec(index = 208)]
Mortal208(::core::primitive::u8),
#[codec(index = 209)]
Mortal209(::core::primitive::u8),
#[codec(index = 210)]
Mortal210(::core::primitive::u8),
#[codec(index = 211)]
Mortal211(::core::primitive::u8),
#[codec(index = 212)]
Mortal212(::core::primitive::u8),
#[codec(index = 213)]
Mortal213(::core::primitive::u8),
#[codec(index = 214)]
Mortal214(::core::primitive::u8),
#[codec(index = 215)]
Mortal215(::core::primitive::u8),
#[codec(index = 216)]
Mortal216(::core::primitive::u8),
#[codec(index = 217)]
Mortal217(::core::primitive::u8),
#[codec(index = 218)]
Mortal218(::core::primitive::u8),
#[codec(index = 219)]
Mortal219(::core::primitive::u8),
#[codec(index = 220)]
Mortal220(::core::primitive::u8),
#[codec(index = 221)]
Mortal221(::core::primitive::u8),
#[codec(index = 222)]
Mortal222(::core::primitive::u8),
#[codec(index = 223)]
Mortal223(::core::primitive::u8),
#[codec(index = 224)]
Mortal224(::core::primitive::u8),
#[codec(index = 225)]
Mortal225(::core::primitive::u8),
#[codec(index = 226)]
Mortal226(::core::primitive::u8),
#[codec(index = 227)]
Mortal227(::core::primitive::u8),
#[codec(index = 228)]
Mortal228(::core::primitive::u8),
#[codec(index = 229)]
Mortal229(::core::primitive::u8),
#[codec(index = 230)]
Mortal230(::core::primitive::u8),
#[codec(index = 231)]
Mortal231(::core::primitive::u8),
#[codec(index = 232)]
Mortal232(::core::primitive::u8),
#[codec(index = 233)]
Mortal233(::core::primitive::u8),
#[codec(index = 234)]
Mortal234(::core::primitive::u8),
#[codec(index = 235)]
Mortal235(::core::primitive::u8),
#[codec(index = 236)]
Mortal236(::core::primitive::u8),
#[codec(index = 237)]
Mortal237(::core::primitive::u8),
#[codec(index = 238)]
Mortal238(::core::primitive::u8),
#[codec(index = 239)]
Mortal239(::core::primitive::u8),
#[codec(index = 240)]
Mortal240(::core::primitive::u8),
#[codec(index = 241)]
Mortal241(::core::primitive::u8),
#[codec(index = 242)]
Mortal242(::core::primitive::u8),
#[codec(index = 243)]
Mortal243(::core::primitive::u8),
#[codec(index = 244)]
Mortal244(::core::primitive::u8),
#[codec(index = 245)]
Mortal245(::core::primitive::u8),
#[codec(index = 246)]
Mortal246(::core::primitive::u8),
#[codec(index = 247)]
Mortal247(::core::primitive::u8),
#[codec(index = 248)]
Mortal248(::core::primitive::u8),
#[codec(index = 249)]
Mortal249(::core::primitive::u8),
#[codec(index = 250)]
Mortal250(::core::primitive::u8),
#[codec(index = 251)]
Mortal251(::core::primitive::u8),
#[codec(index = 252)]
Mortal252(::core::primitive::u8),
#[codec(index = 253)]
Mortal253(::core::primitive::u8),
#[codec(index = 254)]
Mortal254(::core::primitive::u8),
#[codec(index = 255)]
Mortal255(::core::primitive::u8),
}
}
pub mod header {
use super::runtime_types;
#[derive(
:: subxt :: ext :: codec :: Decode,
:: subxt :: ext :: codec :: Encode,
:: subxt :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
# [codec (crate = :: subxt :: ext :: codec)]
#[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
pub struct Header<_0> {
pub parent_hash: ::subxt::utils::H256,
#[codec(compact)]
pub number: _0,
pub state_root: ::subxt::utils::H256,
pub extrinsics_root: ::subxt::utils::H256,
pub digest: runtime_types::sp_runtime::generic::digest::Digest,
}
}
}
pub mod transaction_validity {
use super::runtime_types;
#[derive(
:: subxt :: ext :: codec :: Decode,
:: subxt :: ext :: codec :: Encode,
:: subxt :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
# [codec (crate = :: subxt :: ext :: codec)]
#[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
pub enum InvalidTransaction {
#[codec(index = 0)]
Call,
#[codec(index = 1)]
Payment,
#[codec(index = 2)]
Future,
#[codec(index = 3)]
Stale,
#[codec(index = 4)]
BadProof,
#[codec(index = 5)]
AncientBirthBlock,
#[codec(index = 6)]
ExhaustsResources,
#[codec(index = 7)]
Custom(::core::primitive::u8),
#[codec(index = 8)]
BadMandatory,
#[codec(index = 9)]
MandatoryValidation,
#[codec(index = 10)]
BadSigner,
}
#[derive(
:: subxt :: ext :: codec :: Decode,
:: subxt :: ext :: codec :: Encode,
:: subxt :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
# [codec (crate = :: subxt :: ext :: codec)]
#[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
pub enum TransactionSource {
#[codec(index = 0)]
InBlock,
#[codec(index = 1)]
Local,
#[codec(index = 2)]
External,
}
#[derive(
:: subxt :: ext :: codec :: Decode,
:: subxt :: ext :: codec :: Encode,
:: subxt :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
# [codec (crate = :: subxt :: ext :: codec)]
#[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
pub enum TransactionValidityError {
#[codec(index = 0)]
Invalid(runtime_types::sp_runtime::transaction_validity::InvalidTransaction),
#[codec(index = 1)]
Unknown(runtime_types::sp_runtime::transaction_validity::UnknownTransaction),
}
#[derive(
:: subxt :: ext :: codec :: Decode,
:: subxt :: ext :: codec :: Encode,
:: subxt :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
# [codec (crate = :: subxt :: ext :: codec)]
#[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
pub enum UnknownTransaction {
#[codec(index = 0)]
CannotLookup,
#[codec(index = 1)]
NoUnsignedValidator,
#[codec(index = 2)]
Custom(::core::primitive::u8),
}
#[derive(
:: subxt :: ext :: codec :: Decode,
:: subxt :: ext :: codec :: Encode,
:: subxt :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
# [codec (crate = :: subxt :: ext :: codec)]
#[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
pub struct ValidTransaction {
pub priority: ::core::primitive::u64,
pub requires: ::std::vec::Vec<::std::vec::Vec<::core::primitive::u8>>,
pub provides: ::std::vec::Vec<::std::vec::Vec<::core::primitive::u8>>,
pub longevity: ::core::primitive::u64,
pub propagate: ::core::primitive::bool,
}
}
#[derive(
:: subxt :: ext :: codec :: Decode,
:: subxt :: ext :: codec :: Encode,
:: subxt :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
# [codec (crate = :: subxt :: ext :: codec)]
#[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
pub enum DispatchError {
#[codec(index = 0)]
Other,
#[codec(index = 1)]
CannotLookup,
#[codec(index = 2)]
BadOrigin,
#[codec(index = 3)]
Module(runtime_types::sp_runtime::ModuleError),
#[codec(index = 4)]
ConsumerRemaining,
#[codec(index = 5)]
NoProviders,
#[codec(index = 6)]
TooManyConsumers,
#[codec(index = 7)]
Token(runtime_types::sp_runtime::TokenError),
#[codec(index = 8)]
Arithmetic(runtime_types::sp_arithmetic::ArithmeticError),
#[codec(index = 9)]
Transactional(runtime_types::sp_runtime::TransactionalError),
#[codec(index = 10)]
Exhausted,
#[codec(index = 11)]
Corruption,
#[codec(index = 12)]
Unavailable,
#[codec(index = 13)]
RootNotAllowed,
}
#[derive(
:: subxt :: ext :: codec :: Decode,
:: subxt :: ext :: codec :: Encode,
:: subxt :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
# [codec (crate = :: subxt :: ext :: codec)]
#[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
pub struct ModuleError {
pub index: ::core::primitive::u8,
pub error: [::core::primitive::u8; 4usize],
}
#[derive(
:: subxt :: ext :: codec :: Decode,
:: subxt :: ext :: codec :: Encode,
:: subxt :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
# [codec (crate = :: subxt :: ext :: codec)]
#[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
pub enum MultiSignature {
#[codec(index = 0)]
Ed25519(runtime_types::sp_core::ed25519::Signature),
#[codec(index = 1)]
Sr25519(runtime_types::sp_core::sr25519::Signature),
#[codec(index = 2)]
Ecdsa(runtime_types::sp_core::ecdsa::Signature),
}
#[derive(
:: subxt :: ext :: codec :: Decode,
:: subxt :: ext :: codec :: Encode,
:: subxt :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
# [codec (crate = :: subxt :: ext :: codec)]
#[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
pub enum TokenError {
#[codec(index = 0)]
FundsUnavailable,
#[codec(index = 1)]
OnlyProvider,
#[codec(index = 2)]
BelowMinimum,
#[codec(index = 3)]
CannotCreate,
#[codec(index = 4)]
UnknownAsset,
#[codec(index = 5)]
Frozen,
#[codec(index = 6)]
Unsupported,
#[codec(index = 7)]
CannotCreateHold,
#[codec(index = 8)]
NotExpendable,
#[codec(index = 9)]
Blocked,
}
#[derive(
:: subxt :: ext :: codec :: Decode,
:: subxt :: ext :: codec :: Encode,
:: subxt :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
# [codec (crate = :: subxt :: ext :: codec)]
#[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
pub enum TransactionalError {
#[codec(index = 0)]
LimitReached,
#[codec(index = 1)]
NoLayer,
}
}
pub mod sp_version {
use super::runtime_types;
#[derive(
:: subxt :: ext :: codec :: Decode,
:: subxt :: ext :: codec :: Encode,
:: subxt :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
# [codec (crate = :: subxt :: ext :: codec)]
#[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
pub struct RuntimeVersion {
pub spec_name: ::std::string::String,
pub impl_name: ::std::string::String,
pub authoring_version: ::core::primitive::u32,
pub spec_version: ::core::primitive::u32,
pub impl_version: ::core::primitive::u32,
pub apis:
::std::vec::Vec<([::core::primitive::u8; 8usize], ::core::primitive::u32)>,
pub transaction_version: ::core::primitive::u32,
pub state_version: ::core::primitive::u8,
}
}
pub mod sp_weights {
use super::runtime_types;
pub mod weight_v2 {
use super::runtime_types;
#[derive(
:: subxt :: ext :: codec :: Decode,
:: subxt :: ext :: codec :: Encode,
:: subxt :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
# [codec (crate = :: subxt :: ext :: codec)]
#[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
pub struct Weight {
#[codec(compact)]
pub ref_time: ::core::primitive::u64,
#[codec(compact)]
pub proof_size: ::core::primitive::u64,
}
}
#[derive(
:: subxt :: ext :: codec :: Decode,
:: subxt :: ext :: codec :: Encode,
:: subxt :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
# [codec (crate = :: subxt :: ext :: codec)]
#[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
pub struct RuntimeDbWeight {
pub read: ::core::primitive::u64,
pub write: ::core::primitive::u64,
}
}
}
}