#[allow(dead_code, unused_imports, non_camel_case_types, unreachable_patterns)]
#[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; 21usize] = [
"System",
"Timestamp",
"Balances",
"TransactionPayment",
"QPoW",
"MiningRewards",
"Preimage",
"Scheduler",
"Utility",
"Referenda",
"ReversibleTransfers",
"ConvictionVoting",
"TechCollective",
"TechReferenda",
"TreasuryPallet",
"Recovery",
"Assets",
"AssetsHolder",
"Multisig",
"Wormhole",
"ZkTree",
];
pub static RUNTIME_APIS: [&str; 12usize] = [
"Core",
"Metadata",
"BlockBuilder",
"TaggedTransactionQueue",
"OffchainWorkerApi",
"SessionKeys",
"QPoWApi",
"ZkTreeApi",
"AccountNonceApi",
"TransactionPaymentApi",
"TransactionPaymentCallApi",
"GenesisBuilder",
];
#[doc = r" The error type that is 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::quantus_runtime::RuntimeEvent;
#[doc = r" The outer extrinsic enum."]
pub type Call = runtime_types::quantus_runtime::RuntimeCall;
#[doc = r" The outer error enum represents the DispatchError's Module variant."]
pub type Error = runtime_types::quantus_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, runtime_types};
use ::subxt::ext::subxt_core::ext::codec::Encode;
pub struct RuntimeApi;
impl RuntimeApi {
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 session_keys(&self) -> session_keys::SessionKeys {
session_keys::SessionKeys
}
pub fn q_po_w_api(&self) -> q_po_w_api::QPoWApi {
q_po_w_api::QPoWApi
}
pub fn zk_tree_api(&self) -> zk_tree_api::ZkTreeApi {
zk_tree_api::ZkTreeApi
}
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 fn genesis_builder(&self) -> genesis_builder::GenesisBuilder {
genesis_builder::GenesisBuilder
}
}
pub mod core {
use super::{root_mod, 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::ext::subxt_core::runtime_api::payload::StaticPayload<
types::Version,
types::version::output::Output,
> {
::subxt::ext::subxt_core::runtime_api::payload::StaticPayload::new_static(
"Core",
"version",
types::Version {},
[
79u8, 22u8, 137u8, 4u8, 40u8, 64u8, 30u8, 180u8, 49u8, 222u8, 114u8,
125u8, 44u8, 25u8, 33u8, 152u8, 98u8, 42u8, 72u8, 178u8, 240u8, 103u8,
34u8, 187u8, 81u8, 161u8, 183u8, 6u8, 120u8, 2u8, 146u8, 0u8,
],
)
}
#[doc = " Execute the given block."]
pub fn execute_block(
&self,
block: types::execute_block::Block,
) -> ::subxt::ext::subxt_core::runtime_api::payload::StaticPayload<
types::ExecuteBlock,
types::execute_block::output::Output,
> {
::subxt::ext::subxt_core::runtime_api::payload::StaticPayload::new_static(
"Core",
"execute_block",
types::ExecuteBlock { block },
[
180u8, 202u8, 143u8, 166u8, 125u8, 9u8, 195u8, 179u8, 198u8, 129u8,
73u8, 45u8, 225u8, 244u8, 234u8, 234u8, 177u8, 61u8, 241u8, 26u8, 75u8,
53u8, 218u8, 66u8, 56u8, 46u8, 81u8, 29u8, 120u8, 51u8, 249u8, 42u8,
],
)
}
#[doc = " Initialize a block with the given header and return the runtime executive mode."]
pub fn initialize_block(
&self,
header: types::initialize_block::Header,
) -> ::subxt::ext::subxt_core::runtime_api::payload::StaticPayload<
types::InitializeBlock,
types::initialize_block::output::Output,
> {
::subxt::ext::subxt_core::runtime_api::payload::StaticPayload::new_static(
"Core",
"initialize_block",
types::InitializeBlock { header },
[
147u8, 82u8, 214u8, 164u8, 66u8, 79u8, 193u8, 216u8, 89u8, 29u8, 83u8,
182u8, 99u8, 81u8, 244u8, 247u8, 88u8, 158u8, 251u8, 224u8, 6u8, 76u8,
247u8, 87u8, 83u8, 98u8, 177u8, 188u8, 190u8, 219u8, 179u8, 107u8,
],
)
}
}
pub mod types {
use super::runtime_types;
pub mod version {
use super::runtime_types;
pub mod output {
use super::runtime_types;
pub type Output = runtime_types::sp_version::RuntimeVersion;
}
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode"
)]
pub struct Version {}
pub mod execute_block {
use super::runtime_types;
pub type Block = runtime_types :: sp_runtime :: generic :: block :: LazyBlock < runtime_types :: qp_header :: Header < :: core :: primitive :: u32 > , :: subxt :: ext :: subxt_core :: utils :: UncheckedExtrinsic < :: subxt :: ext :: subxt_core :: utils :: MultiAddress < :: subxt :: ext :: subxt_core :: utils :: AccountId32 , () > , runtime_types :: quantus_runtime :: RuntimeCall , runtime_types :: qp_dilithium_crypto :: types :: DilithiumSignatureScheme , (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 , runtime_types :: frame_metadata_hash_extension :: CheckMetadataHash , runtime_types :: quantus_runtime :: transaction_extensions :: ReversibleTransactionExtension , runtime_types :: quantus_runtime :: transaction_extensions :: WormholeProofRecorderExtension ,) > > ;
pub mod output {
use super::runtime_types;
pub type Output = ();
}
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode"
)]
pub struct ExecuteBlock {
pub block: execute_block::Block,
}
pub mod initialize_block {
use super::runtime_types;
pub type Header = runtime_types::qp_header::Header<::core::primitive::u32>;
pub mod output {
use super::runtime_types;
pub type Output = runtime_types::sp_runtime::ExtrinsicInclusionMode;
}
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode"
)]
pub struct InitializeBlock {
pub header: initialize_block::Header,
}
}
}
pub mod metadata {
use super::{root_mod, 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::ext::subxt_core::runtime_api::payload::StaticPayload<
types::Metadata,
types::metadata::output::Output,
> {
::subxt::ext::subxt_core::runtime_api::payload::StaticPayload::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: types::metadata_at_version::Version,
) -> ::subxt::ext::subxt_core::runtime_api::payload::StaticPayload<
types::MetadataAtVersion,
types::metadata_at_version::output::Output,
> {
::subxt::ext::subxt_core::runtime_api::payload::StaticPayload::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::ext::subxt_core::runtime_api::payload::StaticPayload<
types::MetadataVersions,
types::metadata_versions::output::Output,
> {
::subxt::ext::subxt_core::runtime_api::payload::StaticPayload::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;
pub mod metadata {
use super::runtime_types;
pub mod output {
use super::runtime_types;
pub type Output = runtime_types::sp_core::OpaqueMetadata;
}
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode"
)]
pub struct Metadata {}
pub mod metadata_at_version {
use super::runtime_types;
pub type Version = ::core::primitive::u32;
pub mod output {
use super::runtime_types;
pub type Output =
::core::option::Option<runtime_types::sp_core::OpaqueMetadata>;
}
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode"
)]
pub struct MetadataAtVersion {
pub version: metadata_at_version::Version,
}
pub mod metadata_versions {
use super::runtime_types;
pub mod output {
use super::runtime_types;
pub type Output =
::subxt::ext::subxt_core::alloc::vec::Vec<::core::primitive::u32>;
}
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode"
)]
pub struct MetadataVersions {}
}
}
pub mod block_builder {
use super::{root_mod, 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: types::apply_extrinsic::Extrinsic,
) -> ::subxt::ext::subxt_core::runtime_api::payload::StaticPayload<
types::ApplyExtrinsic,
types::apply_extrinsic::output::Output,
> {
::subxt::ext::subxt_core::runtime_api::payload::StaticPayload::new_static(
"BlockBuilder",
"apply_extrinsic",
types::ApplyExtrinsic { extrinsic },
[
192u8, 184u8, 199u8, 4u8, 85u8, 136u8, 214u8, 205u8, 29u8, 29u8, 98u8,
145u8, 172u8, 92u8, 168u8, 161u8, 150u8, 133u8, 100u8, 243u8, 100u8,
100u8, 118u8, 28u8, 104u8, 82u8, 93u8, 63u8, 79u8, 36u8, 149u8, 144u8,
],
)
}
#[doc = " Finish the current block."]
pub fn finalize_block(
&self,
) -> ::subxt::ext::subxt_core::runtime_api::payload::StaticPayload<
types::FinalizeBlock,
types::finalize_block::output::Output,
> {
::subxt::ext::subxt_core::runtime_api::payload::StaticPayload::new_static(
"BlockBuilder",
"finalize_block",
types::FinalizeBlock {},
[
183u8, 30u8, 223u8, 196u8, 0u8, 182u8, 94u8, 4u8, 106u8, 92u8, 190u8,
77u8, 139u8, 95u8, 162u8, 171u8, 99u8, 168u8, 70u8, 165u8, 175u8,
228u8, 97u8, 27u8, 25u8, 141u8, 244u8, 217u8, 5u8, 95u8, 49u8, 12u8,
],
)
}
#[doc = " Generate inherent extrinsics. The inherent data will vary from chain to chain."]
pub fn inherent_extrinsics(
&self,
inherent: types::inherent_extrinsics::Inherent,
) -> ::subxt::ext::subxt_core::runtime_api::payload::StaticPayload<
types::InherentExtrinsics,
types::inherent_extrinsics::output::Output,
> {
::subxt::ext::subxt_core::runtime_api::payload::StaticPayload::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: types::check_inherents::Block,
data: types::check_inherents::Data,
) -> ::subxt::ext::subxt_core::runtime_api::payload::StaticPayload<
types::CheckInherents,
types::check_inherents::output::Output,
> {
::subxt::ext::subxt_core::runtime_api::payload::StaticPayload::new_static(
"BlockBuilder",
"check_inherents",
types::CheckInherents { block, data },
[
137u8, 14u8, 89u8, 87u8, 225u8, 80u8, 136u8, 255u8, 242u8, 41u8, 90u8,
91u8, 140u8, 192u8, 112u8, 230u8, 46u8, 19u8, 149u8, 104u8, 153u8,
122u8, 92u8, 215u8, 161u8, 88u8, 142u8, 248u8, 156u8, 159u8, 203u8,
132u8,
],
)
}
}
pub mod types {
use super::runtime_types;
pub mod apply_extrinsic {
use super::runtime_types;
pub type Extrinsic = :: subxt :: ext :: subxt_core :: utils :: UncheckedExtrinsic < :: subxt :: ext :: subxt_core :: utils :: MultiAddress < :: subxt :: ext :: subxt_core :: utils :: AccountId32 , () > , runtime_types :: quantus_runtime :: RuntimeCall , runtime_types :: qp_dilithium_crypto :: types :: DilithiumSignatureScheme , (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 , runtime_types :: frame_metadata_hash_extension :: CheckMetadataHash , runtime_types :: quantus_runtime :: transaction_extensions :: ReversibleTransactionExtension , runtime_types :: quantus_runtime :: transaction_extensions :: WormholeProofRecorderExtension ,) > ;
pub mod output {
use super::runtime_types;
pub type Output = :: core :: result :: Result < :: core :: result :: Result < () , runtime_types :: sp_runtime :: DispatchError > , runtime_types :: sp_runtime :: transaction_validity :: TransactionValidityError > ;
}
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode"
)]
pub struct ApplyExtrinsic {
pub extrinsic: apply_extrinsic::Extrinsic,
}
pub mod finalize_block {
use super::runtime_types;
pub mod output {
use super::runtime_types;
pub type Output = runtime_types::qp_header::Header<::core::primitive::u32>;
}
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode"
)]
pub struct FinalizeBlock {}
pub mod inherent_extrinsics {
use super::runtime_types;
pub type Inherent = runtime_types::sp_inherents::InherentData;
pub mod output {
use super::runtime_types;
pub type Output = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: subxt :: ext :: subxt_core :: utils :: UncheckedExtrinsic < :: subxt :: ext :: subxt_core :: utils :: MultiAddress < :: subxt :: ext :: subxt_core :: utils :: AccountId32 , () > , runtime_types :: quantus_runtime :: RuntimeCall , runtime_types :: qp_dilithium_crypto :: types :: DilithiumSignatureScheme , (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 , runtime_types :: frame_metadata_hash_extension :: CheckMetadataHash , runtime_types :: quantus_runtime :: transaction_extensions :: ReversibleTransactionExtension , runtime_types :: quantus_runtime :: transaction_extensions :: WormholeProofRecorderExtension ,) > > ;
}
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode"
)]
pub struct InherentExtrinsics {
pub inherent: inherent_extrinsics::Inherent,
}
pub mod check_inherents {
use super::runtime_types;
pub type Block = runtime_types :: sp_runtime :: generic :: block :: LazyBlock < runtime_types :: qp_header :: Header < :: core :: primitive :: u32 > , :: subxt :: ext :: subxt_core :: utils :: UncheckedExtrinsic < :: subxt :: ext :: subxt_core :: utils :: MultiAddress < :: subxt :: ext :: subxt_core :: utils :: AccountId32 , () > , runtime_types :: quantus_runtime :: RuntimeCall , runtime_types :: qp_dilithium_crypto :: types :: DilithiumSignatureScheme , (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 , runtime_types :: frame_metadata_hash_extension :: CheckMetadataHash , runtime_types :: quantus_runtime :: transaction_extensions :: ReversibleTransactionExtension , runtime_types :: quantus_runtime :: transaction_extensions :: WormholeProofRecorderExtension ,) > > ;
pub type Data = runtime_types::sp_inherents::InherentData;
pub mod output {
use super::runtime_types;
pub type Output = runtime_types::sp_inherents::CheckInherentsResult;
}
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode"
)]
pub struct CheckInherents {
pub block: check_inherents::Block,
pub data: check_inherents::Data,
}
}
}
pub mod tagged_transaction_queue {
use super::{root_mod, 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: types::validate_transaction::Source,
tx: types::validate_transaction::Tx,
block_hash: types::validate_transaction::BlockHash,
) -> ::subxt::ext::subxt_core::runtime_api::payload::StaticPayload<
types::ValidateTransaction,
types::validate_transaction::output::Output,
> {
::subxt::ext::subxt_core::runtime_api::payload::StaticPayload::new_static(
"TaggedTransactionQueue",
"validate_transaction",
types::ValidateTransaction { source, tx, block_hash },
[
19u8, 53u8, 170u8, 115u8, 75u8, 121u8, 231u8, 50u8, 199u8, 181u8,
243u8, 170u8, 163u8, 224u8, 213u8, 134u8, 206u8, 207u8, 88u8, 242u8,
80u8, 139u8, 233u8, 87u8, 175u8, 249u8, 178u8, 169u8, 255u8, 171u8,
4u8, 125u8,
],
)
}
}
pub mod types {
use super::runtime_types;
pub mod validate_transaction {
use super::runtime_types;
pub type Source =
runtime_types::sp_runtime::transaction_validity::TransactionSource;
pub type Tx = :: subxt :: ext :: subxt_core :: utils :: UncheckedExtrinsic < :: subxt :: ext :: subxt_core :: utils :: MultiAddress < :: subxt :: ext :: subxt_core :: utils :: AccountId32 , () > , runtime_types :: quantus_runtime :: RuntimeCall , runtime_types :: qp_dilithium_crypto :: types :: DilithiumSignatureScheme , (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 , runtime_types :: frame_metadata_hash_extension :: CheckMetadataHash , runtime_types :: quantus_runtime :: transaction_extensions :: ReversibleTransactionExtension , runtime_types :: quantus_runtime :: transaction_extensions :: WormholeProofRecorderExtension ,) > ;
pub type BlockHash = ::subxt::ext::subxt_core::utils::H256;
pub mod output {
use super::runtime_types;
pub type Output = :: core :: result :: Result < runtime_types :: sp_runtime :: transaction_validity :: ValidTransaction , runtime_types :: sp_runtime :: transaction_validity :: TransactionValidityError > ;
}
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode"
)]
pub struct ValidateTransaction {
pub source: validate_transaction::Source,
pub tx: validate_transaction::Tx,
pub block_hash: validate_transaction::BlockHash,
}
}
}
pub mod offchain_worker_api {
use super::{root_mod, 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: types::offchain_worker::Header,
) -> ::subxt::ext::subxt_core::runtime_api::payload::StaticPayload<
types::OffchainWorker,
types::offchain_worker::output::Output,
> {
::subxt::ext::subxt_core::runtime_api::payload::StaticPayload::new_static(
"OffchainWorkerApi",
"offchain_worker",
types::OffchainWorker { header },
[
143u8, 60u8, 69u8, 66u8, 143u8, 216u8, 150u8, 58u8, 130u8, 32u8, 160u8,
205u8, 92u8, 9u8, 114u8, 94u8, 74u8, 160u8, 105u8, 199u8, 246u8, 174u8,
187u8, 111u8, 225u8, 121u8, 82u8, 29u8, 225u8, 115u8, 119u8, 94u8,
],
)
}
}
pub mod types {
use super::runtime_types;
pub mod offchain_worker {
use super::runtime_types;
pub type Header = runtime_types::qp_header::Header<::core::primitive::u32>;
pub mod output {
use super::runtime_types;
pub type Output = ();
}
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode"
)]
pub struct OffchainWorker {
pub header: offchain_worker::Header,
}
}
}
pub mod session_keys {
use super::{root_mod, 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: types::generate_session_keys::Seed,
) -> ::subxt::ext::subxt_core::runtime_api::payload::StaticPayload<
types::GenerateSessionKeys,
types::generate_session_keys::output::Output,
> {
::subxt::ext::subxt_core::runtime_api::payload::StaticPayload::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: types::decode_session_keys::Encoded,
) -> ::subxt::ext::subxt_core::runtime_api::payload::StaticPayload<
types::DecodeSessionKeys,
types::decode_session_keys::output::Output,
> {
::subxt::ext::subxt_core::runtime_api::payload::StaticPayload::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;
pub mod generate_session_keys {
use super::runtime_types;
pub type Seed = ::core::option::Option<
::subxt::ext::subxt_core::alloc::vec::Vec<::core::primitive::u8>,
>;
pub mod output {
use super::runtime_types;
pub type Output =
::subxt::ext::subxt_core::alloc::vec::Vec<::core::primitive::u8>;
}
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode"
)]
pub struct GenerateSessionKeys {
pub seed: generate_session_keys::Seed,
}
pub mod decode_session_keys {
use super::runtime_types;
pub type Encoded =
::subxt::ext::subxt_core::alloc::vec::Vec<::core::primitive::u8>;
pub mod output {
use super::runtime_types;
pub type Output = ::core::option::Option<
::subxt::ext::subxt_core::alloc::vec::Vec<(
::subxt::ext::subxt_core::alloc::vec::Vec<::core::primitive::u8>,
runtime_types::sp_core::crypto::KeyTypeId,
)>,
>;
}
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode"
)]
pub struct DecodeSessionKeys {
pub encoded: decode_session_keys::Encoded,
}
}
}
pub mod q_po_w_api {
use super::{root_mod, runtime_types};
pub struct QPoWApi;
impl QPoWApi {
#[doc = " Get the max possible reorg depth"]
pub fn get_max_reorg_depth(
&self,
) -> ::subxt::ext::subxt_core::runtime_api::payload::StaticPayload<
types::GetMaxReorgDepth,
types::get_max_reorg_depth::output::Output,
> {
::subxt::ext::subxt_core::runtime_api::payload::StaticPayload::new_static(
"QPoWApi",
"get_max_reorg_depth",
types::GetMaxReorgDepth {},
[
95u8, 253u8, 190u8, 31u8, 75u8, 182u8, 224u8, 166u8, 3u8, 9u8, 29u8,
200u8, 89u8, 143u8, 104u8, 126u8, 178u8, 83u8, 156u8, 109u8, 140u8,
177u8, 70u8, 113u8, 23u8, 182u8, 236u8, 236u8, 111u8, 145u8, 237u8,
148u8,
],
)
}
#[doc = " Get the max possible difficulty for work calculation"]
pub fn get_max_difficulty(
&self,
) -> ::subxt::ext::subxt_core::runtime_api::payload::StaticPayload<
types::GetMaxDifficulty,
types::get_max_difficulty::output::Output,
> {
::subxt::ext::subxt_core::runtime_api::payload::StaticPayload::new_static(
"QPoWApi",
"get_max_difficulty",
types::GetMaxDifficulty {},
[
80u8, 167u8, 109u8, 28u8, 239u8, 113u8, 166u8, 222u8, 53u8, 68u8,
129u8, 222u8, 208u8, 165u8, 8u8, 147u8, 243u8, 80u8, 207u8, 207u8,
108u8, 203u8, 208u8, 95u8, 34u8, 193u8, 15u8, 61u8, 116u8, 109u8,
144u8, 217u8,
],
)
}
#[doc = " Get the current difficulty (max_distance / distance_threshold)"]
pub fn get_difficulty(
&self,
) -> ::subxt::ext::subxt_core::runtime_api::payload::StaticPayload<
types::GetDifficulty,
types::get_difficulty::output::Output,
> {
::subxt::ext::subxt_core::runtime_api::payload::StaticPayload::new_static(
"QPoWApi",
"get_difficulty",
types::GetDifficulty {},
[
180u8, 101u8, 92u8, 73u8, 15u8, 146u8, 167u8, 45u8, 127u8, 230u8,
148u8, 6u8, 174u8, 121u8, 38u8, 103u8, 46u8, 5u8, 235u8, 20u8, 133u8,
207u8, 67u8, 211u8, 25u8, 112u8, 83u8, 196u8, 118u8, 66u8, 118u8,
179u8,
],
)
}
#[doc = " Get last block timestamp"]
pub fn get_last_block_time(
&self,
) -> ::subxt::ext::subxt_core::runtime_api::payload::StaticPayload<
types::GetLastBlockTime,
types::get_last_block_time::output::Output,
> {
::subxt::ext::subxt_core::runtime_api::payload::StaticPayload::new_static(
"QPoWApi",
"get_last_block_time",
types::GetLastBlockTime {},
[
207u8, 192u8, 227u8, 7u8, 154u8, 92u8, 133u8, 111u8, 21u8, 9u8, 21u8,
171u8, 235u8, 117u8, 143u8, 199u8, 19u8, 67u8, 76u8, 35u8, 220u8, 32u8,
221u8, 166u8, 0u8, 234u8, 107u8, 217u8, 122u8, 89u8, 91u8, 144u8,
],
)
}
#[doc = " Get last block mining time"]
pub fn get_last_block_duration(
&self,
) -> ::subxt::ext::subxt_core::runtime_api::payload::StaticPayload<
types::GetLastBlockDuration,
types::get_last_block_duration::output::Output,
> {
::subxt::ext::subxt_core::runtime_api::payload::StaticPayload::new_static(
"QPoWApi",
"get_last_block_duration",
types::GetLastBlockDuration {},
[
103u8, 98u8, 123u8, 21u8, 125u8, 171u8, 88u8, 46u8, 187u8, 94u8, 96u8,
238u8, 16u8, 122u8, 81u8, 108u8, 157u8, 204u8, 79u8, 43u8, 170u8,
235u8, 176u8, 238u8, 174u8, 235u8, 47u8, 152u8, 167u8, 245u8, 243u8,
157u8,
],
)
}
pub fn get_chain_height(
&self,
) -> ::subxt::ext::subxt_core::runtime_api::payload::StaticPayload<
types::GetChainHeight,
types::get_chain_height::output::Output,
> {
::subxt::ext::subxt_core::runtime_api::payload::StaticPayload::new_static(
"QPoWApi",
"get_chain_height",
types::GetChainHeight {},
[
249u8, 203u8, 37u8, 234u8, 170u8, 203u8, 200u8, 147u8, 30u8, 193u8,
91u8, 97u8, 96u8, 104u8, 39u8, 96u8, 171u8, 69u8, 119u8, 30u8, 112u8,
81u8, 132u8, 33u8, 69u8, 168u8, 70u8, 33u8, 196u8, 16u8, 215u8, 113u8,
],
)
}
pub fn verify_nonce_on_import_block(
&self,
block_hash: types::verify_nonce_on_import_block::BlockHash,
nonce: types::verify_nonce_on_import_block::Nonce,
) -> ::subxt::ext::subxt_core::runtime_api::payload::StaticPayload<
types::VerifyNonceOnImportBlock,
types::verify_nonce_on_import_block::output::Output,
> {
::subxt::ext::subxt_core::runtime_api::payload::StaticPayload::new_static(
"QPoWApi",
"verify_nonce_on_import_block",
types::VerifyNonceOnImportBlock { block_hash, nonce },
[
178u8, 216u8, 20u8, 254u8, 253u8, 202u8, 63u8, 238u8, 164u8, 135u8,
163u8, 28u8, 170u8, 44u8, 183u8, 157u8, 211u8, 62u8, 4u8, 77u8, 30u8,
32u8, 68u8, 166u8, 42u8, 161u8, 111u8, 79u8, 54u8, 54u8, 40u8, 15u8,
],
)
}
pub fn verify_nonce_local_mining(
&self,
block_hash: types::verify_nonce_local_mining::BlockHash,
nonce: types::verify_nonce_local_mining::Nonce,
) -> ::subxt::ext::subxt_core::runtime_api::payload::StaticPayload<
types::VerifyNonceLocalMining,
types::verify_nonce_local_mining::output::Output,
> {
::subxt::ext::subxt_core::runtime_api::payload::StaticPayload::new_static(
"QPoWApi",
"verify_nonce_local_mining",
types::VerifyNonceLocalMining { block_hash, nonce },
[
10u8, 191u8, 243u8, 4u8, 31u8, 132u8, 202u8, 157u8, 183u8, 189u8, 49u8,
76u8, 201u8, 182u8, 52u8, 197u8, 34u8, 248u8, 253u8, 226u8, 64u8,
100u8, 108u8, 2u8, 119u8, 85u8, 184u8, 96u8, 25u8, 156u8, 108u8, 240u8,
],
)
}
pub fn verify_and_get_achieved_difficulty(
&self,
block_hash: types::verify_and_get_achieved_difficulty::BlockHash,
nonce: types::verify_and_get_achieved_difficulty::Nonce,
) -> ::subxt::ext::subxt_core::runtime_api::payload::StaticPayload<
types::VerifyAndGetAchievedDifficulty,
types::verify_and_get_achieved_difficulty::output::Output,
> {
::subxt::ext::subxt_core::runtime_api::payload::StaticPayload::new_static(
"QPoWApi",
"verify_and_get_achieved_difficulty",
types::VerifyAndGetAchievedDifficulty { block_hash, nonce },
[
200u8, 115u8, 180u8, 31u8, 14u8, 76u8, 235u8, 83u8, 133u8, 52u8, 192u8,
59u8, 52u8, 48u8, 224u8, 34u8, 33u8, 53u8, 218u8, 132u8, 191u8, 10u8,
17u8, 243u8, 227u8, 162u8, 171u8, 240u8, 49u8, 217u8, 172u8, 240u8,
],
)
}
}
pub mod types {
use super::runtime_types;
pub mod get_max_reorg_depth {
use super::runtime_types;
pub mod output {
use super::runtime_types;
pub type Output = ::core::primitive::u32;
}
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode"
)]
pub struct GetMaxReorgDepth {}
pub mod get_max_difficulty {
use super::runtime_types;
pub mod output {
use super::runtime_types;
pub type Output = runtime_types::primitive_types::U512;
}
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode"
)]
pub struct GetMaxDifficulty {}
pub mod get_difficulty {
use super::runtime_types;
pub mod output {
use super::runtime_types;
pub type Output = runtime_types::primitive_types::U512;
}
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode"
)]
pub struct GetDifficulty {}
pub mod get_last_block_time {
use super::runtime_types;
pub mod output {
use super::runtime_types;
pub type Output = ::core::primitive::u64;
}
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode"
)]
pub struct GetLastBlockTime {}
pub mod get_last_block_duration {
use super::runtime_types;
pub mod output {
use super::runtime_types;
pub type Output = ::core::primitive::u64;
}
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode"
)]
pub struct GetLastBlockDuration {}
pub mod get_chain_height {
use super::runtime_types;
pub mod output {
use super::runtime_types;
pub type Output = ::core::primitive::u32;
}
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode"
)]
pub struct GetChainHeight {}
pub mod verify_nonce_on_import_block {
use super::runtime_types;
pub type BlockHash = [::core::primitive::u8; 32usize];
pub type Nonce = [::core::primitive::u8; 64usize];
pub mod output {
use super::runtime_types;
pub type Output = ::core::primitive::bool;
}
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode"
)]
pub struct VerifyNonceOnImportBlock {
pub block_hash: verify_nonce_on_import_block::BlockHash,
pub nonce: verify_nonce_on_import_block::Nonce,
}
pub mod verify_nonce_local_mining {
use super::runtime_types;
pub type BlockHash = [::core::primitive::u8; 32usize];
pub type Nonce = [::core::primitive::u8; 64usize];
pub mod output {
use super::runtime_types;
pub type Output = ::core::primitive::bool;
}
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode"
)]
pub struct VerifyNonceLocalMining {
pub block_hash: verify_nonce_local_mining::BlockHash,
pub nonce: verify_nonce_local_mining::Nonce,
}
pub mod verify_and_get_achieved_difficulty {
use super::runtime_types;
pub type BlockHash = [::core::primitive::u8; 32usize];
pub type Nonce = [::core::primitive::u8; 64usize];
pub mod output {
use super::runtime_types;
pub type Output =
(::core::primitive::bool, runtime_types::primitive_types::U512);
}
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode"
)]
pub struct VerifyAndGetAchievedDifficulty {
pub block_hash: verify_and_get_achieved_difficulty::BlockHash,
pub nonce: verify_and_get_achieved_difficulty::Nonce,
}
}
}
pub mod zk_tree_api {
use super::{root_mod, runtime_types};
#[doc = " Runtime API for the ZK Tree pallet."]
#[doc = ""]
#[doc = " Provides methods to query the ZK Merkle tree state and generate proofs."]
pub struct ZkTreeApi;
impl ZkTreeApi {
#[doc = " Get the current root hash of the ZK tree."]
pub fn get_root(
&self,
) -> ::subxt::ext::subxt_core::runtime_api::payload::StaticPayload<
types::GetRoot,
types::get_root::output::Output,
> {
::subxt::ext::subxt_core::runtime_api::payload::StaticPayload::new_static(
"ZkTreeApi",
"get_root",
types::GetRoot {},
[
198u8, 156u8, 112u8, 8u8, 86u8, 226u8, 81u8, 137u8, 207u8, 161u8,
181u8, 99u8, 42u8, 221u8, 134u8, 50u8, 205u8, 191u8, 124u8, 165u8,
174u8, 99u8, 193u8, 28u8, 46u8, 125u8, 2u8, 117u8, 173u8, 187u8, 243u8,
73u8,
],
)
}
#[doc = " Get the current number of leaves in the tree."]
pub fn get_leaf_count(
&self,
) -> ::subxt::ext::subxt_core::runtime_api::payload::StaticPayload<
types::GetLeafCount,
types::get_leaf_count::output::Output,
> {
::subxt::ext::subxt_core::runtime_api::payload::StaticPayload::new_static(
"ZkTreeApi",
"get_leaf_count",
types::GetLeafCount {},
[
1u8, 246u8, 191u8, 192u8, 156u8, 247u8, 209u8, 87u8, 187u8, 48u8, 98u8,
144u8, 34u8, 200u8, 186u8, 202u8, 176u8, 64u8, 93u8, 165u8, 103u8,
231u8, 77u8, 57u8, 52u8, 14u8, 213u8, 197u8, 118u8, 137u8, 64u8, 193u8,
],
)
}
#[doc = " Get the current depth of the tree."]
pub fn get_depth(
&self,
) -> ::subxt::ext::subxt_core::runtime_api::payload::StaticPayload<
types::GetDepth,
types::get_depth::output::Output,
> {
::subxt::ext::subxt_core::runtime_api::payload::StaticPayload::new_static(
"ZkTreeApi",
"get_depth",
types::GetDepth {},
[
251u8, 48u8, 136u8, 161u8, 26u8, 3u8, 205u8, 80u8, 135u8, 48u8, 176u8,
105u8, 254u8, 86u8, 79u8, 57u8, 70u8, 227u8, 26u8, 48u8, 228u8, 203u8,
109u8, 59u8, 3u8, 204u8, 30u8, 40u8, 113u8, 62u8, 123u8, 47u8,
],
)
}
#[doc = " Get a Merkle proof for a leaf at the given index."]
#[doc = ""]
#[doc = " Returns `None` if the leaf index is out of bounds."]
pub fn get_merkle_proof(
&self,
leaf_index: types::get_merkle_proof::LeafIndex,
) -> ::subxt::ext::subxt_core::runtime_api::payload::StaticPayload<
types::GetMerkleProof,
types::get_merkle_proof::output::Output,
> {
::subxt::ext::subxt_core::runtime_api::payload::StaticPayload::new_static(
"ZkTreeApi",
"get_merkle_proof",
types::GetMerkleProof { leaf_index },
[
74u8, 206u8, 166u8, 44u8, 235u8, 100u8, 174u8, 217u8, 16u8, 167u8,
180u8, 174u8, 192u8, 121u8, 153u8, 163u8, 204u8, 104u8, 52u8, 198u8,
44u8, 180u8, 144u8, 37u8, 216u8, 58u8, 175u8, 36u8, 50u8, 214u8, 66u8,
131u8,
],
)
}
}
pub mod types {
use super::runtime_types;
pub mod get_root {
use super::runtime_types;
pub mod output {
use super::runtime_types;
pub type Output = [::core::primitive::u8; 32usize];
}
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode"
)]
pub struct GetRoot {}
pub mod get_leaf_count {
use super::runtime_types;
pub mod output {
use super::runtime_types;
pub type Output = ::core::primitive::u64;
}
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode"
)]
pub struct GetLeafCount {}
pub mod get_depth {
use super::runtime_types;
pub mod output {
use super::runtime_types;
pub type Output = ::core::primitive::u8;
}
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode"
)]
pub struct GetDepth {}
pub mod get_merkle_proof {
use super::runtime_types;
pub type LeafIndex = ::core::primitive::u64;
pub mod output {
use super::runtime_types;
pub type Output =
::core::option::Option<runtime_types::pallet_zk_tree::ZkMerkleProofRpc>;
}
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode"
)]
pub struct GetMerkleProof {
pub leaf_index: get_merkle_proof::LeafIndex,
}
}
}
pub mod account_nonce_api {
use super::{root_mod, 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: types::account_nonce::Account,
) -> ::subxt::ext::subxt_core::runtime_api::payload::StaticPayload<
types::AccountNonce,
types::account_nonce::output::Output,
> {
::subxt::ext::subxt_core::runtime_api::payload::StaticPayload::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;
pub mod account_nonce {
use super::runtime_types;
pub type Account = ::subxt::ext::subxt_core::utils::AccountId32;
pub mod output {
use super::runtime_types;
pub type Output = ::core::primitive::u32;
}
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode"
)]
pub struct AccountNonce {
pub account: account_nonce::Account,
}
}
}
pub mod transaction_payment_api {
use super::{root_mod, runtime_types};
pub struct TransactionPaymentApi;
impl TransactionPaymentApi {
pub fn query_info(
&self,
uxt: types::query_info::Uxt,
len: types::query_info::Len,
) -> ::subxt::ext::subxt_core::runtime_api::payload::StaticPayload<
types::QueryInfo,
types::query_info::output::Output,
> {
::subxt::ext::subxt_core::runtime_api::payload::StaticPayload::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: types::query_fee_details::Uxt,
len: types::query_fee_details::Len,
) -> ::subxt::ext::subxt_core::runtime_api::payload::StaticPayload<
types::QueryFeeDetails,
types::query_fee_details::output::Output,
> {
::subxt::ext::subxt_core::runtime_api::payload::StaticPayload::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: types::query_weight_to_fee::Weight,
) -> ::subxt::ext::subxt_core::runtime_api::payload::StaticPayload<
types::QueryWeightToFee,
types::query_weight_to_fee::output::Output,
> {
::subxt::ext::subxt_core::runtime_api::payload::StaticPayload::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: types::query_length_to_fee::Length,
) -> ::subxt::ext::subxt_core::runtime_api::payload::StaticPayload<
types::QueryLengthToFee,
types::query_length_to_fee::output::Output,
> {
::subxt::ext::subxt_core::runtime_api::payload::StaticPayload::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;
pub mod query_info {
use super::runtime_types;
pub type Uxt = :: subxt :: ext :: subxt_core :: utils :: UncheckedExtrinsic < :: subxt :: ext :: subxt_core :: utils :: MultiAddress < :: subxt :: ext :: subxt_core :: utils :: AccountId32 , () > , runtime_types :: quantus_runtime :: RuntimeCall , runtime_types :: qp_dilithium_crypto :: types :: DilithiumSignatureScheme , (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 , runtime_types :: frame_metadata_hash_extension :: CheckMetadataHash , runtime_types :: quantus_runtime :: transaction_extensions :: ReversibleTransactionExtension , runtime_types :: quantus_runtime :: transaction_extensions :: WormholeProofRecorderExtension ,) > ;
pub type Len = ::core::primitive::u32;
pub mod output {
use super::runtime_types;
pub type Output =
runtime_types::pallet_transaction_payment::types::RuntimeDispatchInfo<
::core::primitive::u128,
runtime_types::sp_weights::weight_v2::Weight,
>;
}
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode"
)]
pub struct QueryInfo {
pub uxt: query_info::Uxt,
pub len: query_info::Len,
}
pub mod query_fee_details {
use super::runtime_types;
pub type Uxt = :: subxt :: ext :: subxt_core :: utils :: UncheckedExtrinsic < :: subxt :: ext :: subxt_core :: utils :: MultiAddress < :: subxt :: ext :: subxt_core :: utils :: AccountId32 , () > , runtime_types :: quantus_runtime :: RuntimeCall , runtime_types :: qp_dilithium_crypto :: types :: DilithiumSignatureScheme , (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 , runtime_types :: frame_metadata_hash_extension :: CheckMetadataHash , runtime_types :: quantus_runtime :: transaction_extensions :: ReversibleTransactionExtension , runtime_types :: quantus_runtime :: transaction_extensions :: WormholeProofRecorderExtension ,) > ;
pub type Len = ::core::primitive::u32;
pub mod output {
use super::runtime_types;
pub type Output =
runtime_types::pallet_transaction_payment::types::FeeDetails<
::core::primitive::u128,
>;
}
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode"
)]
pub struct QueryFeeDetails {
pub uxt: query_fee_details::Uxt,
pub len: query_fee_details::Len,
}
pub mod query_weight_to_fee {
use super::runtime_types;
pub type Weight = runtime_types::sp_weights::weight_v2::Weight;
pub mod output {
use super::runtime_types;
pub type Output = ::core::primitive::u128;
}
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode"
)]
pub struct QueryWeightToFee {
pub weight: query_weight_to_fee::Weight,
}
pub mod query_length_to_fee {
use super::runtime_types;
pub type Length = ::core::primitive::u32;
pub mod output {
use super::runtime_types;
pub type Output = ::core::primitive::u128;
}
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode"
)]
pub struct QueryLengthToFee {
pub length: query_length_to_fee::Length,
}
}
}
pub mod transaction_payment_call_api {
use super::{root_mod, 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: types::query_call_info::Call,
len: types::query_call_info::Len,
) -> ::subxt::ext::subxt_core::runtime_api::payload::StaticPayload<
types::QueryCallInfo,
types::query_call_info::output::Output,
> {
::subxt::ext::subxt_core::runtime_api::payload::StaticPayload::new_static(
"TransactionPaymentCallApi",
"query_call_info",
types::QueryCallInfo { call, len },
[
90u8, 202u8, 9u8, 88u8, 111u8, 175u8, 220u8, 96u8, 150u8, 13u8, 71u8,
123u8, 120u8, 157u8, 193u8, 172u8, 169u8, 180u8, 196u8, 6u8, 184u8,
18u8, 24u8, 97u8, 141u8, 50u8, 253u8, 167u8, 244u8, 99u8, 102u8, 235u8,
],
)
}
#[doc = " Query fee details of a given encoded `Call`."]
pub fn query_call_fee_details(
&self,
call: types::query_call_fee_details::Call,
len: types::query_call_fee_details::Len,
) -> ::subxt::ext::subxt_core::runtime_api::payload::StaticPayload<
types::QueryCallFeeDetails,
types::query_call_fee_details::output::Output,
> {
::subxt::ext::subxt_core::runtime_api::payload::StaticPayload::new_static(
"TransactionPaymentCallApi",
"query_call_fee_details",
types::QueryCallFeeDetails { call, len },
[
248u8, 32u8, 253u8, 238u8, 202u8, 178u8, 245u8, 211u8, 219u8, 2u8,
220u8, 116u8, 141u8, 73u8, 22u8, 47u8, 212u8, 17u8, 197u8, 149u8,
250u8, 160u8, 205u8, 101u8, 50u8, 121u8, 214u8, 31u8, 8u8, 161u8, 32u8,
91u8,
],
)
}
#[doc = " Query the output of the current `WeightToFee` given some input."]
pub fn query_weight_to_fee(
&self,
weight: types::query_weight_to_fee::Weight,
) -> ::subxt::ext::subxt_core::runtime_api::payload::StaticPayload<
types::QueryWeightToFee,
types::query_weight_to_fee::output::Output,
> {
::subxt::ext::subxt_core::runtime_api::payload::StaticPayload::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: types::query_length_to_fee::Length,
) -> ::subxt::ext::subxt_core::runtime_api::payload::StaticPayload<
types::QueryLengthToFee,
types::query_length_to_fee::output::Output,
> {
::subxt::ext::subxt_core::runtime_api::payload::StaticPayload::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;
pub mod query_call_info {
use super::runtime_types;
pub type Call = runtime_types::quantus_runtime::RuntimeCall;
pub type Len = ::core::primitive::u32;
pub mod output {
use super::runtime_types;
pub type Output =
runtime_types::pallet_transaction_payment::types::RuntimeDispatchInfo<
::core::primitive::u128,
runtime_types::sp_weights::weight_v2::Weight,
>;
}
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode"
)]
pub struct QueryCallInfo {
pub call: query_call_info::Call,
pub len: query_call_info::Len,
}
pub mod query_call_fee_details {
use super::runtime_types;
pub type Call = runtime_types::quantus_runtime::RuntimeCall;
pub type Len = ::core::primitive::u32;
pub mod output {
use super::runtime_types;
pub type Output =
runtime_types::pallet_transaction_payment::types::FeeDetails<
::core::primitive::u128,
>;
}
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode"
)]
pub struct QueryCallFeeDetails {
pub call: query_call_fee_details::Call,
pub len: query_call_fee_details::Len,
}
pub mod query_weight_to_fee {
use super::runtime_types;
pub type Weight = runtime_types::sp_weights::weight_v2::Weight;
pub mod output {
use super::runtime_types;
pub type Output = ::core::primitive::u128;
}
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode"
)]
pub struct QueryWeightToFee {
pub weight: query_weight_to_fee::Weight,
}
pub mod query_length_to_fee {
use super::runtime_types;
pub type Length = ::core::primitive::u32;
pub mod output {
use super::runtime_types;
pub type Output = ::core::primitive::u128;
}
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode"
)]
pub struct QueryLengthToFee {
pub length: query_length_to_fee::Length,
}
}
}
pub mod genesis_builder {
use super::{root_mod, runtime_types};
#[doc = " API to interact with `RuntimeGenesisConfig` for the runtime"]
pub struct GenesisBuilder;
impl GenesisBuilder {
#[doc = " Build `RuntimeGenesisConfig` from a JSON blob not using any defaults and store it in the"]
#[doc = " storage."]
#[doc = ""]
#[doc = " In the case of a FRAME-based runtime, this function deserializes the full"]
#[doc = " `RuntimeGenesisConfig` from the given JSON blob and puts it into the storage. If the"]
#[doc = " provided JSON blob is incorrect or incomplete or the deserialization fails, an error"]
#[doc = " is returned."]
#[doc = ""]
#[doc = " Please note that provided JSON blob must contain all `RuntimeGenesisConfig` fields, no"]
#[doc = " defaults will be used."]
pub fn build_state(
&self,
json: types::build_state::Json,
) -> ::subxt::ext::subxt_core::runtime_api::payload::StaticPayload<
types::BuildState,
types::build_state::output::Output,
> {
::subxt::ext::subxt_core::runtime_api::payload::StaticPayload::new_static(
"GenesisBuilder",
"build_state",
types::BuildState { json },
[
203u8, 233u8, 104u8, 116u8, 111u8, 131u8, 201u8, 235u8, 117u8, 116u8,
140u8, 185u8, 93u8, 25u8, 155u8, 210u8, 56u8, 49u8, 23u8, 32u8, 253u8,
92u8, 149u8, 241u8, 85u8, 245u8, 137u8, 45u8, 209u8, 189u8, 81u8, 2u8,
],
)
}
#[doc = " Returns a JSON blob representation of the built-in `RuntimeGenesisConfig` identified by"]
#[doc = " `id`."]
#[doc = ""]
#[doc = " If `id` is `None` the function should return JSON blob representation of the default"]
#[doc = " `RuntimeGenesisConfig` struct of the runtime. Implementation must provide default"]
#[doc = " `RuntimeGenesisConfig`."]
#[doc = ""]
#[doc = " Otherwise function returns a JSON representation of the built-in, named"]
#[doc = " `RuntimeGenesisConfig` preset identified by `id`, or `None` if such preset does not"]
#[doc = " exist. Returned `Vec<u8>` contains bytes of JSON blob (patch) which comprises a list of"]
#[doc = " (potentially nested) key-value pairs that are intended for customizing the default"]
#[doc = " runtime genesis config. The patch shall be merged (rfc7386) with the JSON representation"]
#[doc = " of the default `RuntimeGenesisConfig` to create a comprehensive genesis config that can"]
#[doc = " be used in `build_state` method."]
pub fn get_preset(
&self,
id: types::get_preset::Id,
) -> ::subxt::ext::subxt_core::runtime_api::payload::StaticPayload<
types::GetPreset,
types::get_preset::output::Output,
> {
::subxt::ext::subxt_core::runtime_api::payload::StaticPayload::new_static(
"GenesisBuilder",
"get_preset",
types::GetPreset { id },
[
43u8, 153u8, 23u8, 52u8, 113u8, 161u8, 227u8, 122u8, 169u8, 135u8,
119u8, 8u8, 128u8, 33u8, 143u8, 235u8, 13u8, 173u8, 58u8, 121u8, 178u8,
223u8, 66u8, 217u8, 22u8, 244u8, 168u8, 113u8, 202u8, 186u8, 241u8,
124u8,
],
)
}
#[doc = " Returns a list of identifiers for available builtin `RuntimeGenesisConfig` presets."]
#[doc = ""]
#[doc = " The presets from the list can be queried with [`GenesisBuilder::get_preset`] method. If"]
#[doc = " no named presets are provided by the runtime the list is empty."]
pub fn preset_names(
&self,
) -> ::subxt::ext::subxt_core::runtime_api::payload::StaticPayload<
types::PresetNames,
types::preset_names::output::Output,
> {
::subxt::ext::subxt_core::runtime_api::payload::StaticPayload::new_static(
"GenesisBuilder",
"preset_names",
types::PresetNames {},
[
150u8, 117u8, 54u8, 129u8, 221u8, 130u8, 186u8, 71u8, 13u8, 140u8,
77u8, 180u8, 141u8, 37u8, 22u8, 219u8, 149u8, 218u8, 186u8, 206u8,
80u8, 42u8, 165u8, 41u8, 99u8, 184u8, 73u8, 37u8, 125u8, 188u8, 167u8,
122u8,
],
)
}
}
pub mod types {
use super::runtime_types;
pub mod build_state {
use super::runtime_types;
pub type Json =
::subxt::ext::subxt_core::alloc::vec::Vec<::core::primitive::u8>;
pub mod output {
use super::runtime_types;
pub type Output = ::core::result::Result<
(),
::subxt::ext::subxt_core::alloc::string::String,
>;
}
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode"
)]
pub struct BuildState {
pub json: build_state::Json,
}
pub mod get_preset {
use super::runtime_types;
pub type Id =
::core::option::Option<::subxt::ext::subxt_core::alloc::string::String>;
pub mod output {
use super::runtime_types;
pub type Output = ::core::option::Option<
::subxt::ext::subxt_core::alloc::vec::Vec<::core::primitive::u8>,
>;
}
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode"
)]
pub struct GetPreset {
pub id: get_preset::Id,
}
pub mod preset_names {
use super::runtime_types;
pub mod output {
use super::runtime_types;
pub type Output = ::subxt::ext::subxt_core::alloc::vec::Vec<
::subxt::ext::subxt_core::alloc::string::String,
>;
}
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode"
)]
pub struct PresetNames {}
}
}
}
pub fn view_functions() -> ViewFunctionsApi {
ViewFunctionsApi
}
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 balances(&self) -> balances::constants::ConstantsApi {
balances::constants::ConstantsApi
}
pub fn transaction_payment(&self) -> transaction_payment::constants::ConstantsApi {
transaction_payment::constants::ConstantsApi
}
pub fn q_po_w(&self) -> q_po_w::constants::ConstantsApi {
q_po_w::constants::ConstantsApi
}
pub fn mining_rewards(&self) -> mining_rewards::constants::ConstantsApi {
mining_rewards::constants::ConstantsApi
}
pub fn scheduler(&self) -> scheduler::constants::ConstantsApi {
scheduler::constants::ConstantsApi
}
pub fn utility(&self) -> utility::constants::ConstantsApi {
utility::constants::ConstantsApi
}
pub fn referenda(&self) -> referenda::constants::ConstantsApi {
referenda::constants::ConstantsApi
}
pub fn reversible_transfers(&self) -> reversible_transfers::constants::ConstantsApi {
reversible_transfers::constants::ConstantsApi
}
pub fn conviction_voting(&self) -> conviction_voting::constants::ConstantsApi {
conviction_voting::constants::ConstantsApi
}
pub fn tech_referenda(&self) -> tech_referenda::constants::ConstantsApi {
tech_referenda::constants::ConstantsApi
}
pub fn recovery(&self) -> recovery::constants::ConstantsApi {
recovery::constants::ConstantsApi
}
pub fn assets(&self) -> assets::constants::ConstantsApi {
assets::constants::ConstantsApi
}
pub fn multisig(&self) -> multisig::constants::ConstantsApi {
multisig::constants::ConstantsApi
}
pub fn wormhole(&self) -> wormhole::constants::ConstantsApi {
wormhole::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 balances(&self) -> balances::storage::StorageApi {
balances::storage::StorageApi
}
pub fn transaction_payment(&self) -> transaction_payment::storage::StorageApi {
transaction_payment::storage::StorageApi
}
pub fn q_po_w(&self) -> q_po_w::storage::StorageApi {
q_po_w::storage::StorageApi
}
pub fn mining_rewards(&self) -> mining_rewards::storage::StorageApi {
mining_rewards::storage::StorageApi
}
pub fn preimage(&self) -> preimage::storage::StorageApi {
preimage::storage::StorageApi
}
pub fn scheduler(&self) -> scheduler::storage::StorageApi {
scheduler::storage::StorageApi
}
pub fn referenda(&self) -> referenda::storage::StorageApi {
referenda::storage::StorageApi
}
pub fn reversible_transfers(&self) -> reversible_transfers::storage::StorageApi {
reversible_transfers::storage::StorageApi
}
pub fn conviction_voting(&self) -> conviction_voting::storage::StorageApi {
conviction_voting::storage::StorageApi
}
pub fn tech_collective(&self) -> tech_collective::storage::StorageApi {
tech_collective::storage::StorageApi
}
pub fn tech_referenda(&self) -> tech_referenda::storage::StorageApi {
tech_referenda::storage::StorageApi
}
pub fn treasury_pallet(&self) -> treasury_pallet::storage::StorageApi {
treasury_pallet::storage::StorageApi
}
pub fn recovery(&self) -> recovery::storage::StorageApi {
recovery::storage::StorageApi
}
pub fn assets(&self) -> assets::storage::StorageApi {
assets::storage::StorageApi
}
pub fn assets_holder(&self) -> assets_holder::storage::StorageApi {
assets_holder::storage::StorageApi
}
pub fn multisig(&self) -> multisig::storage::StorageApi {
multisig::storage::StorageApi
}
pub fn wormhole(&self) -> wormhole::storage::StorageApi {
wormhole::storage::StorageApi
}
pub fn zk_tree(&self) -> zk_tree::storage::StorageApi {
zk_tree::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 balances(&self) -> balances::calls::TransactionApi {
balances::calls::TransactionApi
}
pub fn preimage(&self) -> preimage::calls::TransactionApi {
preimage::calls::TransactionApi
}
pub fn scheduler(&self) -> scheduler::calls::TransactionApi {
scheduler::calls::TransactionApi
}
pub fn utility(&self) -> utility::calls::TransactionApi {
utility::calls::TransactionApi
}
pub fn referenda(&self) -> referenda::calls::TransactionApi {
referenda::calls::TransactionApi
}
pub fn reversible_transfers(&self) -> reversible_transfers::calls::TransactionApi {
reversible_transfers::calls::TransactionApi
}
pub fn conviction_voting(&self) -> conviction_voting::calls::TransactionApi {
conviction_voting::calls::TransactionApi
}
pub fn tech_collective(&self) -> tech_collective::calls::TransactionApi {
tech_collective::calls::TransactionApi
}
pub fn tech_referenda(&self) -> tech_referenda::calls::TransactionApi {
tech_referenda::calls::TransactionApi
}
pub fn treasury_pallet(&self) -> treasury_pallet::calls::TransactionApi {
treasury_pallet::calls::TransactionApi
}
pub fn recovery(&self) -> recovery::calls::TransactionApi {
recovery::calls::TransactionApi
}
pub fn assets(&self) -> assets::calls::TransactionApi {
assets::calls::TransactionApi
}
pub fn multisig(&self) -> multisig::calls::TransactionApi {
multisig::calls::TransactionApi
}
pub fn wormhole(&self) -> wormhole::calls::TransactionApi {
wormhole::calls::TransactionApi
}
}
pub struct ViewFunctionsApi;
impl ViewFunctionsApi {
pub fn assets(&self) -> assets::view_functions::ViewFunctionsApi {
assets::view_functions::ViewFunctionsApi
}
}
#[doc = r" check whether the metadata provided is aligned with this statically generated code."]
pub fn is_codegen_valid_for(metadata: &::subxt::ext::subxt_core::Metadata) -> bool {
let runtime_metadata_hash = metadata
.hasher()
.only_these_pallets(&PALLETS)
.only_these_runtime_apis(&RUNTIME_APIS)
.hash();
runtime_metadata_hash ==
[
5u8, 105u8, 163u8, 244u8, 68u8, 98u8, 112u8, 250u8, 61u8, 241u8, 1u8, 101u8, 231u8,
88u8, 118u8, 173u8, 211u8, 132u8, 177u8, 161u8, 104u8, 154u8, 190u8, 71u8, 168u8,
146u8, 97u8, 224u8, 185u8, 79u8, 69u8, 71u8,
]
}
pub mod system {
use super::{root_mod, 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, runtime_types};
type DispatchError = runtime_types::sp_runtime::DispatchError;
pub mod types {
use super::runtime_types;
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode"
)]
#[doc = "Make some on-chain remark."]
#[doc = ""]
#[doc = "Can be executed by every `origin`."]
pub struct Remark {
pub remark: remark::Remark,
}
pub mod remark {
use super::runtime_types;
pub type Remark =
::subxt::ext::subxt_core::alloc::vec::Vec<::core::primitive::u8>;
}
impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for Remark {
const PALLET: &'static str = "System";
const CALL: &'static str = "remark";
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode"
)]
#[doc = "Set the number of pages in the WebAssembly environment's heap."]
pub struct SetHeapPages {
pub pages: set_heap_pages::Pages,
}
pub mod set_heap_pages {
use super::runtime_types;
pub type Pages = ::core::primitive::u64;
}
impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for SetHeapPages {
const PALLET: &'static str = "System";
const CALL: &'static str = "set_heap_pages";
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode"
)]
#[doc = "Set the new runtime code."]
pub struct SetCode {
pub code: set_code::Code,
}
pub mod set_code {
use super::runtime_types;
pub type Code =
::subxt::ext::subxt_core::alloc::vec::Vec<::core::primitive::u8>;
}
impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for SetCode {
const PALLET: &'static str = "System";
const CALL: &'static str = "set_code";
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode"
)]
#[doc = "Set the new runtime code without doing any checks of the given `code`."]
#[doc = ""]
#[doc = "Note that runtime upgrades will not run if this is called with a not-increasing spec"]
#[doc = "version!"]
pub struct SetCodeWithoutChecks {
pub code: set_code_without_checks::Code,
}
pub mod set_code_without_checks {
use super::runtime_types;
pub type Code =
::subxt::ext::subxt_core::alloc::vec::Vec<::core::primitive::u8>;
}
impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for SetCodeWithoutChecks {
const PALLET: &'static str = "System";
const CALL: &'static str = "set_code_without_checks";
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode"
)]
#[doc = "Set some items of storage."]
pub struct SetStorage {
pub items: set_storage::Items,
}
pub mod set_storage {
use super::runtime_types;
pub type Items = ::subxt::ext::subxt_core::alloc::vec::Vec<(
::subxt::ext::subxt_core::alloc::vec::Vec<::core::primitive::u8>,
::subxt::ext::subxt_core::alloc::vec::Vec<::core::primitive::u8>,
)>;
}
impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for SetStorage {
const PALLET: &'static str = "System";
const CALL: &'static str = "set_storage";
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode"
)]
#[doc = "Kill some items from storage."]
pub struct KillStorage {
pub keys: kill_storage::Keys,
}
pub mod kill_storage {
use super::runtime_types;
pub type Keys = ::subxt::ext::subxt_core::alloc::vec::Vec<
::subxt::ext::subxt_core::alloc::vec::Vec<::core::primitive::u8>,
>;
}
impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for KillStorage {
const PALLET: &'static str = "System";
const CALL: &'static str = "kill_storage";
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode"
)]
#[doc = "Kill all storage items with a key that starts with the given prefix."]
#[doc = ""]
#[doc = "**NOTE:** We rely on the Root origin to provide us the number of subkeys under"]
#[doc = "the prefix we are removing to accurately calculate the weight of this function."]
pub struct KillPrefix {
pub prefix: kill_prefix::Prefix,
pub subkeys: kill_prefix::Subkeys,
}
pub mod kill_prefix {
use super::runtime_types;
pub type Prefix =
::subxt::ext::subxt_core::alloc::vec::Vec<::core::primitive::u8>;
pub type Subkeys = ::core::primitive::u32;
}
impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for KillPrefix {
const PALLET: &'static str = "System";
const CALL: &'static str = "kill_prefix";
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode"
)]
#[doc = "Make some on-chain remark and emit event."]
pub struct RemarkWithEvent {
pub remark: remark_with_event::Remark,
}
pub mod remark_with_event {
use super::runtime_types;
pub type Remark =
::subxt::ext::subxt_core::alloc::vec::Vec<::core::primitive::u8>;
}
impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for RemarkWithEvent {
const PALLET: &'static str = "System";
const CALL: &'static str = "remark_with_event";
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode"
)]
#[doc = "Authorize an upgrade to a given `code_hash` for the runtime. The runtime can be supplied"]
#[doc = "later."]
#[doc = ""]
#[doc = "This call requires Root origin."]
pub struct AuthorizeUpgrade {
pub code_hash: authorize_upgrade::CodeHash,
}
pub mod authorize_upgrade {
use super::runtime_types;
pub type CodeHash = ::subxt::ext::subxt_core::utils::H256;
}
impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for AuthorizeUpgrade {
const PALLET: &'static str = "System";
const CALL: &'static str = "authorize_upgrade";
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode"
)]
#[doc = "Authorize an upgrade to a given `code_hash` for the runtime. The runtime can be supplied"]
#[doc = "later."]
#[doc = ""]
#[doc = "WARNING: This authorizes an upgrade that will take place without any safety checks, for"]
#[doc = "example that the spec name remains the same and that the version number increases. Not"]
#[doc = "recommended for normal use. Use `authorize_upgrade` instead."]
#[doc = ""]
#[doc = "This call requires Root origin."]
pub struct AuthorizeUpgradeWithoutChecks {
pub code_hash: authorize_upgrade_without_checks::CodeHash,
}
pub mod authorize_upgrade_without_checks {
use super::runtime_types;
pub type CodeHash = ::subxt::ext::subxt_core::utils::H256;
}
impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for AuthorizeUpgradeWithoutChecks {
const PALLET: &'static str = "System";
const CALL: &'static str = "authorize_upgrade_without_checks";
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode"
)]
#[doc = "Provide the preimage (runtime binary) `code` for an upgrade that has been authorized."]
#[doc = ""]
#[doc = "If the authorization required a version check, this call will ensure the spec name"]
#[doc = "remains unchanged and that the spec version has increased."]
#[doc = ""]
#[doc = "Depending on the runtime's `OnSetCode` configuration, this function may directly apply"]
#[doc = "the new `code` in the same block or attempt to schedule the upgrade."]
#[doc = ""]
#[doc = "All origins are allowed."]
pub struct ApplyAuthorizedUpgrade {
pub code: apply_authorized_upgrade::Code,
}
pub mod apply_authorized_upgrade {
use super::runtime_types;
pub type Code =
::subxt::ext::subxt_core::alloc::vec::Vec<::core::primitive::u8>;
}
impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for ApplyAuthorizedUpgrade {
const PALLET: &'static str = "System";
const CALL: &'static str = "apply_authorized_upgrade";
}
}
pub struct TransactionApi;
impl TransactionApi {
#[doc = "Make some on-chain remark."]
#[doc = ""]
#[doc = "Can be executed by every `origin`."]
pub fn remark(
&self,
remark: types::remark::Remark,
) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload<types::Remark> {
::subxt::ext::subxt_core::tx::payload::StaticPayload::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 = "Set the number of pages in the WebAssembly environment's heap."]
pub fn set_heap_pages(
&self,
pages: types::set_heap_pages::Pages,
) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload<types::SetHeapPages> {
::subxt::ext::subxt_core::tx::payload::StaticPayload::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 = "Set the new runtime code."]
pub fn set_code(
&self,
code: types::set_code::Code,
) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload<types::SetCode> {
::subxt::ext::subxt_core::tx::payload::StaticPayload::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 = "Set the new runtime code without doing any checks of the given `code`."]
#[doc = ""]
#[doc = "Note that runtime upgrades will not run if this is called with a not-increasing spec"]
#[doc = "version!"]
pub fn set_code_without_checks(
&self,
code: types::set_code_without_checks::Code,
) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload<types::SetCodeWithoutChecks>
{
::subxt::ext::subxt_core::tx::payload::StaticPayload::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 = "Set some items of storage."]
pub fn set_storage(
&self,
items: types::set_storage::Items,
) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload<types::SetStorage> {
::subxt::ext::subxt_core::tx::payload::StaticPayload::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 = "Kill some items from storage."]
pub fn kill_storage(
&self,
keys: types::kill_storage::Keys,
) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload<types::KillStorage> {
::subxt::ext::subxt_core::tx::payload::StaticPayload::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 = "Kill all storage items with a key that starts with the given prefix."]
#[doc = ""]
#[doc = "**NOTE:** We rely on the Root origin to provide us the number of subkeys under"]
#[doc = "the prefix we are removing to accurately calculate the weight of this function."]
pub fn kill_prefix(
&self,
prefix: types::kill_prefix::Prefix,
subkeys: types::kill_prefix::Subkeys,
) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload<types::KillPrefix> {
::subxt::ext::subxt_core::tx::payload::StaticPayload::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 = "Make some on-chain remark and emit event."]
pub fn remark_with_event(
&self,
remark: types::remark_with_event::Remark,
) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload<types::RemarkWithEvent>
{
::subxt::ext::subxt_core::tx::payload::StaticPayload::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 = "Authorize an upgrade to a given `code_hash` for the runtime. The runtime can be supplied"]
#[doc = "later."]
#[doc = ""]
#[doc = "This call requires Root origin."]
pub fn authorize_upgrade(
&self,
code_hash: types::authorize_upgrade::CodeHash,
) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload<types::AuthorizeUpgrade>
{
::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static(
"System",
"authorize_upgrade",
types::AuthorizeUpgrade { code_hash },
[
4u8, 14u8, 76u8, 107u8, 209u8, 129u8, 9u8, 39u8, 193u8, 17u8, 84u8,
254u8, 170u8, 214u8, 24u8, 155u8, 29u8, 184u8, 249u8, 241u8, 109u8,
58u8, 145u8, 131u8, 109u8, 63u8, 38u8, 165u8, 107u8, 215u8, 217u8,
172u8,
],
)
}
#[doc = "Authorize an upgrade to a given `code_hash` for the runtime. The runtime can be supplied"]
#[doc = "later."]
#[doc = ""]
#[doc = "WARNING: This authorizes an upgrade that will take place without any safety checks, for"]
#[doc = "example that the spec name remains the same and that the version number increases. Not"]
#[doc = "recommended for normal use. Use `authorize_upgrade` instead."]
#[doc = ""]
#[doc = "This call requires Root origin."]
pub fn authorize_upgrade_without_checks(
&self,
code_hash: types::authorize_upgrade_without_checks::CodeHash,
) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload<
types::AuthorizeUpgradeWithoutChecks,
> {
::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static(
"System",
"authorize_upgrade_without_checks",
types::AuthorizeUpgradeWithoutChecks { code_hash },
[
126u8, 126u8, 55u8, 26u8, 47u8, 55u8, 66u8, 8u8, 167u8, 18u8, 29u8,
136u8, 146u8, 14u8, 189u8, 117u8, 16u8, 227u8, 162u8, 61u8, 149u8,
197u8, 104u8, 184u8, 185u8, 161u8, 99u8, 154u8, 80u8, 125u8, 181u8,
233u8,
],
)
}
#[doc = "Provide the preimage (runtime binary) `code` for an upgrade that has been authorized."]
#[doc = ""]
#[doc = "If the authorization required a version check, this call will ensure the spec name"]
#[doc = "remains unchanged and that the spec version has increased."]
#[doc = ""]
#[doc = "Depending on the runtime's `OnSetCode` configuration, this function may directly apply"]
#[doc = "the new `code` in the same block or attempt to schedule the upgrade."]
#[doc = ""]
#[doc = "All origins are allowed."]
pub fn apply_authorized_upgrade(
&self,
code: types::apply_authorized_upgrade::Code,
) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload<
types::ApplyAuthorizedUpgrade,
> {
::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static(
"System",
"apply_authorized_upgrade",
types::ApplyAuthorizedUpgrade { code },
[
232u8, 107u8, 127u8, 38u8, 230u8, 29u8, 97u8, 4u8, 160u8, 191u8, 222u8,
156u8, 245u8, 102u8, 196u8, 141u8, 44u8, 163u8, 98u8, 68u8, 125u8,
32u8, 124u8, 101u8, 108u8, 93u8, 211u8, 52u8, 0u8, 231u8, 33u8, 227u8,
],
)
}
}
}
#[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 :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")]
#[doc = "An extrinsic completed successfully."]
pub struct ExtrinsicSuccess {
pub dispatch_info: extrinsic_success::DispatchInfo,
}
pub mod extrinsic_success {
use super::runtime_types;
pub type DispatchInfo = runtime_types::frame_system::DispatchEventInfo;
}
impl ::subxt::ext::subxt_core::events::StaticEvent for ExtrinsicSuccess {
const PALLET: &'static str = "System";
const EVENT: &'static str = "ExtrinsicSuccess";
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")]
#[doc = "An extrinsic failed."]
pub struct ExtrinsicFailed {
pub dispatch_error: extrinsic_failed::DispatchError,
pub dispatch_info: extrinsic_failed::DispatchInfo,
}
pub mod extrinsic_failed {
use super::runtime_types;
pub type DispatchError = runtime_types::sp_runtime::DispatchError;
pub type DispatchInfo = runtime_types::frame_system::DispatchEventInfo;
}
impl ::subxt::ext::subxt_core::events::StaticEvent for ExtrinsicFailed {
const PALLET: &'static str = "System";
const EVENT: &'static str = "ExtrinsicFailed";
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")]
#[doc = "`:code` was updated."]
pub struct CodeUpdated;
impl ::subxt::ext::subxt_core::events::StaticEvent for CodeUpdated {
const PALLET: &'static str = "System";
const EVENT: &'static str = "CodeUpdated";
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")]
#[doc = "A new account was created."]
pub struct NewAccount {
pub account: new_account::Account,
}
pub mod new_account {
use super::runtime_types;
pub type Account = ::subxt::ext::subxt_core::utils::AccountId32;
}
impl ::subxt::ext::subxt_core::events::StaticEvent for NewAccount {
const PALLET: &'static str = "System";
const EVENT: &'static str = "NewAccount";
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")]
#[doc = "An account was reaped."]
pub struct KilledAccount {
pub account: killed_account::Account,
}
pub mod killed_account {
use super::runtime_types;
pub type Account = ::subxt::ext::subxt_core::utils::AccountId32;
}
impl ::subxt::ext::subxt_core::events::StaticEvent for KilledAccount {
const PALLET: &'static str = "System";
const EVENT: &'static str = "KilledAccount";
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")]
#[doc = "On on-chain remark happened."]
pub struct Remarked {
pub sender: remarked::Sender,
pub hash: remarked::Hash,
}
pub mod remarked {
use super::runtime_types;
pub type Sender = ::subxt::ext::subxt_core::utils::AccountId32;
pub type Hash = ::subxt::ext::subxt_core::utils::H256;
}
impl ::subxt::ext::subxt_core::events::StaticEvent for Remarked {
const PALLET: &'static str = "System";
const EVENT: &'static str = "Remarked";
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")]
#[doc = "An upgrade was authorized."]
pub struct UpgradeAuthorized {
pub code_hash: upgrade_authorized::CodeHash,
pub check_version: upgrade_authorized::CheckVersion,
}
pub mod upgrade_authorized {
use super::runtime_types;
pub type CodeHash = ::subxt::ext::subxt_core::utils::H256;
pub type CheckVersion = ::core::primitive::bool;
}
impl ::subxt::ext::subxt_core::events::StaticEvent for UpgradeAuthorized {
const PALLET: &'static str = "System";
const EVENT: &'static str = "UpgradeAuthorized";
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")]
#[doc = "An invalid authorized upgrade was rejected while trying to apply it."]
pub struct RejectedInvalidAuthorizedUpgrade {
pub code_hash: rejected_invalid_authorized_upgrade::CodeHash,
pub error: rejected_invalid_authorized_upgrade::Error,
}
pub mod rejected_invalid_authorized_upgrade {
use super::runtime_types;
pub type CodeHash = ::subxt::ext::subxt_core::utils::H256;
pub type Error = runtime_types::sp_runtime::DispatchError;
}
impl ::subxt::ext::subxt_core::events::StaticEvent for RejectedInvalidAuthorizedUpgrade {
const PALLET: &'static str = "System";
const EVENT: &'static str = "RejectedInvalidAuthorizedUpgrade";
}
}
pub mod storage {
use super::runtime_types;
pub mod types {
use super::runtime_types;
pub mod account {
use super::runtime_types;
pub type Account = runtime_types::frame_system::AccountInfo<
::core::primitive::u32,
runtime_types::pallet_balances::types::AccountData<::core::primitive::u128>,
>;
pub type Param0 = ::subxt::ext::subxt_core::utils::AccountId32;
}
pub mod extrinsic_count {
use super::runtime_types;
pub type ExtrinsicCount = ::core::primitive::u32;
}
pub mod inherents_applied {
use super::runtime_types;
pub type InherentsApplied = ::core::primitive::bool;
}
pub mod block_weight {
use super::runtime_types;
pub type BlockWeight = runtime_types::frame_support::dispatch::PerDispatchClass<
runtime_types::sp_weights::weight_v2::Weight,
>;
}
pub mod all_extrinsics_len {
use super::runtime_types;
pub type AllExtrinsicsLen = ::core::primitive::u32;
}
pub mod block_hash {
use super::runtime_types;
pub type BlockHash = ::subxt::ext::subxt_core::utils::H256;
pub type Param0 = ::core::primitive::u32;
}
pub mod extrinsic_data {
use super::runtime_types;
pub type ExtrinsicData =
::subxt::ext::subxt_core::alloc::vec::Vec<::core::primitive::u8>;
pub type Param0 = ::core::primitive::u32;
}
pub mod number {
use super::runtime_types;
pub type Number = ::core::primitive::u32;
}
pub mod parent_hash {
use super::runtime_types;
pub type ParentHash = ::subxt::ext::subxt_core::utils::H256;
}
pub mod digest {
use super::runtime_types;
pub type Digest = runtime_types::sp_runtime::generic::digest::Digest;
}
pub mod zk_tree_root {
use super::runtime_types;
pub type ZkTreeRoot = ::subxt::ext::subxt_core::utils::H256;
}
pub mod events {
use super::runtime_types;
pub type Events = ::subxt::ext::subxt_core::alloc::vec::Vec<
runtime_types::frame_system::EventRecord<
runtime_types::quantus_runtime::RuntimeEvent,
::subxt::ext::subxt_core::utils::H256,
>,
>;
}
pub mod event_count {
use super::runtime_types;
pub type EventCount = ::core::primitive::u32;
}
pub mod event_topics {
use super::runtime_types;
pub type EventTopics = ::subxt::ext::subxt_core::alloc::vec::Vec<(
::core::primitive::u32,
::core::primitive::u32,
)>;
pub type Param0 = ::subxt::ext::subxt_core::utils::H256;
}
pub mod last_runtime_upgrade {
use super::runtime_types;
pub type LastRuntimeUpgrade =
runtime_types::frame_system::LastRuntimeUpgradeInfo;
}
pub mod upgraded_to_u32_ref_count {
use super::runtime_types;
pub type UpgradedToU32RefCount = ::core::primitive::bool;
}
pub mod upgraded_to_triple_ref_count {
use super::runtime_types;
pub type UpgradedToTripleRefCount = ::core::primitive::bool;
}
pub mod execution_phase {
use super::runtime_types;
pub type ExecutionPhase = runtime_types::frame_system::Phase;
}
pub mod authorized_upgrade {
use super::runtime_types;
pub type AuthorizedUpgrade =
runtime_types::frame_system::CodeUpgradeAuthorization;
}
pub mod extrinsic_weight_reclaimed {
use super::runtime_types;
pub type ExtrinsicWeightReclaimed =
runtime_types::sp_weights::weight_v2::Weight;
}
}
pub struct StorageApi;
impl StorageApi {
#[doc = " The full account information for a particular account ID."]
pub fn account_iter(
&self,
) -> ::subxt::ext::subxt_core::storage::address::StaticAddress<
(),
types::account::Account,
(),
::subxt::ext::subxt_core::utils::Yes,
::subxt::ext::subxt_core::utils::Yes,
> {
::subxt::ext::subxt_core::storage::address::StaticAddress::new_static(
"System",
"Account",
(),
[
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: types::account::Param0,
) -> ::subxt::ext::subxt_core::storage::address::StaticAddress<
::subxt::ext::subxt_core::storage::address::StaticStorageKey<
types::account::Param0,
>,
types::account::Account,
::subxt::ext::subxt_core::utils::Yes,
::subxt::ext::subxt_core::utils::Yes,
(),
> {
::subxt::ext::subxt_core::storage::address::StaticAddress::new_static(
"System",
"Account",
::subxt::ext::subxt_core::storage::address::StaticStorageKey::new(_0),
[
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::ext::subxt_core::storage::address::StaticAddress<
(),
types::extrinsic_count::ExtrinsicCount,
::subxt::ext::subxt_core::utils::Yes,
(),
(),
> {
::subxt::ext::subxt_core::storage::address::StaticAddress::new_static(
"System",
"ExtrinsicCount",
(),
[
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 = " Whether all inherents have been applied."]
pub fn inherents_applied(
&self,
) -> ::subxt::ext::subxt_core::storage::address::StaticAddress<
(),
types::inherents_applied::InherentsApplied,
::subxt::ext::subxt_core::utils::Yes,
::subxt::ext::subxt_core::utils::Yes,
(),
> {
::subxt::ext::subxt_core::storage::address::StaticAddress::new_static(
"System",
"InherentsApplied",
(),
[
132u8, 249u8, 142u8, 252u8, 8u8, 103u8, 80u8, 120u8, 50u8, 6u8, 188u8,
223u8, 101u8, 55u8, 165u8, 189u8, 172u8, 249u8, 165u8, 230u8, 183u8,
109u8, 34u8, 65u8, 185u8, 150u8, 29u8, 8u8, 186u8, 129u8, 135u8, 239u8,
],
)
}
#[doc = " The current weight for the block."]
pub fn block_weight(
&self,
) -> ::subxt::ext::subxt_core::storage::address::StaticAddress<
(),
types::block_weight::BlockWeight,
::subxt::ext::subxt_core::utils::Yes,
::subxt::ext::subxt_core::utils::Yes,
(),
> {
::subxt::ext::subxt_core::storage::address::StaticAddress::new_static(
"System",
"BlockWeight",
(),
[
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::ext::subxt_core::storage::address::StaticAddress<
(),
types::all_extrinsics_len::AllExtrinsicsLen,
::subxt::ext::subxt_core::utils::Yes,
(),
(),
> {
::subxt::ext::subxt_core::storage::address::StaticAddress::new_static(
"System",
"AllExtrinsicsLen",
(),
[
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::ext::subxt_core::storage::address::StaticAddress<
(),
types::block_hash::BlockHash,
(),
::subxt::ext::subxt_core::utils::Yes,
::subxt::ext::subxt_core::utils::Yes,
> {
::subxt::ext::subxt_core::storage::address::StaticAddress::new_static(
"System",
"BlockHash",
(),
[
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: types::block_hash::Param0,
) -> ::subxt::ext::subxt_core::storage::address::StaticAddress<
::subxt::ext::subxt_core::storage::address::StaticStorageKey<
types::block_hash::Param0,
>,
types::block_hash::BlockHash,
::subxt::ext::subxt_core::utils::Yes,
::subxt::ext::subxt_core::utils::Yes,
(),
> {
::subxt::ext::subxt_core::storage::address::StaticAddress::new_static(
"System",
"BlockHash",
::subxt::ext::subxt_core::storage::address::StaticStorageKey::new(_0),
[
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::ext::subxt_core::storage::address::StaticAddress<
(),
types::extrinsic_data::ExtrinsicData,
(),
::subxt::ext::subxt_core::utils::Yes,
::subxt::ext::subxt_core::utils::Yes,
> {
::subxt::ext::subxt_core::storage::address::StaticAddress::new_static(
"System",
"ExtrinsicData",
(),
[
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: types::extrinsic_data::Param0,
) -> ::subxt::ext::subxt_core::storage::address::StaticAddress<
::subxt::ext::subxt_core::storage::address::StaticStorageKey<
types::extrinsic_data::Param0,
>,
types::extrinsic_data::ExtrinsicData,
::subxt::ext::subxt_core::utils::Yes,
::subxt::ext::subxt_core::utils::Yes,
(),
> {
::subxt::ext::subxt_core::storage::address::StaticAddress::new_static(
"System",
"ExtrinsicData",
::subxt::ext::subxt_core::storage::address::StaticStorageKey::new(_0),
[
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::ext::subxt_core::storage::address::StaticAddress<
(),
types::number::Number,
::subxt::ext::subxt_core::utils::Yes,
::subxt::ext::subxt_core::utils::Yes,
(),
> {
::subxt::ext::subxt_core::storage::address::StaticAddress::new_static(
"System",
"Number",
(),
[
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::ext::subxt_core::storage::address::StaticAddress<
(),
types::parent_hash::ParentHash,
::subxt::ext::subxt_core::utils::Yes,
::subxt::ext::subxt_core::utils::Yes,
(),
> {
::subxt::ext::subxt_core::storage::address::StaticAddress::new_static(
"System",
"ParentHash",
(),
[
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::ext::subxt_core::storage::address::StaticAddress<
(),
types::digest::Digest,
::subxt::ext::subxt_core::utils::Yes,
::subxt::ext::subxt_core::utils::Yes,
(),
> {
::subxt::ext::subxt_core::storage::address::StaticAddress::new_static(
"System",
"Digest",
(),
[
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 = " ZK tree root for the current block."]
#[doc = ""]
#[doc = " Set by pallet-zk-tree during block finalization. This is included in the"]
#[doc = " block header as a dedicated field (not in digest) to ensure a fixed offset"]
#[doc = " for ZK circuit verification."]
pub fn zk_tree_root(
&self,
) -> ::subxt::ext::subxt_core::storage::address::StaticAddress<
(),
types::zk_tree_root::ZkTreeRoot,
::subxt::ext::subxt_core::utils::Yes,
::subxt::ext::subxt_core::utils::Yes,
(),
> {
::subxt::ext::subxt_core::storage::address::StaticAddress::new_static(
"System",
"ZkTreeRoot",
(),
[
20u8, 224u8, 59u8, 4u8, 237u8, 141u8, 176u8, 61u8, 156u8, 45u8, 84u8,
60u8, 215u8, 14u8, 69u8, 234u8, 53u8, 157u8, 52u8, 242u8, 67u8, 227u8,
117u8, 93u8, 77u8, 5u8, 210u8, 55u8, 12u8, 170u8, 57u8, 161u8,
],
)
}
#[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::ext::subxt_core::storage::address::StaticAddress<
(),
types::events::Events,
::subxt::ext::subxt_core::utils::Yes,
::subxt::ext::subxt_core::utils::Yes,
(),
> {
::subxt::ext::subxt_core::storage::address::StaticAddress::new_static(
"System",
"Events",
(),
[
79u8, 108u8, 22u8, 139u8, 89u8, 135u8, 213u8, 82u8, 213u8, 83u8, 64u8,
94u8, 29u8, 221u8, 126u8, 130u8, 81u8, 75u8, 93u8, 129u8, 131u8, 82u8,
61u8, 187u8, 4u8, 106u8, 46u8, 54u8, 179u8, 195u8, 20u8, 71u8,
],
)
}
#[doc = " The number of events in the `Events<T>` list."]
pub fn event_count(
&self,
) -> ::subxt::ext::subxt_core::storage::address::StaticAddress<
(),
types::event_count::EventCount,
::subxt::ext::subxt_core::utils::Yes,
::subxt::ext::subxt_core::utils::Yes,
(),
> {
::subxt::ext::subxt_core::storage::address::StaticAddress::new_static(
"System",
"EventCount",
(),
[
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::ext::subxt_core::storage::address::StaticAddress<
(),
types::event_topics::EventTopics,
(),
::subxt::ext::subxt_core::utils::Yes,
::subxt::ext::subxt_core::utils::Yes,
> {
::subxt::ext::subxt_core::storage::address::StaticAddress::new_static(
"System",
"EventTopics",
(),
[
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: types::event_topics::Param0,
) -> ::subxt::ext::subxt_core::storage::address::StaticAddress<
::subxt::ext::subxt_core::storage::address::StaticStorageKey<
types::event_topics::Param0,
>,
types::event_topics::EventTopics,
::subxt::ext::subxt_core::utils::Yes,
::subxt::ext::subxt_core::utils::Yes,
(),
> {
::subxt::ext::subxt_core::storage::address::StaticAddress::new_static(
"System",
"EventTopics",
::subxt::ext::subxt_core::storage::address::StaticStorageKey::new(_0),
[
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::ext::subxt_core::storage::address::StaticAddress<
(),
types::last_runtime_upgrade::LastRuntimeUpgrade,
::subxt::ext::subxt_core::utils::Yes,
(),
(),
> {
::subxt::ext::subxt_core::storage::address::StaticAddress::new_static(
"System",
"LastRuntimeUpgrade",
(),
[
197u8, 212u8, 249u8, 209u8, 79u8, 34u8, 55u8, 203u8, 31u8, 42u8, 199u8,
242u8, 188u8, 74u8, 234u8, 250u8, 245u8, 44u8, 139u8, 162u8, 45u8,
150u8, 230u8, 249u8, 135u8, 100u8, 158u8, 167u8, 118u8, 219u8, 28u8,
98u8,
],
)
}
#[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::ext::subxt_core::storage::address::StaticAddress<
(),
types::upgraded_to_u32_ref_count::UpgradedToU32RefCount,
::subxt::ext::subxt_core::utils::Yes,
::subxt::ext::subxt_core::utils::Yes,
(),
> {
::subxt::ext::subxt_core::storage::address::StaticAddress::new_static(
"System",
"UpgradedToU32RefCount",
(),
[
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::ext::subxt_core::storage::address::StaticAddress<
(),
types::upgraded_to_triple_ref_count::UpgradedToTripleRefCount,
::subxt::ext::subxt_core::utils::Yes,
::subxt::ext::subxt_core::utils::Yes,
(),
> {
::subxt::ext::subxt_core::storage::address::StaticAddress::new_static(
"System",
"UpgradedToTripleRefCount",
(),
[
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::ext::subxt_core::storage::address::StaticAddress<
(),
types::execution_phase::ExecutionPhase,
::subxt::ext::subxt_core::utils::Yes,
(),
(),
> {
::subxt::ext::subxt_core::storage::address::StaticAddress::new_static(
"System",
"ExecutionPhase",
(),
[
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,
],
)
}
#[doc = " `Some` if a code upgrade has been authorized."]
pub fn authorized_upgrade(
&self,
) -> ::subxt::ext::subxt_core::storage::address::StaticAddress<
(),
types::authorized_upgrade::AuthorizedUpgrade,
::subxt::ext::subxt_core::utils::Yes,
(),
(),
> {
::subxt::ext::subxt_core::storage::address::StaticAddress::new_static(
"System",
"AuthorizedUpgrade",
(),
[
165u8, 97u8, 27u8, 138u8, 2u8, 28u8, 55u8, 92u8, 96u8, 96u8, 168u8,
169u8, 55u8, 178u8, 44u8, 127u8, 58u8, 140u8, 206u8, 178u8, 1u8, 37u8,
214u8, 213u8, 251u8, 123u8, 5u8, 111u8, 90u8, 148u8, 217u8, 135u8,
],
)
}
#[doc = " The weight reclaimed for the extrinsic."]
#[doc = ""]
#[doc = " This information is available until the end of the extrinsic execution."]
#[doc = " More precisely this information is removed in `note_applied_extrinsic`."]
#[doc = ""]
#[doc = " Logic doing some post dispatch weight reduction must update this storage to avoid duplicate"]
#[doc = " reduction."]
pub fn extrinsic_weight_reclaimed(
&self,
) -> ::subxt::ext::subxt_core::storage::address::StaticAddress<
(),
types::extrinsic_weight_reclaimed::ExtrinsicWeightReclaimed,
::subxt::ext::subxt_core::utils::Yes,
::subxt::ext::subxt_core::utils::Yes,
(),
> {
::subxt::ext::subxt_core::storage::address::StaticAddress::new_static(
"System",
"ExtrinsicWeightReclaimed",
(),
[
195u8, 143u8, 164u8, 84u8, 225u8, 194u8, 227u8, 128u8, 196u8, 241u8,
188u8, 159u8, 59u8, 197u8, 11u8, 12u8, 119u8, 164u8, 46u8, 229u8, 92u8,
212u8, 236u8, 255u8, 238u8, 54u8, 105u8, 200u8, 229u8, 191u8, 221u8,
202u8,
],
)
}
}
}
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::ext::subxt_core::constants::address::StaticAddress<
runtime_types::frame_system::limits::BlockWeights,
> {
::subxt::ext::subxt_core::constants::address::StaticAddress::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::ext::subxt_core::constants::address::StaticAddress<
runtime_types::frame_system::limits::BlockLength,
> {
::subxt::ext::subxt_core::constants::address::StaticAddress::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::ext::subxt_core::constants::address::StaticAddress<
::core::primitive::u32,
> {
::subxt::ext::subxt_core::constants::address::StaticAddress::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::ext::subxt_core::constants::address::StaticAddress<
runtime_types::sp_weights::RuntimeDbWeight,
> {
::subxt::ext::subxt_core::constants::address::StaticAddress::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 in-code version."]
pub fn version(
&self,
) -> ::subxt::ext::subxt_core::constants::address::StaticAddress<
runtime_types::sp_version::RuntimeVersion,
> {
::subxt::ext::subxt_core::constants::address::StaticAddress::new_static(
"System",
"Version",
[
214u8, 43u8, 96u8, 193u8, 96u8, 213u8, 63u8, 124u8, 22u8, 111u8, 41u8,
78u8, 146u8, 77u8, 34u8, 163u8, 117u8, 100u8, 6u8, 216u8, 238u8, 54u8,
80u8, 185u8, 219u8, 11u8, 192u8, 200u8, 129u8, 88u8, 161u8, 250u8,
],
)
}
#[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::ext::subxt_core::constants::address::StaticAddress<
::core::primitive::u16,
> {
::subxt::ext::subxt_core::constants::address::StaticAddress::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, 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, runtime_types};
type DispatchError = runtime_types::sp_runtime::DispatchError;
pub mod types {
use super::runtime_types;
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode"
)]
#[doc = "Set the current time."]
#[doc = ""]
#[doc = "This call should be invoked exactly once per block. It will panic at the finalization"]
#[doc = "phase, if this call hasn't been invoked by that time."]
#[doc = ""]
#[doc = "The timestamp should be greater than the previous one by the amount specified by"]
#[doc = "[`Config::MinimumPeriod`]."]
#[doc = ""]
#[doc = "The dispatch origin for this call must be _None_."]
#[doc = ""]
#[doc = "This dispatch class is _Mandatory_ to ensure it gets executed in the block. Be aware"]
#[doc = "that changing the complexity of this call could result exhausting the resources in a"]
#[doc = "block to execute any other calls."]
#[doc = ""]
#[doc = "## Complexity"]
#[doc = "- `O(1)` (Note that implementations of `OnTimestampSet` must also be `O(1)`)"]
#[doc = "- 1 storage read and 1 storage mutation (codec `O(1)` because of `DidUpdate::take` in"]
#[doc = " `on_finalize`)"]
#[doc = "- 1 event handler `on_timestamp_set`. Must be `O(1)`."]
pub struct Set {
#[codec(compact)]
pub now: set::Now,
}
pub mod set {
use super::runtime_types;
pub type Now = ::core::primitive::u64;
}
impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for Set {
const PALLET: &'static str = "Timestamp";
const CALL: &'static str = "set";
}
}
pub struct TransactionApi;
impl TransactionApi {
#[doc = "Set the current time."]
#[doc = ""]
#[doc = "This call should be invoked exactly once per block. It will panic at the finalization"]
#[doc = "phase, if this call hasn't been invoked by that time."]
#[doc = ""]
#[doc = "The timestamp should be greater than the previous one by the amount specified by"]
#[doc = "[`Config::MinimumPeriod`]."]
#[doc = ""]
#[doc = "The dispatch origin for this call must be _None_."]
#[doc = ""]
#[doc = "This dispatch class is _Mandatory_ to ensure it gets executed in the block. Be aware"]
#[doc = "that changing the complexity of this call could result exhausting the resources in a"]
#[doc = "block to execute any other calls."]
#[doc = ""]
#[doc = "## Complexity"]
#[doc = "- `O(1)` (Note that implementations of `OnTimestampSet` must also be `O(1)`)"]
#[doc = "- 1 storage read and 1 storage mutation (codec `O(1)` because of `DidUpdate::take` in"]
#[doc = " `on_finalize`)"]
#[doc = "- 1 event handler `on_timestamp_set`. Must be `O(1)`."]
pub fn set(
&self,
now: types::set::Now,
) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload<types::Set> {
::subxt::ext::subxt_core::tx::payload::StaticPayload::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 mod types {
use super::runtime_types;
pub mod now {
use super::runtime_types;
pub type Now = ::core::primitive::u64;
}
pub mod did_update {
use super::runtime_types;
pub type DidUpdate = ::core::primitive::bool;
}
}
pub struct StorageApi;
impl StorageApi {
#[doc = " The current time for the current block."]
pub fn now(
&self,
) -> ::subxt::ext::subxt_core::storage::address::StaticAddress<
(),
types::now::Now,
::subxt::ext::subxt_core::utils::Yes,
::subxt::ext::subxt_core::utils::Yes,
(),
> {
::subxt::ext::subxt_core::storage::address::StaticAddress::new_static(
"Timestamp",
"Now",
(),
[
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 = " Whether the timestamp has been updated in this block."]
#[doc = ""]
#[doc = " This value is updated to `true` upon successful submission of a timestamp by a node."]
#[doc = " It is then checked at the end of each block execution in the `on_finalize` hook."]
pub fn did_update(
&self,
) -> ::subxt::ext::subxt_core::storage::address::StaticAddress<
(),
types::did_update::DidUpdate,
::subxt::ext::subxt_core::utils::Yes,
::subxt::ext::subxt_core::utils::Yes,
(),
> {
::subxt::ext::subxt_core::storage::address::StaticAddress::new_static(
"Timestamp",
"DidUpdate",
(),
[
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."]
#[doc = ""]
#[doc = " Be aware that this is different to the *expected* period that the block production"]
#[doc = " apparatus provides. Your chosen consensus system will generally work with this to"]
#[doc = " determine a sensible block time. For example, in the Aura pallet it will be double this"]
#[doc = " period on default settings."]
pub fn minimum_period(
&self,
) -> ::subxt::ext::subxt_core::constants::address::StaticAddress<
::core::primitive::u64,
> {
::subxt::ext::subxt_core::constants::address::StaticAddress::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 balances {
use super::{root_mod, 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, runtime_types};
type DispatchError = runtime_types::sp_runtime::DispatchError;
pub mod types {
use super::runtime_types;
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode"
)]
#[doc = "Transfer some liquid free balance to another account."]
#[doc = ""]
#[doc = "`transfer_allow_death` will set the `FreeBalance` of the sender and receiver."]
#[doc = "If the sender's account is below the existential deposit as a result"]
#[doc = "of the transfer, the account will be reaped."]
#[doc = ""]
#[doc = "The dispatch origin for this call must be `Signed` by the transactor."]
pub struct TransferAllowDeath {
pub dest: transfer_allow_death::Dest,
#[codec(compact)]
pub value: transfer_allow_death::Value,
}
pub mod transfer_allow_death {
use super::runtime_types;
pub type Dest = ::subxt::ext::subxt_core::utils::MultiAddress<
::subxt::ext::subxt_core::utils::AccountId32,
(),
>;
pub type Value = ::core::primitive::u128;
}
impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for TransferAllowDeath {
const PALLET: &'static str = "Balances";
const CALL: &'static str = "transfer_allow_death";
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode"
)]
#[doc = "Exactly as `transfer_allow_death`, except the origin must be root and the source account"]
#[doc = "may be specified."]
pub struct ForceTransfer {
pub source: force_transfer::Source,
pub dest: force_transfer::Dest,
#[codec(compact)]
pub value: force_transfer::Value,
}
pub mod force_transfer {
use super::runtime_types;
pub type Source = ::subxt::ext::subxt_core::utils::MultiAddress<
::subxt::ext::subxt_core::utils::AccountId32,
(),
>;
pub type Dest = ::subxt::ext::subxt_core::utils::MultiAddress<
::subxt::ext::subxt_core::utils::AccountId32,
(),
>;
pub type Value = ::core::primitive::u128;
}
impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for ForceTransfer {
const PALLET: &'static str = "Balances";
const CALL: &'static str = "force_transfer";
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode"
)]
#[doc = "Same as the [`transfer_allow_death`] call, but with a check that the transfer will not"]
#[doc = "kill the origin account."]
#[doc = ""]
#[doc = "99% of the time you want [`transfer_allow_death`] instead."]
#[doc = ""]
#[doc = "[`transfer_allow_death`]: struct.Pallet.html#method.transfer"]
pub struct TransferKeepAlive {
pub dest: transfer_keep_alive::Dest,
#[codec(compact)]
pub value: transfer_keep_alive::Value,
}
pub mod transfer_keep_alive {
use super::runtime_types;
pub type Dest = ::subxt::ext::subxt_core::utils::MultiAddress<
::subxt::ext::subxt_core::utils::AccountId32,
(),
>;
pub type Value = ::core::primitive::u128;
}
impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for TransferKeepAlive {
const PALLET: &'static str = "Balances";
const CALL: &'static str = "transfer_keep_alive";
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode"
)]
#[doc = "Transfer the entire transferable balance from the caller account."]
#[doc = ""]
#[doc = "NOTE: This function only attempts to transfer _transferable_ balances. This means that"]
#[doc = "any locked, reserved, or existential deposits (when `keep_alive` is `true`), will not be"]
#[doc = "transferred by this function. To ensure that this function results in a killed account,"]
#[doc = "you might need to prepare the account by removing any reference counters, storage"]
#[doc = "deposits, etc..."]
#[doc = ""]
#[doc = "The dispatch origin of this call must be Signed."]
#[doc = ""]
#[doc = "- `dest`: The recipient of the transfer."]
#[doc = "- `keep_alive`: A boolean to determine if the `transfer_all` operation should send all"]
#[doc = " of the funds the account has, causing the sender account to be killed (false), or"]
#[doc = " transfer everything except at least the existential deposit, which will guarantee to"]
#[doc = " keep the sender account alive (true)."]
pub struct TransferAll {
pub dest: transfer_all::Dest,
pub keep_alive: transfer_all::KeepAlive,
}
pub mod transfer_all {
use super::runtime_types;
pub type Dest = ::subxt::ext::subxt_core::utils::MultiAddress<
::subxt::ext::subxt_core::utils::AccountId32,
(),
>;
pub type KeepAlive = ::core::primitive::bool;
}
impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for TransferAll {
const PALLET: &'static str = "Balances";
const CALL: &'static str = "transfer_all";
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode"
)]
#[doc = "Unreserve some balance from a user by force."]
#[doc = ""]
#[doc = "Can only be called by ROOT."]
pub struct ForceUnreserve {
pub who: force_unreserve::Who,
pub amount: force_unreserve::Amount,
}
pub mod force_unreserve {
use super::runtime_types;
pub type Who = ::subxt::ext::subxt_core::utils::MultiAddress<
::subxt::ext::subxt_core::utils::AccountId32,
(),
>;
pub type Amount = ::core::primitive::u128;
}
impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for ForceUnreserve {
const PALLET: &'static str = "Balances";
const CALL: &'static str = "force_unreserve";
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode"
)]
#[doc = "Upgrade a specified account."]
#[doc = ""]
#[doc = "- `origin`: Must be `Signed`."]
#[doc = "- `who`: The account to be upgraded."]
#[doc = ""]
#[doc = "This will waive the transaction fee if at least all but 10% of the accounts needed to"]
#[doc = "be upgraded. (We let some not have to be upgraded just in order to allow for the"]
#[doc = "possibility of churn)."]
pub struct UpgradeAccounts {
pub who: upgrade_accounts::Who,
}
pub mod upgrade_accounts {
use super::runtime_types;
pub type Who = ::subxt::ext::subxt_core::alloc::vec::Vec<
::subxt::ext::subxt_core::utils::AccountId32,
>;
}
impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for UpgradeAccounts {
const PALLET: &'static str = "Balances";
const CALL: &'static str = "upgrade_accounts";
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode"
)]
#[doc = "Set the regular balance of a given account."]
#[doc = ""]
#[doc = "The dispatch origin for this call is `root`."]
pub struct ForceSetBalance {
pub who: force_set_balance::Who,
#[codec(compact)]
pub new_free: force_set_balance::NewFree,
}
pub mod force_set_balance {
use super::runtime_types;
pub type Who = ::subxt::ext::subxt_core::utils::MultiAddress<
::subxt::ext::subxt_core::utils::AccountId32,
(),
>;
pub type NewFree = ::core::primitive::u128;
}
impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for ForceSetBalance {
const PALLET: &'static str = "Balances";
const CALL: &'static str = "force_set_balance";
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode"
)]
#[doc = "Adjust the total issuance in a saturating way."]
#[doc = ""]
#[doc = "Can only be called by root and always needs a positive `delta`."]
#[doc = ""]
#[doc = "# Example"]
pub struct ForceAdjustTotalIssuance {
pub direction: force_adjust_total_issuance::Direction,
#[codec(compact)]
pub delta: force_adjust_total_issuance::Delta,
}
pub mod force_adjust_total_issuance {
use super::runtime_types;
pub type Direction = runtime_types::pallet_balances::types::AdjustmentDirection;
pub type Delta = ::core::primitive::u128;
}
impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for ForceAdjustTotalIssuance {
const PALLET: &'static str = "Balances";
const CALL: &'static str = "force_adjust_total_issuance";
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode"
)]
#[doc = "Burn the specified liquid free balance from the origin account."]
#[doc = ""]
#[doc = "If the origin's account ends up below the existential deposit as a result"]
#[doc = "of the burn and `keep_alive` is false, the account will be reaped."]
#[doc = ""]
#[doc = "Unlike sending funds to a _burn_ address, which merely makes the funds inaccessible,"]
#[doc = "this `burn` operation will reduce total issuance by the amount _burned_."]
pub struct Burn {
#[codec(compact)]
pub value: burn::Value,
pub keep_alive: burn::KeepAlive,
}
pub mod burn {
use super::runtime_types;
pub type Value = ::core::primitive::u128;
pub type KeepAlive = ::core::primitive::bool;
}
impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for Burn {
const PALLET: &'static str = "Balances";
const CALL: &'static str = "burn";
}
}
pub struct TransactionApi;
impl TransactionApi {
#[doc = "Transfer some liquid free balance to another account."]
#[doc = ""]
#[doc = "`transfer_allow_death` will set the `FreeBalance` of the sender and receiver."]
#[doc = "If the sender's account is below the existential deposit as a result"]
#[doc = "of the transfer, the account will be reaped."]
#[doc = ""]
#[doc = "The dispatch origin for this call must be `Signed` by the transactor."]
pub fn transfer_allow_death(
&self,
dest: types::transfer_allow_death::Dest,
value: types::transfer_allow_death::Value,
) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload<types::TransferAllowDeath>
{
::subxt::ext::subxt_core::tx::payload::StaticPayload::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 = "Exactly as `transfer_allow_death`, except the origin must be root and the source account"]
#[doc = "may be specified."]
pub fn force_transfer(
&self,
source: types::force_transfer::Source,
dest: types::force_transfer::Dest,
value: types::force_transfer::Value,
) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload<types::ForceTransfer>
{
::subxt::ext::subxt_core::tx::payload::StaticPayload::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 = "Same as the [`transfer_allow_death`] call, but with a check that the transfer will not"]
#[doc = "kill the origin account."]
#[doc = ""]
#[doc = "99% of the time you want [`transfer_allow_death`] instead."]
#[doc = ""]
#[doc = "[`transfer_allow_death`]: struct.Pallet.html#method.transfer"]
pub fn transfer_keep_alive(
&self,
dest: types::transfer_keep_alive::Dest,
value: types::transfer_keep_alive::Value,
) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload<types::TransferKeepAlive>
{
::subxt::ext::subxt_core::tx::payload::StaticPayload::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 = "Transfer the entire transferable balance from the caller account."]
#[doc = ""]
#[doc = "NOTE: This function only attempts to transfer _transferable_ balances. This means that"]
#[doc = "any locked, reserved, or existential deposits (when `keep_alive` is `true`), will not be"]
#[doc = "transferred by this function. To ensure that this function results in a killed account,"]
#[doc = "you might need to prepare the account by removing any reference counters, storage"]
#[doc = "deposits, etc..."]
#[doc = ""]
#[doc = "The dispatch origin of this call must be Signed."]
#[doc = ""]
#[doc = "- `dest`: The recipient of the transfer."]
#[doc = "- `keep_alive`: A boolean to determine if the `transfer_all` operation should send all"]
#[doc = " of the funds the account has, causing the sender account to be killed (false), or"]
#[doc = " transfer everything except at least the existential deposit, which will guarantee to"]
#[doc = " keep the sender account alive (true)."]
pub fn transfer_all(
&self,
dest: types::transfer_all::Dest,
keep_alive: types::transfer_all::KeepAlive,
) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload<types::TransferAll> {
::subxt::ext::subxt_core::tx::payload::StaticPayload::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 = "Unreserve some balance from a user by force."]
#[doc = ""]
#[doc = "Can only be called by ROOT."]
pub fn force_unreserve(
&self,
who: types::force_unreserve::Who,
amount: types::force_unreserve::Amount,
) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload<types::ForceUnreserve>
{
::subxt::ext::subxt_core::tx::payload::StaticPayload::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 = "Upgrade a specified account."]
#[doc = ""]
#[doc = "- `origin`: Must be `Signed`."]
#[doc = "- `who`: The account to be upgraded."]
#[doc = ""]
#[doc = "This will waive the transaction fee if at least all but 10% of the accounts needed to"]
#[doc = "be upgraded. (We let some not have to be upgraded just in order to allow for the"]
#[doc = "possibility of churn)."]
pub fn upgrade_accounts(
&self,
who: types::upgrade_accounts::Who,
) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload<types::UpgradeAccounts>
{
::subxt::ext::subxt_core::tx::payload::StaticPayload::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 = "Set the regular balance of a given account."]
#[doc = ""]
#[doc = "The dispatch origin for this call is `root`."]
pub fn force_set_balance(
&self,
who: types::force_set_balance::Who,
new_free: types::force_set_balance::NewFree,
) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload<types::ForceSetBalance>
{
::subxt::ext::subxt_core::tx::payload::StaticPayload::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 = "Adjust the total issuance in a saturating way."]
#[doc = ""]
#[doc = "Can only be called by root and always needs a positive `delta`."]
#[doc = ""]
#[doc = "# Example"]
pub fn force_adjust_total_issuance(
&self,
direction: types::force_adjust_total_issuance::Direction,
delta: types::force_adjust_total_issuance::Delta,
) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload<
types::ForceAdjustTotalIssuance,
> {
::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static(
"Balances",
"force_adjust_total_issuance",
types::ForceAdjustTotalIssuance { direction, delta },
[
208u8, 134u8, 56u8, 133u8, 232u8, 164u8, 10u8, 213u8, 53u8, 193u8,
190u8, 63u8, 236u8, 186u8, 96u8, 122u8, 104u8, 87u8, 173u8, 38u8, 58u8,
176u8, 21u8, 78u8, 42u8, 106u8, 46u8, 248u8, 251u8, 190u8, 150u8,
202u8,
],
)
}
#[doc = "Burn the specified liquid free balance from the origin account."]
#[doc = ""]
#[doc = "If the origin's account ends up below the existential deposit as a result"]
#[doc = "of the burn and `keep_alive` is false, the account will be reaped."]
#[doc = ""]
#[doc = "Unlike sending funds to a _burn_ address, which merely makes the funds inaccessible,"]
#[doc = "this `burn` operation will reduce total issuance by the amount _burned_."]
pub fn burn(
&self,
value: types::burn::Value,
keep_alive: types::burn::KeepAlive,
) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload<types::Burn> {
::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static(
"Balances",
"burn",
types::Burn { value, keep_alive },
[
176u8, 64u8, 7u8, 109u8, 16u8, 44u8, 145u8, 125u8, 147u8, 152u8, 130u8,
114u8, 221u8, 201u8, 150u8, 162u8, 118u8, 71u8, 52u8, 92u8, 240u8,
116u8, 203u8, 98u8, 5u8, 22u8, 43u8, 102u8, 94u8, 208u8, 101u8, 57u8,
],
)
}
}
}
#[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 :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")]
#[doc = "An account was created with some free balance."]
pub struct Endowed {
pub account: endowed::Account,
pub free_balance: endowed::FreeBalance,
}
pub mod endowed {
use super::runtime_types;
pub type Account = ::subxt::ext::subxt_core::utils::AccountId32;
pub type FreeBalance = ::core::primitive::u128;
}
impl ::subxt::ext::subxt_core::events::StaticEvent for Endowed {
const PALLET: &'static str = "Balances";
const EVENT: &'static str = "Endowed";
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: 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: dust_lost::Account,
pub amount: dust_lost::Amount,
}
pub mod dust_lost {
use super::runtime_types;
pub type Account = ::subxt::ext::subxt_core::utils::AccountId32;
pub type Amount = ::core::primitive::u128;
}
impl ::subxt::ext::subxt_core::events::StaticEvent for DustLost {
const PALLET: &'static str = "Balances";
const EVENT: &'static str = "DustLost";
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")]
#[doc = "Transfer succeeded."]
pub struct Transfer {
pub from: transfer::From,
pub to: transfer::To,
pub amount: transfer::Amount,
}
pub mod transfer {
use super::runtime_types;
pub type From = ::subxt::ext::subxt_core::utils::AccountId32;
pub type To = ::subxt::ext::subxt_core::utils::AccountId32;
pub type Amount = ::core::primitive::u128;
}
impl ::subxt::ext::subxt_core::events::StaticEvent for Transfer {
const PALLET: &'static str = "Balances";
const EVENT: &'static str = "Transfer";
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")]
#[doc = "A balance was set by root."]
pub struct BalanceSet {
pub who: balance_set::Who,
pub free: balance_set::Free,
}
pub mod balance_set {
use super::runtime_types;
pub type Who = ::subxt::ext::subxt_core::utils::AccountId32;
pub type Free = ::core::primitive::u128;
}
impl ::subxt::ext::subxt_core::events::StaticEvent for BalanceSet {
const PALLET: &'static str = "Balances";
const EVENT: &'static str = "BalanceSet";
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")]
#[doc = "Some balance was reserved (moved from free to reserved)."]
pub struct Reserved {
pub who: reserved::Who,
pub amount: reserved::Amount,
}
pub mod reserved {
use super::runtime_types;
pub type Who = ::subxt::ext::subxt_core::utils::AccountId32;
pub type Amount = ::core::primitive::u128;
}
impl ::subxt::ext::subxt_core::events::StaticEvent for Reserved {
const PALLET: &'static str = "Balances";
const EVENT: &'static str = "Reserved";
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")]
#[doc = "Some balance was unreserved (moved from reserved to free)."]
pub struct Unreserved {
pub who: unreserved::Who,
pub amount: unreserved::Amount,
}
pub mod unreserved {
use super::runtime_types;
pub type Who = ::subxt::ext::subxt_core::utils::AccountId32;
pub type Amount = ::core::primitive::u128;
}
impl ::subxt::ext::subxt_core::events::StaticEvent for Unreserved {
const PALLET: &'static str = "Balances";
const EVENT: &'static str = "Unreserved";
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: 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: reserve_repatriated::From,
pub to: reserve_repatriated::To,
pub amount: reserve_repatriated::Amount,
pub destination_status: reserve_repatriated::DestinationStatus,
}
pub mod reserve_repatriated {
use super::runtime_types;
pub type From = ::subxt::ext::subxt_core::utils::AccountId32;
pub type To = ::subxt::ext::subxt_core::utils::AccountId32;
pub type Amount = ::core::primitive::u128;
pub type DestinationStatus =
runtime_types::frame_support::traits::tokens::misc::BalanceStatus;
}
impl ::subxt::ext::subxt_core::events::StaticEvent for ReserveRepatriated {
const PALLET: &'static str = "Balances";
const EVENT: &'static str = "ReserveRepatriated";
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")]
#[doc = "Some amount was deposited (e.g. for transaction fees)."]
pub struct Deposit {
pub who: deposit::Who,
pub amount: deposit::Amount,
}
pub mod deposit {
use super::runtime_types;
pub type Who = ::subxt::ext::subxt_core::utils::AccountId32;
pub type Amount = ::core::primitive::u128;
}
impl ::subxt::ext::subxt_core::events::StaticEvent for Deposit {
const PALLET: &'static str = "Balances";
const EVENT: &'static str = "Deposit";
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")]
#[doc = "Some amount was withdrawn from the account (e.g. for transaction fees)."]
pub struct Withdraw {
pub who: withdraw::Who,
pub amount: withdraw::Amount,
}
pub mod withdraw {
use super::runtime_types;
pub type Who = ::subxt::ext::subxt_core::utils::AccountId32;
pub type Amount = ::core::primitive::u128;
}
impl ::subxt::ext::subxt_core::events::StaticEvent for Withdraw {
const PALLET: &'static str = "Balances";
const EVENT: &'static str = "Withdraw";
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")]
#[doc = "Some amount was removed from the account (e.g. for misbehavior)."]
pub struct Slashed {
pub who: slashed::Who,
pub amount: slashed::Amount,
}
pub mod slashed {
use super::runtime_types;
pub type Who = ::subxt::ext::subxt_core::utils::AccountId32;
pub type Amount = ::core::primitive::u128;
}
impl ::subxt::ext::subxt_core::events::StaticEvent for Slashed {
const PALLET: &'static str = "Balances";
const EVENT: &'static str = "Slashed";
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")]
#[doc = "Some amount was minted into an account."]
pub struct Minted {
pub who: minted::Who,
pub amount: minted::Amount,
}
pub mod minted {
use super::runtime_types;
pub type Who = ::subxt::ext::subxt_core::utils::AccountId32;
pub type Amount = ::core::primitive::u128;
}
impl ::subxt::ext::subxt_core::events::StaticEvent for Minted {
const PALLET: &'static str = "Balances";
const EVENT: &'static str = "Minted";
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")]
#[doc = "Some credit was balanced and added to the TotalIssuance."]
pub struct MintedCredit {
pub amount: minted_credit::Amount,
}
pub mod minted_credit {
use super::runtime_types;
pub type Amount = ::core::primitive::u128;
}
impl ::subxt::ext::subxt_core::events::StaticEvent for MintedCredit {
const PALLET: &'static str = "Balances";
const EVENT: &'static str = "MintedCredit";
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")]
#[doc = "Some amount was burned from an account."]
pub struct Burned {
pub who: burned::Who,
pub amount: burned::Amount,
}
pub mod burned {
use super::runtime_types;
pub type Who = ::subxt::ext::subxt_core::utils::AccountId32;
pub type Amount = ::core::primitive::u128;
}
impl ::subxt::ext::subxt_core::events::StaticEvent for Burned {
const PALLET: &'static str = "Balances";
const EVENT: &'static str = "Burned";
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")]
#[doc = "Some debt has been dropped from the Total Issuance."]
pub struct BurnedDebt {
pub amount: burned_debt::Amount,
}
pub mod burned_debt {
use super::runtime_types;
pub type Amount = ::core::primitive::u128;
}
impl ::subxt::ext::subxt_core::events::StaticEvent for BurnedDebt {
const PALLET: &'static str = "Balances";
const EVENT: &'static str = "BurnedDebt";
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")]
#[doc = "Some amount was suspended from an account (it can be restored later)."]
pub struct Suspended {
pub who: suspended::Who,
pub amount: suspended::Amount,
}
pub mod suspended {
use super::runtime_types;
pub type Who = ::subxt::ext::subxt_core::utils::AccountId32;
pub type Amount = ::core::primitive::u128;
}
impl ::subxt::ext::subxt_core::events::StaticEvent for Suspended {
const PALLET: &'static str = "Balances";
const EVENT: &'static str = "Suspended";
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")]
#[doc = "Some amount was restored into an account."]
pub struct Restored {
pub who: restored::Who,
pub amount: restored::Amount,
}
pub mod restored {
use super::runtime_types;
pub type Who = ::subxt::ext::subxt_core::utils::AccountId32;
pub type Amount = ::core::primitive::u128;
}
impl ::subxt::ext::subxt_core::events::StaticEvent for Restored {
const PALLET: &'static str = "Balances";
const EVENT: &'static str = "Restored";
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")]
#[doc = "An account was upgraded."]
pub struct Upgraded {
pub who: upgraded::Who,
}
pub mod upgraded {
use super::runtime_types;
pub type Who = ::subxt::ext::subxt_core::utils::AccountId32;
}
impl ::subxt::ext::subxt_core::events::StaticEvent for Upgraded {
const PALLET: &'static str = "Balances";
const EVENT: &'static str = "Upgraded";
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")]
#[doc = "Total issuance was increased by `amount`, creating a credit to be balanced."]
pub struct Issued {
pub amount: issued::Amount,
}
pub mod issued {
use super::runtime_types;
pub type Amount = ::core::primitive::u128;
}
impl ::subxt::ext::subxt_core::events::StaticEvent for Issued {
const PALLET: &'static str = "Balances";
const EVENT: &'static str = "Issued";
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")]
#[doc = "Total issuance was decreased by `amount`, creating a debt to be balanced."]
pub struct Rescinded {
pub amount: rescinded::Amount,
}
pub mod rescinded {
use super::runtime_types;
pub type Amount = ::core::primitive::u128;
}
impl ::subxt::ext::subxt_core::events::StaticEvent for Rescinded {
const PALLET: &'static str = "Balances";
const EVENT: &'static str = "Rescinded";
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")]
#[doc = "Some balance was locked."]
pub struct Locked {
pub who: locked::Who,
pub amount: locked::Amount,
}
pub mod locked {
use super::runtime_types;
pub type Who = ::subxt::ext::subxt_core::utils::AccountId32;
pub type Amount = ::core::primitive::u128;
}
impl ::subxt::ext::subxt_core::events::StaticEvent for Locked {
const PALLET: &'static str = "Balances";
const EVENT: &'static str = "Locked";
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")]
#[doc = "Some balance was unlocked."]
pub struct Unlocked {
pub who: unlocked::Who,
pub amount: unlocked::Amount,
}
pub mod unlocked {
use super::runtime_types;
pub type Who = ::subxt::ext::subxt_core::utils::AccountId32;
pub type Amount = ::core::primitive::u128;
}
impl ::subxt::ext::subxt_core::events::StaticEvent for Unlocked {
const PALLET: &'static str = "Balances";
const EVENT: &'static str = "Unlocked";
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")]
#[doc = "Some balance was frozen."]
pub struct Frozen {
pub who: frozen::Who,
pub amount: frozen::Amount,
}
pub mod frozen {
use super::runtime_types;
pub type Who = ::subxt::ext::subxt_core::utils::AccountId32;
pub type Amount = ::core::primitive::u128;
}
impl ::subxt::ext::subxt_core::events::StaticEvent for Frozen {
const PALLET: &'static str = "Balances";
const EVENT: &'static str = "Frozen";
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")]
#[doc = "Some balance was thawed."]
pub struct Thawed {
pub who: thawed::Who,
pub amount: thawed::Amount,
}
pub mod thawed {
use super::runtime_types;
pub type Who = ::subxt::ext::subxt_core::utils::AccountId32;
pub type Amount = ::core::primitive::u128;
}
impl ::subxt::ext::subxt_core::events::StaticEvent for Thawed {
const PALLET: &'static str = "Balances";
const EVENT: &'static str = "Thawed";
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")]
#[doc = "The `TotalIssuance` was forcefully changed."]
pub struct TotalIssuanceForced {
pub old: total_issuance_forced::Old,
pub new: total_issuance_forced::New,
}
pub mod total_issuance_forced {
use super::runtime_types;
pub type Old = ::core::primitive::u128;
pub type New = ::core::primitive::u128;
}
impl ::subxt::ext::subxt_core::events::StaticEvent for TotalIssuanceForced {
const PALLET: &'static str = "Balances";
const EVENT: &'static str = "TotalIssuanceForced";
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")]
#[doc = "Some balance was placed on hold."]
pub struct Held {
pub reason: held::Reason,
pub who: held::Who,
pub amount: held::Amount,
}
pub mod held {
use super::runtime_types;
pub type Reason = runtime_types::quantus_runtime::RuntimeHoldReason;
pub type Who = ::subxt::ext::subxt_core::utils::AccountId32;
pub type Amount = ::core::primitive::u128;
}
impl ::subxt::ext::subxt_core::events::StaticEvent for Held {
const PALLET: &'static str = "Balances";
const EVENT: &'static str = "Held";
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")]
#[doc = "Held balance was burned from an account."]
pub struct BurnedHeld {
pub reason: burned_held::Reason,
pub who: burned_held::Who,
pub amount: burned_held::Amount,
}
pub mod burned_held {
use super::runtime_types;
pub type Reason = runtime_types::quantus_runtime::RuntimeHoldReason;
pub type Who = ::subxt::ext::subxt_core::utils::AccountId32;
pub type Amount = ::core::primitive::u128;
}
impl ::subxt::ext::subxt_core::events::StaticEvent for BurnedHeld {
const PALLET: &'static str = "Balances";
const EVENT: &'static str = "BurnedHeld";
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")]
#[doc = "A transfer of `amount` on hold from `source` to `dest` was initiated."]
pub struct TransferOnHold {
pub reason: transfer_on_hold::Reason,
pub source: transfer_on_hold::Source,
pub dest: transfer_on_hold::Dest,
pub amount: transfer_on_hold::Amount,
}
pub mod transfer_on_hold {
use super::runtime_types;
pub type Reason = runtime_types::quantus_runtime::RuntimeHoldReason;
pub type Source = ::subxt::ext::subxt_core::utils::AccountId32;
pub type Dest = ::subxt::ext::subxt_core::utils::AccountId32;
pub type Amount = ::core::primitive::u128;
}
impl ::subxt::ext::subxt_core::events::StaticEvent for TransferOnHold {
const PALLET: &'static str = "Balances";
const EVENT: &'static str = "TransferOnHold";
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")]
#[doc = "The `transferred` balance is placed on hold at the `dest` account."]
pub struct TransferAndHold {
pub reason: transfer_and_hold::Reason,
pub source: transfer_and_hold::Source,
pub dest: transfer_and_hold::Dest,
pub transferred: transfer_and_hold::Transferred,
}
pub mod transfer_and_hold {
use super::runtime_types;
pub type Reason = runtime_types::quantus_runtime::RuntimeHoldReason;
pub type Source = ::subxt::ext::subxt_core::utils::AccountId32;
pub type Dest = ::subxt::ext::subxt_core::utils::AccountId32;
pub type Transferred = ::core::primitive::u128;
}
impl ::subxt::ext::subxt_core::events::StaticEvent for TransferAndHold {
const PALLET: &'static str = "Balances";
const EVENT: &'static str = "TransferAndHold";
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")]
#[doc = "Some balance was released from hold."]
pub struct Released {
pub reason: released::Reason,
pub who: released::Who,
pub amount: released::Amount,
}
pub mod released {
use super::runtime_types;
pub type Reason = runtime_types::quantus_runtime::RuntimeHoldReason;
pub type Who = ::subxt::ext::subxt_core::utils::AccountId32;
pub type Amount = ::core::primitive::u128;
}
impl ::subxt::ext::subxt_core::events::StaticEvent for Released {
const PALLET: &'static str = "Balances";
const EVENT: &'static str = "Released";
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")]
#[doc = "An unexpected/defensive event was triggered."]
pub struct Unexpected(pub unexpected::Field0);
pub mod unexpected {
use super::runtime_types;
pub type Field0 = runtime_types::pallet_balances::pallet::UnexpectedKind;
}
impl ::subxt::ext::subxt_core::events::StaticEvent for Unexpected {
const PALLET: &'static str = "Balances";
const EVENT: &'static str = "Unexpected";
}
}
pub mod storage {
use super::runtime_types;
pub mod types {
use super::runtime_types;
pub mod total_issuance {
use super::runtime_types;
pub type TotalIssuance = ::core::primitive::u128;
}
pub mod inactive_issuance {
use super::runtime_types;
pub type InactiveIssuance = ::core::primitive::u128;
}
pub mod account {
use super::runtime_types;
pub type Account =
runtime_types::pallet_balances::types::AccountData<::core::primitive::u128>;
pub type Param0 = ::subxt::ext::subxt_core::utils::AccountId32;
}
pub mod locks {
use super::runtime_types;
pub type Locks =
runtime_types::bounded_collections::weak_bounded_vec::WeakBoundedVec<
runtime_types::pallet_balances::types::BalanceLock<
::core::primitive::u128,
>,
>;
pub type Param0 = ::subxt::ext::subxt_core::utils::AccountId32;
}
pub mod reserves {
use super::runtime_types;
pub type Reserves = runtime_types::bounded_collections::bounded_vec::BoundedVec<
runtime_types::pallet_balances::types::ReserveData<
[::core::primitive::u8; 8usize],
::core::primitive::u128,
>,
>;
pub type Param0 = ::subxt::ext::subxt_core::utils::AccountId32;
}
pub mod holds {
use super::runtime_types;
pub type Holds = runtime_types::bounded_collections::bounded_vec::BoundedVec<
runtime_types::frame_support::traits::tokens::misc::IdAmount<
runtime_types::quantus_runtime::RuntimeHoldReason,
::core::primitive::u128,
>,
>;
pub type Param0 = ::subxt::ext::subxt_core::utils::AccountId32;
}
pub mod freezes {
use super::runtime_types;
pub type Freezes = runtime_types::bounded_collections::bounded_vec::BoundedVec<
runtime_types::frame_support::traits::tokens::misc::IdAmount<
runtime_types::quantus_runtime::RuntimeFreezeReason,
::core::primitive::u128,
>,
>;
pub type Param0 = ::subxt::ext::subxt_core::utils::AccountId32;
}
}
pub struct StorageApi;
impl StorageApi {
#[doc = " The total units issued in the system."]
pub fn total_issuance(
&self,
) -> ::subxt::ext::subxt_core::storage::address::StaticAddress<
(),
types::total_issuance::TotalIssuance,
::subxt::ext::subxt_core::utils::Yes,
::subxt::ext::subxt_core::utils::Yes,
(),
> {
::subxt::ext::subxt_core::storage::address::StaticAddress::new_static(
"Balances",
"TotalIssuance",
(),
[
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::ext::subxt_core::storage::address::StaticAddress<
(),
types::inactive_issuance::InactiveIssuance,
::subxt::ext::subxt_core::utils::Yes,
::subxt::ext::subxt_core::utils::Yes,
(),
> {
::subxt::ext::subxt_core::storage::address::StaticAddress::new_static(
"Balances",
"InactiveIssuance",
(),
[
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::ext::subxt_core::storage::address::StaticAddress<
(),
types::account::Account,
(),
::subxt::ext::subxt_core::utils::Yes,
::subxt::ext::subxt_core::utils::Yes,
> {
::subxt::ext::subxt_core::storage::address::StaticAddress::new_static(
"Balances",
"Account",
(),
[
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: types::account::Param0,
) -> ::subxt::ext::subxt_core::storage::address::StaticAddress<
::subxt::ext::subxt_core::storage::address::StaticStorageKey<
types::account::Param0,
>,
types::account::Account,
::subxt::ext::subxt_core::utils::Yes,
::subxt::ext::subxt_core::utils::Yes,
(),
> {
::subxt::ext::subxt_core::storage::address::StaticAddress::new_static(
"Balances",
"Account",
::subxt::ext::subxt_core::storage::address::StaticStorageKey::new(_0),
[
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."]
#[doc = ""]
#[doc = " Use of locks is deprecated in favour of freezes. See `https://github.com/paritytech/substrate/pull/12951/`"]
pub fn locks_iter(
&self,
) -> ::subxt::ext::subxt_core::storage::address::StaticAddress<
(),
types::locks::Locks,
(),
::subxt::ext::subxt_core::utils::Yes,
::subxt::ext::subxt_core::utils::Yes,
> {
::subxt::ext::subxt_core::storage::address::StaticAddress::new_static(
"Balances",
"Locks",
(),
[
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."]
#[doc = ""]
#[doc = " Use of locks is deprecated in favour of freezes. See `https://github.com/paritytech/substrate/pull/12951/`"]
pub fn locks(
&self,
_0: types::locks::Param0,
) -> ::subxt::ext::subxt_core::storage::address::StaticAddress<
::subxt::ext::subxt_core::storage::address::StaticStorageKey<
types::locks::Param0,
>,
types::locks::Locks,
::subxt::ext::subxt_core::utils::Yes,
::subxt::ext::subxt_core::utils::Yes,
(),
> {
::subxt::ext::subxt_core::storage::address::StaticAddress::new_static(
"Balances",
"Locks",
::subxt::ext::subxt_core::storage::address::StaticStorageKey::new(_0),
[
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."]
#[doc = ""]
#[doc = " Use of reserves is deprecated in favour of holds. See `https://github.com/paritytech/substrate/pull/12951/`"]
pub fn reserves_iter(
&self,
) -> ::subxt::ext::subxt_core::storage::address::StaticAddress<
(),
types::reserves::Reserves,
(),
::subxt::ext::subxt_core::utils::Yes,
::subxt::ext::subxt_core::utils::Yes,
> {
::subxt::ext::subxt_core::storage::address::StaticAddress::new_static(
"Balances",
"Reserves",
(),
[
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."]
#[doc = ""]
#[doc = " Use of reserves is deprecated in favour of holds. See `https://github.com/paritytech/substrate/pull/12951/`"]
pub fn reserves(
&self,
_0: types::reserves::Param0,
) -> ::subxt::ext::subxt_core::storage::address::StaticAddress<
::subxt::ext::subxt_core::storage::address::StaticStorageKey<
types::reserves::Param0,
>,
types::reserves::Reserves,
::subxt::ext::subxt_core::utils::Yes,
::subxt::ext::subxt_core::utils::Yes,
(),
> {
::subxt::ext::subxt_core::storage::address::StaticAddress::new_static(
"Balances",
"Reserves",
::subxt::ext::subxt_core::storage::address::StaticStorageKey::new(_0),
[
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::ext::subxt_core::storage::address::StaticAddress<
(),
types::holds::Holds,
(),
::subxt::ext::subxt_core::utils::Yes,
::subxt::ext::subxt_core::utils::Yes,
> {
::subxt::ext::subxt_core::storage::address::StaticAddress::new_static(
"Balances",
"Holds",
(),
[
108u8, 118u8, 163u8, 86u8, 4u8, 174u8, 42u8, 210u8, 139u8, 171u8, 15u8,
242u8, 10u8, 4u8, 255u8, 205u8, 247u8, 61u8, 236u8, 127u8, 54u8, 175u8,
182u8, 131u8, 84u8, 129u8, 78u8, 242u8, 92u8, 143u8, 219u8, 35u8,
],
)
}
#[doc = " Holds on account balances."]
pub fn holds(
&self,
_0: types::holds::Param0,
) -> ::subxt::ext::subxt_core::storage::address::StaticAddress<
::subxt::ext::subxt_core::storage::address::StaticStorageKey<
types::holds::Param0,
>,
types::holds::Holds,
::subxt::ext::subxt_core::utils::Yes,
::subxt::ext::subxt_core::utils::Yes,
(),
> {
::subxt::ext::subxt_core::storage::address::StaticAddress::new_static(
"Balances",
"Holds",
::subxt::ext::subxt_core::storage::address::StaticStorageKey::new(_0),
[
108u8, 118u8, 163u8, 86u8, 4u8, 174u8, 42u8, 210u8, 139u8, 171u8, 15u8,
242u8, 10u8, 4u8, 255u8, 205u8, 247u8, 61u8, 236u8, 127u8, 54u8, 175u8,
182u8, 131u8, 84u8, 129u8, 78u8, 242u8, 92u8, 143u8, 219u8, 35u8,
],
)
}
#[doc = " Freeze locks on account balances."]
pub fn freezes_iter(
&self,
) -> ::subxt::ext::subxt_core::storage::address::StaticAddress<
(),
types::freezes::Freezes,
(),
::subxt::ext::subxt_core::utils::Yes,
::subxt::ext::subxt_core::utils::Yes,
> {
::subxt::ext::subxt_core::storage::address::StaticAddress::new_static(
"Balances",
"Freezes",
(),
[
170u8, 69u8, 116u8, 92u8, 165u8, 14u8, 129u8, 179u8, 165u8, 6u8, 123u8,
156u8, 4u8, 30u8, 25u8, 181u8, 191u8, 29u8, 3u8, 92u8, 96u8, 167u8,
102u8, 38u8, 128u8, 140u8, 85u8, 248u8, 114u8, 127u8, 128u8, 40u8,
],
)
}
#[doc = " Freeze locks on account balances."]
pub fn freezes(
&self,
_0: types::freezes::Param0,
) -> ::subxt::ext::subxt_core::storage::address::StaticAddress<
::subxt::ext::subxt_core::storage::address::StaticStorageKey<
types::freezes::Param0,
>,
types::freezes::Freezes,
::subxt::ext::subxt_core::utils::Yes,
::subxt::ext::subxt_core::utils::Yes,
(),
> {
::subxt::ext::subxt_core::storage::address::StaticAddress::new_static(
"Balances",
"Freezes",
::subxt::ext::subxt_core::storage::address::StaticStorageKey::new(_0),
[
170u8, 69u8, 116u8, 92u8, 165u8, 14u8, 129u8, 179u8, 165u8, 6u8, 123u8,
156u8, 4u8, 30u8, 25u8, 181u8, 191u8, 29u8, 3u8, 92u8, 96u8, 167u8,
102u8, 38u8, 128u8, 140u8, 85u8, 248u8, 114u8, 127u8, 128u8, 40u8,
],
)
}
}
}
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::ext::subxt_core::constants::address::StaticAddress<
::core::primitive::u128,
> {
::subxt::ext::subxt_core::constants::address::StaticAddress::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."]
#[doc = ""]
#[doc = " Use of locks is deprecated in favour of freezes. See `https://github.com/paritytech/substrate/pull/12951/`"]
pub fn max_locks(
&self,
) -> ::subxt::ext::subxt_core::constants::address::StaticAddress<
::core::primitive::u32,
> {
::subxt::ext::subxt_core::constants::address::StaticAddress::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."]
#[doc = ""]
#[doc = " Use of reserves is deprecated in favour of holds. See `https://github.com/paritytech/substrate/pull/12951/`"]
pub fn max_reserves(
&self,
) -> ::subxt::ext::subxt_core::constants::address::StaticAddress<
::core::primitive::u32,
> {
::subxt::ext::subxt_core::constants::address::StaticAddress::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 individual freeze locks that can exist on an account at any time."]
pub fn max_freezes(
&self,
) -> ::subxt::ext::subxt_core::constants::address::StaticAddress<
::core::primitive::u32,
> {
::subxt::ext::subxt_core::constants::address::StaticAddress::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, 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 :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: 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: transaction_fee_paid::Who,
pub actual_fee: transaction_fee_paid::ActualFee,
pub tip: transaction_fee_paid::Tip,
}
pub mod transaction_fee_paid {
use super::runtime_types;
pub type Who = ::subxt::ext::subxt_core::utils::AccountId32;
pub type ActualFee = ::core::primitive::u128;
pub type Tip = ::core::primitive::u128;
}
impl ::subxt::ext::subxt_core::events::StaticEvent for TransactionFeePaid {
const PALLET: &'static str = "TransactionPayment";
const EVENT: &'static str = "TransactionFeePaid";
}
}
pub mod storage {
use super::runtime_types;
pub mod types {
use super::runtime_types;
pub mod next_fee_multiplier {
use super::runtime_types;
pub type NextFeeMultiplier =
runtime_types::sp_arithmetic::fixed_point::FixedU128;
}
pub mod storage_version {
use super::runtime_types;
pub type StorageVersion = runtime_types::pallet_transaction_payment::Releases;
}
pub mod tx_payment_credit {
use super::runtime_types;
pub type TxPaymentCredit = runtime_types :: frame_support :: traits :: storage :: NoDrop < runtime_types :: frame_support :: traits :: tokens :: fungible :: imbalance :: Imbalance < :: core :: primitive :: u128 > > ;
}
}
pub struct StorageApi;
impl StorageApi {
pub fn next_fee_multiplier(
&self,
) -> ::subxt::ext::subxt_core::storage::address::StaticAddress<
(),
types::next_fee_multiplier::NextFeeMultiplier,
::subxt::ext::subxt_core::utils::Yes,
::subxt::ext::subxt_core::utils::Yes,
(),
> {
::subxt::ext::subxt_core::storage::address::StaticAddress::new_static(
"TransactionPayment",
"NextFeeMultiplier",
(),
[
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::ext::subxt_core::storage::address::StaticAddress<
(),
types::storage_version::StorageVersion,
::subxt::ext::subxt_core::utils::Yes,
::subxt::ext::subxt_core::utils::Yes,
(),
> {
::subxt::ext::subxt_core::storage::address::StaticAddress::new_static(
"TransactionPayment",
"StorageVersion",
(),
[
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,
],
)
}
#[doc = " The `OnChargeTransaction` stores the withdrawn tx fee here."]
#[doc = ""]
#[doc = " Use `withdraw_txfee` and `remaining_txfee` to access from outside the crate."]
pub fn tx_payment_credit(
&self,
) -> ::subxt::ext::subxt_core::storage::address::StaticAddress<
(),
types::tx_payment_credit::TxPaymentCredit,
::subxt::ext::subxt_core::utils::Yes,
(),
(),
> {
::subxt::ext::subxt_core::storage::address::StaticAddress::new_static(
"TransactionPayment",
"TxPaymentCredit",
(),
[
39u8, 127u8, 132u8, 77u8, 25u8, 10u8, 195u8, 64u8, 255u8, 212u8, 183u8,
177u8, 238u8, 24u8, 81u8, 65u8, 93u8, 177u8, 209u8, 134u8, 245u8,
241u8, 252u8, 87u8, 179u8, 61u8, 168u8, 77u8, 65u8, 13u8, 72u8, 205u8,
],
)
}
}
}
pub mod constants {
use super::runtime_types;
pub struct ConstantsApi;
impl ConstantsApi {
#[doc = " A fee multiplier for `Operational` extrinsics to compute \"virtual tip\" to boost their"]
#[doc = " `priority`"]
#[doc = ""]
#[doc = " This value is multiplied 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::ext::subxt_core::constants::address::StaticAddress<
::core::primitive::u8,
> {
::subxt::ext::subxt_core::constants::address::StaticAddress::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 q_po_w {
use super::{root_mod, runtime_types};
#[doc = "The `Event` enum of this pallet"]
pub type Event = runtime_types::pallet_qpow::pallet::Event;
pub mod events {
use super::runtime_types;
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")]
pub struct ProofSubmitted {
pub nonce: proof_submitted::Nonce,
pub difficulty: proof_submitted::Difficulty,
pub hash_achieved: proof_submitted::HashAchieved,
}
pub mod proof_submitted {
use super::runtime_types;
pub type Nonce = [::core::primitive::u8; 64usize];
pub type Difficulty = runtime_types::primitive_types::U512;
pub type HashAchieved = runtime_types::primitive_types::U512;
}
impl ::subxt::ext::subxt_core::events::StaticEvent for ProofSubmitted {
const PALLET: &'static str = "QPoW";
const EVENT: &'static str = "ProofSubmitted";
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")]
pub struct DifficultyAdjusted {
pub old_difficulty: difficulty_adjusted::OldDifficulty,
pub new_difficulty: difficulty_adjusted::NewDifficulty,
pub observed_block_time: difficulty_adjusted::ObservedBlockTime,
}
pub mod difficulty_adjusted {
use super::runtime_types;
pub type OldDifficulty = runtime_types::primitive_types::U512;
pub type NewDifficulty = runtime_types::primitive_types::U512;
pub type ObservedBlockTime = ::core::primitive::u64;
}
impl ::subxt::ext::subxt_core::events::StaticEvent for DifficultyAdjusted {
const PALLET: &'static str = "QPoW";
const EVENT: &'static str = "DifficultyAdjusted";
}
}
pub mod storage {
use super::runtime_types;
pub mod types {
use super::runtime_types;
pub mod last_block_time {
use super::runtime_types;
pub type LastBlockTime = ::core::primitive::u64;
}
pub mod last_block_duration {
use super::runtime_types;
pub type LastBlockDuration = ::core::primitive::u64;
}
pub mod current_difficulty {
use super::runtime_types;
pub type CurrentDifficulty = runtime_types::primitive_types::U512;
}
}
pub struct StorageApi;
impl StorageApi {
pub fn last_block_time(
&self,
) -> ::subxt::ext::subxt_core::storage::address::StaticAddress<
(),
types::last_block_time::LastBlockTime,
::subxt::ext::subxt_core::utils::Yes,
::subxt::ext::subxt_core::utils::Yes,
(),
> {
::subxt::ext::subxt_core::storage::address::StaticAddress::new_static(
"QPoW",
"LastBlockTime",
(),
[
239u8, 229u8, 252u8, 169u8, 178u8, 1u8, 146u8, 236u8, 50u8, 59u8,
221u8, 169u8, 107u8, 168u8, 203u8, 103u8, 252u8, 189u8, 52u8, 64u8,
235u8, 110u8, 164u8, 100u8, 85u8, 66u8, 202u8, 71u8, 189u8, 18u8, 4u8,
217u8,
],
)
}
pub fn last_block_duration(
&self,
) -> ::subxt::ext::subxt_core::storage::address::StaticAddress<
(),
types::last_block_duration::LastBlockDuration,
::subxt::ext::subxt_core::utils::Yes,
::subxt::ext::subxt_core::utils::Yes,
(),
> {
::subxt::ext::subxt_core::storage::address::StaticAddress::new_static(
"QPoW",
"LastBlockDuration",
(),
[
44u8, 139u8, 180u8, 95u8, 43u8, 58u8, 255u8, 71u8, 201u8, 240u8, 61u8,
131u8, 214u8, 202u8, 118u8, 157u8, 21u8, 52u8, 154u8, 123u8, 253u8,
160u8, 68u8, 100u8, 91u8, 196u8, 168u8, 14u8, 84u8, 60u8, 160u8, 229u8,
],
)
}
pub fn current_difficulty(
&self,
) -> ::subxt::ext::subxt_core::storage::address::StaticAddress<
(),
types::current_difficulty::CurrentDifficulty,
::subxt::ext::subxt_core::utils::Yes,
::subxt::ext::subxt_core::utils::Yes,
(),
> {
::subxt::ext::subxt_core::storage::address::StaticAddress::new_static(
"QPoW",
"CurrentDifficulty",
(),
[
130u8, 252u8, 118u8, 64u8, 64u8, 105u8, 70u8, 33u8, 78u8, 161u8, 9u8,
26u8, 68u8, 38u8, 223u8, 64u8, 19u8, 4u8, 249u8, 112u8, 193u8, 122u8,
16u8, 149u8, 46u8, 50u8, 227u8, 225u8, 5u8, 47u8, 227u8, 169u8,
],
)
}
}
}
pub mod constants {
use super::runtime_types;
pub struct ConstantsApi;
impl ConstantsApi {
pub fn initial_difficulty(
&self,
) -> ::subxt::ext::subxt_core::constants::address::StaticAddress<
runtime_types::primitive_types::U512,
> {
::subxt::ext::subxt_core::constants::address::StaticAddress::new_static(
"QPoW",
"InitialDifficulty",
[
20u8, 85u8, 224u8, 179u8, 96u8, 72u8, 114u8, 236u8, 59u8, 214u8, 15u8,
55u8, 76u8, 43u8, 109u8, 39u8, 42u8, 74u8, 194u8, 175u8, 2u8, 22u8,
208u8, 96u8, 61u8, 112u8, 226u8, 124u8, 66u8, 243u8, 48u8, 212u8,
],
)
}
pub fn target_block_time(
&self,
) -> ::subxt::ext::subxt_core::constants::address::StaticAddress<
::core::primitive::u64,
> {
::subxt::ext::subxt_core::constants::address::StaticAddress::new_static(
"QPoW",
"TargetBlockTime",
[
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 fn max_reorg_depth(
&self,
) -> ::subxt::ext::subxt_core::constants::address::StaticAddress<
::core::primitive::u32,
> {
::subxt::ext::subxt_core::constants::address::StaticAddress::new_static(
"QPoW",
"MaxReorgDepth",
[
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 mining_rewards {
use super::{root_mod, runtime_types};
#[doc = "The `Event` enum of this pallet"]
pub type Event = runtime_types::pallet_mining_rewards::pallet::Event;
pub mod events {
use super::runtime_types;
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")]
#[doc = "A miner has been identified for a block"]
pub struct MinerRewarded {
pub miner: miner_rewarded::Miner,
pub reward: miner_rewarded::Reward,
}
pub mod miner_rewarded {
use super::runtime_types;
pub type Miner = ::subxt::ext::subxt_core::utils::AccountId32;
pub type Reward = ::core::primitive::u128;
}
impl ::subxt::ext::subxt_core::events::StaticEvent for MinerRewarded {
const PALLET: &'static str = "MiningRewards";
const EVENT: &'static str = "MinerRewarded";
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")]
#[doc = "Transaction fees were collected for later distribution"]
pub struct FeesCollected {
pub amount: fees_collected::Amount,
pub total: fees_collected::Total,
}
pub mod fees_collected {
use super::runtime_types;
pub type Amount = ::core::primitive::u128;
pub type Total = ::core::primitive::u128;
}
impl ::subxt::ext::subxt_core::events::StaticEvent for FeesCollected {
const PALLET: &'static str = "MiningRewards";
const EVENT: &'static str = "FeesCollected";
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")]
#[doc = "Rewards were sent to Treasury when no miner was specified"]
pub struct TreasuryRewarded {
pub reward: treasury_rewarded::Reward,
}
pub mod treasury_rewarded {
use super::runtime_types;
pub type Reward = ::core::primitive::u128;
}
impl ::subxt::ext::subxt_core::events::StaticEvent for TreasuryRewarded {
const PALLET: &'static str = "MiningRewards";
const EVENT: &'static str = "TreasuryRewarded";
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")]
#[doc = "Miner reward was redirected to treasury due to mint failure"]
pub struct MinerRewardRedirected {
pub miner: miner_reward_redirected::Miner,
pub reward: miner_reward_redirected::Reward,
}
pub mod miner_reward_redirected {
use super::runtime_types;
pub type Miner = ::subxt::ext::subxt_core::utils::AccountId32;
pub type Reward = ::core::primitive::u128;
}
impl ::subxt::ext::subxt_core::events::StaticEvent for MinerRewardRedirected {
const PALLET: &'static str = "MiningRewards";
const EVENT: &'static str = "MinerRewardRedirected";
}
}
pub mod storage {
use super::runtime_types;
pub mod types {
use super::runtime_types;
pub mod collected_fees {
use super::runtime_types;
pub type CollectedFees = ::core::primitive::u128;
}
}
pub struct StorageApi;
impl StorageApi {
pub fn collected_fees(
&self,
) -> ::subxt::ext::subxt_core::storage::address::StaticAddress<
(),
types::collected_fees::CollectedFees,
::subxt::ext::subxt_core::utils::Yes,
::subxt::ext::subxt_core::utils::Yes,
(),
> {
::subxt::ext::subxt_core::storage::address::StaticAddress::new_static(
"MiningRewards",
"CollectedFees",
(),
[
136u8, 52u8, 218u8, 204u8, 2u8, 250u8, 34u8, 8u8, 16u8, 23u8, 171u8,
3u8, 253u8, 35u8, 59u8, 7u8, 167u8, 227u8, 86u8, 15u8, 155u8, 14u8,
139u8, 44u8, 208u8, 108u8, 85u8, 131u8, 170u8, 37u8, 211u8, 211u8,
],
)
}
}
}
pub mod constants {
use super::runtime_types;
pub struct ConstantsApi;
impl ConstantsApi {
#[doc = " The maximum total supply of tokens"]
pub fn max_supply(
&self,
) -> ::subxt::ext::subxt_core::constants::address::StaticAddress<
::core::primitive::u128,
> {
::subxt::ext::subxt_core::constants::address::StaticAddress::new_static(
"MiningRewards",
"MaxSupply",
[
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 divisor used to calculate block rewards from remaining supply"]
pub fn emission_divisor(
&self,
) -> ::subxt::ext::subxt_core::constants::address::StaticAddress<
::core::primitive::u128,
> {
::subxt::ext::subxt_core::constants::address::StaticAddress::new_static(
"MiningRewards",
"EmissionDivisor",
[
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 base unit for token amounts (e.g., 1e12 for 12 decimals)"]
pub fn unit(
&self,
) -> ::subxt::ext::subxt_core::constants::address::StaticAddress<
::core::primitive::u128,
> {
::subxt::ext::subxt_core::constants::address::StaticAddress::new_static(
"MiningRewards",
"Unit",
[
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 = " Account ID used as the \"from\" account when creating transfer proofs for minted tokens"]
pub fn minting_account(
&self,
) -> ::subxt::ext::subxt_core::constants::address::StaticAddress<
::subxt::ext::subxt_core::utils::AccountId32,
> {
::subxt::ext::subxt_core::constants::address::StaticAddress::new_static(
"MiningRewards",
"MintingAccount",
[
115u8, 233u8, 13u8, 223u8, 88u8, 20u8, 202u8, 139u8, 153u8, 28u8,
155u8, 157u8, 224u8, 66u8, 3u8, 250u8, 23u8, 53u8, 88u8, 168u8, 211u8,
204u8, 122u8, 166u8, 248u8, 23u8, 174u8, 225u8, 99u8, 108u8, 89u8,
135u8,
],
)
}
}
}
}
pub mod preimage {
use super::{root_mod, runtime_types};
#[doc = "The `Error` enum of this pallet."]
pub type Error = runtime_types::pallet_preimage::pallet::Error;
#[doc = "Contains a variant per dispatchable extrinsic that this pallet has."]
pub type Call = runtime_types::pallet_preimage::pallet::Call;
pub mod calls {
use super::{root_mod, runtime_types};
type DispatchError = runtime_types::sp_runtime::DispatchError;
pub mod types {
use super::runtime_types;
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode"
)]
#[doc = "Register a preimage on-chain."]
#[doc = ""]
#[doc = "If the preimage was previously requested, no fees or deposits are taken for providing"]
#[doc = "the preimage. Otherwise, a deposit is taken proportional to the size of the preimage."]
pub struct NotePreimage {
pub bytes: note_preimage::Bytes,
}
pub mod note_preimage {
use super::runtime_types;
pub type Bytes =
::subxt::ext::subxt_core::alloc::vec::Vec<::core::primitive::u8>;
}
impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for NotePreimage {
const PALLET: &'static str = "Preimage";
const CALL: &'static str = "note_preimage";
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode"
)]
#[doc = "Clear an unrequested preimage from the runtime storage."]
#[doc = ""]
#[doc = "If `len` is provided, then it will be a much cheaper operation."]
#[doc = ""]
#[doc = "- `hash`: The hash of the preimage to be removed from the store."]
#[doc = "- `len`: The length of the preimage of `hash`."]
pub struct UnnotePreimage {
pub hash: unnote_preimage::Hash,
}
pub mod unnote_preimage {
use super::runtime_types;
pub type Hash = ::subxt::ext::subxt_core::utils::H256;
}
impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for UnnotePreimage {
const PALLET: &'static str = "Preimage";
const CALL: &'static str = "unnote_preimage";
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode"
)]
#[doc = "Request a preimage be uploaded to the chain without paying any fees or deposits."]
#[doc = ""]
#[doc = "If the preimage requests has already been provided on-chain, we unreserve any deposit"]
#[doc = "a user may have paid, and take the control of the preimage out of their hands."]
pub struct RequestPreimage {
pub hash: request_preimage::Hash,
}
pub mod request_preimage {
use super::runtime_types;
pub type Hash = ::subxt::ext::subxt_core::utils::H256;
}
impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for RequestPreimage {
const PALLET: &'static str = "Preimage";
const CALL: &'static str = "request_preimage";
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode"
)]
#[doc = "Clear a previously made request for a preimage."]
#[doc = ""]
#[doc = "NOTE: THIS MUST NOT BE CALLED ON `hash` MORE TIMES THAN `request_preimage`."]
pub struct UnrequestPreimage {
pub hash: unrequest_preimage::Hash,
}
pub mod unrequest_preimage {
use super::runtime_types;
pub type Hash = ::subxt::ext::subxt_core::utils::H256;
}
impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for UnrequestPreimage {
const PALLET: &'static str = "Preimage";
const CALL: &'static str = "unrequest_preimage";
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode"
)]
#[doc = "Ensure that the bulk of pre-images is upgraded."]
#[doc = ""]
#[doc = "The caller pays no fee if at least 90% of pre-images were successfully updated."]
pub struct EnsureUpdated {
pub hashes: ensure_updated::Hashes,
}
pub mod ensure_updated {
use super::runtime_types;
pub type Hashes = ::subxt::ext::subxt_core::alloc::vec::Vec<
::subxt::ext::subxt_core::utils::H256,
>;
}
impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for EnsureUpdated {
const PALLET: &'static str = "Preimage";
const CALL: &'static str = "ensure_updated";
}
}
pub struct TransactionApi;
impl TransactionApi {
#[doc = "Register a preimage on-chain."]
#[doc = ""]
#[doc = "If the preimage was previously requested, no fees or deposits are taken for providing"]
#[doc = "the preimage. Otherwise, a deposit is taken proportional to the size of the preimage."]
pub fn note_preimage(
&self,
bytes: types::note_preimage::Bytes,
) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload<types::NotePreimage> {
::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static(
"Preimage",
"note_preimage",
types::NotePreimage { bytes },
[
121u8, 88u8, 18u8, 92u8, 176u8, 15u8, 192u8, 198u8, 146u8, 198u8, 38u8,
242u8, 213u8, 83u8, 7u8, 230u8, 14u8, 110u8, 235u8, 32u8, 215u8, 26u8,
192u8, 217u8, 113u8, 224u8, 206u8, 96u8, 177u8, 198u8, 246u8, 33u8,
],
)
}
#[doc = "Clear an unrequested preimage from the runtime storage."]
#[doc = ""]
#[doc = "If `len` is provided, then it will be a much cheaper operation."]
#[doc = ""]
#[doc = "- `hash`: The hash of the preimage to be removed from the store."]
#[doc = "- `len`: The length of the preimage of `hash`."]
pub fn unnote_preimage(
&self,
hash: types::unnote_preimage::Hash,
) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload<types::UnnotePreimage>
{
::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static(
"Preimage",
"unnote_preimage",
types::UnnotePreimage { hash },
[
188u8, 116u8, 222u8, 22u8, 127u8, 215u8, 2u8, 133u8, 96u8, 202u8,
190u8, 123u8, 203u8, 43u8, 200u8, 161u8, 226u8, 24u8, 49u8, 36u8,
221u8, 160u8, 130u8, 119u8, 30u8, 138u8, 144u8, 85u8, 5u8, 164u8,
252u8, 222u8,
],
)
}
#[doc = "Request a preimage be uploaded to the chain without paying any fees or deposits."]
#[doc = ""]
#[doc = "If the preimage requests has already been provided on-chain, we unreserve any deposit"]
#[doc = "a user may have paid, and take the control of the preimage out of their hands."]
pub fn request_preimage(
&self,
hash: types::request_preimage::Hash,
) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload<types::RequestPreimage>
{
::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static(
"Preimage",
"request_preimage",
types::RequestPreimage { hash },
[
87u8, 0u8, 204u8, 111u8, 43u8, 115u8, 64u8, 209u8, 133u8, 13u8, 83u8,
45u8, 164u8, 166u8, 233u8, 105u8, 242u8, 238u8, 235u8, 208u8, 113u8,
134u8, 93u8, 242u8, 86u8, 32u8, 7u8, 152u8, 107u8, 208u8, 79u8, 59u8,
],
)
}
#[doc = "Clear a previously made request for a preimage."]
#[doc = ""]
#[doc = "NOTE: THIS MUST NOT BE CALLED ON `hash` MORE TIMES THAN `request_preimage`."]
pub fn unrequest_preimage(
&self,
hash: types::unrequest_preimage::Hash,
) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload<types::UnrequestPreimage>
{
::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static(
"Preimage",
"unrequest_preimage",
types::UnrequestPreimage { hash },
[
55u8, 37u8, 224u8, 149u8, 142u8, 120u8, 8u8, 68u8, 183u8, 225u8, 255u8,
240u8, 254u8, 111u8, 58u8, 200u8, 113u8, 217u8, 177u8, 203u8, 107u8,
104u8, 233u8, 87u8, 252u8, 53u8, 33u8, 112u8, 116u8, 254u8, 117u8,
134u8,
],
)
}
#[doc = "Ensure that the bulk of pre-images is upgraded."]
#[doc = ""]
#[doc = "The caller pays no fee if at least 90% of pre-images were successfully updated."]
pub fn ensure_updated(
&self,
hashes: types::ensure_updated::Hashes,
) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload<types::EnsureUpdated>
{
::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static(
"Preimage",
"ensure_updated",
types::EnsureUpdated { hashes },
[
254u8, 228u8, 88u8, 44u8, 126u8, 235u8, 188u8, 153u8, 61u8, 27u8,
103u8, 253u8, 163u8, 161u8, 113u8, 243u8, 87u8, 136u8, 2u8, 231u8,
209u8, 188u8, 215u8, 106u8, 192u8, 225u8, 75u8, 125u8, 224u8, 96u8,
221u8, 90u8,
],
)
}
}
}
#[doc = "The `Event` enum of this pallet"]
pub type Event = runtime_types::pallet_preimage::pallet::Event;
pub mod events {
use super::runtime_types;
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")]
#[doc = "A preimage has been noted."]
pub struct Noted {
pub hash: noted::Hash,
}
pub mod noted {
use super::runtime_types;
pub type Hash = ::subxt::ext::subxt_core::utils::H256;
}
impl ::subxt::ext::subxt_core::events::StaticEvent for Noted {
const PALLET: &'static str = "Preimage";
const EVENT: &'static str = "Noted";
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")]
#[doc = "A preimage has been requested."]
pub struct Requested {
pub hash: requested::Hash,
}
pub mod requested {
use super::runtime_types;
pub type Hash = ::subxt::ext::subxt_core::utils::H256;
}
impl ::subxt::ext::subxt_core::events::StaticEvent for Requested {
const PALLET: &'static str = "Preimage";
const EVENT: &'static str = "Requested";
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")]
#[doc = "A preimage has ben cleared."]
pub struct Cleared {
pub hash: cleared::Hash,
}
pub mod cleared {
use super::runtime_types;
pub type Hash = ::subxt::ext::subxt_core::utils::H256;
}
impl ::subxt::ext::subxt_core::events::StaticEvent for Cleared {
const PALLET: &'static str = "Preimage";
const EVENT: &'static str = "Cleared";
}
}
pub mod storage {
use super::runtime_types;
pub mod types {
use super::runtime_types;
pub mod status_for {
use super::runtime_types;
pub type StatusFor = runtime_types::pallet_preimage::OldRequestStatus<
::subxt::ext::subxt_core::utils::AccountId32,
::core::primitive::u128,
>;
pub type Param0 = ::subxt::ext::subxt_core::utils::H256;
}
pub mod request_status_for {
use super::runtime_types;
pub type RequestStatusFor = runtime_types::pallet_preimage::RequestStatus<
::subxt::ext::subxt_core::utils::AccountId32,
runtime_types::quantus_runtime::governance::definitions::PreimageDeposit,
>;
pub type Param0 = ::subxt::ext::subxt_core::utils::H256;
}
pub mod preimage_for {
use super::runtime_types;
pub type PreimageFor =
runtime_types::bounded_collections::bounded_vec::BoundedVec<
::core::primitive::u8,
>;
pub type Param0 =
(::subxt::ext::subxt_core::utils::H256, ::core::primitive::u32);
}
}
pub struct StorageApi;
impl StorageApi {
#[doc = " The request status of a given hash."]
pub fn status_for_iter(
&self,
) -> ::subxt::ext::subxt_core::storage::address::StaticAddress<
(),
types::status_for::StatusFor,
(),
(),
::subxt::ext::subxt_core::utils::Yes,
> {
::subxt::ext::subxt_core::storage::address::StaticAddress::new_static(
"Preimage",
"StatusFor",
(),
[
187u8, 100u8, 54u8, 112u8, 96u8, 129u8, 36u8, 149u8, 127u8, 226u8,
126u8, 171u8, 72u8, 189u8, 59u8, 126u8, 204u8, 125u8, 67u8, 204u8,
231u8, 6u8, 212u8, 135u8, 166u8, 252u8, 5u8, 46u8, 111u8, 120u8, 54u8,
209u8,
],
)
}
#[doc = " The request status of a given hash."]
pub fn status_for(
&self,
_0: types::status_for::Param0,
) -> ::subxt::ext::subxt_core::storage::address::StaticAddress<
::subxt::ext::subxt_core::storage::address::StaticStorageKey<
types::status_for::Param0,
>,
types::status_for::StatusFor,
::subxt::ext::subxt_core::utils::Yes,
(),
(),
> {
::subxt::ext::subxt_core::storage::address::StaticAddress::new_static(
"Preimage",
"StatusFor",
::subxt::ext::subxt_core::storage::address::StaticStorageKey::new(_0),
[
187u8, 100u8, 54u8, 112u8, 96u8, 129u8, 36u8, 149u8, 127u8, 226u8,
126u8, 171u8, 72u8, 189u8, 59u8, 126u8, 204u8, 125u8, 67u8, 204u8,
231u8, 6u8, 212u8, 135u8, 166u8, 252u8, 5u8, 46u8, 111u8, 120u8, 54u8,
209u8,
],
)
}
#[doc = " The request status of a given hash."]
pub fn request_status_for_iter(
&self,
) -> ::subxt::ext::subxt_core::storage::address::StaticAddress<
(),
types::request_status_for::RequestStatusFor,
(),
(),
::subxt::ext::subxt_core::utils::Yes,
> {
::subxt::ext::subxt_core::storage::address::StaticAddress::new_static(
"Preimage",
"RequestStatusFor",
(),
[
113u8, 195u8, 77u8, 23u8, 125u8, 170u8, 77u8, 145u8, 201u8, 168u8,
39u8, 13u8, 143u8, 50u8, 100u8, 92u8, 25u8, 110u8, 125u8, 20u8, 96u8,
156u8, 225u8, 200u8, 57u8, 199u8, 226u8, 242u8, 230u8, 126u8, 138u8,
123u8,
],
)
}
#[doc = " The request status of a given hash."]
pub fn request_status_for(
&self,
_0: types::request_status_for::Param0,
) -> ::subxt::ext::subxt_core::storage::address::StaticAddress<
::subxt::ext::subxt_core::storage::address::StaticStorageKey<
types::request_status_for::Param0,
>,
types::request_status_for::RequestStatusFor,
::subxt::ext::subxt_core::utils::Yes,
(),
(),
> {
::subxt::ext::subxt_core::storage::address::StaticAddress::new_static(
"Preimage",
"RequestStatusFor",
::subxt::ext::subxt_core::storage::address::StaticStorageKey::new(_0),
[
113u8, 195u8, 77u8, 23u8, 125u8, 170u8, 77u8, 145u8, 201u8, 168u8,
39u8, 13u8, 143u8, 50u8, 100u8, 92u8, 25u8, 110u8, 125u8, 20u8, 96u8,
156u8, 225u8, 200u8, 57u8, 199u8, 226u8, 242u8, 230u8, 126u8, 138u8,
123u8,
],
)
}
pub fn preimage_for_iter(
&self,
) -> ::subxt::ext::subxt_core::storage::address::StaticAddress<
(),
types::preimage_for::PreimageFor,
(),
(),
::subxt::ext::subxt_core::utils::Yes,
> {
::subxt::ext::subxt_core::storage::address::StaticAddress::new_static(
"Preimage",
"PreimageFor",
(),
[
106u8, 5u8, 17u8, 46u8, 6u8, 184u8, 177u8, 113u8, 169u8, 34u8, 119u8,
141u8, 117u8, 40u8, 30u8, 94u8, 187u8, 35u8, 206u8, 216u8, 143u8,
208u8, 49u8, 156u8, 200u8, 255u8, 109u8, 200u8, 210u8, 134u8, 24u8,
139u8,
],
)
}
pub fn preimage_for(
&self,
_0: types::preimage_for::Param0,
) -> ::subxt::ext::subxt_core::storage::address::StaticAddress<
::subxt::ext::subxt_core::storage::address::StaticStorageKey<
types::preimage_for::Param0,
>,
types::preimage_for::PreimageFor,
::subxt::ext::subxt_core::utils::Yes,
(),
(),
> {
::subxt::ext::subxt_core::storage::address::StaticAddress::new_static(
"Preimage",
"PreimageFor",
::subxt::ext::subxt_core::storage::address::StaticStorageKey::new(_0),
[
106u8, 5u8, 17u8, 46u8, 6u8, 184u8, 177u8, 113u8, 169u8, 34u8, 119u8,
141u8, 117u8, 40u8, 30u8, 94u8, 187u8, 35u8, 206u8, 216u8, 143u8,
208u8, 49u8, 156u8, 200u8, 255u8, 109u8, 200u8, 210u8, 134u8, 24u8,
139u8,
],
)
}
}
}
}
pub mod scheduler {
use super::{root_mod, runtime_types};
#[doc = "The `Error` enum of this pallet."]
pub type Error = runtime_types::pallet_scheduler::pallet::Error;
#[doc = "Contains a variant per dispatchable extrinsic that this pallet has."]
pub type Call = runtime_types::pallet_scheduler::pallet::Call;
pub mod calls {
use super::{root_mod, runtime_types};
type DispatchError = runtime_types::sp_runtime::DispatchError;
pub mod types {
use super::runtime_types;
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode"
)]
pub struct Schedule {
pub when: schedule::When,
pub priority: schedule::Priority,
pub call: ::subxt::ext::subxt_core::alloc::boxed::Box<schedule::Call>,
}
pub mod schedule {
use super::runtime_types;
pub type When = ::core::primitive::u32;
pub type Priority = ::core::primitive::u8;
pub type Call = runtime_types::quantus_runtime::RuntimeCall;
}
impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for Schedule {
const PALLET: &'static str = "Scheduler";
const CALL: &'static str = "schedule";
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode"
)]
#[doc = "Cancel an anonymously scheduled task."]
pub struct Cancel {
pub when: cancel::When,
pub index: cancel::Index,
}
pub mod cancel {
use super::runtime_types;
pub type When = runtime_types::qp_scheduler::BlockNumberOrTimestamp<
::core::primitive::u32,
::core::primitive::u64,
>;
pub type Index = ::core::primitive::u32;
}
impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for Cancel {
const PALLET: &'static str = "Scheduler";
const CALL: &'static str = "cancel";
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode"
)]
pub struct ScheduleNamed {
pub id: schedule_named::Id,
pub when: schedule_named::When,
pub priority: schedule_named::Priority,
pub call: ::subxt::ext::subxt_core::alloc::boxed::Box<schedule_named::Call>,
}
pub mod schedule_named {
use super::runtime_types;
pub type Id = [::core::primitive::u8; 32usize];
pub type When = ::core::primitive::u32;
pub type Priority = ::core::primitive::u8;
pub type Call = runtime_types::quantus_runtime::RuntimeCall;
}
impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for ScheduleNamed {
const PALLET: &'static str = "Scheduler";
const CALL: &'static str = "schedule_named";
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode"
)]
#[doc = "Cancel a named scheduled task."]
pub struct CancelNamed {
pub id: cancel_named::Id,
}
pub mod cancel_named {
use super::runtime_types;
pub type Id = [::core::primitive::u8; 32usize];
}
impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for CancelNamed {
const PALLET: &'static str = "Scheduler";
const CALL: &'static str = "cancel_named";
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode"
)]
pub struct ScheduleAfter {
pub after: schedule_after::After,
pub priority: schedule_after::Priority,
pub call: ::subxt::ext::subxt_core::alloc::boxed::Box<schedule_after::Call>,
}
pub mod schedule_after {
use super::runtime_types;
pub type After = runtime_types::qp_scheduler::BlockNumberOrTimestamp<
::core::primitive::u32,
::core::primitive::u64,
>;
pub type Priority = ::core::primitive::u8;
pub type Call = runtime_types::quantus_runtime::RuntimeCall;
}
impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for ScheduleAfter {
const PALLET: &'static str = "Scheduler";
const CALL: &'static str = "schedule_after";
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode"
)]
pub struct ScheduleNamedAfter {
pub id: schedule_named_after::Id,
pub after: schedule_named_after::After,
pub priority: schedule_named_after::Priority,
pub call:
::subxt::ext::subxt_core::alloc::boxed::Box<schedule_named_after::Call>,
}
pub mod schedule_named_after {
use super::runtime_types;
pub type Id = [::core::primitive::u8; 32usize];
pub type After = runtime_types::qp_scheduler::BlockNumberOrTimestamp<
::core::primitive::u32,
::core::primitive::u64,
>;
pub type Priority = ::core::primitive::u8;
pub type Call = runtime_types::quantus_runtime::RuntimeCall;
}
impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for ScheduleNamedAfter {
const PALLET: &'static str = "Scheduler";
const CALL: &'static str = "schedule_named_after";
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode"
)]
#[doc = "Set a retry configuration for a task so that, in case its scheduled run fails, it will"]
#[doc = "be retried after `period` blocks, for a total amount of `retries` retries or until it"]
#[doc = "succeeds."]
#[doc = ""]
#[doc = "Tasks which need to be scheduled for a retry are still subject to weight metering and"]
#[doc = "agenda space, same as a regular task."]
#[doc = ""]
#[doc = "Tasks scheduled as a result of a retry are unnamed"]
#[doc = "clones of the original task. Their retry configuration will be derived from the"]
#[doc = "original task's configuration, but will have a lower value for `remaining` than the"]
#[doc = "original `total_retries`."]
#[doc = ""]
#[doc = "The `period` type must match the task's scheduling type: block-scheduled tasks"]
#[doc = "require a block-number period, and timestamp-scheduled tasks require a timestamp"]
#[doc = "period. Mismatched types will return [`Error::RetryPeriodMismatch`]."]
pub struct SetRetry {
pub task: set_retry::Task,
pub retries: set_retry::Retries,
pub period: set_retry::Period,
}
pub mod set_retry {
use super::runtime_types;
pub type Task = (
runtime_types::qp_scheduler::BlockNumberOrTimestamp<
::core::primitive::u32,
::core::primitive::u64,
>,
::core::primitive::u32,
);
pub type Retries = ::core::primitive::u8;
pub type Period = runtime_types::qp_scheduler::BlockNumberOrTimestamp<
::core::primitive::u32,
::core::primitive::u64,
>;
}
impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for SetRetry {
const PALLET: &'static str = "Scheduler";
const CALL: &'static str = "set_retry";
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode"
)]
#[doc = "Set a retry configuration for a named task so that, in case its scheduled run fails, it"]
#[doc = "will be retried after `period` blocks, for a total amount of `retries` retries or until"]
#[doc = "it succeeds."]
#[doc = ""]
#[doc = "Tasks which need to be scheduled for a retry are still subject to weight metering and"]
#[doc = "agenda space, same as a regular task."]
#[doc = ""]
#[doc = "Tasks scheduled as a result of a retry are unnamed"]
#[doc = "clones of the original task. Their retry configuration will be derived from the"]
#[doc = "original task's configuration, but will have a lower value for `remaining` than the"]
#[doc = "original `total_retries`."]
#[doc = ""]
#[doc = "The `period` type must match the task's scheduling type: block-scheduled tasks"]
#[doc = "require a block-number period, and timestamp-scheduled tasks require a timestamp"]
#[doc = "period. Mismatched types will return [`Error::RetryPeriodMismatch`]."]
pub struct SetRetryNamed {
pub id: set_retry_named::Id,
pub retries: set_retry_named::Retries,
pub period: set_retry_named::Period,
}
pub mod set_retry_named {
use super::runtime_types;
pub type Id = [::core::primitive::u8; 32usize];
pub type Retries = ::core::primitive::u8;
pub type Period = runtime_types::qp_scheduler::BlockNumberOrTimestamp<
::core::primitive::u32,
::core::primitive::u64,
>;
}
impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for SetRetryNamed {
const PALLET: &'static str = "Scheduler";
const CALL: &'static str = "set_retry_named";
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode"
)]
#[doc = "Removes the retry configuration of a task."]
pub struct CancelRetry {
pub task: cancel_retry::Task,
}
pub mod cancel_retry {
use super::runtime_types;
pub type Task = (
runtime_types::qp_scheduler::BlockNumberOrTimestamp<
::core::primitive::u32,
::core::primitive::u64,
>,
::core::primitive::u32,
);
}
impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for CancelRetry {
const PALLET: &'static str = "Scheduler";
const CALL: &'static str = "cancel_retry";
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode"
)]
#[doc = "Cancel the retry configuration of a named task."]
pub struct CancelRetryNamed {
pub id: cancel_retry_named::Id,
}
pub mod cancel_retry_named {
use super::runtime_types;
pub type Id = [::core::primitive::u8; 32usize];
}
impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for CancelRetryNamed {
const PALLET: &'static str = "Scheduler";
const CALL: &'static str = "cancel_retry_named";
}
}
pub struct TransactionApi;
impl TransactionApi {
pub fn schedule(
&self,
when: types::schedule::When,
priority: types::schedule::Priority,
call: types::schedule::Call,
) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload<types::Schedule> {
::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static(
"Scheduler",
"schedule",
types::Schedule {
when,
priority,
call: ::subxt::ext::subxt_core::alloc::boxed::Box::new(call),
},
[
111u8, 246u8, 131u8, 153u8, 188u8, 35u8, 82u8, 23u8, 214u8, 245u8,
97u8, 204u8, 130u8, 160u8, 102u8, 24u8, 208u8, 65u8, 222u8, 33u8, 61u8,
120u8, 183u8, 187u8, 133u8, 232u8, 75u8, 78u8, 207u8, 123u8, 219u8,
114u8,
],
)
}
#[doc = "Cancel an anonymously scheduled task."]
pub fn cancel(
&self,
when: types::cancel::When,
index: types::cancel::Index,
) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload<types::Cancel> {
::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static(
"Scheduler",
"cancel",
types::Cancel { when, index },
[
134u8, 77u8, 15u8, 56u8, 137u8, 12u8, 58u8, 147u8, 164u8, 204u8, 221u8,
150u8, 103u8, 42u8, 36u8, 79u8, 146u8, 115u8, 13u8, 194u8, 39u8, 73u8,
109u8, 10u8, 168u8, 164u8, 190u8, 173u8, 30u8, 17u8, 35u8, 17u8,
],
)
}
pub fn schedule_named(
&self,
id: types::schedule_named::Id,
when: types::schedule_named::When,
priority: types::schedule_named::Priority,
call: types::schedule_named::Call,
) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload<types::ScheduleNamed>
{
::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static(
"Scheduler",
"schedule_named",
types::ScheduleNamed {
id,
when,
priority,
call: ::subxt::ext::subxt_core::alloc::boxed::Box::new(call),
},
[
226u8, 121u8, 55u8, 244u8, 180u8, 161u8, 195u8, 247u8, 4u8, 191u8,
152u8, 109u8, 162u8, 105u8, 232u8, 241u8, 102u8, 3u8, 254u8, 58u8,
224u8, 63u8, 127u8, 155u8, 66u8, 214u8, 20u8, 84u8, 200u8, 83u8, 252u8,
190u8,
],
)
}
#[doc = "Cancel a named scheduled task."]
pub fn cancel_named(
&self,
id: types::cancel_named::Id,
) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload<types::CancelNamed> {
::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static(
"Scheduler",
"cancel_named",
types::CancelNamed { id },
[
205u8, 35u8, 28u8, 57u8, 224u8, 7u8, 49u8, 233u8, 236u8, 163u8, 93u8,
236u8, 103u8, 69u8, 65u8, 51u8, 121u8, 84u8, 9u8, 196u8, 147u8, 122u8,
227u8, 200u8, 181u8, 233u8, 62u8, 240u8, 174u8, 83u8, 129u8, 193u8,
],
)
}
pub fn schedule_after(
&self,
after: types::schedule_after::After,
priority: types::schedule_after::Priority,
call: types::schedule_after::Call,
) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload<types::ScheduleAfter>
{
::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static(
"Scheduler",
"schedule_after",
types::ScheduleAfter {
after,
priority,
call: ::subxt::ext::subxt_core::alloc::boxed::Box::new(call),
},
[
223u8, 138u8, 95u8, 57u8, 29u8, 157u8, 241u8, 124u8, 62u8, 169u8,
220u8, 166u8, 67u8, 105u8, 102u8, 78u8, 138u8, 29u8, 181u8, 87u8,
236u8, 124u8, 237u8, 245u8, 85u8, 132u8, 168u8, 95u8, 130u8, 64u8, 9u8,
200u8,
],
)
}
pub fn schedule_named_after(
&self,
id: types::schedule_named_after::Id,
after: types::schedule_named_after::After,
priority: types::schedule_named_after::Priority,
call: types::schedule_named_after::Call,
) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload<types::ScheduleNamedAfter>
{
::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static(
"Scheduler",
"schedule_named_after",
types::ScheduleNamedAfter {
id,
after,
priority,
call: ::subxt::ext::subxt_core::alloc::boxed::Box::new(call),
},
[
15u8, 107u8, 235u8, 231u8, 115u8, 180u8, 199u8, 243u8, 222u8, 191u8,
192u8, 130u8, 107u8, 253u8, 77u8, 228u8, 151u8, 60u8, 176u8, 69u8,
140u8, 120u8, 110u8, 242u8, 63u8, 35u8, 46u8, 210u8, 21u8, 83u8, 8u8,
123u8,
],
)
}
#[doc = "Set a retry configuration for a task so that, in case its scheduled run fails, it will"]
#[doc = "be retried after `period` blocks, for a total amount of `retries` retries or until it"]
#[doc = "succeeds."]
#[doc = ""]
#[doc = "Tasks which need to be scheduled for a retry are still subject to weight metering and"]
#[doc = "agenda space, same as a regular task."]
#[doc = ""]
#[doc = "Tasks scheduled as a result of a retry are unnamed"]
#[doc = "clones of the original task. Their retry configuration will be derived from the"]
#[doc = "original task's configuration, but will have a lower value for `remaining` than the"]
#[doc = "original `total_retries`."]
#[doc = ""]
#[doc = "The `period` type must match the task's scheduling type: block-scheduled tasks"]
#[doc = "require a block-number period, and timestamp-scheduled tasks require a timestamp"]
#[doc = "period. Mismatched types will return [`Error::RetryPeriodMismatch`]."]
pub fn set_retry(
&self,
task: types::set_retry::Task,
retries: types::set_retry::Retries,
period: types::set_retry::Period,
) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload<types::SetRetry> {
::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static(
"Scheduler",
"set_retry",
types::SetRetry { task, retries, period },
[
31u8, 128u8, 255u8, 13u8, 13u8, 252u8, 74u8, 151u8, 60u8, 242u8, 152u8,
58u8, 190u8, 155u8, 132u8, 65u8, 139u8, 208u8, 222u8, 175u8, 89u8,
222u8, 186u8, 98u8, 53u8, 125u8, 71u8, 55u8, 95u8, 2u8, 76u8, 248u8,
],
)
}
#[doc = "Set a retry configuration for a named task so that, in case its scheduled run fails, it"]
#[doc = "will be retried after `period` blocks, for a total amount of `retries` retries or until"]
#[doc = "it succeeds."]
#[doc = ""]
#[doc = "Tasks which need to be scheduled for a retry are still subject to weight metering and"]
#[doc = "agenda space, same as a regular task."]
#[doc = ""]
#[doc = "Tasks scheduled as a result of a retry are unnamed"]
#[doc = "clones of the original task. Their retry configuration will be derived from the"]
#[doc = "original task's configuration, but will have a lower value for `remaining` than the"]
#[doc = "original `total_retries`."]
#[doc = ""]
#[doc = "The `period` type must match the task's scheduling type: block-scheduled tasks"]
#[doc = "require a block-number period, and timestamp-scheduled tasks require a timestamp"]
#[doc = "period. Mismatched types will return [`Error::RetryPeriodMismatch`]."]
pub fn set_retry_named(
&self,
id: types::set_retry_named::Id,
retries: types::set_retry_named::Retries,
period: types::set_retry_named::Period,
) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload<types::SetRetryNamed>
{
::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static(
"Scheduler",
"set_retry_named",
types::SetRetryNamed { id, retries, period },
[
102u8, 70u8, 114u8, 48u8, 180u8, 194u8, 107u8, 81u8, 104u8, 117u8,
33u8, 169u8, 43u8, 172u8, 61u8, 129u8, 143u8, 221u8, 44u8, 101u8,
235u8, 228u8, 224u8, 71u8, 65u8, 223u8, 180u8, 130u8, 83u8, 89u8,
157u8, 75u8,
],
)
}
#[doc = "Removes the retry configuration of a task."]
pub fn cancel_retry(
&self,
task: types::cancel_retry::Task,
) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload<types::CancelRetry> {
::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static(
"Scheduler",
"cancel_retry",
types::CancelRetry { task },
[
153u8, 252u8, 168u8, 142u8, 100u8, 114u8, 25u8, 46u8, 225u8, 95u8,
243u8, 78u8, 160u8, 175u8, 17u8, 33u8, 27u8, 241u8, 149u8, 187u8,
228u8, 182u8, 233u8, 74u8, 10u8, 228u8, 117u8, 218u8, 210u8, 127u8,
245u8, 105u8,
],
)
}
#[doc = "Cancel the retry configuration of a named task."]
pub fn cancel_retry_named(
&self,
id: types::cancel_retry_named::Id,
) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload<types::CancelRetryNamed>
{
::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static(
"Scheduler",
"cancel_retry_named",
types::CancelRetryNamed { id },
[
76u8, 157u8, 253u8, 113u8, 162u8, 54u8, 98u8, 21u8, 62u8, 44u8, 155u8,
202u8, 2u8, 28u8, 153u8, 219u8, 67u8, 166u8, 206u8, 79u8, 139u8, 3u8,
119u8, 182u8, 254u8, 134u8, 143u8, 121u8, 155u8, 220u8, 192u8, 209u8,
],
)
}
}
}
#[doc = "Events type."]
pub type Event = runtime_types::pallet_scheduler::pallet::Event;
pub mod events {
use super::runtime_types;
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")]
#[doc = "Scheduled some task."]
pub struct Scheduled {
pub when: scheduled::When,
pub index: scheduled::Index,
}
pub mod scheduled {
use super::runtime_types;
pub type When = runtime_types::qp_scheduler::BlockNumberOrTimestamp<
::core::primitive::u32,
::core::primitive::u64,
>;
pub type Index = ::core::primitive::u32;
}
impl ::subxt::ext::subxt_core::events::StaticEvent for Scheduled {
const PALLET: &'static str = "Scheduler";
const EVENT: &'static str = "Scheduled";
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")]
#[doc = "Canceled some task."]
pub struct Canceled {
pub when: canceled::When,
pub index: canceled::Index,
}
pub mod canceled {
use super::runtime_types;
pub type When = runtime_types::qp_scheduler::BlockNumberOrTimestamp<
::core::primitive::u32,
::core::primitive::u64,
>;
pub type Index = ::core::primitive::u32;
}
impl ::subxt::ext::subxt_core::events::StaticEvent for Canceled {
const PALLET: &'static str = "Scheduler";
const EVENT: &'static str = "Canceled";
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")]
#[doc = "Dispatched some task."]
pub struct Dispatched {
pub task: dispatched::Task,
pub id: dispatched::Id,
pub result: dispatched::Result,
}
pub mod dispatched {
use super::runtime_types;
pub type Task = (
runtime_types::qp_scheduler::BlockNumberOrTimestamp<
::core::primitive::u32,
::core::primitive::u64,
>,
::core::primitive::u32,
);
pub type Id = ::core::option::Option<[::core::primitive::u8; 32usize]>;
pub type Result =
::core::result::Result<(), runtime_types::sp_runtime::DispatchError>;
}
impl ::subxt::ext::subxt_core::events::StaticEvent for Dispatched {
const PALLET: &'static str = "Scheduler";
const EVENT: &'static str = "Dispatched";
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")]
#[doc = "Set a retry configuration for some task."]
pub struct RetrySet {
pub task: retry_set::Task,
pub id: retry_set::Id,
pub period: retry_set::Period,
pub retries: retry_set::Retries,
}
pub mod retry_set {
use super::runtime_types;
pub type Task = (
runtime_types::qp_scheduler::BlockNumberOrTimestamp<
::core::primitive::u32,
::core::primitive::u64,
>,
::core::primitive::u32,
);
pub type Id = ::core::option::Option<[::core::primitive::u8; 32usize]>;
pub type Period = runtime_types::qp_scheduler::BlockNumberOrTimestamp<
::core::primitive::u32,
::core::primitive::u64,
>;
pub type Retries = ::core::primitive::u8;
}
impl ::subxt::ext::subxt_core::events::StaticEvent for RetrySet {
const PALLET: &'static str = "Scheduler";
const EVENT: &'static str = "RetrySet";
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")]
#[doc = "Cancel a retry configuration for some task."]
pub struct RetryCancelled {
pub task: retry_cancelled::Task,
pub id: retry_cancelled::Id,
}
pub mod retry_cancelled {
use super::runtime_types;
pub type Task = (
runtime_types::qp_scheduler::BlockNumberOrTimestamp<
::core::primitive::u32,
::core::primitive::u64,
>,
::core::primitive::u32,
);
pub type Id = ::core::option::Option<[::core::primitive::u8; 32usize]>;
}
impl ::subxt::ext::subxt_core::events::StaticEvent for RetryCancelled {
const PALLET: &'static str = "Scheduler";
const EVENT: &'static str = "RetryCancelled";
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")]
#[doc = "The call for the provided hash was not found so the task has been aborted."]
pub struct CallUnavailable {
pub task: call_unavailable::Task,
pub id: call_unavailable::Id,
}
pub mod call_unavailable {
use super::runtime_types;
pub type Task = (
runtime_types::qp_scheduler::BlockNumberOrTimestamp<
::core::primitive::u32,
::core::primitive::u64,
>,
::core::primitive::u32,
);
pub type Id = ::core::option::Option<[::core::primitive::u8; 32usize]>;
}
impl ::subxt::ext::subxt_core::events::StaticEvent for CallUnavailable {
const PALLET: &'static str = "Scheduler";
const EVENT: &'static str = "CallUnavailable";
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")]
#[doc = "The given task was unable to be retried since the agenda is full at that block or there"]
#[doc = "was not enough weight to reschedule it."]
pub struct RetryFailed {
pub task: retry_failed::Task,
pub id: retry_failed::Id,
}
pub mod retry_failed {
use super::runtime_types;
pub type Task = (
runtime_types::qp_scheduler::BlockNumberOrTimestamp<
::core::primitive::u32,
::core::primitive::u64,
>,
::core::primitive::u32,
);
pub type Id = ::core::option::Option<[::core::primitive::u8; 32usize]>;
}
impl ::subxt::ext::subxt_core::events::StaticEvent for RetryFailed {
const PALLET: &'static str = "Scheduler";
const EVENT: &'static str = "RetryFailed";
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")]
#[doc = "The given task can never be executed since it is overweight."]
pub struct PermanentlyOverweight {
pub task: permanently_overweight::Task,
pub id: permanently_overweight::Id,
}
pub mod permanently_overweight {
use super::runtime_types;
pub type Task = (
runtime_types::qp_scheduler::BlockNumberOrTimestamp<
::core::primitive::u32,
::core::primitive::u64,
>,
::core::primitive::u32,
);
pub type Id = ::core::option::Option<[::core::primitive::u8; 32usize]>;
}
impl ::subxt::ext::subxt_core::events::StaticEvent for PermanentlyOverweight {
const PALLET: &'static str = "Scheduler";
const EVENT: &'static str = "PermanentlyOverweight";
}
}
pub mod storage {
use super::runtime_types;
pub mod types {
use super::runtime_types;
pub mod incomplete_block_since {
use super::runtime_types;
pub type IncompleteBlockSince = ::core::primitive::u32;
}
pub mod incomplete_timestamp_since {
use super::runtime_types;
pub type IncompleteTimestampSince = ::core::primitive::u64;
}
pub mod last_processed_timestamp {
use super::runtime_types;
pub type LastProcessedTimestamp = ::core::primitive::u64;
}
pub mod agenda {
use super::runtime_types;
pub type Agenda = runtime_types::bounded_collections::bounded_vec::BoundedVec<
::core::option::Option<
runtime_types::pallet_scheduler::Scheduled<
[::core::primitive::u8; 32usize],
runtime_types::frame_support::traits::preimages::Bounded<
runtime_types::quantus_runtime::RuntimeCall,
runtime_types::sp_runtime::traits::BlakeTwo256,
>,
::core::primitive::u32,
runtime_types::quantus_runtime::OriginCaller,
::subxt::ext::subxt_core::utils::AccountId32,
::core::primitive::u64,
>,
>,
>;
pub type Param0 = runtime_types::qp_scheduler::BlockNumberOrTimestamp<
::core::primitive::u32,
::core::primitive::u64,
>;
}
pub mod retries {
use super::runtime_types;
pub type Retries = runtime_types::pallet_scheduler::RetryConfig<
runtime_types::qp_scheduler::BlockNumberOrTimestamp<
::core::primitive::u32,
::core::primitive::u64,
>,
>;
pub type Param0 = (
runtime_types::qp_scheduler::BlockNumberOrTimestamp<
::core::primitive::u32,
::core::primitive::u64,
>,
::core::primitive::u32,
);
}
pub mod lookup {
use super::runtime_types;
pub type Lookup = (
runtime_types::qp_scheduler::BlockNumberOrTimestamp<
::core::primitive::u32,
::core::primitive::u64,
>,
::core::primitive::u32,
);
pub type Param0 = [::core::primitive::u8; 32usize];
}
}
pub struct StorageApi;
impl StorageApi {
#[doc = " Tracks incomplete block-based agendas that need to be processed in a later block."]
pub fn incomplete_block_since(
&self,
) -> ::subxt::ext::subxt_core::storage::address::StaticAddress<
(),
types::incomplete_block_since::IncompleteBlockSince,
::subxt::ext::subxt_core::utils::Yes,
(),
(),
> {
::subxt::ext::subxt_core::storage::address::StaticAddress::new_static(
"Scheduler",
"IncompleteBlockSince",
(),
[
134u8, 34u8, 161u8, 236u8, 176u8, 35u8, 218u8, 109u8, 229u8, 93u8,
29u8, 95u8, 81u8, 106u8, 98u8, 65u8, 132u8, 91u8, 237u8, 225u8, 75u8,
125u8, 81u8, 218u8, 72u8, 215u8, 20u8, 66u8, 160u8, 196u8, 68u8, 34u8,
],
)
}
#[doc = " Tracks incomplete timestamp-based agendas that need to be processed in a later block."]
pub fn incomplete_timestamp_since(
&self,
) -> ::subxt::ext::subxt_core::storage::address::StaticAddress<
(),
types::incomplete_timestamp_since::IncompleteTimestampSince,
::subxt::ext::subxt_core::utils::Yes,
(),
(),
> {
::subxt::ext::subxt_core::storage::address::StaticAddress::new_static(
"Scheduler",
"IncompleteTimestampSince",
(),
[
223u8, 125u8, 99u8, 28u8, 81u8, 135u8, 125u8, 26u8, 3u8, 20u8, 32u8,
125u8, 141u8, 114u8, 100u8, 38u8, 219u8, 191u8, 30u8, 88u8, 82u8, 33u8,
140u8, 223u8, 168u8, 84u8, 144u8, 85u8, 57u8, 241u8, 97u8, 141u8,
],
)
}
#[doc = " Tracks the last timestamp bucket that was fully processed."]
#[doc = " Used to avoid reprocessing all buckets from 0 on every run."]
pub fn last_processed_timestamp(
&self,
) -> ::subxt::ext::subxt_core::storage::address::StaticAddress<
(),
types::last_processed_timestamp::LastProcessedTimestamp,
::subxt::ext::subxt_core::utils::Yes,
(),
(),
> {
::subxt::ext::subxt_core::storage::address::StaticAddress::new_static(
"Scheduler",
"LastProcessedTimestamp",
(),
[
172u8, 193u8, 6u8, 47u8, 185u8, 134u8, 179u8, 132u8, 178u8, 0u8, 228u8,
198u8, 232u8, 24u8, 85u8, 199u8, 102u8, 222u8, 246u8, 178u8, 8u8,
221u8, 51u8, 188u8, 239u8, 218u8, 112u8, 245u8, 46u8, 146u8, 65u8,
119u8,
],
)
}
#[doc = " Items to be executed, indexed by the block number that they should be executed on."]
pub fn agenda_iter(
&self,
) -> ::subxt::ext::subxt_core::storage::address::StaticAddress<
(),
types::agenda::Agenda,
(),
::subxt::ext::subxt_core::utils::Yes,
::subxt::ext::subxt_core::utils::Yes,
> {
::subxt::ext::subxt_core::storage::address::StaticAddress::new_static(
"Scheduler",
"Agenda",
(),
[
30u8, 205u8, 116u8, 231u8, 62u8, 200u8, 225u8, 69u8, 50u8, 106u8,
175u8, 47u8, 182u8, 175u8, 231u8, 114u8, 176u8, 58u8, 24u8, 230u8,
81u8, 228u8, 217u8, 72u8, 171u8, 222u8, 251u8, 218u8, 73u8, 28u8,
239u8, 137u8,
],
)
}
#[doc = " Items to be executed, indexed by the block number that they should be executed on."]
pub fn agenda(
&self,
_0: types::agenda::Param0,
) -> ::subxt::ext::subxt_core::storage::address::StaticAddress<
::subxt::ext::subxt_core::storage::address::StaticStorageKey<
types::agenda::Param0,
>,
types::agenda::Agenda,
::subxt::ext::subxt_core::utils::Yes,
::subxt::ext::subxt_core::utils::Yes,
(),
> {
::subxt::ext::subxt_core::storage::address::StaticAddress::new_static(
"Scheduler",
"Agenda",
::subxt::ext::subxt_core::storage::address::StaticStorageKey::new(_0),
[
30u8, 205u8, 116u8, 231u8, 62u8, 200u8, 225u8, 69u8, 50u8, 106u8,
175u8, 47u8, 182u8, 175u8, 231u8, 114u8, 176u8, 58u8, 24u8, 230u8,
81u8, 228u8, 217u8, 72u8, 171u8, 222u8, 251u8, 218u8, 73u8, 28u8,
239u8, 137u8,
],
)
}
#[doc = " Retry configurations for items to be executed, indexed by task address."]
pub fn retries_iter(
&self,
) -> ::subxt::ext::subxt_core::storage::address::StaticAddress<
(),
types::retries::Retries,
(),
(),
::subxt::ext::subxt_core::utils::Yes,
> {
::subxt::ext::subxt_core::storage::address::StaticAddress::new_static(
"Scheduler",
"Retries",
(),
[
94u8, 54u8, 136u8, 189u8, 244u8, 118u8, 102u8, 67u8, 203u8, 238u8,
109u8, 130u8, 229u8, 246u8, 244u8, 68u8, 59u8, 132u8, 12u8, 9u8, 219u8,
176u8, 251u8, 1u8, 216u8, 200u8, 205u8, 176u8, 145u8, 201u8, 206u8,
108u8,
],
)
}
#[doc = " Retry configurations for items to be executed, indexed by task address."]
pub fn retries(
&self,
_0: types::retries::Param0,
) -> ::subxt::ext::subxt_core::storage::address::StaticAddress<
::subxt::ext::subxt_core::storage::address::StaticStorageKey<
types::retries::Param0,
>,
types::retries::Retries,
::subxt::ext::subxt_core::utils::Yes,
(),
(),
> {
::subxt::ext::subxt_core::storage::address::StaticAddress::new_static(
"Scheduler",
"Retries",
::subxt::ext::subxt_core::storage::address::StaticStorageKey::new(_0),
[
94u8, 54u8, 136u8, 189u8, 244u8, 118u8, 102u8, 67u8, 203u8, 238u8,
109u8, 130u8, 229u8, 246u8, 244u8, 68u8, 59u8, 132u8, 12u8, 9u8, 219u8,
176u8, 251u8, 1u8, 216u8, 200u8, 205u8, 176u8, 145u8, 201u8, 206u8,
108u8,
],
)
}
#[doc = " Lookup from a name to the block number and index of the task."]
pub fn lookup_iter(
&self,
) -> ::subxt::ext::subxt_core::storage::address::StaticAddress<
(),
types::lookup::Lookup,
(),
(),
::subxt::ext::subxt_core::utils::Yes,
> {
::subxt::ext::subxt_core::storage::address::StaticAddress::new_static(
"Scheduler",
"Lookup",
(),
[
133u8, 194u8, 6u8, 16u8, 27u8, 10u8, 159u8, 62u8, 113u8, 59u8, 58u8,
225u8, 244u8, 206u8, 35u8, 113u8, 41u8, 40u8, 89u8, 71u8, 133u8, 117u8,
33u8, 192u8, 106u8, 85u8, 83u8, 186u8, 36u8, 160u8, 144u8, 221u8,
],
)
}
#[doc = " Lookup from a name to the block number and index of the task."]
pub fn lookup(
&self,
_0: types::lookup::Param0,
) -> ::subxt::ext::subxt_core::storage::address::StaticAddress<
::subxt::ext::subxt_core::storage::address::StaticStorageKey<
types::lookup::Param0,
>,
types::lookup::Lookup,
::subxt::ext::subxt_core::utils::Yes,
(),
(),
> {
::subxt::ext::subxt_core::storage::address::StaticAddress::new_static(
"Scheduler",
"Lookup",
::subxt::ext::subxt_core::storage::address::StaticStorageKey::new(_0),
[
133u8, 194u8, 6u8, 16u8, 27u8, 10u8, 159u8, 62u8, 113u8, 59u8, 58u8,
225u8, 244u8, 206u8, 35u8, 113u8, 41u8, 40u8, 89u8, 71u8, 133u8, 117u8,
33u8, 192u8, 106u8, 85u8, 83u8, 186u8, 36u8, 160u8, 144u8, 221u8,
],
)
}
}
}
pub mod constants {
use super::runtime_types;
pub struct ConstantsApi;
impl ConstantsApi {
#[doc = " The maximum weight that may be scheduled per block for any dispatchables."]
pub fn maximum_weight(
&self,
) -> ::subxt::ext::subxt_core::constants::address::StaticAddress<
runtime_types::sp_weights::weight_v2::Weight,
> {
::subxt::ext::subxt_core::constants::address::StaticAddress::new_static(
"Scheduler",
"MaximumWeight",
[
149u8, 252u8, 129u8, 80u8, 169u8, 36u8, 79u8, 127u8, 240u8, 156u8,
56u8, 202u8, 219u8, 86u8, 5u8, 65u8, 245u8, 148u8, 138u8, 243u8, 210u8,
128u8, 234u8, 216u8, 240u8, 219u8, 123u8, 235u8, 21u8, 158u8, 237u8,
112u8,
],
)
}
#[doc = " The maximum number of scheduled calls in the queue for a single block."]
#[doc = ""]
#[doc = " NOTE:"]
#[doc = " + Dependent pallets' benchmarks might require a higher limit for the setting. Set a"]
#[doc = " higher limit under `runtime-benchmarks` feature."]
pub fn max_scheduled_per_block(
&self,
) -> ::subxt::ext::subxt_core::constants::address::StaticAddress<
::core::primitive::u32,
> {
::subxt::ext::subxt_core::constants::address::StaticAddress::new_static(
"Scheduler",
"MaxScheduledPerBlock",
[
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 = " Precision of the timestamp buckets."]
#[doc = ""]
#[doc = " Timestamp based dispatches are rounded to the nearest bucket of this precision."]
pub fn timestamp_bucket_size(
&self,
) -> ::subxt::ext::subxt_core::constants::address::StaticAddress<
::core::primitive::u64,
> {
::subxt::ext::subxt_core::constants::address::StaticAddress::new_static(
"Scheduler",
"TimestampBucketSize",
[
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 utility {
use super::{root_mod, runtime_types};
#[doc = "The `Error` enum of this pallet."]
pub type Error = runtime_types::pallet_utility::pallet::Error;
#[doc = "Contains a variant per dispatchable extrinsic that this pallet has."]
pub type Call = runtime_types::pallet_utility::pallet::Call;
pub mod calls {
use super::{root_mod, runtime_types};
type DispatchError = runtime_types::sp_runtime::DispatchError;
pub mod types {
use super::runtime_types;
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode"
)]
#[doc = "Send a batch of dispatch calls."]
#[doc = ""]
#[doc = "May be called from any origin except `None`."]
#[doc = ""]
#[doc = "- `calls`: The calls to be dispatched from the same origin. The number of call must not"]
#[doc = " exceed the constant: `batched_calls_limit` (available in constant metadata)."]
#[doc = ""]
#[doc = "If origin is root then the calls are dispatched without checking origin filter. (This"]
#[doc = "includes bypassing `frame_system::Config::BaseCallFilter`)."]
#[doc = ""]
#[doc = "## Complexity"]
#[doc = "- O(C) where C is the number of calls to be batched."]
#[doc = ""]
#[doc = "This will return `Ok` in all circumstances. To determine the success of the batch, an"]
#[doc = "event is deposited. If a call failed and the batch was interrupted, then the"]
#[doc = "`BatchInterrupted` event is deposited, along with the number of successful calls made"]
#[doc = "and the error of the failed call. If all were successful, then the `BatchCompleted`"]
#[doc = "event is deposited."]
pub struct Batch {
pub calls: batch::Calls,
}
pub mod batch {
use super::runtime_types;
pub type Calls = ::subxt::ext::subxt_core::alloc::vec::Vec<
runtime_types::quantus_runtime::RuntimeCall,
>;
}
impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for Batch {
const PALLET: &'static str = "Utility";
const CALL: &'static str = "batch";
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode"
)]
#[doc = "Send a call through an indexed pseudonym of the sender."]
#[doc = ""]
#[doc = "Filter from origin are passed along. The call will be dispatched with an origin which"]
#[doc = "use the same filter as the origin of this call."]
#[doc = ""]
#[doc = "NOTE: If you need to ensure that any account-based filtering is not honored (i.e."]
#[doc = "because you expect `proxy` to have been used prior in the call stack and you do not want"]
#[doc = "the call restrictions to apply to any sub-accounts), then use `as_multi_threshold_1`"]
#[doc = "in the Multisig pallet instead."]
#[doc = ""]
#[doc = "NOTE: Prior to version *12, this was called `as_limited_sub`."]
#[doc = ""]
#[doc = "The dispatch origin for this call must be _Signed_."]
pub struct AsDerivative {
pub index: as_derivative::Index,
pub call: ::subxt::ext::subxt_core::alloc::boxed::Box<as_derivative::Call>,
}
pub mod as_derivative {
use super::runtime_types;
pub type Index = ::core::primitive::u16;
pub type Call = runtime_types::quantus_runtime::RuntimeCall;
}
impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for AsDerivative {
const PALLET: &'static str = "Utility";
const CALL: &'static str = "as_derivative";
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode"
)]
#[doc = "Send a batch of dispatch calls and atomically execute them."]
#[doc = "The whole transaction will rollback and fail if any of the calls failed."]
#[doc = ""]
#[doc = "May be called from any origin except `None`."]
#[doc = ""]
#[doc = "- `calls`: The calls to be dispatched from the same origin. The number of call must not"]
#[doc = " exceed the constant: `batched_calls_limit` (available in constant metadata)."]
#[doc = ""]
#[doc = "If origin is root then the calls are dispatched without checking origin filter. (This"]
#[doc = "includes bypassing `frame_system::Config::BaseCallFilter`)."]
#[doc = ""]
#[doc = "## Complexity"]
#[doc = "- O(C) where C is the number of calls to be batched."]
pub struct BatchAll {
pub calls: batch_all::Calls,
}
pub mod batch_all {
use super::runtime_types;
pub type Calls = ::subxt::ext::subxt_core::alloc::vec::Vec<
runtime_types::quantus_runtime::RuntimeCall,
>;
}
impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for BatchAll {
const PALLET: &'static str = "Utility";
const CALL: &'static str = "batch_all";
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode"
)]
#[doc = "Dispatches a function call with a provided origin."]
#[doc = ""]
#[doc = "The dispatch origin for this call must be _Root_."]
#[doc = ""]
#[doc = "## Complexity"]
#[doc = "- O(1)."]
pub struct DispatchAs {
pub as_origin:
::subxt::ext::subxt_core::alloc::boxed::Box<dispatch_as::AsOrigin>,
pub call: ::subxt::ext::subxt_core::alloc::boxed::Box<dispatch_as::Call>,
}
pub mod dispatch_as {
use super::runtime_types;
pub type AsOrigin = runtime_types::quantus_runtime::OriginCaller;
pub type Call = runtime_types::quantus_runtime::RuntimeCall;
}
impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for DispatchAs {
const PALLET: &'static str = "Utility";
const CALL: &'static str = "dispatch_as";
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode"
)]
#[doc = "Send a batch of dispatch calls."]
#[doc = "Unlike `batch`, it allows errors and won't interrupt."]
#[doc = ""]
#[doc = "May be called from any origin except `None`."]
#[doc = ""]
#[doc = "- `calls`: The calls to be dispatched from the same origin. The number of call must not"]
#[doc = " exceed the constant: `batched_calls_limit` (available in constant metadata)."]
#[doc = ""]
#[doc = "If origin is root then the calls are dispatch without checking origin filter. (This"]
#[doc = "includes bypassing `frame_system::Config::BaseCallFilter`)."]
#[doc = ""]
#[doc = "## Complexity"]
#[doc = "- O(C) where C is the number of calls to be batched."]
pub struct ForceBatch {
pub calls: force_batch::Calls,
}
pub mod force_batch {
use super::runtime_types;
pub type Calls = ::subxt::ext::subxt_core::alloc::vec::Vec<
runtime_types::quantus_runtime::RuntimeCall,
>;
}
impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for ForceBatch {
const PALLET: &'static str = "Utility";
const CALL: &'static str = "force_batch";
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode"
)]
#[doc = "Dispatch a function call with a specified weight."]
#[doc = ""]
#[doc = "This function does not check the weight of the call, and instead allows the"]
#[doc = "Root origin to specify the weight of the call."]
#[doc = ""]
#[doc = "The dispatch origin for this call must be _Root_."]
pub struct WithWeight {
pub call: ::subxt::ext::subxt_core::alloc::boxed::Box<with_weight::Call>,
pub weight: with_weight::Weight,
}
pub mod with_weight {
use super::runtime_types;
pub type Call = runtime_types::quantus_runtime::RuntimeCall;
pub type Weight = runtime_types::sp_weights::weight_v2::Weight;
}
impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for WithWeight {
const PALLET: &'static str = "Utility";
const CALL: &'static str = "with_weight";
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode"
)]
#[doc = "Dispatch a fallback call in the event the main call fails to execute."]
#[doc = "May be called from any origin except `None`."]
#[doc = ""]
#[doc = "This function first attempts to dispatch the `main` call."]
#[doc = "If the `main` call fails, the `fallback` is attemted."]
#[doc = "if the fallback is successfully dispatched, the weights of both calls"]
#[doc = "are accumulated and an event containing the main call error is deposited."]
#[doc = ""]
#[doc = "In the event of a fallback failure the whole call fails"]
#[doc = "with the weights returned."]
#[doc = ""]
#[doc = "- `main`: The main call to be dispatched. This is the primary action to execute."]
#[doc = "- `fallback`: The fallback call to be dispatched in case the `main` call fails."]
#[doc = ""]
#[doc = "## Dispatch Logic"]
#[doc = "- If the origin is `root`, both the main and fallback calls are executed without"]
#[doc = " applying any origin filters."]
#[doc = "- If the origin is not `root`, the origin filter is applied to both the `main` and"]
#[doc = " `fallback` calls."]
#[doc = ""]
#[doc = "## Use Case"]
#[doc = "- Some use cases might involve submitting a `batch` type call in either main, fallback"]
#[doc = " or both."]
pub struct IfElse {
pub main: ::subxt::ext::subxt_core::alloc::boxed::Box<if_else::Main>,
pub fallback: ::subxt::ext::subxt_core::alloc::boxed::Box<if_else::Fallback>,
}
pub mod if_else {
use super::runtime_types;
pub type Main = runtime_types::quantus_runtime::RuntimeCall;
pub type Fallback = runtime_types::quantus_runtime::RuntimeCall;
}
impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for IfElse {
const PALLET: &'static str = "Utility";
const CALL: &'static str = "if_else";
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode"
)]
#[doc = "Dispatches a function call with a provided origin."]
#[doc = ""]
#[doc = "Almost the same as [`Pallet::dispatch_as`] but forwards any error of the inner call."]
#[doc = ""]
#[doc = "The dispatch origin for this call must be _Root_."]
pub struct DispatchAsFallible {
pub as_origin:
::subxt::ext::subxt_core::alloc::boxed::Box<dispatch_as_fallible::AsOrigin>,
pub call:
::subxt::ext::subxt_core::alloc::boxed::Box<dispatch_as_fallible::Call>,
}
pub mod dispatch_as_fallible {
use super::runtime_types;
pub type AsOrigin = runtime_types::quantus_runtime::OriginCaller;
pub type Call = runtime_types::quantus_runtime::RuntimeCall;
}
impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for DispatchAsFallible {
const PALLET: &'static str = "Utility";
const CALL: &'static str = "dispatch_as_fallible";
}
}
pub struct TransactionApi;
impl TransactionApi {
#[doc = "Send a batch of dispatch calls."]
#[doc = ""]
#[doc = "May be called from any origin except `None`."]
#[doc = ""]
#[doc = "- `calls`: The calls to be dispatched from the same origin. The number of call must not"]
#[doc = " exceed the constant: `batched_calls_limit` (available in constant metadata)."]
#[doc = ""]
#[doc = "If origin is root then the calls are dispatched without checking origin filter. (This"]
#[doc = "includes bypassing `frame_system::Config::BaseCallFilter`)."]
#[doc = ""]
#[doc = "## Complexity"]
#[doc = "- O(C) where C is the number of calls to be batched."]
#[doc = ""]
#[doc = "This will return `Ok` in all circumstances. To determine the success of the batch, an"]
#[doc = "event is deposited. If a call failed and the batch was interrupted, then the"]
#[doc = "`BatchInterrupted` event is deposited, along with the number of successful calls made"]
#[doc = "and the error of the failed call. If all were successful, then the `BatchCompleted`"]
#[doc = "event is deposited."]
pub fn batch(
&self,
calls: types::batch::Calls,
) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload<types::Batch> {
::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static(
"Utility",
"batch",
types::Batch { calls },
[
168u8, 153u8, 140u8, 127u8, 49u8, 58u8, 84u8, 232u8, 97u8, 32u8, 62u8,
214u8, 148u8, 56u8, 117u8, 185u8, 158u8, 13u8, 116u8, 44u8, 227u8,
64u8, 247u8, 216u8, 184u8, 41u8, 4u8, 163u8, 162u8, 77u8, 134u8, 234u8,
],
)
}
#[doc = "Send a call through an indexed pseudonym of the sender."]
#[doc = ""]
#[doc = "Filter from origin are passed along. The call will be dispatched with an origin which"]
#[doc = "use the same filter as the origin of this call."]
#[doc = ""]
#[doc = "NOTE: If you need to ensure that any account-based filtering is not honored (i.e."]
#[doc = "because you expect `proxy` to have been used prior in the call stack and you do not want"]
#[doc = "the call restrictions to apply to any sub-accounts), then use `as_multi_threshold_1`"]
#[doc = "in the Multisig pallet instead."]
#[doc = ""]
#[doc = "NOTE: Prior to version *12, this was called `as_limited_sub`."]
#[doc = ""]
#[doc = "The dispatch origin for this call must be _Signed_."]
pub fn as_derivative(
&self,
index: types::as_derivative::Index,
call: types::as_derivative::Call,
) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload<types::AsDerivative> {
::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static(
"Utility",
"as_derivative",
types::AsDerivative {
index,
call: ::subxt::ext::subxt_core::alloc::boxed::Box::new(call),
},
[
221u8, 169u8, 48u8, 6u8, 24u8, 30u8, 152u8, 227u8, 141u8, 56u8, 160u8,
66u8, 148u8, 225u8, 88u8, 225u8, 102u8, 31u8, 140u8, 98u8, 159u8,
240u8, 185u8, 45u8, 110u8, 180u8, 70u8, 228u8, 109u8, 205u8, 73u8,
42u8,
],
)
}
#[doc = "Send a batch of dispatch calls and atomically execute them."]
#[doc = "The whole transaction will rollback and fail if any of the calls failed."]
#[doc = ""]
#[doc = "May be called from any origin except `None`."]
#[doc = ""]
#[doc = "- `calls`: The calls to be dispatched from the same origin. The number of call must not"]
#[doc = " exceed the constant: `batched_calls_limit` (available in constant metadata)."]
#[doc = ""]
#[doc = "If origin is root then the calls are dispatched without checking origin filter. (This"]
#[doc = "includes bypassing `frame_system::Config::BaseCallFilter`)."]
#[doc = ""]
#[doc = "## Complexity"]
#[doc = "- O(C) where C is the number of calls to be batched."]
pub fn batch_all(
&self,
calls: types::batch_all::Calls,
) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload<types::BatchAll> {
::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static(
"Utility",
"batch_all",
types::BatchAll { calls },
[
61u8, 221u8, 247u8, 197u8, 198u8, 93u8, 227u8, 27u8, 130u8, 66u8,
147u8, 239u8, 234u8, 219u8, 242u8, 109u8, 220u8, 4u8, 251u8, 147u8,
86u8, 37u8, 232u8, 40u8, 208u8, 222u8, 123u8, 72u8, 1u8, 48u8, 39u8,
252u8,
],
)
}
#[doc = "Dispatches a function call with a provided origin."]
#[doc = ""]
#[doc = "The dispatch origin for this call must be _Root_."]
#[doc = ""]
#[doc = "## Complexity"]
#[doc = "- O(1)."]
pub fn dispatch_as(
&self,
as_origin: types::dispatch_as::AsOrigin,
call: types::dispatch_as::Call,
) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload<types::DispatchAs> {
::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static(
"Utility",
"dispatch_as",
types::DispatchAs {
as_origin: ::subxt::ext::subxt_core::alloc::boxed::Box::new(as_origin),
call: ::subxt::ext::subxt_core::alloc::boxed::Box::new(call),
},
[
211u8, 86u8, 167u8, 189u8, 24u8, 103u8, 83u8, 11u8, 102u8, 251u8,
156u8, 78u8, 99u8, 174u8, 1u8, 90u8, 37u8, 195u8, 61u8, 102u8, 77u8,
216u8, 136u8, 168u8, 76u8, 234u8, 228u8, 234u8, 98u8, 146u8, 246u8,
3u8,
],
)
}
#[doc = "Send a batch of dispatch calls."]
#[doc = "Unlike `batch`, it allows errors and won't interrupt."]
#[doc = ""]
#[doc = "May be called from any origin except `None`."]
#[doc = ""]
#[doc = "- `calls`: The calls to be dispatched from the same origin. The number of call must not"]
#[doc = " exceed the constant: `batched_calls_limit` (available in constant metadata)."]
#[doc = ""]
#[doc = "If origin is root then the calls are dispatch without checking origin filter. (This"]
#[doc = "includes bypassing `frame_system::Config::BaseCallFilter`)."]
#[doc = ""]
#[doc = "## Complexity"]
#[doc = "- O(C) where C is the number of calls to be batched."]
pub fn force_batch(
&self,
calls: types::force_batch::Calls,
) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload<types::ForceBatch> {
::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static(
"Utility",
"force_batch",
types::ForceBatch { calls },
[
146u8, 12u8, 37u8, 67u8, 116u8, 89u8, 65u8, 39u8, 146u8, 69u8, 186u8,
21u8, 192u8, 211u8, 148u8, 137u8, 201u8, 3u8, 195u8, 90u8, 80u8, 57u8,
116u8, 148u8, 29u8, 225u8, 149u8, 117u8, 185u8, 193u8, 159u8, 219u8,
],
)
}
#[doc = "Dispatch a function call with a specified weight."]
#[doc = ""]
#[doc = "This function does not check the weight of the call, and instead allows the"]
#[doc = "Root origin to specify the weight of the call."]
#[doc = ""]
#[doc = "The dispatch origin for this call must be _Root_."]
pub fn with_weight(
&self,
call: types::with_weight::Call,
weight: types::with_weight::Weight,
) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload<types::WithWeight> {
::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static(
"Utility",
"with_weight",
types::WithWeight {
call: ::subxt::ext::subxt_core::alloc::boxed::Box::new(call),
weight,
},
[
108u8, 240u8, 32u8, 97u8, 18u8, 61u8, 34u8, 62u8, 149u8, 244u8, 16u8,
87u8, 60u8, 116u8, 221u8, 156u8, 68u8, 51u8, 60u8, 233u8, 15u8, 160u8,
180u8, 31u8, 197u8, 161u8, 165u8, 93u8, 238u8, 184u8, 50u8, 36u8,
],
)
}
#[doc = "Dispatch a fallback call in the event the main call fails to execute."]
#[doc = "May be called from any origin except `None`."]
#[doc = ""]
#[doc = "This function first attempts to dispatch the `main` call."]
#[doc = "If the `main` call fails, the `fallback` is attemted."]
#[doc = "if the fallback is successfully dispatched, the weights of both calls"]
#[doc = "are accumulated and an event containing the main call error is deposited."]
#[doc = ""]
#[doc = "In the event of a fallback failure the whole call fails"]
#[doc = "with the weights returned."]
#[doc = ""]
#[doc = "- `main`: The main call to be dispatched. This is the primary action to execute."]
#[doc = "- `fallback`: The fallback call to be dispatched in case the `main` call fails."]
#[doc = ""]
#[doc = "## Dispatch Logic"]
#[doc = "- If the origin is `root`, both the main and fallback calls are executed without"]
#[doc = " applying any origin filters."]
#[doc = "- If the origin is not `root`, the origin filter is applied to both the `main` and"]
#[doc = " `fallback` calls."]
#[doc = ""]
#[doc = "## Use Case"]
#[doc = "- Some use cases might involve submitting a `batch` type call in either main, fallback"]
#[doc = " or both."]
pub fn if_else(
&self,
main: types::if_else::Main,
fallback: types::if_else::Fallback,
) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload<types::IfElse> {
::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static(
"Utility",
"if_else",
types::IfElse {
main: ::subxt::ext::subxt_core::alloc::boxed::Box::new(main),
fallback: ::subxt::ext::subxt_core::alloc::boxed::Box::new(fallback),
},
[
160u8, 250u8, 232u8, 179u8, 142u8, 199u8, 97u8, 214u8, 128u8, 114u8,
165u8, 161u8, 57u8, 210u8, 171u8, 46u8, 89u8, 202u8, 250u8, 19u8, 45u8,
144u8, 223u8, 4u8, 145u8, 157u8, 184u8, 228u8, 250u8, 221u8, 6u8, 5u8,
],
)
}
#[doc = "Dispatches a function call with a provided origin."]
#[doc = ""]
#[doc = "Almost the same as [`Pallet::dispatch_as`] but forwards any error of the inner call."]
#[doc = ""]
#[doc = "The dispatch origin for this call must be _Root_."]
pub fn dispatch_as_fallible(
&self,
as_origin: types::dispatch_as_fallible::AsOrigin,
call: types::dispatch_as_fallible::Call,
) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload<types::DispatchAsFallible>
{
::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static(
"Utility",
"dispatch_as_fallible",
types::DispatchAsFallible {
as_origin: ::subxt::ext::subxt_core::alloc::boxed::Box::new(as_origin),
call: ::subxt::ext::subxt_core::alloc::boxed::Box::new(call),
},
[
138u8, 211u8, 58u8, 120u8, 90u8, 178u8, 167u8, 166u8, 163u8, 135u8,
34u8, 41u8, 124u8, 179u8, 160u8, 200u8, 137u8, 21u8, 36u8, 100u8,
126u8, 66u8, 89u8, 124u8, 51u8, 155u8, 197u8, 173u8, 126u8, 1u8, 10u8,
66u8,
],
)
}
}
}
#[doc = "The `Event` enum of this pallet"]
pub type Event = runtime_types::pallet_utility::pallet::Event;
pub mod events {
use super::runtime_types;
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")]
#[doc = "Batch of dispatches did not complete fully. Index of first failing dispatch given, as"]
#[doc = "well as the error."]
pub struct BatchInterrupted {
pub index: batch_interrupted::Index,
pub error: batch_interrupted::Error,
}
pub mod batch_interrupted {
use super::runtime_types;
pub type Index = ::core::primitive::u32;
pub type Error = runtime_types::sp_runtime::DispatchError;
}
impl ::subxt::ext::subxt_core::events::StaticEvent for BatchInterrupted {
const PALLET: &'static str = "Utility";
const EVENT: &'static str = "BatchInterrupted";
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")]
#[doc = "Batch of dispatches completed fully with no error."]
pub struct BatchCompleted;
impl ::subxt::ext::subxt_core::events::StaticEvent for BatchCompleted {
const PALLET: &'static str = "Utility";
const EVENT: &'static str = "BatchCompleted";
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")]
#[doc = "Batch of dispatches completed but has errors."]
pub struct BatchCompletedWithErrors;
impl ::subxt::ext::subxt_core::events::StaticEvent for BatchCompletedWithErrors {
const PALLET: &'static str = "Utility";
const EVENT: &'static str = "BatchCompletedWithErrors";
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")]
#[doc = "A single item within a Batch of dispatches has completed with no error."]
pub struct ItemCompleted;
impl ::subxt::ext::subxt_core::events::StaticEvent for ItemCompleted {
const PALLET: &'static str = "Utility";
const EVENT: &'static str = "ItemCompleted";
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")]
#[doc = "A single item within a Batch of dispatches has completed with error."]
pub struct ItemFailed {
pub error: item_failed::Error,
}
pub mod item_failed {
use super::runtime_types;
pub type Error = runtime_types::sp_runtime::DispatchError;
}
impl ::subxt::ext::subxt_core::events::StaticEvent for ItemFailed {
const PALLET: &'static str = "Utility";
const EVENT: &'static str = "ItemFailed";
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")]
#[doc = "A call was dispatched."]
pub struct DispatchedAs {
pub result: dispatched_as::Result,
}
pub mod dispatched_as {
use super::runtime_types;
pub type Result =
::core::result::Result<(), runtime_types::sp_runtime::DispatchError>;
}
impl ::subxt::ext::subxt_core::events::StaticEvent for DispatchedAs {
const PALLET: &'static str = "Utility";
const EVENT: &'static str = "DispatchedAs";
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")]
#[doc = "Main call was dispatched."]
pub struct IfElseMainSuccess;
impl ::subxt::ext::subxt_core::events::StaticEvent for IfElseMainSuccess {
const PALLET: &'static str = "Utility";
const EVENT: &'static str = "IfElseMainSuccess";
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")]
#[doc = "The fallback call was dispatched."]
pub struct IfElseFallbackCalled {
pub main_error: if_else_fallback_called::MainError,
}
pub mod if_else_fallback_called {
use super::runtime_types;
pub type MainError = runtime_types::sp_runtime::DispatchError;
}
impl ::subxt::ext::subxt_core::events::StaticEvent for IfElseFallbackCalled {
const PALLET: &'static str = "Utility";
const EVENT: &'static str = "IfElseFallbackCalled";
}
}
pub mod constants {
use super::runtime_types;
pub struct ConstantsApi;
impl ConstantsApi {
#[doc = " The limit on the number of batched calls."]
pub fn batched_calls_limit(
&self,
) -> ::subxt::ext::subxt_core::constants::address::StaticAddress<
::core::primitive::u32,
> {
::subxt::ext::subxt_core::constants::address::StaticAddress::new_static(
"Utility",
"batched_calls_limit",
[
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 referenda {
use super::{root_mod, runtime_types};
#[doc = "The `Error` enum of this pallet."]
pub type Error = runtime_types::pallet_referenda::pallet::Error;
#[doc = "Contains a variant per dispatchable extrinsic that this pallet has."]
pub type Call = runtime_types::pallet_referenda::pallet::Call;
pub mod calls {
use super::{root_mod, runtime_types};
type DispatchError = runtime_types::sp_runtime::DispatchError;
pub mod types {
use super::runtime_types;
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode"
)]
#[doc = "Propose a referendum on a privileged action."]
#[doc = ""]
#[doc = "- `origin`: must be `SubmitOrigin` and the account must have `SubmissionDeposit` funds"]
#[doc = " available."]
#[doc = "- `proposal_origin`: The origin from which the proposal should be executed."]
#[doc = "- `proposal`: The proposal."]
#[doc = "- `enactment_moment`: The moment that the proposal should be enacted."]
#[doc = ""]
#[doc = "Emits `Submitted`."]
pub struct Submit {
pub proposal_origin:
::subxt::ext::subxt_core::alloc::boxed::Box<submit::ProposalOrigin>,
pub proposal: submit::Proposal,
pub enactment_moment: submit::EnactmentMoment,
}
pub mod submit {
use super::runtime_types;
pub type ProposalOrigin = runtime_types::quantus_runtime::OriginCaller;
pub type Proposal = runtime_types::frame_support::traits::preimages::Bounded<
runtime_types::quantus_runtime::RuntimeCall,
runtime_types::sp_runtime::traits::BlakeTwo256,
>;
pub type EnactmentMoment =
runtime_types::frame_support::traits::schedule::DispatchTime<
::core::primitive::u32,
>;
}
impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for Submit {
const PALLET: &'static str = "Referenda";
const CALL: &'static str = "submit";
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode"
)]
#[doc = "Post the Decision Deposit for a referendum."]
#[doc = ""]
#[doc = "- `origin`: must be `Signed` and the account must have funds available for the"]
#[doc = " referendum's track's Decision Deposit."]
#[doc = "- `index`: The index of the submitted referendum whose Decision Deposit is yet to be"]
#[doc = " posted."]
#[doc = ""]
#[doc = "Emits `DecisionDepositPlaced`."]
pub struct PlaceDecisionDeposit {
pub index: place_decision_deposit::Index,
}
pub mod place_decision_deposit {
use super::runtime_types;
pub type Index = ::core::primitive::u32;
}
impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for PlaceDecisionDeposit {
const PALLET: &'static str = "Referenda";
const CALL: &'static str = "place_decision_deposit";
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode"
)]
#[doc = "Refund the Decision Deposit for a closed referendum back to the depositor."]
#[doc = ""]
#[doc = "- `origin`: must be `Signed` or `Root`."]
#[doc = "- `index`: The index of a closed referendum whose Decision Deposit has not yet been"]
#[doc = " refunded."]
#[doc = ""]
#[doc = "Emits `DecisionDepositRefunded`."]
pub struct RefundDecisionDeposit {
pub index: refund_decision_deposit::Index,
}
pub mod refund_decision_deposit {
use super::runtime_types;
pub type Index = ::core::primitive::u32;
}
impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for RefundDecisionDeposit {
const PALLET: &'static str = "Referenda";
const CALL: &'static str = "refund_decision_deposit";
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode"
)]
#[doc = "Cancel an ongoing referendum."]
#[doc = ""]
#[doc = "- `origin`: must be the `CancelOrigin`."]
#[doc = "- `index`: The index of the referendum to be cancelled."]
#[doc = ""]
#[doc = "Emits `Cancelled`."]
pub struct Cancel {
pub index: cancel::Index,
}
pub mod cancel {
use super::runtime_types;
pub type Index = ::core::primitive::u32;
}
impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for Cancel {
const PALLET: &'static str = "Referenda";
const CALL: &'static str = "cancel";
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode"
)]
#[doc = "Cancel an ongoing referendum and slash the deposits."]
#[doc = ""]
#[doc = "- `origin`: must be the `KillOrigin`."]
#[doc = "- `index`: The index of the referendum to be cancelled."]
#[doc = ""]
#[doc = "Emits `Killed` and `DepositSlashed`."]
pub struct Kill {
pub index: kill::Index,
}
pub mod kill {
use super::runtime_types;
pub type Index = ::core::primitive::u32;
}
impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for Kill {
const PALLET: &'static str = "Referenda";
const CALL: &'static str = "kill";
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode"
)]
#[doc = "Advance a referendum onto its next logical state. Only used internally."]
#[doc = ""]
#[doc = "- `origin`: must be `Root`."]
#[doc = "- `index`: the referendum to be advanced."]
pub struct NudgeReferendum {
pub index: nudge_referendum::Index,
}
pub mod nudge_referendum {
use super::runtime_types;
pub type Index = ::core::primitive::u32;
}
impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for NudgeReferendum {
const PALLET: &'static str = "Referenda";
const CALL: &'static str = "nudge_referendum";
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode"
)]
#[doc = "Advance a track onto its next logical state. Only used internally."]
#[doc = ""]
#[doc = "- `origin`: must be `Root`."]
#[doc = "- `track`: the track to be advanced."]
#[doc = ""]
#[doc = "Action item for when there is now one fewer referendum in the deciding phase and the"]
#[doc = "`DecidingCount` is not yet updated. This means that we should either:"]
#[doc = "- begin deciding another referendum (and leave `DecidingCount` alone); or"]
#[doc = "- decrement `DecidingCount`."]
pub struct OneFewerDeciding {
pub track: one_fewer_deciding::Track,
}
pub mod one_fewer_deciding {
use super::runtime_types;
pub type Track = ::core::primitive::u16;
}
impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for OneFewerDeciding {
const PALLET: &'static str = "Referenda";
const CALL: &'static str = "one_fewer_deciding";
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode"
)]
#[doc = "Refund the Submission Deposit for a closed referendum back to the depositor."]
#[doc = ""]
#[doc = "- `origin`: must be `Signed` or `Root`."]
#[doc = "- `index`: The index of a closed referendum whose Submission Deposit has not yet been"]
#[doc = " refunded."]
#[doc = ""]
#[doc = "Emits `SubmissionDepositRefunded`."]
pub struct RefundSubmissionDeposit {
pub index: refund_submission_deposit::Index,
}
pub mod refund_submission_deposit {
use super::runtime_types;
pub type Index = ::core::primitive::u32;
}
impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for RefundSubmissionDeposit {
const PALLET: &'static str = "Referenda";
const CALL: &'static str = "refund_submission_deposit";
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode"
)]
#[doc = "Set or clear metadata of a referendum."]
#[doc = ""]
#[doc = "Parameters:"]
#[doc = "- `origin`: Must be `Signed` by a creator of a referendum or by anyone to clear a"]
#[doc = " metadata of a finished referendum."]
#[doc = "- `index`: The index of a referendum to set or clear metadata for."]
#[doc = "- `maybe_hash`: The hash of an on-chain stored preimage. `None` to clear a metadata."]
pub struct SetMetadata {
pub index: set_metadata::Index,
pub maybe_hash: set_metadata::MaybeHash,
}
pub mod set_metadata {
use super::runtime_types;
pub type Index = ::core::primitive::u32;
pub type MaybeHash =
::core::option::Option<::subxt::ext::subxt_core::utils::H256>;
}
impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for SetMetadata {
const PALLET: &'static str = "Referenda";
const CALL: &'static str = "set_metadata";
}
}
pub struct TransactionApi;
impl TransactionApi {
#[doc = "Propose a referendum on a privileged action."]
#[doc = ""]
#[doc = "- `origin`: must be `SubmitOrigin` and the account must have `SubmissionDeposit` funds"]
#[doc = " available."]
#[doc = "- `proposal_origin`: The origin from which the proposal should be executed."]
#[doc = "- `proposal`: The proposal."]
#[doc = "- `enactment_moment`: The moment that the proposal should be enacted."]
#[doc = ""]
#[doc = "Emits `Submitted`."]
pub fn submit(
&self,
proposal_origin: types::submit::ProposalOrigin,
proposal: types::submit::Proposal,
enactment_moment: types::submit::EnactmentMoment,
) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload<types::Submit> {
::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static(
"Referenda",
"submit",
types::Submit {
proposal_origin: ::subxt::ext::subxt_core::alloc::boxed::Box::new(
proposal_origin,
),
proposal,
enactment_moment,
},
[
0u8, 18u8, 14u8, 253u8, 33u8, 212u8, 33u8, 173u8, 241u8, 29u8, 88u8,
160u8, 111u8, 21u8, 6u8, 234u8, 249u8, 230u8, 222u8, 119u8, 161u8,
114u8, 43u8, 126u8, 164u8, 140u8, 199u8, 39u8, 2u8, 64u8, 132u8, 34u8,
],
)
}
#[doc = "Post the Decision Deposit for a referendum."]
#[doc = ""]
#[doc = "- `origin`: must be `Signed` and the account must have funds available for the"]
#[doc = " referendum's track's Decision Deposit."]
#[doc = "- `index`: The index of the submitted referendum whose Decision Deposit is yet to be"]
#[doc = " posted."]
#[doc = ""]
#[doc = "Emits `DecisionDepositPlaced`."]
pub fn place_decision_deposit(
&self,
index: types::place_decision_deposit::Index,
) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload<types::PlaceDecisionDeposit>
{
::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static(
"Referenda",
"place_decision_deposit",
types::PlaceDecisionDeposit { index },
[
247u8, 158u8, 55u8, 191u8, 188u8, 200u8, 3u8, 47u8, 20u8, 175u8, 86u8,
203u8, 52u8, 253u8, 91u8, 131u8, 21u8, 213u8, 56u8, 68u8, 40u8, 84u8,
184u8, 30u8, 9u8, 193u8, 63u8, 182u8, 178u8, 241u8, 247u8, 220u8,
],
)
}
#[doc = "Refund the Decision Deposit for a closed referendum back to the depositor."]
#[doc = ""]
#[doc = "- `origin`: must be `Signed` or `Root`."]
#[doc = "- `index`: The index of a closed referendum whose Decision Deposit has not yet been"]
#[doc = " refunded."]
#[doc = ""]
#[doc = "Emits `DecisionDepositRefunded`."]
pub fn refund_decision_deposit(
&self,
index: types::refund_decision_deposit::Index,
) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload<
types::RefundDecisionDeposit,
> {
::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static(
"Referenda",
"refund_decision_deposit",
types::RefundDecisionDeposit { index },
[
159u8, 19u8, 35u8, 216u8, 114u8, 105u8, 18u8, 42u8, 148u8, 151u8,
136u8, 92u8, 117u8, 30u8, 29u8, 41u8, 238u8, 58u8, 195u8, 91u8, 115u8,
135u8, 96u8, 99u8, 154u8, 233u8, 8u8, 249u8, 145u8, 165u8, 77u8, 164u8,
],
)
}
#[doc = "Cancel an ongoing referendum."]
#[doc = ""]
#[doc = "- `origin`: must be the `CancelOrigin`."]
#[doc = "- `index`: The index of the referendum to be cancelled."]
#[doc = ""]
#[doc = "Emits `Cancelled`."]
pub fn cancel(
&self,
index: types::cancel::Index,
) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload<types::Cancel> {
::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static(
"Referenda",
"cancel",
types::Cancel { index },
[
55u8, 206u8, 119u8, 156u8, 238u8, 165u8, 193u8, 73u8, 242u8, 13u8,
212u8, 75u8, 136u8, 156u8, 151u8, 14u8, 35u8, 41u8, 156u8, 107u8, 60u8,
190u8, 39u8, 216u8, 8u8, 74u8, 213u8, 130u8, 160u8, 131u8, 237u8,
122u8,
],
)
}
#[doc = "Cancel an ongoing referendum and slash the deposits."]
#[doc = ""]
#[doc = "- `origin`: must be the `KillOrigin`."]
#[doc = "- `index`: The index of the referendum to be cancelled."]
#[doc = ""]
#[doc = "Emits `Killed` and `DepositSlashed`."]
pub fn kill(
&self,
index: types::kill::Index,
) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload<types::Kill> {
::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static(
"Referenda",
"kill",
types::Kill { index },
[
50u8, 89u8, 57u8, 0u8, 87u8, 129u8, 113u8, 140u8, 179u8, 178u8, 126u8,
198u8, 92u8, 92u8, 189u8, 64u8, 123u8, 232u8, 57u8, 227u8, 223u8,
219u8, 73u8, 217u8, 179u8, 44u8, 210u8, 125u8, 180u8, 10u8, 143u8,
48u8,
],
)
}
#[doc = "Advance a referendum onto its next logical state. Only used internally."]
#[doc = ""]
#[doc = "- `origin`: must be `Root`."]
#[doc = "- `index`: the referendum to be advanced."]
pub fn nudge_referendum(
&self,
index: types::nudge_referendum::Index,
) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload<types::NudgeReferendum>
{
::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static(
"Referenda",
"nudge_referendum",
types::NudgeReferendum { index },
[
75u8, 99u8, 172u8, 30u8, 170u8, 150u8, 211u8, 229u8, 249u8, 128u8,
194u8, 246u8, 100u8, 142u8, 193u8, 184u8, 232u8, 81u8, 29u8, 17u8,
99u8, 91u8, 236u8, 85u8, 230u8, 226u8, 57u8, 115u8, 45u8, 170u8, 54u8,
213u8,
],
)
}
#[doc = "Advance a track onto its next logical state. Only used internally."]
#[doc = ""]
#[doc = "- `origin`: must be `Root`."]
#[doc = "- `track`: the track to be advanced."]
#[doc = ""]
#[doc = "Action item for when there is now one fewer referendum in the deciding phase and the"]
#[doc = "`DecidingCount` is not yet updated. This means that we should either:"]
#[doc = "- begin deciding another referendum (and leave `DecidingCount` alone); or"]
#[doc = "- decrement `DecidingCount`."]
pub fn one_fewer_deciding(
&self,
track: types::one_fewer_deciding::Track,
) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload<types::OneFewerDeciding>
{
::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static(
"Referenda",
"one_fewer_deciding",
types::OneFewerDeciding { track },
[
15u8, 84u8, 79u8, 231u8, 21u8, 239u8, 244u8, 143u8, 183u8, 215u8,
181u8, 25u8, 225u8, 195u8, 95u8, 171u8, 17u8, 156u8, 182u8, 128u8,
111u8, 40u8, 151u8, 102u8, 196u8, 55u8, 36u8, 212u8, 89u8, 190u8,
131u8, 167u8,
],
)
}
#[doc = "Refund the Submission Deposit for a closed referendum back to the depositor."]
#[doc = ""]
#[doc = "- `origin`: must be `Signed` or `Root`."]
#[doc = "- `index`: The index of a closed referendum whose Submission Deposit has not yet been"]
#[doc = " refunded."]
#[doc = ""]
#[doc = "Emits `SubmissionDepositRefunded`."]
pub fn refund_submission_deposit(
&self,
index: types::refund_submission_deposit::Index,
) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload<
types::RefundSubmissionDeposit,
> {
::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static(
"Referenda",
"refund_submission_deposit",
types::RefundSubmissionDeposit { index },
[
20u8, 217u8, 115u8, 6u8, 1u8, 60u8, 54u8, 136u8, 35u8, 41u8, 38u8,
23u8, 85u8, 100u8, 141u8, 126u8, 30u8, 160u8, 61u8, 46u8, 134u8, 98u8,
82u8, 38u8, 211u8, 124u8, 208u8, 222u8, 210u8, 10u8, 155u8, 122u8,
],
)
}
#[doc = "Set or clear metadata of a referendum."]
#[doc = ""]
#[doc = "Parameters:"]
#[doc = "- `origin`: Must be `Signed` by a creator of a referendum or by anyone to clear a"]
#[doc = " metadata of a finished referendum."]
#[doc = "- `index`: The index of a referendum to set or clear metadata for."]
#[doc = "- `maybe_hash`: The hash of an on-chain stored preimage. `None` to clear a metadata."]
pub fn set_metadata(
&self,
index: types::set_metadata::Index,
maybe_hash: types::set_metadata::MaybeHash,
) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload<types::SetMetadata> {
::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static(
"Referenda",
"set_metadata",
types::SetMetadata { index, maybe_hash },
[
207u8, 29u8, 146u8, 233u8, 219u8, 205u8, 88u8, 118u8, 106u8, 61u8,
124u8, 101u8, 2u8, 41u8, 169u8, 70u8, 114u8, 189u8, 162u8, 118u8, 1u8,
108u8, 234u8, 98u8, 245u8, 245u8, 183u8, 126u8, 89u8, 13u8, 112u8,
88u8,
],
)
}
}
}
#[doc = "The `Event` enum of this pallet"]
pub type Event = runtime_types::pallet_referenda::pallet::Event1;
pub mod events {
use super::runtime_types;
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")]
#[doc = "A referendum has been submitted."]
pub struct Submitted {
pub index: submitted::Index,
pub track: submitted::Track,
pub proposal: submitted::Proposal,
}
pub mod submitted {
use super::runtime_types;
pub type Index = ::core::primitive::u32;
pub type Track = ::core::primitive::u16;
pub type Proposal = runtime_types::frame_support::traits::preimages::Bounded<
runtime_types::quantus_runtime::RuntimeCall,
runtime_types::sp_runtime::traits::BlakeTwo256,
>;
}
impl ::subxt::ext::subxt_core::events::StaticEvent for Submitted {
const PALLET: &'static str = "Referenda";
const EVENT: &'static str = "Submitted";
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")]
#[doc = "The decision deposit has been placed."]
pub struct DecisionDepositPlaced {
pub index: decision_deposit_placed::Index,
pub who: decision_deposit_placed::Who,
pub amount: decision_deposit_placed::Amount,
}
pub mod decision_deposit_placed {
use super::runtime_types;
pub type Index = ::core::primitive::u32;
pub type Who = ::subxt::ext::subxt_core::utils::AccountId32;
pub type Amount = ::core::primitive::u128;
}
impl ::subxt::ext::subxt_core::events::StaticEvent for DecisionDepositPlaced {
const PALLET: &'static str = "Referenda";
const EVENT: &'static str = "DecisionDepositPlaced";
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")]
#[doc = "The decision deposit has been refunded."]
pub struct DecisionDepositRefunded {
pub index: decision_deposit_refunded::Index,
pub who: decision_deposit_refunded::Who,
pub amount: decision_deposit_refunded::Amount,
}
pub mod decision_deposit_refunded {
use super::runtime_types;
pub type Index = ::core::primitive::u32;
pub type Who = ::subxt::ext::subxt_core::utils::AccountId32;
pub type Amount = ::core::primitive::u128;
}
impl ::subxt::ext::subxt_core::events::StaticEvent for DecisionDepositRefunded {
const PALLET: &'static str = "Referenda";
const EVENT: &'static str = "DecisionDepositRefunded";
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")]
#[doc = "A deposit has been slashed."]
pub struct DepositSlashed {
pub who: deposit_slashed::Who,
pub amount: deposit_slashed::Amount,
}
pub mod deposit_slashed {
use super::runtime_types;
pub type Who = ::subxt::ext::subxt_core::utils::AccountId32;
pub type Amount = ::core::primitive::u128;
}
impl ::subxt::ext::subxt_core::events::StaticEvent for DepositSlashed {
const PALLET: &'static str = "Referenda";
const EVENT: &'static str = "DepositSlashed";
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")]
#[doc = "A referendum has moved into the deciding phase."]
pub struct DecisionStarted {
pub index: decision_started::Index,
pub track: decision_started::Track,
pub proposal: decision_started::Proposal,
pub tally: decision_started::Tally,
}
pub mod decision_started {
use super::runtime_types;
pub type Index = ::core::primitive::u32;
pub type Track = ::core::primitive::u16;
pub type Proposal = runtime_types::frame_support::traits::preimages::Bounded<
runtime_types::quantus_runtime::RuntimeCall,
runtime_types::sp_runtime::traits::BlakeTwo256,
>;
pub type Tally =
runtime_types::pallet_conviction_voting::types::Tally<::core::primitive::u128>;
}
impl ::subxt::ext::subxt_core::events::StaticEvent for DecisionStarted {
const PALLET: &'static str = "Referenda";
const EVENT: &'static str = "DecisionStarted";
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")]
pub struct ConfirmStarted {
pub index: confirm_started::Index,
}
pub mod confirm_started {
use super::runtime_types;
pub type Index = ::core::primitive::u32;
}
impl ::subxt::ext::subxt_core::events::StaticEvent for ConfirmStarted {
const PALLET: &'static str = "Referenda";
const EVENT: &'static str = "ConfirmStarted";
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")]
pub struct ConfirmAborted {
pub index: confirm_aborted::Index,
}
pub mod confirm_aborted {
use super::runtime_types;
pub type Index = ::core::primitive::u32;
}
impl ::subxt::ext::subxt_core::events::StaticEvent for ConfirmAborted {
const PALLET: &'static str = "Referenda";
const EVENT: &'static str = "ConfirmAborted";
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")]
#[doc = "A referendum has ended its confirmation phase and is ready for approval."]
pub struct Confirmed {
pub index: confirmed::Index,
pub tally: confirmed::Tally,
}
pub mod confirmed {
use super::runtime_types;
pub type Index = ::core::primitive::u32;
pub type Tally =
runtime_types::pallet_conviction_voting::types::Tally<::core::primitive::u128>;
}
impl ::subxt::ext::subxt_core::events::StaticEvent for Confirmed {
const PALLET: &'static str = "Referenda";
const EVENT: &'static str = "Confirmed";
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")]
#[doc = "A referendum has been approved and its proposal has been scheduled."]
pub struct Approved {
pub index: approved::Index,
}
pub mod approved {
use super::runtime_types;
pub type Index = ::core::primitive::u32;
}
impl ::subxt::ext::subxt_core::events::StaticEvent for Approved {
const PALLET: &'static str = "Referenda";
const EVENT: &'static str = "Approved";
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")]
#[doc = "A proposal has been rejected by referendum."]
pub struct Rejected {
pub index: rejected::Index,
pub tally: rejected::Tally,
}
pub mod rejected {
use super::runtime_types;
pub type Index = ::core::primitive::u32;
pub type Tally =
runtime_types::pallet_conviction_voting::types::Tally<::core::primitive::u128>;
}
impl ::subxt::ext::subxt_core::events::StaticEvent for Rejected {
const PALLET: &'static str = "Referenda";
const EVENT: &'static str = "Rejected";
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")]
#[doc = "A referendum has been timed out without being decided."]
pub struct TimedOut {
pub index: timed_out::Index,
pub tally: timed_out::Tally,
}
pub mod timed_out {
use super::runtime_types;
pub type Index = ::core::primitive::u32;
pub type Tally =
runtime_types::pallet_conviction_voting::types::Tally<::core::primitive::u128>;
}
impl ::subxt::ext::subxt_core::events::StaticEvent for TimedOut {
const PALLET: &'static str = "Referenda";
const EVENT: &'static str = "TimedOut";
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")]
#[doc = "A referendum has been cancelled."]
pub struct Cancelled {
pub index: cancelled::Index,
pub tally: cancelled::Tally,
}
pub mod cancelled {
use super::runtime_types;
pub type Index = ::core::primitive::u32;
pub type Tally =
runtime_types::pallet_conviction_voting::types::Tally<::core::primitive::u128>;
}
impl ::subxt::ext::subxt_core::events::StaticEvent for Cancelled {
const PALLET: &'static str = "Referenda";
const EVENT: &'static str = "Cancelled";
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")]
#[doc = "A referendum has been killed."]
pub struct Killed {
pub index: killed::Index,
pub tally: killed::Tally,
}
pub mod killed {
use super::runtime_types;
pub type Index = ::core::primitive::u32;
pub type Tally =
runtime_types::pallet_conviction_voting::types::Tally<::core::primitive::u128>;
}
impl ::subxt::ext::subxt_core::events::StaticEvent for Killed {
const PALLET: &'static str = "Referenda";
const EVENT: &'static str = "Killed";
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")]
#[doc = "The submission deposit has been refunded."]
pub struct SubmissionDepositRefunded {
pub index: submission_deposit_refunded::Index,
pub who: submission_deposit_refunded::Who,
pub amount: submission_deposit_refunded::Amount,
}
pub mod submission_deposit_refunded {
use super::runtime_types;
pub type Index = ::core::primitive::u32;
pub type Who = ::subxt::ext::subxt_core::utils::AccountId32;
pub type Amount = ::core::primitive::u128;
}
impl ::subxt::ext::subxt_core::events::StaticEvent for SubmissionDepositRefunded {
const PALLET: &'static str = "Referenda";
const EVENT: &'static str = "SubmissionDepositRefunded";
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")]
#[doc = "Metadata for a referendum has been set."]
pub struct MetadataSet {
pub index: metadata_set::Index,
pub hash: metadata_set::Hash,
}
pub mod metadata_set {
use super::runtime_types;
pub type Index = ::core::primitive::u32;
pub type Hash = ::subxt::ext::subxt_core::utils::H256;
}
impl ::subxt::ext::subxt_core::events::StaticEvent for MetadataSet {
const PALLET: &'static str = "Referenda";
const EVENT: &'static str = "MetadataSet";
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")]
#[doc = "Metadata for a referendum has been cleared."]
pub struct MetadataCleared {
pub index: metadata_cleared::Index,
pub hash: metadata_cleared::Hash,
}
pub mod metadata_cleared {
use super::runtime_types;
pub type Index = ::core::primitive::u32;
pub type Hash = ::subxt::ext::subxt_core::utils::H256;
}
impl ::subxt::ext::subxt_core::events::StaticEvent for MetadataCleared {
const PALLET: &'static str = "Referenda";
const EVENT: &'static str = "MetadataCleared";
}
}
pub mod storage {
use super::runtime_types;
pub mod types {
use super::runtime_types;
pub mod referendum_count {
use super::runtime_types;
pub type ReferendumCount = ::core::primitive::u32;
}
pub mod referendum_info_for {
use super::runtime_types;
pub type ReferendumInfoFor =
runtime_types::pallet_referenda::types::ReferendumInfo<
::core::primitive::u16,
runtime_types::quantus_runtime::OriginCaller,
::core::primitive::u32,
runtime_types::frame_support::traits::preimages::Bounded<
runtime_types::quantus_runtime::RuntimeCall,
runtime_types::sp_runtime::traits::BlakeTwo256,
>,
::core::primitive::u128,
runtime_types::pallet_conviction_voting::types::Tally<
::core::primitive::u128,
>,
::subxt::ext::subxt_core::utils::AccountId32,
(
runtime_types::qp_scheduler::BlockNumberOrTimestamp<
::core::primitive::u32,
::core::primitive::u64,
>,
::core::primitive::u32,
),
>;
pub type Param0 = ::core::primitive::u32;
}
pub mod track_queue {
use super::runtime_types;
pub type TrackQueue =
runtime_types::bounded_collections::bounded_vec::BoundedVec<(
::core::primitive::u32,
::core::primitive::u128,
)>;
pub type Param0 = ::core::primitive::u16;
}
pub mod deciding_count {
use super::runtime_types;
pub type DecidingCount = ::core::primitive::u32;
pub type Param0 = ::core::primitive::u16;
}
pub mod metadata_of {
use super::runtime_types;
pub type MetadataOf = ::subxt::ext::subxt_core::utils::H256;
pub type Param0 = ::core::primitive::u32;
}
}
pub struct StorageApi;
impl StorageApi {
#[doc = " The next free referendum index, aka the number of referenda started so far."]
pub fn referendum_count(
&self,
) -> ::subxt::ext::subxt_core::storage::address::StaticAddress<
(),
types::referendum_count::ReferendumCount,
::subxt::ext::subxt_core::utils::Yes,
::subxt::ext::subxt_core::utils::Yes,
(),
> {
::subxt::ext::subxt_core::storage::address::StaticAddress::new_static(
"Referenda",
"ReferendumCount",
(),
[
64u8, 145u8, 232u8, 153u8, 121u8, 87u8, 128u8, 253u8, 170u8, 192u8,
139u8, 18u8, 0u8, 33u8, 243u8, 11u8, 238u8, 222u8, 244u8, 5u8, 247u8,
198u8, 149u8, 31u8, 122u8, 208u8, 86u8, 179u8, 166u8, 167u8, 93u8,
67u8,
],
)
}
#[doc = " Information concerning any given referendum."]
pub fn referendum_info_for_iter(
&self,
) -> ::subxt::ext::subxt_core::storage::address::StaticAddress<
(),
types::referendum_info_for::ReferendumInfoFor,
(),
(),
::subxt::ext::subxt_core::utils::Yes,
> {
::subxt::ext::subxt_core::storage::address::StaticAddress::new_static(
"Referenda",
"ReferendumInfoFor",
(),
[
6u8, 83u8, 1u8, 153u8, 41u8, 128u8, 169u8, 32u8, 101u8, 55u8, 230u8,
219u8, 157u8, 37u8, 148u8, 156u8, 183u8, 164u8, 133u8, 238u8, 54u8,
243u8, 158u8, 246u8, 58u8, 235u8, 6u8, 127u8, 29u8, 163u8, 255u8,
157u8,
],
)
}
#[doc = " Information concerning any given referendum."]
pub fn referendum_info_for(
&self,
_0: types::referendum_info_for::Param0,
) -> ::subxt::ext::subxt_core::storage::address::StaticAddress<
::subxt::ext::subxt_core::storage::address::StaticStorageKey<
types::referendum_info_for::Param0,
>,
types::referendum_info_for::ReferendumInfoFor,
::subxt::ext::subxt_core::utils::Yes,
(),
(),
> {
::subxt::ext::subxt_core::storage::address::StaticAddress::new_static(
"Referenda",
"ReferendumInfoFor",
::subxt::ext::subxt_core::storage::address::StaticStorageKey::new(_0),
[
6u8, 83u8, 1u8, 153u8, 41u8, 128u8, 169u8, 32u8, 101u8, 55u8, 230u8,
219u8, 157u8, 37u8, 148u8, 156u8, 183u8, 164u8, 133u8, 238u8, 54u8,
243u8, 158u8, 246u8, 58u8, 235u8, 6u8, 127u8, 29u8, 163u8, 255u8,
157u8,
],
)
}
#[doc = " The sorted list of referenda ready to be decided but not yet being decided, ordered by"]
#[doc = " conviction-weighted approvals."]
#[doc = ""]
#[doc = " This should be empty if `DecidingCount` is less than `TrackInfo::max_deciding`."]
pub fn track_queue_iter(
&self,
) -> ::subxt::ext::subxt_core::storage::address::StaticAddress<
(),
types::track_queue::TrackQueue,
(),
::subxt::ext::subxt_core::utils::Yes,
::subxt::ext::subxt_core::utils::Yes,
> {
::subxt::ext::subxt_core::storage::address::StaticAddress::new_static(
"Referenda",
"TrackQueue",
(),
[
125u8, 59u8, 111u8, 68u8, 27u8, 236u8, 82u8, 55u8, 83u8, 159u8, 105u8,
20u8, 241u8, 118u8, 58u8, 141u8, 103u8, 60u8, 246u8, 49u8, 121u8,
183u8, 7u8, 203u8, 225u8, 67u8, 132u8, 79u8, 150u8, 107u8, 71u8, 89u8,
],
)
}
#[doc = " The sorted list of referenda ready to be decided but not yet being decided, ordered by"]
#[doc = " conviction-weighted approvals."]
#[doc = ""]
#[doc = " This should be empty if `DecidingCount` is less than `TrackInfo::max_deciding`."]
pub fn track_queue(
&self,
_0: types::track_queue::Param0,
) -> ::subxt::ext::subxt_core::storage::address::StaticAddress<
::subxt::ext::subxt_core::storage::address::StaticStorageKey<
types::track_queue::Param0,
>,
types::track_queue::TrackQueue,
::subxt::ext::subxt_core::utils::Yes,
::subxt::ext::subxt_core::utils::Yes,
(),
> {
::subxt::ext::subxt_core::storage::address::StaticAddress::new_static(
"Referenda",
"TrackQueue",
::subxt::ext::subxt_core::storage::address::StaticStorageKey::new(_0),
[
125u8, 59u8, 111u8, 68u8, 27u8, 236u8, 82u8, 55u8, 83u8, 159u8, 105u8,
20u8, 241u8, 118u8, 58u8, 141u8, 103u8, 60u8, 246u8, 49u8, 121u8,
183u8, 7u8, 203u8, 225u8, 67u8, 132u8, 79u8, 150u8, 107u8, 71u8, 89u8,
],
)
}
#[doc = " The number of referenda being decided currently."]
pub fn deciding_count_iter(
&self,
) -> ::subxt::ext::subxt_core::storage::address::StaticAddress<
(),
types::deciding_count::DecidingCount,
(),
::subxt::ext::subxt_core::utils::Yes,
::subxt::ext::subxt_core::utils::Yes,
> {
::subxt::ext::subxt_core::storage::address::StaticAddress::new_static(
"Referenda",
"DecidingCount",
(),
[
203u8, 89u8, 158u8, 179u8, 194u8, 82u8, 248u8, 162u8, 93u8, 140u8,
146u8, 51u8, 110u8, 232u8, 51u8, 1u8, 128u8, 212u8, 199u8, 14u8, 182u8,
103u8, 47u8, 252u8, 126u8, 108u8, 166u8, 69u8, 252u8, 179u8, 126u8,
245u8,
],
)
}
#[doc = " The number of referenda being decided currently."]
pub fn deciding_count(
&self,
_0: types::deciding_count::Param0,
) -> ::subxt::ext::subxt_core::storage::address::StaticAddress<
::subxt::ext::subxt_core::storage::address::StaticStorageKey<
types::deciding_count::Param0,
>,
types::deciding_count::DecidingCount,
::subxt::ext::subxt_core::utils::Yes,
::subxt::ext::subxt_core::utils::Yes,
(),
> {
::subxt::ext::subxt_core::storage::address::StaticAddress::new_static(
"Referenda",
"DecidingCount",
::subxt::ext::subxt_core::storage::address::StaticStorageKey::new(_0),
[
203u8, 89u8, 158u8, 179u8, 194u8, 82u8, 248u8, 162u8, 93u8, 140u8,
146u8, 51u8, 110u8, 232u8, 51u8, 1u8, 128u8, 212u8, 199u8, 14u8, 182u8,
103u8, 47u8, 252u8, 126u8, 108u8, 166u8, 69u8, 252u8, 179u8, 126u8,
245u8,
],
)
}
#[doc = " The metadata is a general information concerning the referendum."]
#[doc = " The `Hash` refers to the preimage of the `Preimages` provider which can be a JSON"]
#[doc = " dump or IPFS hash of a JSON file."]
#[doc = ""]
#[doc = " Consider a garbage collection for a metadata of finished referendums to `unrequest` (remove)"]
#[doc = " large preimages."]
pub fn metadata_of_iter(
&self,
) -> ::subxt::ext::subxt_core::storage::address::StaticAddress<
(),
types::metadata_of::MetadataOf,
(),
(),
::subxt::ext::subxt_core::utils::Yes,
> {
::subxt::ext::subxt_core::storage::address::StaticAddress::new_static(
"Referenda",
"MetadataOf",
(),
[
159u8, 250u8, 56u8, 189u8, 247u8, 165u8, 206u8, 166u8, 91u8, 139u8,
124u8, 164u8, 25u8, 246u8, 199u8, 36u8, 159u8, 56u8, 227u8, 136u8, 4u8,
45u8, 193u8, 72u8, 200u8, 164u8, 39u8, 207u8, 224u8, 124u8, 191u8,
110u8,
],
)
}
#[doc = " The metadata is a general information concerning the referendum."]
#[doc = " The `Hash` refers to the preimage of the `Preimages` provider which can be a JSON"]
#[doc = " dump or IPFS hash of a JSON file."]
#[doc = ""]
#[doc = " Consider a garbage collection for a metadata of finished referendums to `unrequest` (remove)"]
#[doc = " large preimages."]
pub fn metadata_of(
&self,
_0: types::metadata_of::Param0,
) -> ::subxt::ext::subxt_core::storage::address::StaticAddress<
::subxt::ext::subxt_core::storage::address::StaticStorageKey<
types::metadata_of::Param0,
>,
types::metadata_of::MetadataOf,
::subxt::ext::subxt_core::utils::Yes,
(),
(),
> {
::subxt::ext::subxt_core::storage::address::StaticAddress::new_static(
"Referenda",
"MetadataOf",
::subxt::ext::subxt_core::storage::address::StaticStorageKey::new(_0),
[
159u8, 250u8, 56u8, 189u8, 247u8, 165u8, 206u8, 166u8, 91u8, 139u8,
124u8, 164u8, 25u8, 246u8, 199u8, 36u8, 159u8, 56u8, 227u8, 136u8, 4u8,
45u8, 193u8, 72u8, 200u8, 164u8, 39u8, 207u8, 224u8, 124u8, 191u8,
110u8,
],
)
}
}
}
pub mod constants {
use super::runtime_types;
pub struct ConstantsApi;
impl ConstantsApi {
#[doc = " The minimum amount to be used as a deposit for a public referendum proposal."]
pub fn submission_deposit(
&self,
) -> ::subxt::ext::subxt_core::constants::address::StaticAddress<
::core::primitive::u128,
> {
::subxt::ext::subxt_core::constants::address::StaticAddress::new_static(
"Referenda",
"SubmissionDeposit",
[
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 = " Maximum size of the referendum queue for a single track."]
pub fn max_queued(
&self,
) -> ::subxt::ext::subxt_core::constants::address::StaticAddress<
::core::primitive::u32,
> {
::subxt::ext::subxt_core::constants::address::StaticAddress::new_static(
"Referenda",
"MaxQueued",
[
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 number of blocks after submission that a referendum must begin being decided by."]
#[doc = " Once this passes, then anyone may cancel the referendum."]
pub fn undeciding_timeout(
&self,
) -> ::subxt::ext::subxt_core::constants::address::StaticAddress<
::core::primitive::u32,
> {
::subxt::ext::subxt_core::constants::address::StaticAddress::new_static(
"Referenda",
"UndecidingTimeout",
[
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 = " Quantization level for the referendum wakeup scheduler. A higher number will result in"]
#[doc = " fewer storage reads/writes needed for smaller voters, but also result in delays to the"]
#[doc = " automatic referendum status changes. Explicit servicing instructions are unaffected."]
pub fn alarm_interval(
&self,
) -> ::subxt::ext::subxt_core::constants::address::StaticAddress<
::core::primitive::u32,
> {
::subxt::ext::subxt_core::constants::address::StaticAddress::new_static(
"Referenda",
"AlarmInterval",
[
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 = " A list of tracks."]
#[doc = ""]
#[doc = " Note: if the tracks are dynamic, the value in the static metadata might be inaccurate."]
pub fn tracks(
&self,
) -> ::subxt::ext::subxt_core::constants::address::StaticAddress<
::subxt::ext::subxt_core::alloc::vec::Vec<(
::core::primitive::u16,
runtime_types::pallet_referenda::types::TrackDetails<
::core::primitive::u128,
::core::primitive::u32,
::subxt::ext::subxt_core::alloc::string::String,
>,
)>,
> {
::subxt::ext::subxt_core::constants::address::StaticAddress::new_static(
"Referenda",
"Tracks",
[
35u8, 226u8, 207u8, 234u8, 184u8, 139u8, 187u8, 184u8, 128u8, 199u8,
227u8, 15u8, 31u8, 196u8, 5u8, 207u8, 138u8, 174u8, 130u8, 201u8,
200u8, 113u8, 86u8, 93u8, 221u8, 243u8, 229u8, 24u8, 18u8, 150u8, 56u8,
159u8,
],
)
}
}
}
}
pub mod reversible_transfers {
use super::{root_mod, runtime_types};
#[doc = "The `Error` enum of this pallet."]
pub type Error = runtime_types::pallet_reversible_transfers::pallet::Error;
#[doc = "Contains a variant per dispatchable extrinsic that this pallet has."]
pub type Call = runtime_types::pallet_reversible_transfers::pallet::Call;
pub mod calls {
use super::{root_mod, runtime_types};
type DispatchError = runtime_types::sp_runtime::DispatchError;
pub mod types {
use super::runtime_types;
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode"
)]
#[doc = "Enable high-security for the calling account with a specified"]
#[doc = "reversibility delay."]
#[doc = ""]
#[doc = "Once an account is set as high security it can only make reversible"]
#[doc = "transfers. It is not allowed any other calls."]
#[doc = ""]
#[doc = "# Warning: Permanent and Irreversible"]
#[doc = ""]
#[doc = "**Enabling high security mode is a one-way operation that cannot be undone.**"]
#[doc = ""]
#[doc = "Once this function is called successfully, the account is permanently restricted"]
#[doc = "to only the following operations:"]
#[doc = "- [`schedule_transfer`](Self::schedule_transfer) - Schedule delayed native token"]
#[doc = " transfers"]
#[doc = "- [`schedule_asset_transfer`](Self::schedule_asset_transfer) - Schedule delayed asset"]
#[doc = " transfers"]
#[doc = "- [`cancel`](Self::cancel) - Cancel pending transfers"]
#[doc = "- [`recover_funds`](Self::recover_funds) - Guardian-initiated emergency fund recovery"]
#[doc = ""]
#[doc = "There is no mechanism to disable high security mode or restore normal account"]
#[doc = "functionality. This design is intentional to provide maximum security guarantees:"]
#[doc = "an attacker who gains access to the account cannot simply disable the protections."]
#[doc = ""]
#[doc = "Users who no longer wish to use high-security features can simply transfer their"]
#[doc = "funds to a different account using [`schedule_transfer`](Self::schedule_transfer)"]
#[doc = "or [`schedule_asset_transfer`](Self::schedule_asset_transfer)."]
#[doc = ""]
#[doc = "# Parameters"]
#[doc = ""]
#[doc = "- `delay`: The reversibility time for any transfer made by the high-security account."]
#[doc = "- `guardian`: The guardian account that can cancel pending transfers and recover funds"]
#[doc = " from this high-security account."]
pub struct SetHighSecurity {
pub delay: set_high_security::Delay,
pub guardian: set_high_security::Guardian,
}
pub mod set_high_security {
use super::runtime_types;
pub type Delay = runtime_types::qp_scheduler::BlockNumberOrTimestamp<
::core::primitive::u32,
::core::primitive::u64,
>;
pub type Guardian = ::subxt::ext::subxt_core::utils::AccountId32;
}
impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for SetHighSecurity {
const PALLET: &'static str = "ReversibleTransfers";
const CALL: &'static str = "set_high_security";
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode"
)]
#[doc = "Cancel a pending reversible transaction scheduled by the caller."]
#[doc = ""]
#[doc = "- `tx_id`: The unique identifier of the transaction to cancel."]
pub struct Cancel {
pub tx_id: cancel::TxId,
}
pub mod cancel {
use super::runtime_types;
pub type TxId = ::subxt::ext::subxt_core::utils::H256;
}
impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for Cancel {
const PALLET: &'static str = "ReversibleTransfers";
const CALL: &'static str = "cancel";
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode"
)]
#[doc = "Executes a previously scheduled transfer after the delay period has elapsed."]
#[doc = ""]
#[doc = "This extrinsic is called automatically by the Scheduler pallet when the"]
#[doc = "delay period expires. It must be signed by this pallet's account (not a user)."]
#[doc = "The pallet account is set as the origin when scheduling via"]
#[doc = "[`do_schedule_transfer_inner`](Self::do_schedule_transfer_inner)."]
#[doc = ""]
#[doc = "# Parameters"]
#[doc = ""]
#[doc = "- `tx_id`: The unique identifier of the pending transfer to execute."]
#[doc = ""]
#[doc = "# Errors"]
#[doc = ""]
#[doc = "- [`InvalidSchedulerOrigin`](Error::InvalidSchedulerOrigin): Called by an account other"]
#[doc = " than this pallet's account."]
#[doc = "- [`PendingTxNotFound`](Error::PendingTxNotFound): No pending transfer with this ID."]
pub struct ExecuteTransfer {
pub tx_id: execute_transfer::TxId,
}
pub mod execute_transfer {
use super::runtime_types;
pub type TxId = ::subxt::ext::subxt_core::utils::H256;
}
impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for ExecuteTransfer {
const PALLET: &'static str = "ReversibleTransfers";
const CALL: &'static str = "execute_transfer";
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode"
)]
#[doc = "Schedule a transaction for delayed execution."]
pub struct ScheduleTransfer {
pub dest: schedule_transfer::Dest,
pub amount: schedule_transfer::Amount,
}
pub mod schedule_transfer {
use super::runtime_types;
pub type Dest = ::subxt::ext::subxt_core::utils::MultiAddress<
::subxt::ext::subxt_core::utils::AccountId32,
(),
>;
pub type Amount = ::core::primitive::u128;
}
impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for ScheduleTransfer {
const PALLET: &'static str = "ReversibleTransfers";
const CALL: &'static str = "schedule_transfer";
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode"
)]
#[doc = "Schedule a transaction for delayed execution with a custom, one-time delay."]
#[doc = ""]
#[doc = "This can only be used by accounts that have *not* set up a persistent"]
#[doc = "reversibility configuration with `set_high_security`."]
#[doc = ""]
#[doc = "- `delay`: The time (in blocks or milliseconds) before the transaction executes."]
pub struct ScheduleTransferWithDelay {
pub dest: schedule_transfer_with_delay::Dest,
pub amount: schedule_transfer_with_delay::Amount,
pub delay: schedule_transfer_with_delay::Delay,
}
pub mod schedule_transfer_with_delay {
use super::runtime_types;
pub type Dest = ::subxt::ext::subxt_core::utils::MultiAddress<
::subxt::ext::subxt_core::utils::AccountId32,
(),
>;
pub type Amount = ::core::primitive::u128;
pub type Delay = runtime_types::qp_scheduler::BlockNumberOrTimestamp<
::core::primitive::u32,
::core::primitive::u64,
>;
}
impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for ScheduleTransferWithDelay {
const PALLET: &'static str = "ReversibleTransfers";
const CALL: &'static str = "schedule_transfer_with_delay";
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode"
)]
#[doc = "Schedule an asset transfer (pallet-assets) for delayed execution using the configured"]
#[doc = "delay."]
pub struct ScheduleAssetTransfer {
pub asset_id: schedule_asset_transfer::AssetId,
pub dest: schedule_asset_transfer::Dest,
pub amount: schedule_asset_transfer::Amount,
}
pub mod schedule_asset_transfer {
use super::runtime_types;
pub type AssetId = ::core::primitive::u32;
pub type Dest = ::subxt::ext::subxt_core::utils::MultiAddress<
::subxt::ext::subxt_core::utils::AccountId32,
(),
>;
pub type Amount = ::core::primitive::u128;
}
impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for ScheduleAssetTransfer {
const PALLET: &'static str = "ReversibleTransfers";
const CALL: &'static str = "schedule_asset_transfer";
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode"
)]
#[doc = "Schedule an asset transfer (pallet-assets) with a custom one-time delay."]
pub struct ScheduleAssetTransferWithDelay {
pub asset_id: schedule_asset_transfer_with_delay::AssetId,
pub dest: schedule_asset_transfer_with_delay::Dest,
pub amount: schedule_asset_transfer_with_delay::Amount,
pub delay: schedule_asset_transfer_with_delay::Delay,
}
pub mod schedule_asset_transfer_with_delay {
use super::runtime_types;
pub type AssetId = ::core::primitive::u32;
pub type Dest = ::subxt::ext::subxt_core::utils::MultiAddress<
::subxt::ext::subxt_core::utils::AccountId32,
(),
>;
pub type Amount = ::core::primitive::u128;
pub type Delay = runtime_types::qp_scheduler::BlockNumberOrTimestamp<
::core::primitive::u32,
::core::primitive::u64,
>;
}
impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for ScheduleAssetTransferWithDelay {
const PALLET: &'static str = "ReversibleTransfers";
const CALL: &'static str = "schedule_asset_transfer_with_delay";
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode"
)]
#[doc = "Allows the guardian to recover all funds from a high-security account"]
#[doc = "by transferring the entire balance to themselves."]
#[doc = ""]
#[doc = "This is an emergency function for when the high-security account may be compromised."]
#[doc = "It cancels all pending transfers first (applying volume fees), then transfers"]
#[doc = "the remaining free balance to the guardian."]
#[doc = ""]
#[doc = "If releasing held funds fails for any transfer, that transfer is skipped (metadata"]
#[doc = "preserved for manual retry via `cancel`) and a `TransferRecoveryFailed` event is"]
#[doc = "emitted. Other transfers continue to be processed."]
pub struct RecoverFunds {
pub account: recover_funds::Account,
}
pub mod recover_funds {
use super::runtime_types;
pub type Account = ::subxt::ext::subxt_core::utils::AccountId32;
}
impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for RecoverFunds {
const PALLET: &'static str = "ReversibleTransfers";
const CALL: &'static str = "recover_funds";
}
}
pub struct TransactionApi;
impl TransactionApi {
#[doc = "Enable high-security for the calling account with a specified"]
#[doc = "reversibility delay."]
#[doc = ""]
#[doc = "Once an account is set as high security it can only make reversible"]
#[doc = "transfers. It is not allowed any other calls."]
#[doc = ""]
#[doc = "# Warning: Permanent and Irreversible"]
#[doc = ""]
#[doc = "**Enabling high security mode is a one-way operation that cannot be undone.**"]
#[doc = ""]
#[doc = "Once this function is called successfully, the account is permanently restricted"]
#[doc = "to only the following operations:"]
#[doc = "- [`schedule_transfer`](Self::schedule_transfer) - Schedule delayed native token"]
#[doc = " transfers"]
#[doc = "- [`schedule_asset_transfer`](Self::schedule_asset_transfer) - Schedule delayed asset"]
#[doc = " transfers"]
#[doc = "- [`cancel`](Self::cancel) - Cancel pending transfers"]
#[doc = "- [`recover_funds`](Self::recover_funds) - Guardian-initiated emergency fund recovery"]
#[doc = ""]
#[doc = "There is no mechanism to disable high security mode or restore normal account"]
#[doc = "functionality. This design is intentional to provide maximum security guarantees:"]
#[doc = "an attacker who gains access to the account cannot simply disable the protections."]
#[doc = ""]
#[doc = "Users who no longer wish to use high-security features can simply transfer their"]
#[doc = "funds to a different account using [`schedule_transfer`](Self::schedule_transfer)"]
#[doc = "or [`schedule_asset_transfer`](Self::schedule_asset_transfer)."]
#[doc = ""]
#[doc = "# Parameters"]
#[doc = ""]
#[doc = "- `delay`: The reversibility time for any transfer made by the high-security account."]
#[doc = "- `guardian`: The guardian account that can cancel pending transfers and recover funds"]
#[doc = " from this high-security account."]
pub fn set_high_security(
&self,
delay: types::set_high_security::Delay,
guardian: types::set_high_security::Guardian,
) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload<types::SetHighSecurity>
{
::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static(
"ReversibleTransfers",
"set_high_security",
types::SetHighSecurity { delay, guardian },
[
103u8, 202u8, 28u8, 11u8, 249u8, 80u8, 142u8, 200u8, 55u8, 4u8, 141u8,
72u8, 94u8, 199u8, 229u8, 102u8, 246u8, 113u8, 190u8, 84u8, 95u8,
193u8, 96u8, 171u8, 144u8, 120u8, 235u8, 208u8, 65u8, 183u8, 4u8, 44u8,
],
)
}
#[doc = "Cancel a pending reversible transaction scheduled by the caller."]
#[doc = ""]
#[doc = "- `tx_id`: The unique identifier of the transaction to cancel."]
pub fn cancel(
&self,
tx_id: types::cancel::TxId,
) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload<types::Cancel> {
::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static(
"ReversibleTransfers",
"cancel",
types::Cancel { tx_id },
[
228u8, 150u8, 194u8, 119u8, 243u8, 126u8, 112u8, 227u8, 70u8, 160u8,
132u8, 82u8, 146u8, 162u8, 195u8, 149u8, 236u8, 98u8, 18u8, 44u8,
151u8, 249u8, 193u8, 176u8, 186u8, 98u8, 224u8, 103u8, 191u8, 165u8,
37u8, 47u8,
],
)
}
#[doc = "Executes a previously scheduled transfer after the delay period has elapsed."]
#[doc = ""]
#[doc = "This extrinsic is called automatically by the Scheduler pallet when the"]
#[doc = "delay period expires. It must be signed by this pallet's account (not a user)."]
#[doc = "The pallet account is set as the origin when scheduling via"]
#[doc = "[`do_schedule_transfer_inner`](Self::do_schedule_transfer_inner)."]
#[doc = ""]
#[doc = "# Parameters"]
#[doc = ""]
#[doc = "- `tx_id`: The unique identifier of the pending transfer to execute."]
#[doc = ""]
#[doc = "# Errors"]
#[doc = ""]
#[doc = "- [`InvalidSchedulerOrigin`](Error::InvalidSchedulerOrigin): Called by an account other"]
#[doc = " than this pallet's account."]
#[doc = "- [`PendingTxNotFound`](Error::PendingTxNotFound): No pending transfer with this ID."]
pub fn execute_transfer(
&self,
tx_id: types::execute_transfer::TxId,
) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload<types::ExecuteTransfer>
{
::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static(
"ReversibleTransfers",
"execute_transfer",
types::ExecuteTransfer { tx_id },
[
164u8, 38u8, 166u8, 81u8, 63u8, 235u8, 167u8, 178u8, 97u8, 80u8, 62u8,
147u8, 3u8, 163u8, 129u8, 25u8, 98u8, 59u8, 17u8, 137u8, 6u8, 183u8,
189u8, 51u8, 24u8, 211u8, 157u8, 108u8, 229u8, 253u8, 37u8, 78u8,
],
)
}
#[doc = "Schedule a transaction for delayed execution."]
pub fn schedule_transfer(
&self,
dest: types::schedule_transfer::Dest,
amount: types::schedule_transfer::Amount,
) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload<types::ScheduleTransfer>
{
::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static(
"ReversibleTransfers",
"schedule_transfer",
types::ScheduleTransfer { dest, amount },
[
38u8, 219u8, 206u8, 56u8, 252u8, 195u8, 52u8, 74u8, 113u8, 125u8,
107u8, 35u8, 236u8, 39u8, 31u8, 18u8, 250u8, 177u8, 174u8, 154u8,
149u8, 122u8, 183u8, 50u8, 45u8, 111u8, 100u8, 249u8, 102u8, 82u8,
72u8, 130u8,
],
)
}
#[doc = "Schedule a transaction for delayed execution with a custom, one-time delay."]
#[doc = ""]
#[doc = "This can only be used by accounts that have *not* set up a persistent"]
#[doc = "reversibility configuration with `set_high_security`."]
#[doc = ""]
#[doc = "- `delay`: The time (in blocks or milliseconds) before the transaction executes."]
pub fn schedule_transfer_with_delay(
&self,
dest: types::schedule_transfer_with_delay::Dest,
amount: types::schedule_transfer_with_delay::Amount,
delay: types::schedule_transfer_with_delay::Delay,
) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload<
types::ScheduleTransferWithDelay,
> {
::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static(
"ReversibleTransfers",
"schedule_transfer_with_delay",
types::ScheduleTransferWithDelay { dest, amount, delay },
[
254u8, 158u8, 173u8, 217u8, 107u8, 80u8, 229u8, 252u8, 123u8, 46u8,
177u8, 40u8, 25u8, 15u8, 32u8, 22u8, 224u8, 52u8, 242u8, 48u8, 242u8,
84u8, 242u8, 143u8, 111u8, 12u8, 82u8, 161u8, 129u8, 86u8, 161u8,
216u8,
],
)
}
#[doc = "Schedule an asset transfer (pallet-assets) for delayed execution using the configured"]
#[doc = "delay."]
pub fn schedule_asset_transfer(
&self,
asset_id: types::schedule_asset_transfer::AssetId,
dest: types::schedule_asset_transfer::Dest,
amount: types::schedule_asset_transfer::Amount,
) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload<
types::ScheduleAssetTransfer,
> {
::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static(
"ReversibleTransfers",
"schedule_asset_transfer",
types::ScheduleAssetTransfer { asset_id, dest, amount },
[
125u8, 51u8, 89u8, 31u8, 247u8, 200u8, 156u8, 209u8, 28u8, 170u8,
203u8, 254u8, 40u8, 131u8, 155u8, 166u8, 65u8, 152u8, 101u8, 198u8,
70u8, 129u8, 5u8, 89u8, 220u8, 189u8, 255u8, 87u8, 58u8, 24u8, 234u8,
42u8,
],
)
}
#[doc = "Schedule an asset transfer (pallet-assets) with a custom one-time delay."]
pub fn schedule_asset_transfer_with_delay(
&self,
asset_id: types::schedule_asset_transfer_with_delay::AssetId,
dest: types::schedule_asset_transfer_with_delay::Dest,
amount: types::schedule_asset_transfer_with_delay::Amount,
delay: types::schedule_asset_transfer_with_delay::Delay,
) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload<
types::ScheduleAssetTransferWithDelay,
> {
::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static(
"ReversibleTransfers",
"schedule_asset_transfer_with_delay",
types::ScheduleAssetTransferWithDelay { asset_id, dest, amount, delay },
[
249u8, 59u8, 121u8, 27u8, 78u8, 202u8, 252u8, 120u8, 76u8, 102u8, 33u8,
232u8, 185u8, 78u8, 8u8, 157u8, 139u8, 72u8, 110u8, 91u8, 170u8, 179u8,
89u8, 250u8, 77u8, 26u8, 160u8, 252u8, 62u8, 179u8, 128u8, 216u8,
],
)
}
#[doc = "Allows the guardian to recover all funds from a high-security account"]
#[doc = "by transferring the entire balance to themselves."]
#[doc = ""]
#[doc = "This is an emergency function for when the high-security account may be compromised."]
#[doc = "It cancels all pending transfers first (applying volume fees), then transfers"]
#[doc = "the remaining free balance to the guardian."]
#[doc = ""]
#[doc = "If releasing held funds fails for any transfer, that transfer is skipped (metadata"]
#[doc = "preserved for manual retry via `cancel`) and a `TransferRecoveryFailed` event is"]
#[doc = "emitted. Other transfers continue to be processed."]
pub fn recover_funds(
&self,
account: types::recover_funds::Account,
) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload<types::RecoverFunds> {
::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static(
"ReversibleTransfers",
"recover_funds",
types::RecoverFunds { account },
[
94u8, 241u8, 255u8, 110u8, 4u8, 169u8, 1u8, 45u8, 236u8, 88u8, 167u8,
180u8, 240u8, 70u8, 111u8, 99u8, 185u8, 143u8, 153u8, 33u8, 101u8,
30u8, 203u8, 103u8, 229u8, 39u8, 162u8, 76u8, 49u8, 125u8, 247u8,
220u8,
],
)
}
}
}
#[doc = "The `Event` enum of this pallet"]
pub type Event = runtime_types::pallet_reversible_transfers::pallet::Event;
pub mod events {
use super::runtime_types;
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")]
#[doc = "A user has enabled their high-security settings."]
pub struct HighSecuritySet {
pub who: high_security_set::Who,
pub guardian: high_security_set::Guardian,
pub delay: high_security_set::Delay,
}
pub mod high_security_set {
use super::runtime_types;
pub type Who = ::subxt::ext::subxt_core::utils::AccountId32;
pub type Guardian = ::subxt::ext::subxt_core::utils::AccountId32;
pub type Delay = runtime_types::qp_scheduler::BlockNumberOrTimestamp<
::core::primitive::u32,
::core::primitive::u64,
>;
}
impl ::subxt::ext::subxt_core::events::StaticEvent for HighSecuritySet {
const PALLET: &'static str = "ReversibleTransfers";
const EVENT: &'static str = "HighSecuritySet";
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")]
#[doc = "A transaction has been scheduled for delayed execution."]
pub struct TransactionScheduled {
pub from: transaction_scheduled::From,
pub to: transaction_scheduled::To,
pub guardian: transaction_scheduled::Guardian,
pub asset_id: transaction_scheduled::AssetId,
pub amount: transaction_scheduled::Amount,
pub tx_id: transaction_scheduled::TxId,
pub execute_at: transaction_scheduled::ExecuteAt,
}
pub mod transaction_scheduled {
use super::runtime_types;
pub type From = ::subxt::ext::subxt_core::utils::AccountId32;
pub type To = ::subxt::ext::subxt_core::utils::AccountId32;
pub type Guardian = ::subxt::ext::subxt_core::utils::AccountId32;
pub type AssetId = ::core::option::Option<::core::primitive::u32>;
pub type Amount = ::core::primitive::u128;
pub type TxId = ::subxt::ext::subxt_core::utils::H256;
pub type ExecuteAt = runtime_types::qp_scheduler::DispatchTime<
::core::primitive::u32,
::core::primitive::u64,
>;
}
impl ::subxt::ext::subxt_core::events::StaticEvent for TransactionScheduled {
const PALLET: &'static str = "ReversibleTransfers";
const EVENT: &'static str = "TransactionScheduled";
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")]
#[doc = "A scheduled transaction has been successfully cancelled."]
pub struct TransactionCancelled {
pub who: transaction_cancelled::Who,
pub tx_id: transaction_cancelled::TxId,
}
pub mod transaction_cancelled {
use super::runtime_types;
pub type Who = ::subxt::ext::subxt_core::utils::AccountId32;
pub type TxId = ::subxt::ext::subxt_core::utils::H256;
}
impl ::subxt::ext::subxt_core::events::StaticEvent for TransactionCancelled {
const PALLET: &'static str = "ReversibleTransfers";
const EVENT: &'static str = "TransactionCancelled";
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")]
#[doc = "A scheduled transaction was executed by the scheduler."]
pub struct TransactionExecuted {
pub tx_id: transaction_executed::TxId,
pub result: transaction_executed::Result,
}
pub mod transaction_executed {
use super::runtime_types;
pub type TxId = ::subxt::ext::subxt_core::utils::H256;
pub type Result = ::core::result::Result<
runtime_types::frame_support::dispatch::PostDispatchInfo,
runtime_types::sp_runtime::DispatchErrorWithPostInfo<
runtime_types::frame_support::dispatch::PostDispatchInfo,
>,
>;
}
impl ::subxt::ext::subxt_core::events::StaticEvent for TransactionExecuted {
const PALLET: &'static str = "ReversibleTransfers";
const EVENT: &'static str = "TransactionExecuted";
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")]
#[doc = "All funds were recovered from a high-security account by its guardian."]
pub struct FundsRecovered {
pub account: funds_recovered::Account,
pub guardian: funds_recovered::Guardian,
}
pub mod funds_recovered {
use super::runtime_types;
pub type Account = ::subxt::ext::subxt_core::utils::AccountId32;
pub type Guardian = ::subxt::ext::subxt_core::utils::AccountId32;
}
impl ::subxt::ext::subxt_core::events::StaticEvent for FundsRecovered {
const PALLET: &'static str = "ReversibleTransfers";
const EVENT: &'static str = "FundsRecovered";
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")]
#[doc = "Failed to release held funds during recovery. The transfer metadata is preserved"]
#[doc = "for manual retry via `cancel`."]
pub struct TransferRecoveryFailed {
pub tx_id: transfer_recovery_failed::TxId,
}
pub mod transfer_recovery_failed {
use super::runtime_types;
pub type TxId = ::subxt::ext::subxt_core::utils::H256;
}
impl ::subxt::ext::subxt_core::events::StaticEvent for TransferRecoveryFailed {
const PALLET: &'static str = "ReversibleTransfers";
const EVENT: &'static str = "TransferRecoveryFailed";
}
}
pub mod storage {
use super::runtime_types;
pub mod types {
use super::runtime_types;
pub mod high_security_accounts {
use super::runtime_types;
pub type HighSecurityAccounts =
runtime_types::pallet_reversible_transfers::HighSecurityAccountData<
::subxt::ext::subxt_core::utils::AccountId32,
runtime_types::qp_scheduler::BlockNumberOrTimestamp<
::core::primitive::u32,
::core::primitive::u64,
>,
>;
pub type Param0 = ::subxt::ext::subxt_core::utils::AccountId32;
}
pub mod pending_transfers {
use super::runtime_types;
pub type PendingTransfers =
runtime_types::pallet_reversible_transfers::PendingTransfer<
::subxt::ext::subxt_core::utils::AccountId32,
::core::primitive::u128,
::core::primitive::u32,
>;
pub type Param0 = ::subxt::ext::subxt_core::utils::H256;
}
pub mod pending_transfers_by_sender {
use super::runtime_types;
pub type PendingTransfersBySender =
runtime_types::bounded_collections::bounded_vec::BoundedVec<
::subxt::ext::subxt_core::utils::H256,
>;
pub type Param0 = ::subxt::ext::subxt_core::utils::AccountId32;
}
pub mod guardian_index {
use super::runtime_types;
pub type GuardianIndex =
runtime_types::bounded_collections::bounded_vec::BoundedVec<
::subxt::ext::subxt_core::utils::AccountId32,
>;
pub type Param0 = ::subxt::ext::subxt_core::utils::AccountId32;
}
pub mod next_transaction_id {
use super::runtime_types;
pub type NextTransactionId = ::core::primitive::u64;
}
}
pub struct StorageApi;
impl StorageApi {
#[doc = " Maps accounts to their chosen reversibility delay period (in milliseconds)."]
#[doc = " Accounts present in this map have reversibility enabled."]
pub fn high_security_accounts_iter(
&self,
) -> ::subxt::ext::subxt_core::storage::address::StaticAddress<
(),
types::high_security_accounts::HighSecurityAccounts,
(),
(),
::subxt::ext::subxt_core::utils::Yes,
> {
::subxt::ext::subxt_core::storage::address::StaticAddress::new_static(
"ReversibleTransfers",
"HighSecurityAccounts",
(),
[
110u8, 63u8, 150u8, 254u8, 213u8, 163u8, 141u8, 156u8, 66u8, 201u8,
162u8, 30u8, 141u8, 204u8, 209u8, 159u8, 120u8, 240u8, 230u8, 239u8,
228u8, 129u8, 130u8, 181u8, 6u8, 193u8, 157u8, 239u8, 131u8, 35u8,
29u8, 79u8,
],
)
}
#[doc = " Maps accounts to their chosen reversibility delay period (in milliseconds)."]
#[doc = " Accounts present in this map have reversibility enabled."]
pub fn high_security_accounts(
&self,
_0: types::high_security_accounts::Param0,
) -> ::subxt::ext::subxt_core::storage::address::StaticAddress<
::subxt::ext::subxt_core::storage::address::StaticStorageKey<
types::high_security_accounts::Param0,
>,
types::high_security_accounts::HighSecurityAccounts,
::subxt::ext::subxt_core::utils::Yes,
(),
(),
> {
::subxt::ext::subxt_core::storage::address::StaticAddress::new_static(
"ReversibleTransfers",
"HighSecurityAccounts",
::subxt::ext::subxt_core::storage::address::StaticStorageKey::new(_0),
[
110u8, 63u8, 150u8, 254u8, 213u8, 163u8, 141u8, 156u8, 66u8, 201u8,
162u8, 30u8, 141u8, 204u8, 209u8, 159u8, 120u8, 240u8, 230u8, 239u8,
228u8, 129u8, 130u8, 181u8, 6u8, 193u8, 157u8, 239u8, 131u8, 35u8,
29u8, 79u8,
],
)
}
#[doc = " Stores the details of pending transactions scheduled for delayed execution."]
#[doc = " Keyed by the unique transaction ID."]
pub fn pending_transfers_iter(
&self,
) -> ::subxt::ext::subxt_core::storage::address::StaticAddress<
(),
types::pending_transfers::PendingTransfers,
(),
(),
::subxt::ext::subxt_core::utils::Yes,
> {
::subxt::ext::subxt_core::storage::address::StaticAddress::new_static(
"ReversibleTransfers",
"PendingTransfers",
(),
[
138u8, 155u8, 227u8, 133u8, 16u8, 122u8, 128u8, 60u8, 245u8, 159u8,
244u8, 82u8, 244u8, 113u8, 189u8, 149u8, 179u8, 30u8, 48u8, 31u8,
174u8, 124u8, 28u8, 33u8, 190u8, 217u8, 193u8, 129u8, 39u8, 122u8,
141u8, 188u8,
],
)
}
#[doc = " Stores the details of pending transactions scheduled for delayed execution."]
#[doc = " Keyed by the unique transaction ID."]
pub fn pending_transfers(
&self,
_0: types::pending_transfers::Param0,
) -> ::subxt::ext::subxt_core::storage::address::StaticAddress<
::subxt::ext::subxt_core::storage::address::StaticStorageKey<
types::pending_transfers::Param0,
>,
types::pending_transfers::PendingTransfers,
::subxt::ext::subxt_core::utils::Yes,
(),
(),
> {
::subxt::ext::subxt_core::storage::address::StaticAddress::new_static(
"ReversibleTransfers",
"PendingTransfers",
::subxt::ext::subxt_core::storage::address::StaticStorageKey::new(_0),
[
138u8, 155u8, 227u8, 133u8, 16u8, 122u8, 128u8, 60u8, 245u8, 159u8,
244u8, 82u8, 244u8, 113u8, 189u8, 149u8, 179u8, 30u8, 48u8, 31u8,
174u8, 124u8, 28u8, 33u8, 190u8, 217u8, 193u8, 129u8, 39u8, 122u8,
141u8, 188u8,
],
)
}
#[doc = " Maps sender accounts to their list of pending transaction IDs."]
pub fn pending_transfers_by_sender_iter(
&self,
) -> ::subxt::ext::subxt_core::storage::address::StaticAddress<
(),
types::pending_transfers_by_sender::PendingTransfersBySender,
(),
::subxt::ext::subxt_core::utils::Yes,
::subxt::ext::subxt_core::utils::Yes,
> {
::subxt::ext::subxt_core::storage::address::StaticAddress::new_static(
"ReversibleTransfers",
"PendingTransfersBySender",
(),
[
183u8, 43u8, 139u8, 203u8, 182u8, 219u8, 60u8, 129u8, 67u8, 30u8, 65u8,
47u8, 105u8, 196u8, 228u8, 154u8, 26u8, 74u8, 84u8, 72u8, 154u8, 220u8,
216u8, 134u8, 207u8, 240u8, 7u8, 190u8, 236u8, 242u8, 184u8, 224u8,
],
)
}
#[doc = " Maps sender accounts to their list of pending transaction IDs."]
pub fn pending_transfers_by_sender(
&self,
_0: types::pending_transfers_by_sender::Param0,
) -> ::subxt::ext::subxt_core::storage::address::StaticAddress<
::subxt::ext::subxt_core::storage::address::StaticStorageKey<
types::pending_transfers_by_sender::Param0,
>,
types::pending_transfers_by_sender::PendingTransfersBySender,
::subxt::ext::subxt_core::utils::Yes,
::subxt::ext::subxt_core::utils::Yes,
(),
> {
::subxt::ext::subxt_core::storage::address::StaticAddress::new_static(
"ReversibleTransfers",
"PendingTransfersBySender",
::subxt::ext::subxt_core::storage::address::StaticStorageKey::new(_0),
[
183u8, 43u8, 139u8, 203u8, 182u8, 219u8, 60u8, 129u8, 67u8, 30u8, 65u8,
47u8, 105u8, 196u8, 228u8, 154u8, 26u8, 74u8, 84u8, 72u8, 154u8, 220u8,
216u8, 134u8, 207u8, 240u8, 7u8, 190u8, 236u8, 242u8, 184u8, 224u8,
],
)
}
#[doc = " Maps guardian accounts to the list of accounts they protect."]
#[doc = " This allows the UI to efficiently query all accounts for which a given account is a"]
#[doc = " guardian."]
pub fn guardian_index_iter(
&self,
) -> ::subxt::ext::subxt_core::storage::address::StaticAddress<
(),
types::guardian_index::GuardianIndex,
(),
::subxt::ext::subxt_core::utils::Yes,
::subxt::ext::subxt_core::utils::Yes,
> {
::subxt::ext::subxt_core::storage::address::StaticAddress::new_static(
"ReversibleTransfers",
"GuardianIndex",
(),
[
112u8, 32u8, 227u8, 175u8, 221u8, 116u8, 83u8, 105u8, 108u8, 132u8,
254u8, 61u8, 178u8, 251u8, 179u8, 127u8, 14u8, 12u8, 144u8, 204u8,
38u8, 98u8, 154u8, 10u8, 202u8, 254u8, 230u8, 126u8, 149u8, 161u8,
13u8, 110u8,
],
)
}
#[doc = " Maps guardian accounts to the list of accounts they protect."]
#[doc = " This allows the UI to efficiently query all accounts for which a given account is a"]
#[doc = " guardian."]
pub fn guardian_index(
&self,
_0: types::guardian_index::Param0,
) -> ::subxt::ext::subxt_core::storage::address::StaticAddress<
::subxt::ext::subxt_core::storage::address::StaticStorageKey<
types::guardian_index::Param0,
>,
types::guardian_index::GuardianIndex,
::subxt::ext::subxt_core::utils::Yes,
::subxt::ext::subxt_core::utils::Yes,
(),
> {
::subxt::ext::subxt_core::storage::address::StaticAddress::new_static(
"ReversibleTransfers",
"GuardianIndex",
::subxt::ext::subxt_core::storage::address::StaticStorageKey::new(_0),
[
112u8, 32u8, 227u8, 175u8, 221u8, 116u8, 83u8, 105u8, 108u8, 132u8,
254u8, 61u8, 178u8, 251u8, 179u8, 127u8, 14u8, 12u8, 144u8, 204u8,
38u8, 98u8, 154u8, 10u8, 202u8, 254u8, 230u8, 126u8, 149u8, 161u8,
13u8, 110u8,
],
)
}
#[doc = " Monotonically increasing counter used to generate unique transaction IDs."]
#[doc = " Each scheduled transfer increments this value to ensure no two transfers"]
#[doc = " produce the same `tx_id`, even if they have identical parameters."]
pub fn next_transaction_id(
&self,
) -> ::subxt::ext::subxt_core::storage::address::StaticAddress<
(),
types::next_transaction_id::NextTransactionId,
::subxt::ext::subxt_core::utils::Yes,
::subxt::ext::subxt_core::utils::Yes,
(),
> {
::subxt::ext::subxt_core::storage::address::StaticAddress::new_static(
"ReversibleTransfers",
"NextTransactionId",
(),
[
42u8, 56u8, 195u8, 140u8, 101u8, 56u8, 175u8, 152u8, 210u8, 167u8,
61u8, 134u8, 152u8, 191u8, 216u8, 58u8, 73u8, 109u8, 130u8, 125u8,
189u8, 186u8, 142u8, 68u8, 222u8, 141u8, 16u8, 250u8, 85u8, 8u8, 196u8,
188u8,
],
)
}
}
}
pub mod constants {
use super::runtime_types;
pub struct ConstantsApi;
impl ConstantsApi {
#[doc = " Maximum number of accounts a single guardian can protect. Used for BoundedVec."]
pub fn max_guardian_accounts(
&self,
) -> ::subxt::ext::subxt_core::constants::address::StaticAddress<
::core::primitive::u32,
> {
::subxt::ext::subxt_core::constants::address::StaticAddress::new_static(
"ReversibleTransfers",
"MaxGuardianAccounts",
[
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 = " Maximum pending reversible transactions allowed per account."]
pub fn max_pending_per_account(
&self,
) -> ::subxt::ext::subxt_core::constants::address::StaticAddress<
::core::primitive::u32,
> {
::subxt::ext::subxt_core::constants::address::StaticAddress::new_static(
"ReversibleTransfers",
"MaxPendingPerAccount",
[
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 default delay period for reversible transactions if none is specified."]
#[doc = ""]
#[doc = " NOTE: default delay is always in blocks."]
pub fn default_delay(
&self,
) -> ::subxt::ext::subxt_core::constants::address::StaticAddress<
runtime_types::qp_scheduler::BlockNumberOrTimestamp<
::core::primitive::u32,
::core::primitive::u64,
>,
> {
::subxt::ext::subxt_core::constants::address::StaticAddress::new_static(
"ReversibleTransfers",
"DefaultDelay",
[
245u8, 29u8, 3u8, 65u8, 154u8, 12u8, 172u8, 71u8, 67u8, 134u8, 71u8,
180u8, 4u8, 9u8, 54u8, 89u8, 6u8, 19u8, 3u8, 168u8, 67u8, 122u8, 197u8,
109u8, 1u8, 228u8, 44u8, 243u8, 228u8, 194u8, 241u8, 227u8,
],
)
}
#[doc = " The minimum delay period allowed for reversible transactions, in blocks."]
pub fn min_delay_period_blocks(
&self,
) -> ::subxt::ext::subxt_core::constants::address::StaticAddress<
::core::primitive::u32,
> {
::subxt::ext::subxt_core::constants::address::StaticAddress::new_static(
"ReversibleTransfers",
"MinDelayPeriodBlocks",
[
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 minimum delay period allowed for reversible transactions, in milliseconds."]
pub fn min_delay_period_moment(
&self,
) -> ::subxt::ext::subxt_core::constants::address::StaticAddress<
::core::primitive::u64,
> {
::subxt::ext::subxt_core::constants::address::StaticAddress::new_static(
"ReversibleTransfers",
"MinDelayPeriodMoment",
[
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,
],
)
}
#[doc = " Volume fee taken from reversed transactions for high-security accounts only,"]
#[doc = " expressed as a Permill (e.g., Permill::from_percent(1) = 1%). Regular accounts incur no"]
#[doc = " fees. The fee is burned (removed from total issuance)."]
pub fn volume_fee(
&self,
) -> ::subxt::ext::subxt_core::constants::address::StaticAddress<
runtime_types::sp_arithmetic::per_things::Permill,
> {
::subxt::ext::subxt_core::constants::address::StaticAddress::new_static(
"ReversibleTransfers",
"VolumeFee",
[
65u8, 93u8, 120u8, 165u8, 204u8, 81u8, 159u8, 163u8, 93u8, 135u8,
114u8, 121u8, 147u8, 35u8, 215u8, 213u8, 4u8, 223u8, 83u8, 37u8, 225u8,
200u8, 189u8, 156u8, 140u8, 36u8, 58u8, 46u8, 42u8, 232u8, 155u8, 0u8,
],
)
}
}
}
}
pub mod conviction_voting {
use super::{root_mod, runtime_types};
#[doc = "The `Error` enum of this pallet."]
pub type Error = runtime_types::pallet_conviction_voting::pallet::Error;
#[doc = "Contains a variant per dispatchable extrinsic that this pallet has."]
pub type Call = runtime_types::pallet_conviction_voting::pallet::Call;
pub mod calls {
use super::{root_mod, runtime_types};
type DispatchError = runtime_types::sp_runtime::DispatchError;
pub mod types {
use super::runtime_types;
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode"
)]
#[doc = "Vote in a poll. If `vote.is_aye()`, the vote is to enact the proposal;"]
#[doc = "otherwise it is a vote to keep the status quo."]
#[doc = ""]
#[doc = "The dispatch origin of this call must be _Signed_."]
#[doc = ""]
#[doc = "- `poll_index`: The index of the poll to vote for."]
#[doc = "- `vote`: The vote configuration."]
#[doc = ""]
#[doc = "Weight: `O(R)` where R is the number of polls the voter has voted on."]
pub struct Vote {
#[codec(compact)]
pub poll_index: vote::PollIndex,
pub vote: vote::Vote,
}
pub mod vote {
use super::runtime_types;
pub type PollIndex = ::core::primitive::u32;
pub type Vote = runtime_types::pallet_conviction_voting::vote::AccountVote<
::core::primitive::u128,
>;
}
impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for Vote {
const PALLET: &'static str = "ConvictionVoting";
const CALL: &'static str = "vote";
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode"
)]
#[doc = "Delegate the voting power (with some given conviction) of the sending account for a"]
#[doc = "particular class of polls."]
#[doc = ""]
#[doc = "The balance delegated is locked for as long as it's delegated, and thereafter for the"]
#[doc = "time appropriate for the conviction's lock period."]
#[doc = ""]
#[doc = "The dispatch origin of this call must be _Signed_, and the signing account must either:"]
#[doc = " - be delegating already; or"]
#[doc = " - have no voting activity (if there is, then it will need to be removed through"]
#[doc = " `remove_vote`)."]
#[doc = ""]
#[doc = "- `to`: The account whose voting the `target` account's voting power will follow."]
#[doc = "- `class`: The class of polls to delegate. To delegate multiple classes, multiple calls"]
#[doc = " to this function are required."]
#[doc = "- `conviction`: The conviction that will be attached to the delegated votes. When the"]
#[doc = " account is undelegated, the funds will be locked for the corresponding period."]
#[doc = "- `balance`: The amount of the account's balance to be used in delegating. This must not"]
#[doc = " be more than the account's current balance."]
#[doc = ""]
#[doc = "Emits `Delegated`."]
#[doc = ""]
#[doc = "Weight: `O(R)` where R is the number of polls the voter delegating to has"]
#[doc = " voted on. Weight is initially charged as if maximum votes, but is refunded later."]
pub struct Delegate {
pub class: delegate::Class,
pub to: delegate::To,
pub conviction: delegate::Conviction,
pub balance: delegate::Balance,
}
pub mod delegate {
use super::runtime_types;
pub type Class = ::core::primitive::u16;
pub type To = ::subxt::ext::subxt_core::utils::MultiAddress<
::subxt::ext::subxt_core::utils::AccountId32,
(),
>;
pub type Conviction =
runtime_types::pallet_conviction_voting::conviction::Conviction;
pub type Balance = ::core::primitive::u128;
}
impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for Delegate {
const PALLET: &'static str = "ConvictionVoting";
const CALL: &'static str = "delegate";
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode"
)]
#[doc = "Undelegate the voting power of the sending account for a particular class of polls."]
#[doc = ""]
#[doc = "Tokens may be unlocked following once an amount of time consistent with the lock period"]
#[doc = "of the conviction with which the delegation was issued has passed."]
#[doc = ""]
#[doc = "The dispatch origin of this call must be _Signed_ and the signing account must be"]
#[doc = "currently delegating."]
#[doc = ""]
#[doc = "- `class`: The class of polls to remove the delegation from."]
#[doc = ""]
#[doc = "Emits `Undelegated`."]
#[doc = ""]
#[doc = "Weight: `O(R)` where R is the number of polls the voter delegating to has"]
#[doc = " voted on. Weight is initially charged as if maximum votes, but is refunded later."]
pub struct Undelegate {
pub class: undelegate::Class,
}
pub mod undelegate {
use super::runtime_types;
pub type Class = ::core::primitive::u16;
}
impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for Undelegate {
const PALLET: &'static str = "ConvictionVoting";
const CALL: &'static str = "undelegate";
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode"
)]
#[doc = "Remove the lock caused by prior voting/delegating which has expired within a particular"]
#[doc = "class."]
#[doc = ""]
#[doc = "The dispatch origin of this call must be _Signed_."]
#[doc = ""]
#[doc = "- `class`: The class of polls to unlock."]
#[doc = "- `target`: The account to remove the lock on."]
#[doc = ""]
#[doc = "Weight: `O(R)` with R number of vote of target."]
pub struct Unlock {
pub class: unlock::Class,
pub target: unlock::Target,
}
pub mod unlock {
use super::runtime_types;
pub type Class = ::core::primitive::u16;
pub type Target = ::subxt::ext::subxt_core::utils::MultiAddress<
::subxt::ext::subxt_core::utils::AccountId32,
(),
>;
}
impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for Unlock {
const PALLET: &'static str = "ConvictionVoting";
const CALL: &'static str = "unlock";
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode"
)]
#[doc = "Remove a vote for a poll."]
#[doc = ""]
#[doc = "If:"]
#[doc = "- the poll was cancelled, or"]
#[doc = "- the poll is ongoing, or"]
#[doc = "- the poll has ended such that"]
#[doc = " - the vote of the account was in opposition to the result; or"]
#[doc = " - there was no conviction to the account's vote; or"]
#[doc = " - the account made a split vote"]
#[doc = "...then the vote is removed cleanly and a following call to `unlock` may result in more"]
#[doc = "funds being available."]
#[doc = ""]
#[doc = "If, however, the poll has ended and:"]
#[doc = "- it finished corresponding to the vote of the account, and"]
#[doc = "- the account made a standard vote with conviction, and"]
#[doc = "- the lock period of the conviction is not over"]
#[doc = "...then the lock will be aggregated into the overall account's lock, which may involve"]
#[doc = "*overlocking* (where the two locks are combined into a single lock that is the maximum"]
#[doc = "of both the amount locked and the time is it locked for)."]
#[doc = ""]
#[doc = "The dispatch origin of this call must be _Signed_, and the signer must have a vote"]
#[doc = "registered for poll `index`."]
#[doc = ""]
#[doc = "- `index`: The index of poll of the vote to be removed."]
#[doc = "- `class`: Optional parameter, if given it indicates the class of the poll. For polls"]
#[doc = " which have finished or are cancelled, this must be `Some`."]
#[doc = ""]
#[doc = "Weight: `O(R + log R)` where R is the number of polls that `target` has voted on."]
#[doc = " Weight is calculated for the maximum number of vote."]
pub struct RemoveVote {
pub class: remove_vote::Class,
pub index: remove_vote::Index,
}
pub mod remove_vote {
use super::runtime_types;
pub type Class = ::core::option::Option<::core::primitive::u16>;
pub type Index = ::core::primitive::u32;
}
impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for RemoveVote {
const PALLET: &'static str = "ConvictionVoting";
const CALL: &'static str = "remove_vote";
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode"
)]
#[doc = "Remove a vote for a poll."]
#[doc = ""]
#[doc = "If the `target` is equal to the signer, then this function is exactly equivalent to"]
#[doc = "`remove_vote`. If not equal to the signer, then the vote must have expired,"]
#[doc = "either because the poll was cancelled, because the voter lost the poll or"]
#[doc = "because the conviction period is over."]
#[doc = ""]
#[doc = "The dispatch origin of this call must be _Signed_."]
#[doc = ""]
#[doc = "- `target`: The account of the vote to be removed; this account must have voted for poll"]
#[doc = " `index`."]
#[doc = "- `index`: The index of poll of the vote to be removed."]
#[doc = "- `class`: The class of the poll."]
#[doc = ""]
#[doc = "Weight: `O(R + log R)` where R is the number of polls that `target` has voted on."]
#[doc = " Weight is calculated for the maximum number of vote."]
pub struct RemoveOtherVote {
pub target: remove_other_vote::Target,
pub class: remove_other_vote::Class,
pub index: remove_other_vote::Index,
}
pub mod remove_other_vote {
use super::runtime_types;
pub type Target = ::subxt::ext::subxt_core::utils::MultiAddress<
::subxt::ext::subxt_core::utils::AccountId32,
(),
>;
pub type Class = ::core::primitive::u16;
pub type Index = ::core::primitive::u32;
}
impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for RemoveOtherVote {
const PALLET: &'static str = "ConvictionVoting";
const CALL: &'static str = "remove_other_vote";
}
}
pub struct TransactionApi;
impl TransactionApi {
#[doc = "Vote in a poll. If `vote.is_aye()`, the vote is to enact the proposal;"]
#[doc = "otherwise it is a vote to keep the status quo."]
#[doc = ""]
#[doc = "The dispatch origin of this call must be _Signed_."]
#[doc = ""]
#[doc = "- `poll_index`: The index of the poll to vote for."]
#[doc = "- `vote`: The vote configuration."]
#[doc = ""]
#[doc = "Weight: `O(R)` where R is the number of polls the voter has voted on."]
pub fn vote(
&self,
poll_index: types::vote::PollIndex,
vote: types::vote::Vote,
) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload<types::Vote> {
::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static(
"ConvictionVoting",
"vote",
types::Vote { poll_index, vote },
[
57u8, 170u8, 177u8, 168u8, 158u8, 43u8, 87u8, 242u8, 176u8, 85u8,
230u8, 64u8, 103u8, 239u8, 190u8, 6u8, 228u8, 165u8, 248u8, 77u8,
231u8, 221u8, 186u8, 107u8, 249u8, 201u8, 226u8, 52u8, 129u8, 90u8,
142u8, 159u8,
],
)
}
#[doc = "Delegate the voting power (with some given conviction) of the sending account for a"]
#[doc = "particular class of polls."]
#[doc = ""]
#[doc = "The balance delegated is locked for as long as it's delegated, and thereafter for the"]
#[doc = "time appropriate for the conviction's lock period."]
#[doc = ""]
#[doc = "The dispatch origin of this call must be _Signed_, and the signing account must either:"]
#[doc = " - be delegating already; or"]
#[doc = " - have no voting activity (if there is, then it will need to be removed through"]
#[doc = " `remove_vote`)."]
#[doc = ""]
#[doc = "- `to`: The account whose voting the `target` account's voting power will follow."]
#[doc = "- `class`: The class of polls to delegate. To delegate multiple classes, multiple calls"]
#[doc = " to this function are required."]
#[doc = "- `conviction`: The conviction that will be attached to the delegated votes. When the"]
#[doc = " account is undelegated, the funds will be locked for the corresponding period."]
#[doc = "- `balance`: The amount of the account's balance to be used in delegating. This must not"]
#[doc = " be more than the account's current balance."]
#[doc = ""]
#[doc = "Emits `Delegated`."]
#[doc = ""]
#[doc = "Weight: `O(R)` where R is the number of polls the voter delegating to has"]
#[doc = " voted on. Weight is initially charged as if maximum votes, but is refunded later."]
pub fn delegate(
&self,
class: types::delegate::Class,
to: types::delegate::To,
conviction: types::delegate::Conviction,
balance: types::delegate::Balance,
) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload<types::Delegate> {
::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static(
"ConvictionVoting",
"delegate",
types::Delegate { class, to, conviction, balance },
[
223u8, 143u8, 33u8, 94u8, 32u8, 156u8, 43u8, 40u8, 142u8, 134u8, 209u8,
134u8, 255u8, 179u8, 97u8, 46u8, 8u8, 140u8, 5u8, 29u8, 76u8, 22u8,
36u8, 7u8, 108u8, 190u8, 220u8, 151u8, 10u8, 47u8, 89u8, 55u8,
],
)
}
#[doc = "Undelegate the voting power of the sending account for a particular class of polls."]
#[doc = ""]
#[doc = "Tokens may be unlocked following once an amount of time consistent with the lock period"]
#[doc = "of the conviction with which the delegation was issued has passed."]
#[doc = ""]
#[doc = "The dispatch origin of this call must be _Signed_ and the signing account must be"]
#[doc = "currently delegating."]
#[doc = ""]
#[doc = "- `class`: The class of polls to remove the delegation from."]
#[doc = ""]
#[doc = "Emits `Undelegated`."]
#[doc = ""]
#[doc = "Weight: `O(R)` where R is the number of polls the voter delegating to has"]
#[doc = " voted on. Weight is initially charged as if maximum votes, but is refunded later."]
pub fn undelegate(
&self,
class: types::undelegate::Class,
) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload<types::Undelegate> {
::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static(
"ConvictionVoting",
"undelegate",
types::Undelegate { class },
[
140u8, 232u8, 6u8, 53u8, 228u8, 8u8, 131u8, 144u8, 65u8, 66u8, 245u8,
247u8, 147u8, 135u8, 198u8, 57u8, 82u8, 212u8, 89u8, 46u8, 236u8,
168u8, 200u8, 220u8, 93u8, 168u8, 101u8, 29u8, 110u8, 76u8, 67u8,
181u8,
],
)
}
#[doc = "Remove the lock caused by prior voting/delegating which has expired within a particular"]
#[doc = "class."]
#[doc = ""]
#[doc = "The dispatch origin of this call must be _Signed_."]
#[doc = ""]
#[doc = "- `class`: The class of polls to unlock."]
#[doc = "- `target`: The account to remove the lock on."]
#[doc = ""]
#[doc = "Weight: `O(R)` with R number of vote of target."]
pub fn unlock(
&self,
class: types::unlock::Class,
target: types::unlock::Target,
) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload<types::Unlock> {
::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static(
"ConvictionVoting",
"unlock",
types::Unlock { class, target },
[
79u8, 5u8, 252u8, 237u8, 109u8, 238u8, 157u8, 237u8, 125u8, 171u8,
65u8, 160u8, 102u8, 192u8, 5u8, 141u8, 179u8, 249u8, 253u8, 213u8,
105u8, 251u8, 241u8, 145u8, 186u8, 177u8, 244u8, 139u8, 71u8, 140u8,
173u8, 108u8,
],
)
}
#[doc = "Remove a vote for a poll."]
#[doc = ""]
#[doc = "If:"]
#[doc = "- the poll was cancelled, or"]
#[doc = "- the poll is ongoing, or"]
#[doc = "- the poll has ended such that"]
#[doc = " - the vote of the account was in opposition to the result; or"]
#[doc = " - there was no conviction to the account's vote; or"]
#[doc = " - the account made a split vote"]
#[doc = "...then the vote is removed cleanly and a following call to `unlock` may result in more"]
#[doc = "funds being available."]
#[doc = ""]
#[doc = "If, however, the poll has ended and:"]
#[doc = "- it finished corresponding to the vote of the account, and"]
#[doc = "- the account made a standard vote with conviction, and"]
#[doc = "- the lock period of the conviction is not over"]
#[doc = "...then the lock will be aggregated into the overall account's lock, which may involve"]
#[doc = "*overlocking* (where the two locks are combined into a single lock that is the maximum"]
#[doc = "of both the amount locked and the time is it locked for)."]
#[doc = ""]
#[doc = "The dispatch origin of this call must be _Signed_, and the signer must have a vote"]
#[doc = "registered for poll `index`."]
#[doc = ""]
#[doc = "- `index`: The index of poll of the vote to be removed."]
#[doc = "- `class`: Optional parameter, if given it indicates the class of the poll. For polls"]
#[doc = " which have finished or are cancelled, this must be `Some`."]
#[doc = ""]
#[doc = "Weight: `O(R + log R)` where R is the number of polls that `target` has voted on."]
#[doc = " Weight is calculated for the maximum number of vote."]
pub fn remove_vote(
&self,
class: types::remove_vote::Class,
index: types::remove_vote::Index,
) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload<types::RemoveVote> {
::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static(
"ConvictionVoting",
"remove_vote",
types::RemoveVote { class, index },
[
255u8, 108u8, 211u8, 146u8, 168u8, 231u8, 207u8, 44u8, 76u8, 24u8,
235u8, 60u8, 23u8, 79u8, 192u8, 192u8, 46u8, 40u8, 134u8, 27u8, 125u8,
114u8, 125u8, 247u8, 85u8, 102u8, 76u8, 159u8, 34u8, 167u8, 152u8,
148u8,
],
)
}
#[doc = "Remove a vote for a poll."]
#[doc = ""]
#[doc = "If the `target` is equal to the signer, then this function is exactly equivalent to"]
#[doc = "`remove_vote`. If not equal to the signer, then the vote must have expired,"]
#[doc = "either because the poll was cancelled, because the voter lost the poll or"]
#[doc = "because the conviction period is over."]
#[doc = ""]
#[doc = "The dispatch origin of this call must be _Signed_."]
#[doc = ""]
#[doc = "- `target`: The account of the vote to be removed; this account must have voted for poll"]
#[doc = " `index`."]
#[doc = "- `index`: The index of poll of the vote to be removed."]
#[doc = "- `class`: The class of the poll."]
#[doc = ""]
#[doc = "Weight: `O(R + log R)` where R is the number of polls that `target` has voted on."]
#[doc = " Weight is calculated for the maximum number of vote."]
pub fn remove_other_vote(
&self,
target: types::remove_other_vote::Target,
class: types::remove_other_vote::Class,
index: types::remove_other_vote::Index,
) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload<types::RemoveOtherVote>
{
::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static(
"ConvictionVoting",
"remove_other_vote",
types::RemoveOtherVote { target, class, index },
[
165u8, 26u8, 166u8, 37u8, 10u8, 174u8, 243u8, 10u8, 73u8, 93u8, 213u8,
69u8, 200u8, 16u8, 48u8, 146u8, 160u8, 92u8, 28u8, 26u8, 158u8, 55u8,
6u8, 251u8, 36u8, 132u8, 46u8, 195u8, 107u8, 34u8, 0u8, 100u8,
],
)
}
}
}
#[doc = "The `Event` enum of this pallet"]
pub type Event = runtime_types::pallet_conviction_voting::pallet::Event;
pub mod events {
use super::runtime_types;
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")]
#[doc = "An account has delegated their vote to another account. \\[who, target\\]"]
pub struct Delegated(
pub delegated::Field0,
pub delegated::Field1,
pub delegated::Field2,
);
pub mod delegated {
use super::runtime_types;
pub type Field0 = ::subxt::ext::subxt_core::utils::AccountId32;
pub type Field1 = ::subxt::ext::subxt_core::utils::AccountId32;
pub type Field2 = ::core::primitive::u16;
}
impl ::subxt::ext::subxt_core::events::StaticEvent for Delegated {
const PALLET: &'static str = "ConvictionVoting";
const EVENT: &'static str = "Delegated";
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")]
#[doc = "An \\[account\\] has cancelled a previous delegation operation."]
pub struct Undelegated(pub undelegated::Field0, pub undelegated::Field1);
pub mod undelegated {
use super::runtime_types;
pub type Field0 = ::subxt::ext::subxt_core::utils::AccountId32;
pub type Field1 = ::core::primitive::u16;
}
impl ::subxt::ext::subxt_core::events::StaticEvent for Undelegated {
const PALLET: &'static str = "ConvictionVoting";
const EVENT: &'static str = "Undelegated";
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")]
#[doc = "An account has voted"]
pub struct Voted {
pub who: voted::Who,
pub vote: voted::Vote,
pub poll_index: voted::PollIndex,
}
pub mod voted {
use super::runtime_types;
pub type Who = ::subxt::ext::subxt_core::utils::AccountId32;
pub type Vote = runtime_types::pallet_conviction_voting::vote::AccountVote<
::core::primitive::u128,
>;
pub type PollIndex = ::core::primitive::u32;
}
impl ::subxt::ext::subxt_core::events::StaticEvent for Voted {
const PALLET: &'static str = "ConvictionVoting";
const EVENT: &'static str = "Voted";
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")]
#[doc = "A vote has been removed"]
pub struct VoteRemoved {
pub who: vote_removed::Who,
pub vote: vote_removed::Vote,
pub poll_index: vote_removed::PollIndex,
}
pub mod vote_removed {
use super::runtime_types;
pub type Who = ::subxt::ext::subxt_core::utils::AccountId32;
pub type Vote = runtime_types::pallet_conviction_voting::vote::AccountVote<
::core::primitive::u128,
>;
pub type PollIndex = ::core::primitive::u32;
}
impl ::subxt::ext::subxt_core::events::StaticEvent for VoteRemoved {
const PALLET: &'static str = "ConvictionVoting";
const EVENT: &'static str = "VoteRemoved";
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")]
#[doc = "The lockup period of a conviction vote expired, and the funds have been unlocked."]
pub struct VoteUnlocked {
pub who: vote_unlocked::Who,
pub class: vote_unlocked::Class,
}
pub mod vote_unlocked {
use super::runtime_types;
pub type Who = ::subxt::ext::subxt_core::utils::AccountId32;
pub type Class = ::core::primitive::u16;
}
impl ::subxt::ext::subxt_core::events::StaticEvent for VoteUnlocked {
const PALLET: &'static str = "ConvictionVoting";
const EVENT: &'static str = "VoteUnlocked";
}
}
pub mod storage {
use super::runtime_types;
pub mod types {
use super::runtime_types;
pub mod voting_for {
use super::runtime_types;
pub type VotingFor = runtime_types::pallet_conviction_voting::vote::Voting<
::core::primitive::u128,
::subxt::ext::subxt_core::utils::AccountId32,
::core::primitive::u32,
::core::primitive::u32,
>;
pub type Param0 = ::subxt::ext::subxt_core::utils::AccountId32;
pub type Param1 = ::core::primitive::u16;
}
pub mod class_locks_for {
use super::runtime_types;
pub type ClassLocksFor =
runtime_types::bounded_collections::bounded_vec::BoundedVec<(
::core::primitive::u16,
::core::primitive::u128,
)>;
pub type Param0 = ::subxt::ext::subxt_core::utils::AccountId32;
}
}
pub struct StorageApi;
impl StorageApi {
#[doc = " All voting for a particular voter in a particular voting class. We store the balance for the"]
#[doc = " number of votes that we have recorded."]
pub fn voting_for_iter(
&self,
) -> ::subxt::ext::subxt_core::storage::address::StaticAddress<
(),
types::voting_for::VotingFor,
(),
::subxt::ext::subxt_core::utils::Yes,
::subxt::ext::subxt_core::utils::Yes,
> {
::subxt::ext::subxt_core::storage::address::StaticAddress::new_static(
"ConvictionVoting",
"VotingFor",
(),
[
76u8, 63u8, 153u8, 193u8, 39u8, 137u8, 186u8, 29u8, 202u8, 56u8, 169u8,
56u8, 103u8, 138u8, 192u8, 18u8, 179u8, 114u8, 56u8, 121u8, 197u8,
12u8, 29u8, 239u8, 220u8, 231u8, 24u8, 46u8, 134u8, 99u8, 53u8, 206u8,
],
)
}
#[doc = " All voting for a particular voter in a particular voting class. We store the balance for the"]
#[doc = " number of votes that we have recorded."]
pub fn voting_for_iter1(
&self,
_0: types::voting_for::Param0,
) -> ::subxt::ext::subxt_core::storage::address::StaticAddress<
::subxt::ext::subxt_core::storage::address::StaticStorageKey<
types::voting_for::Param0,
>,
types::voting_for::VotingFor,
(),
::subxt::ext::subxt_core::utils::Yes,
::subxt::ext::subxt_core::utils::Yes,
> {
::subxt::ext::subxt_core::storage::address::StaticAddress::new_static(
"ConvictionVoting",
"VotingFor",
::subxt::ext::subxt_core::storage::address::StaticStorageKey::new(_0),
[
76u8, 63u8, 153u8, 193u8, 39u8, 137u8, 186u8, 29u8, 202u8, 56u8, 169u8,
56u8, 103u8, 138u8, 192u8, 18u8, 179u8, 114u8, 56u8, 121u8, 197u8,
12u8, 29u8, 239u8, 220u8, 231u8, 24u8, 46u8, 134u8, 99u8, 53u8, 206u8,
],
)
}
#[doc = " All voting for a particular voter in a particular voting class. We store the balance for the"]
#[doc = " number of votes that we have recorded."]
pub fn voting_for(
&self,
_0: types::voting_for::Param0,
_1: types::voting_for::Param1,
) -> ::subxt::ext::subxt_core::storage::address::StaticAddress<
(
::subxt::ext::subxt_core::storage::address::StaticStorageKey<
types::voting_for::Param0,
>,
::subxt::ext::subxt_core::storage::address::StaticStorageKey<
types::voting_for::Param1,
>,
),
types::voting_for::VotingFor,
::subxt::ext::subxt_core::utils::Yes,
::subxt::ext::subxt_core::utils::Yes,
(),
> {
::subxt::ext::subxt_core::storage::address::StaticAddress::new_static(
"ConvictionVoting",
"VotingFor",
(
::subxt::ext::subxt_core::storage::address::StaticStorageKey::new(_0),
::subxt::ext::subxt_core::storage::address::StaticStorageKey::new(_1),
),
[
76u8, 63u8, 153u8, 193u8, 39u8, 137u8, 186u8, 29u8, 202u8, 56u8, 169u8,
56u8, 103u8, 138u8, 192u8, 18u8, 179u8, 114u8, 56u8, 121u8, 197u8,
12u8, 29u8, 239u8, 220u8, 231u8, 24u8, 46u8, 134u8, 99u8, 53u8, 206u8,
],
)
}
#[doc = " The voting classes which have a non-zero lock requirement and the lock amounts which they"]
#[doc = " require. The actual amount locked on behalf of this pallet should always be the maximum of"]
#[doc = " this list."]
pub fn class_locks_for_iter(
&self,
) -> ::subxt::ext::subxt_core::storage::address::StaticAddress<
(),
types::class_locks_for::ClassLocksFor,
(),
::subxt::ext::subxt_core::utils::Yes,
::subxt::ext::subxt_core::utils::Yes,
> {
::subxt::ext::subxt_core::storage::address::StaticAddress::new_static(
"ConvictionVoting",
"ClassLocksFor",
(),
[
74u8, 74u8, 8u8, 82u8, 215u8, 61u8, 13u8, 9u8, 44u8, 222u8, 33u8,
245u8, 195u8, 124u8, 6u8, 174u8, 65u8, 245u8, 71u8, 42u8, 47u8, 46u8,
164u8, 231u8, 11u8, 245u8, 115u8, 207u8, 209u8, 137u8, 90u8, 6u8,
],
)
}
#[doc = " The voting classes which have a non-zero lock requirement and the lock amounts which they"]
#[doc = " require. The actual amount locked on behalf of this pallet should always be the maximum of"]
#[doc = " this list."]
pub fn class_locks_for(
&self,
_0: types::class_locks_for::Param0,
) -> ::subxt::ext::subxt_core::storage::address::StaticAddress<
::subxt::ext::subxt_core::storage::address::StaticStorageKey<
types::class_locks_for::Param0,
>,
types::class_locks_for::ClassLocksFor,
::subxt::ext::subxt_core::utils::Yes,
::subxt::ext::subxt_core::utils::Yes,
(),
> {
::subxt::ext::subxt_core::storage::address::StaticAddress::new_static(
"ConvictionVoting",
"ClassLocksFor",
::subxt::ext::subxt_core::storage::address::StaticStorageKey::new(_0),
[
74u8, 74u8, 8u8, 82u8, 215u8, 61u8, 13u8, 9u8, 44u8, 222u8, 33u8,
245u8, 195u8, 124u8, 6u8, 174u8, 65u8, 245u8, 71u8, 42u8, 47u8, 46u8,
164u8, 231u8, 11u8, 245u8, 115u8, 207u8, 209u8, 137u8, 90u8, 6u8,
],
)
}
}
}
pub mod constants {
use super::runtime_types;
pub struct ConstantsApi;
impl ConstantsApi {
#[doc = " The maximum number of concurrent votes an account may have."]
#[doc = ""]
#[doc = " Also used to compute weight, an overly large value can lead to extrinsics with large"]
#[doc = " weight estimation: see `delegate` for instance."]
pub fn max_votes(
&self,
) -> ::subxt::ext::subxt_core::constants::address::StaticAddress<
::core::primitive::u32,
> {
::subxt::ext::subxt_core::constants::address::StaticAddress::new_static(
"ConvictionVoting",
"MaxVotes",
[
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 minimum period of vote locking."]
#[doc = ""]
#[doc = " It should be no shorter than enactment period to ensure that in the case of an approval,"]
#[doc = " those successful voters are locked into the consequences that their votes entail."]
pub fn vote_locking_period(
&self,
) -> ::subxt::ext::subxt_core::constants::address::StaticAddress<
::core::primitive::u32,
> {
::subxt::ext::subxt_core::constants::address::StaticAddress::new_static(
"ConvictionVoting",
"VoteLockingPeriod",
[
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 tech_collective {
use super::{root_mod, runtime_types};
#[doc = "The `Error` enum of this pallet."]
pub type Error = runtime_types::pallet_ranked_collective::pallet::Error;
#[doc = "Contains a variant per dispatchable extrinsic that this pallet has."]
pub type Call = runtime_types::pallet_ranked_collective::pallet::Call;
pub mod calls {
use super::{root_mod, runtime_types};
type DispatchError = runtime_types::sp_runtime::DispatchError;
pub mod types {
use super::runtime_types;
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode"
)]
#[doc = "Introduce a new member."]
#[doc = ""]
#[doc = "- `origin`: Must be the `AddOrigin`."]
#[doc = "- `who`: Account of non-member which will become a member."]
#[doc = ""]
#[doc = "Weight: `O(1)`"]
pub struct AddMember {
pub who: add_member::Who,
}
pub mod add_member {
use super::runtime_types;
pub type Who = ::subxt::ext::subxt_core::utils::MultiAddress<
::subxt::ext::subxt_core::utils::AccountId32,
(),
>;
}
impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for AddMember {
const PALLET: &'static str = "TechCollective";
const CALL: &'static str = "add_member";
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode"
)]
#[doc = "Increment the rank of an existing member by one."]
#[doc = ""]
#[doc = "- `origin`: Must be the `PromoteOrigin`."]
#[doc = "- `who`: Account of existing member."]
#[doc = ""]
#[doc = "Weight: `O(1)`"]
pub struct PromoteMember {
pub who: promote_member::Who,
}
pub mod promote_member {
use super::runtime_types;
pub type Who = ::subxt::ext::subxt_core::utils::MultiAddress<
::subxt::ext::subxt_core::utils::AccountId32,
(),
>;
}
impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for PromoteMember {
const PALLET: &'static str = "TechCollective";
const CALL: &'static str = "promote_member";
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode"
)]
#[doc = "Decrement the rank of an existing member by one. If the member is already at rank zero,"]
#[doc = "then they are removed entirely."]
#[doc = ""]
#[doc = "- `origin`: Must be the `DemoteOrigin`."]
#[doc = "- `who`: Account of existing member of rank greater than zero."]
#[doc = ""]
#[doc = "Weight: `O(1)`, less if the member's index is highest in its rank."]
pub struct DemoteMember {
pub who: demote_member::Who,
}
pub mod demote_member {
use super::runtime_types;
pub type Who = ::subxt::ext::subxt_core::utils::MultiAddress<
::subxt::ext::subxt_core::utils::AccountId32,
(),
>;
}
impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for DemoteMember {
const PALLET: &'static str = "TechCollective";
const CALL: &'static str = "demote_member";
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode"
)]
#[doc = "Remove the member entirely."]
#[doc = ""]
#[doc = "- `origin`: Must be the `RemoveOrigin`."]
#[doc = "- `who`: Account of existing member of rank greater than zero."]
#[doc = "- `min_rank`: The rank of the member or greater."]
#[doc = ""]
#[doc = "Weight: `O(min_rank)`."]
pub struct RemoveMember {
pub who: remove_member::Who,
pub min_rank: remove_member::MinRank,
}
pub mod remove_member {
use super::runtime_types;
pub type Who = ::subxt::ext::subxt_core::utils::MultiAddress<
::subxt::ext::subxt_core::utils::AccountId32,
(),
>;
pub type MinRank = ::core::primitive::u16;
}
impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for RemoveMember {
const PALLET: &'static str = "TechCollective";
const CALL: &'static str = "remove_member";
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode"
)]
#[doc = "Add an aye or nay vote for the sender to the given proposal."]
#[doc = ""]
#[doc = "- `origin`: Must be `Signed` by a member account."]
#[doc = "- `poll`: Index of a poll which is ongoing."]
#[doc = "- `aye`: `true` if the vote is to approve the proposal, `false` otherwise."]
#[doc = ""]
#[doc = "Transaction fees are be waived if the member is voting on any particular proposal"]
#[doc = "for the first time and the call is successful. Subsequent vote changes will charge a"]
#[doc = "fee."]
#[doc = ""]
#[doc = "Weight: `O(1)`, less if there was no previous vote on the poll by the member."]
pub struct Vote {
pub poll: vote::Poll,
pub aye: vote::Aye,
}
pub mod vote {
use super::runtime_types;
pub type Poll = ::core::primitive::u32;
pub type Aye = ::core::primitive::bool;
}
impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for Vote {
const PALLET: &'static str = "TechCollective";
const CALL: &'static str = "vote";
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode"
)]
#[doc = "Remove votes from the given poll. It must have ended."]
#[doc = ""]
#[doc = "- `origin`: Must be `Signed` by any account."]
#[doc = "- `poll_index`: Index of a poll which is completed and for which votes continue to"]
#[doc = " exist."]
#[doc = "- `max`: Maximum number of vote items from remove in this call."]
#[doc = ""]
#[doc = "Transaction fees are waived if the operation is successful."]
#[doc = ""]
#[doc = "Weight `O(max)` (less if there are fewer items to remove than `max`)."]
pub struct CleanupPoll {
pub poll_index: cleanup_poll::PollIndex,
pub max: cleanup_poll::Max,
}
pub mod cleanup_poll {
use super::runtime_types;
pub type PollIndex = ::core::primitive::u32;
pub type Max = ::core::primitive::u32;
}
impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for CleanupPoll {
const PALLET: &'static str = "TechCollective";
const CALL: &'static str = "cleanup_poll";
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode"
)]
#[doc = "Exchanges a member with a new account and the same existing rank."]
#[doc = ""]
#[doc = "- `origin`: Must be the `ExchangeOrigin`."]
#[doc = "- `who`: Account of existing member of rank greater than zero to be exchanged."]
#[doc = "- `new_who`: New Account of existing member of rank greater than zero to exchanged to."]
pub struct ExchangeMember {
pub who: exchange_member::Who,
pub new_who: exchange_member::NewWho,
}
pub mod exchange_member {
use super::runtime_types;
pub type Who = ::subxt::ext::subxt_core::utils::MultiAddress<
::subxt::ext::subxt_core::utils::AccountId32,
(),
>;
pub type NewWho = ::subxt::ext::subxt_core::utils::MultiAddress<
::subxt::ext::subxt_core::utils::AccountId32,
(),
>;
}
impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for ExchangeMember {
const PALLET: &'static str = "TechCollective";
const CALL: &'static str = "exchange_member";
}
}
pub struct TransactionApi;
impl TransactionApi {
#[doc = "Introduce a new member."]
#[doc = ""]
#[doc = "- `origin`: Must be the `AddOrigin`."]
#[doc = "- `who`: Account of non-member which will become a member."]
#[doc = ""]
#[doc = "Weight: `O(1)`"]
pub fn add_member(
&self,
who: types::add_member::Who,
) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload<types::AddMember> {
::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static(
"TechCollective",
"add_member",
types::AddMember { who },
[
2u8, 131u8, 37u8, 217u8, 112u8, 46u8, 86u8, 165u8, 248u8, 244u8, 33u8,
236u8, 155u8, 28u8, 163u8, 169u8, 213u8, 32u8, 70u8, 217u8, 97u8,
194u8, 138u8, 77u8, 133u8, 97u8, 188u8, 49u8, 49u8, 31u8, 177u8, 206u8,
],
)
}
#[doc = "Increment the rank of an existing member by one."]
#[doc = ""]
#[doc = "- `origin`: Must be the `PromoteOrigin`."]
#[doc = "- `who`: Account of existing member."]
#[doc = ""]
#[doc = "Weight: `O(1)`"]
pub fn promote_member(
&self,
who: types::promote_member::Who,
) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload<types::PromoteMember>
{
::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static(
"TechCollective",
"promote_member",
types::PromoteMember { who },
[
169u8, 155u8, 9u8, 50u8, 144u8, 133u8, 230u8, 60u8, 216u8, 147u8, 3u8,
236u8, 94u8, 185u8, 106u8, 139u8, 235u8, 143u8, 189u8, 135u8, 208u8,
176u8, 126u8, 124u8, 85u8, 140u8, 189u8, 125u8, 87u8, 56u8, 57u8,
246u8,
],
)
}
#[doc = "Decrement the rank of an existing member by one. If the member is already at rank zero,"]
#[doc = "then they are removed entirely."]
#[doc = ""]
#[doc = "- `origin`: Must be the `DemoteOrigin`."]
#[doc = "- `who`: Account of existing member of rank greater than zero."]
#[doc = ""]
#[doc = "Weight: `O(1)`, less if the member's index is highest in its rank."]
pub fn demote_member(
&self,
who: types::demote_member::Who,
) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload<types::DemoteMember> {
::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static(
"TechCollective",
"demote_member",
types::DemoteMember { who },
[
21u8, 185u8, 71u8, 166u8, 106u8, 88u8, 74u8, 251u8, 78u8, 28u8, 205u8,
171u8, 199u8, 195u8, 97u8, 149u8, 175u8, 229u8, 25u8, 113u8, 96u8,
25u8, 240u8, 64u8, 109u8, 246u8, 203u8, 45u8, 110u8, 205u8, 115u8,
178u8,
],
)
}
#[doc = "Remove the member entirely."]
#[doc = ""]
#[doc = "- `origin`: Must be the `RemoveOrigin`."]
#[doc = "- `who`: Account of existing member of rank greater than zero."]
#[doc = "- `min_rank`: The rank of the member or greater."]
#[doc = ""]
#[doc = "Weight: `O(min_rank)`."]
pub fn remove_member(
&self,
who: types::remove_member::Who,
min_rank: types::remove_member::MinRank,
) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload<types::RemoveMember> {
::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static(
"TechCollective",
"remove_member",
types::RemoveMember { who, min_rank },
[
23u8, 156u8, 32u8, 64u8, 158u8, 50u8, 64u8, 199u8, 108u8, 67u8, 133u8,
128u8, 138u8, 241u8, 14u8, 238u8, 192u8, 173u8, 250u8, 11u8, 124u8,
119u8, 177u8, 190u8, 152u8, 116u8, 134u8, 42u8, 216u8, 49u8, 113u8,
49u8,
],
)
}
#[doc = "Add an aye or nay vote for the sender to the given proposal."]
#[doc = ""]
#[doc = "- `origin`: Must be `Signed` by a member account."]
#[doc = "- `poll`: Index of a poll which is ongoing."]
#[doc = "- `aye`: `true` if the vote is to approve the proposal, `false` otherwise."]
#[doc = ""]
#[doc = "Transaction fees are be waived if the member is voting on any particular proposal"]
#[doc = "for the first time and the call is successful. Subsequent vote changes will charge a"]
#[doc = "fee."]
#[doc = ""]
#[doc = "Weight: `O(1)`, less if there was no previous vote on the poll by the member."]
pub fn vote(
&self,
poll: types::vote::Poll,
aye: types::vote::Aye,
) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload<types::Vote> {
::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static(
"TechCollective",
"vote",
types::Vote { poll, aye },
[
54u8, 116u8, 81u8, 239u8, 223u8, 35u8, 11u8, 244u8, 245u8, 94u8, 23u8,
241u8, 125u8, 231u8, 56u8, 150u8, 105u8, 125u8, 100u8, 171u8, 182u8,
186u8, 134u8, 40u8, 4u8, 121u8, 119u8, 11u8, 93u8, 158u8, 59u8, 209u8,
],
)
}
#[doc = "Remove votes from the given poll. It must have ended."]
#[doc = ""]
#[doc = "- `origin`: Must be `Signed` by any account."]
#[doc = "- `poll_index`: Index of a poll which is completed and for which votes continue to"]
#[doc = " exist."]
#[doc = "- `max`: Maximum number of vote items from remove in this call."]
#[doc = ""]
#[doc = "Transaction fees are waived if the operation is successful."]
#[doc = ""]
#[doc = "Weight `O(max)` (less if there are fewer items to remove than `max`)."]
pub fn cleanup_poll(
&self,
poll_index: types::cleanup_poll::PollIndex,
max: types::cleanup_poll::Max,
) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload<types::CleanupPoll> {
::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static(
"TechCollective",
"cleanup_poll",
types::CleanupPoll { poll_index, max },
[
157u8, 109u8, 86u8, 253u8, 62u8, 107u8, 235u8, 255u8, 171u8, 68u8,
103u8, 92u8, 245u8, 25u8, 252u8, 158u8, 174u8, 137u8, 77u8, 251u8,
105u8, 113u8, 165u8, 46u8, 39u8, 55u8, 166u8, 79u8, 103u8, 81u8, 121u8,
37u8,
],
)
}
#[doc = "Exchanges a member with a new account and the same existing rank."]
#[doc = ""]
#[doc = "- `origin`: Must be the `ExchangeOrigin`."]
#[doc = "- `who`: Account of existing member of rank greater than zero to be exchanged."]
#[doc = "- `new_who`: New Account of existing member of rank greater than zero to exchanged to."]
pub fn exchange_member(
&self,
who: types::exchange_member::Who,
new_who: types::exchange_member::NewWho,
) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload<types::ExchangeMember>
{
::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static(
"TechCollective",
"exchange_member",
types::ExchangeMember { who, new_who },
[
240u8, 208u8, 76u8, 147u8, 117u8, 23u8, 91u8, 37u8, 22u8, 101u8, 53u8,
247u8, 161u8, 94u8, 109u8, 233u8, 104u8, 129u8, 67u8, 31u8, 223u8,
182u8, 50u8, 233u8, 120u8, 129u8, 224u8, 135u8, 52u8, 162u8, 26u8,
189u8,
],
)
}
}
}
#[doc = "The `Event` enum of this pallet"]
pub type Event = runtime_types::pallet_ranked_collective::pallet::Event;
pub mod events {
use super::runtime_types;
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")]
#[doc = "A member `who` has been added."]
pub struct MemberAdded {
pub who: member_added::Who,
}
pub mod member_added {
use super::runtime_types;
pub type Who = ::subxt::ext::subxt_core::utils::AccountId32;
}
impl ::subxt::ext::subxt_core::events::StaticEvent for MemberAdded {
const PALLET: &'static str = "TechCollective";
const EVENT: &'static str = "MemberAdded";
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")]
#[doc = "The member `who`se rank has been changed to the given `rank`."]
pub struct RankChanged {
pub who: rank_changed::Who,
pub rank: rank_changed::Rank,
}
pub mod rank_changed {
use super::runtime_types;
pub type Who = ::subxt::ext::subxt_core::utils::AccountId32;
pub type Rank = ::core::primitive::u16;
}
impl ::subxt::ext::subxt_core::events::StaticEvent for RankChanged {
const PALLET: &'static str = "TechCollective";
const EVENT: &'static str = "RankChanged";
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")]
#[doc = "The member `who` of given `rank` has been removed from the collective."]
pub struct MemberRemoved {
pub who: member_removed::Who,
pub rank: member_removed::Rank,
}
pub mod member_removed {
use super::runtime_types;
pub type Who = ::subxt::ext::subxt_core::utils::AccountId32;
pub type Rank = ::core::primitive::u16;
}
impl ::subxt::ext::subxt_core::events::StaticEvent for MemberRemoved {
const PALLET: &'static str = "TechCollective";
const EVENT: &'static str = "MemberRemoved";
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")]
#[doc = "The member `who` has voted for the `poll` with the given `vote` leading to an updated"]
#[doc = "`tally`."]
pub struct Voted {
pub who: voted::Who,
pub poll: voted::Poll,
pub vote: voted::Vote,
pub tally: voted::Tally,
}
pub mod voted {
use super::runtime_types;
pub type Who = ::subxt::ext::subxt_core::utils::AccountId32;
pub type Poll = ::core::primitive::u32;
pub type Vote = runtime_types::pallet_ranked_collective::VoteRecord;
pub type Tally = runtime_types::pallet_ranked_collective::Tally;
}
impl ::subxt::ext::subxt_core::events::StaticEvent for Voted {
const PALLET: &'static str = "TechCollective";
const EVENT: &'static str = "Voted";
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")]
#[doc = "The member `who` had their `AccountId` changed to `new_who`."]
pub struct MemberExchanged {
pub who: member_exchanged::Who,
pub new_who: member_exchanged::NewWho,
}
pub mod member_exchanged {
use super::runtime_types;
pub type Who = ::subxt::ext::subxt_core::utils::AccountId32;
pub type NewWho = ::subxt::ext::subxt_core::utils::AccountId32;
}
impl ::subxt::ext::subxt_core::events::StaticEvent for MemberExchanged {
const PALLET: &'static str = "TechCollective";
const EVENT: &'static str = "MemberExchanged";
}
}
pub mod storage {
use super::runtime_types;
pub mod types {
use super::runtime_types;
pub mod member_count {
use super::runtime_types;
pub type MemberCount = ::core::primitive::u32;
pub type Param0 = ::core::primitive::u16;
}
pub mod members {
use super::runtime_types;
pub type Members = runtime_types::pallet_ranked_collective::MemberRecord;
pub type Param0 = ::subxt::ext::subxt_core::utils::AccountId32;
}
pub mod id_to_index {
use super::runtime_types;
pub type IdToIndex = ::core::primitive::u32;
pub type Param0 = ::core::primitive::u16;
pub type Param1 = ::subxt::ext::subxt_core::utils::AccountId32;
}
pub mod index_to_id {
use super::runtime_types;
pub type IndexToId = ::subxt::ext::subxt_core::utils::AccountId32;
pub type Param0 = ::core::primitive::u16;
pub type Param1 = ::core::primitive::u32;
}
pub mod voting {
use super::runtime_types;
pub type Voting = runtime_types::pallet_ranked_collective::VoteRecord;
pub type Param0 = ::core::primitive::u32;
pub type Param1 = ::subxt::ext::subxt_core::utils::AccountId32;
}
pub mod voting_cleanup {
use super::runtime_types;
pub type VotingCleanup =
runtime_types::bounded_collections::bounded_vec::BoundedVec<
::core::primitive::u8,
>;
pub type Param0 = ::core::primitive::u32;
}
}
pub struct StorageApi;
impl StorageApi {
#[doc = " The number of members in the collective who have at least the rank according to the index"]
#[doc = " of the vec."]
pub fn member_count_iter(
&self,
) -> ::subxt::ext::subxt_core::storage::address::StaticAddress<
(),
types::member_count::MemberCount,
(),
::subxt::ext::subxt_core::utils::Yes,
::subxt::ext::subxt_core::utils::Yes,
> {
::subxt::ext::subxt_core::storage::address::StaticAddress::new_static(
"TechCollective",
"MemberCount",
(),
[
0u8, 141u8, 66u8, 91u8, 155u8, 74u8, 17u8, 191u8, 143u8, 41u8, 231u8,
56u8, 123u8, 219u8, 145u8, 27u8, 197u8, 62u8, 118u8, 237u8, 30u8, 7u8,
107u8, 96u8, 95u8, 17u8, 242u8, 206u8, 246u8, 79u8, 53u8, 214u8,
],
)
}
#[doc = " The number of members in the collective who have at least the rank according to the index"]
#[doc = " of the vec."]
pub fn member_count(
&self,
_0: types::member_count::Param0,
) -> ::subxt::ext::subxt_core::storage::address::StaticAddress<
::subxt::ext::subxt_core::storage::address::StaticStorageKey<
types::member_count::Param0,
>,
types::member_count::MemberCount,
::subxt::ext::subxt_core::utils::Yes,
::subxt::ext::subxt_core::utils::Yes,
(),
> {
::subxt::ext::subxt_core::storage::address::StaticAddress::new_static(
"TechCollective",
"MemberCount",
::subxt::ext::subxt_core::storage::address::StaticStorageKey::new(_0),
[
0u8, 141u8, 66u8, 91u8, 155u8, 74u8, 17u8, 191u8, 143u8, 41u8, 231u8,
56u8, 123u8, 219u8, 145u8, 27u8, 197u8, 62u8, 118u8, 237u8, 30u8, 7u8,
107u8, 96u8, 95u8, 17u8, 242u8, 206u8, 246u8, 79u8, 53u8, 214u8,
],
)
}
#[doc = " The current members of the collective."]
pub fn members_iter(
&self,
) -> ::subxt::ext::subxt_core::storage::address::StaticAddress<
(),
types::members::Members,
(),
(),
::subxt::ext::subxt_core::utils::Yes,
> {
::subxt::ext::subxt_core::storage::address::StaticAddress::new_static(
"TechCollective",
"Members",
(),
[
101u8, 183u8, 36u8, 241u8, 67u8, 8u8, 252u8, 116u8, 110u8, 153u8,
117u8, 210u8, 128u8, 80u8, 130u8, 163u8, 38u8, 76u8, 230u8, 107u8,
112u8, 90u8, 102u8, 24u8, 217u8, 2u8, 244u8, 197u8, 103u8, 215u8,
247u8, 133u8,
],
)
}
#[doc = " The current members of the collective."]
pub fn members(
&self,
_0: types::members::Param0,
) -> ::subxt::ext::subxt_core::storage::address::StaticAddress<
::subxt::ext::subxt_core::storage::address::StaticStorageKey<
types::members::Param0,
>,
types::members::Members,
::subxt::ext::subxt_core::utils::Yes,
(),
(),
> {
::subxt::ext::subxt_core::storage::address::StaticAddress::new_static(
"TechCollective",
"Members",
::subxt::ext::subxt_core::storage::address::StaticStorageKey::new(_0),
[
101u8, 183u8, 36u8, 241u8, 67u8, 8u8, 252u8, 116u8, 110u8, 153u8,
117u8, 210u8, 128u8, 80u8, 130u8, 163u8, 38u8, 76u8, 230u8, 107u8,
112u8, 90u8, 102u8, 24u8, 217u8, 2u8, 244u8, 197u8, 103u8, 215u8,
247u8, 133u8,
],
)
}
#[doc = " The index of each ranks's member into the group of members who have at least that rank."]
pub fn id_to_index_iter(
&self,
) -> ::subxt::ext::subxt_core::storage::address::StaticAddress<
(),
types::id_to_index::IdToIndex,
(),
(),
::subxt::ext::subxt_core::utils::Yes,
> {
::subxt::ext::subxt_core::storage::address::StaticAddress::new_static(
"TechCollective",
"IdToIndex",
(),
[
121u8, 225u8, 69u8, 131u8, 194u8, 3u8, 82u8, 27u8, 129u8, 152u8, 157u8,
45u8, 39u8, 47u8, 166u8, 28u8, 42u8, 92u8, 217u8, 189u8, 160u8, 102u8,
153u8, 196u8, 94u8, 48u8, 248u8, 113u8, 164u8, 111u8, 27u8, 9u8,
],
)
}
#[doc = " The index of each ranks's member into the group of members who have at least that rank."]
pub fn id_to_index_iter1(
&self,
_0: types::id_to_index::Param0,
) -> ::subxt::ext::subxt_core::storage::address::StaticAddress<
::subxt::ext::subxt_core::storage::address::StaticStorageKey<
types::id_to_index::Param0,
>,
types::id_to_index::IdToIndex,
(),
(),
::subxt::ext::subxt_core::utils::Yes,
> {
::subxt::ext::subxt_core::storage::address::StaticAddress::new_static(
"TechCollective",
"IdToIndex",
::subxt::ext::subxt_core::storage::address::StaticStorageKey::new(_0),
[
121u8, 225u8, 69u8, 131u8, 194u8, 3u8, 82u8, 27u8, 129u8, 152u8, 157u8,
45u8, 39u8, 47u8, 166u8, 28u8, 42u8, 92u8, 217u8, 189u8, 160u8, 102u8,
153u8, 196u8, 94u8, 48u8, 248u8, 113u8, 164u8, 111u8, 27u8, 9u8,
],
)
}
#[doc = " The index of each ranks's member into the group of members who have at least that rank."]
pub fn id_to_index(
&self,
_0: types::id_to_index::Param0,
_1: types::id_to_index::Param1,
) -> ::subxt::ext::subxt_core::storage::address::StaticAddress<
(
::subxt::ext::subxt_core::storage::address::StaticStorageKey<
types::id_to_index::Param0,
>,
::subxt::ext::subxt_core::storage::address::StaticStorageKey<
types::id_to_index::Param1,
>,
),
types::id_to_index::IdToIndex,
::subxt::ext::subxt_core::utils::Yes,
(),
(),
> {
::subxt::ext::subxt_core::storage::address::StaticAddress::new_static(
"TechCollective",
"IdToIndex",
(
::subxt::ext::subxt_core::storage::address::StaticStorageKey::new(_0),
::subxt::ext::subxt_core::storage::address::StaticStorageKey::new(_1),
),
[
121u8, 225u8, 69u8, 131u8, 194u8, 3u8, 82u8, 27u8, 129u8, 152u8, 157u8,
45u8, 39u8, 47u8, 166u8, 28u8, 42u8, 92u8, 217u8, 189u8, 160u8, 102u8,
153u8, 196u8, 94u8, 48u8, 248u8, 113u8, 164u8, 111u8, 27u8, 9u8,
],
)
}
#[doc = " The members in the collective by index. All indices in the range `0..MemberCount` will"]
#[doc = " return `Some`, however a member's index is not guaranteed to remain unchanged over time."]
pub fn index_to_id_iter(
&self,
) -> ::subxt::ext::subxt_core::storage::address::StaticAddress<
(),
types::index_to_id::IndexToId,
(),
(),
::subxt::ext::subxt_core::utils::Yes,
> {
::subxt::ext::subxt_core::storage::address::StaticAddress::new_static(
"TechCollective",
"IndexToId",
(),
[
110u8, 48u8, 214u8, 224u8, 56u8, 195u8, 186u8, 24u8, 111u8, 37u8, 15u8,
153u8, 245u8, 101u8, 229u8, 149u8, 216u8, 185u8, 7u8, 242u8, 196u8,
29u8, 205u8, 243u8, 162u8, 92u8, 71u8, 253u8, 102u8, 152u8, 137u8,
70u8,
],
)
}
#[doc = " The members in the collective by index. All indices in the range `0..MemberCount` will"]
#[doc = " return `Some`, however a member's index is not guaranteed to remain unchanged over time."]
pub fn index_to_id_iter1(
&self,
_0: types::index_to_id::Param0,
) -> ::subxt::ext::subxt_core::storage::address::StaticAddress<
::subxt::ext::subxt_core::storage::address::StaticStorageKey<
types::index_to_id::Param0,
>,
types::index_to_id::IndexToId,
(),
(),
::subxt::ext::subxt_core::utils::Yes,
> {
::subxt::ext::subxt_core::storage::address::StaticAddress::new_static(
"TechCollective",
"IndexToId",
::subxt::ext::subxt_core::storage::address::StaticStorageKey::new(_0),
[
110u8, 48u8, 214u8, 224u8, 56u8, 195u8, 186u8, 24u8, 111u8, 37u8, 15u8,
153u8, 245u8, 101u8, 229u8, 149u8, 216u8, 185u8, 7u8, 242u8, 196u8,
29u8, 205u8, 243u8, 162u8, 92u8, 71u8, 253u8, 102u8, 152u8, 137u8,
70u8,
],
)
}
#[doc = " The members in the collective by index. All indices in the range `0..MemberCount` will"]
#[doc = " return `Some`, however a member's index is not guaranteed to remain unchanged over time."]
pub fn index_to_id(
&self,
_0: types::index_to_id::Param0,
_1: types::index_to_id::Param1,
) -> ::subxt::ext::subxt_core::storage::address::StaticAddress<
(
::subxt::ext::subxt_core::storage::address::StaticStorageKey<
types::index_to_id::Param0,
>,
::subxt::ext::subxt_core::storage::address::StaticStorageKey<
types::index_to_id::Param1,
>,
),
types::index_to_id::IndexToId,
::subxt::ext::subxt_core::utils::Yes,
(),
(),
> {
::subxt::ext::subxt_core::storage::address::StaticAddress::new_static(
"TechCollective",
"IndexToId",
(
::subxt::ext::subxt_core::storage::address::StaticStorageKey::new(_0),
::subxt::ext::subxt_core::storage::address::StaticStorageKey::new(_1),
),
[
110u8, 48u8, 214u8, 224u8, 56u8, 195u8, 186u8, 24u8, 111u8, 37u8, 15u8,
153u8, 245u8, 101u8, 229u8, 149u8, 216u8, 185u8, 7u8, 242u8, 196u8,
29u8, 205u8, 243u8, 162u8, 92u8, 71u8, 253u8, 102u8, 152u8, 137u8,
70u8,
],
)
}
#[doc = " Votes on a given proposal, if it is ongoing."]
pub fn voting_iter(
&self,
) -> ::subxt::ext::subxt_core::storage::address::StaticAddress<
(),
types::voting::Voting,
(),
(),
::subxt::ext::subxt_core::utils::Yes,
> {
::subxt::ext::subxt_core::storage::address::StaticAddress::new_static(
"TechCollective",
"Voting",
(),
[
180u8, 146u8, 236u8, 178u8, 30u8, 50u8, 161u8, 50u8, 140u8, 110u8,
220u8, 1u8, 109u8, 209u8, 17u8, 94u8, 234u8, 223u8, 222u8, 177u8,
243u8, 194u8, 246u8, 48u8, 178u8, 86u8, 30u8, 185u8, 56u8, 206u8,
175u8, 18u8,
],
)
}
#[doc = " Votes on a given proposal, if it is ongoing."]
pub fn voting_iter1(
&self,
_0: types::voting::Param0,
) -> ::subxt::ext::subxt_core::storage::address::StaticAddress<
::subxt::ext::subxt_core::storage::address::StaticStorageKey<
types::voting::Param0,
>,
types::voting::Voting,
(),
(),
::subxt::ext::subxt_core::utils::Yes,
> {
::subxt::ext::subxt_core::storage::address::StaticAddress::new_static(
"TechCollective",
"Voting",
::subxt::ext::subxt_core::storage::address::StaticStorageKey::new(_0),
[
180u8, 146u8, 236u8, 178u8, 30u8, 50u8, 161u8, 50u8, 140u8, 110u8,
220u8, 1u8, 109u8, 209u8, 17u8, 94u8, 234u8, 223u8, 222u8, 177u8,
243u8, 194u8, 246u8, 48u8, 178u8, 86u8, 30u8, 185u8, 56u8, 206u8,
175u8, 18u8,
],
)
}
#[doc = " Votes on a given proposal, if it is ongoing."]
pub fn voting(
&self,
_0: types::voting::Param0,
_1: types::voting::Param1,
) -> ::subxt::ext::subxt_core::storage::address::StaticAddress<
(
::subxt::ext::subxt_core::storage::address::StaticStorageKey<
types::voting::Param0,
>,
::subxt::ext::subxt_core::storage::address::StaticStorageKey<
types::voting::Param1,
>,
),
types::voting::Voting,
::subxt::ext::subxt_core::utils::Yes,
(),
(),
> {
::subxt::ext::subxt_core::storage::address::StaticAddress::new_static(
"TechCollective",
"Voting",
(
::subxt::ext::subxt_core::storage::address::StaticStorageKey::new(_0),
::subxt::ext::subxt_core::storage::address::StaticStorageKey::new(_1),
),
[
180u8, 146u8, 236u8, 178u8, 30u8, 50u8, 161u8, 50u8, 140u8, 110u8,
220u8, 1u8, 109u8, 209u8, 17u8, 94u8, 234u8, 223u8, 222u8, 177u8,
243u8, 194u8, 246u8, 48u8, 178u8, 86u8, 30u8, 185u8, 56u8, 206u8,
175u8, 18u8,
],
)
}
pub fn voting_cleanup_iter(
&self,
) -> ::subxt::ext::subxt_core::storage::address::StaticAddress<
(),
types::voting_cleanup::VotingCleanup,
(),
(),
::subxt::ext::subxt_core::utils::Yes,
> {
::subxt::ext::subxt_core::storage::address::StaticAddress::new_static(
"TechCollective",
"VotingCleanup",
(),
[
223u8, 130u8, 79u8, 104u8, 94u8, 221u8, 222u8, 72u8, 187u8, 95u8,
231u8, 59u8, 28u8, 119u8, 191u8, 63u8, 40u8, 186u8, 58u8, 254u8, 14u8,
233u8, 152u8, 36u8, 2u8, 231u8, 120u8, 13u8, 120u8, 211u8, 232u8, 11u8,
],
)
}
pub fn voting_cleanup(
&self,
_0: types::voting_cleanup::Param0,
) -> ::subxt::ext::subxt_core::storage::address::StaticAddress<
::subxt::ext::subxt_core::storage::address::StaticStorageKey<
types::voting_cleanup::Param0,
>,
types::voting_cleanup::VotingCleanup,
::subxt::ext::subxt_core::utils::Yes,
(),
(),
> {
::subxt::ext::subxt_core::storage::address::StaticAddress::new_static(
"TechCollective",
"VotingCleanup",
::subxt::ext::subxt_core::storage::address::StaticStorageKey::new(_0),
[
223u8, 130u8, 79u8, 104u8, 94u8, 221u8, 222u8, 72u8, 187u8, 95u8,
231u8, 59u8, 28u8, 119u8, 191u8, 63u8, 40u8, 186u8, 58u8, 254u8, 14u8,
233u8, 152u8, 36u8, 2u8, 231u8, 120u8, 13u8, 120u8, 211u8, 232u8, 11u8,
],
)
}
}
}
}
pub mod tech_referenda {
use super::{root_mod, runtime_types};
#[doc = "The `Error` enum of this pallet."]
pub type Error = runtime_types::pallet_referenda::pallet::Error;
#[doc = "Contains a variant per dispatchable extrinsic that this pallet has."]
pub type Call = runtime_types::pallet_referenda::pallet::Call;
pub mod calls {
use super::{root_mod, runtime_types};
type DispatchError = runtime_types::sp_runtime::DispatchError;
pub mod types {
use super::runtime_types;
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode"
)]
#[doc = "Propose a referendum on a privileged action."]
#[doc = ""]
#[doc = "- `origin`: must be `SubmitOrigin` and the account must have `SubmissionDeposit` funds"]
#[doc = " available."]
#[doc = "- `proposal_origin`: The origin from which the proposal should be executed."]
#[doc = "- `proposal`: The proposal."]
#[doc = "- `enactment_moment`: The moment that the proposal should be enacted."]
#[doc = ""]
#[doc = "Emits `Submitted`."]
pub struct Submit {
pub proposal_origin:
::subxt::ext::subxt_core::alloc::boxed::Box<submit::ProposalOrigin>,
pub proposal: submit::Proposal,
pub enactment_moment: submit::EnactmentMoment,
}
pub mod submit {
use super::runtime_types;
pub type ProposalOrigin = runtime_types::quantus_runtime::OriginCaller;
pub type Proposal = runtime_types::frame_support::traits::preimages::Bounded<
runtime_types::quantus_runtime::RuntimeCall,
runtime_types::sp_runtime::traits::BlakeTwo256,
>;
pub type EnactmentMoment =
runtime_types::frame_support::traits::schedule::DispatchTime<
::core::primitive::u32,
>;
}
impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for Submit {
const PALLET: &'static str = "TechReferenda";
const CALL: &'static str = "submit";
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode"
)]
#[doc = "Post the Decision Deposit for a referendum."]
#[doc = ""]
#[doc = "- `origin`: must be `Signed` and the account must have funds available for the"]
#[doc = " referendum's track's Decision Deposit."]
#[doc = "- `index`: The index of the submitted referendum whose Decision Deposit is yet to be"]
#[doc = " posted."]
#[doc = ""]
#[doc = "Emits `DecisionDepositPlaced`."]
pub struct PlaceDecisionDeposit {
pub index: place_decision_deposit::Index,
}
pub mod place_decision_deposit {
use super::runtime_types;
pub type Index = ::core::primitive::u32;
}
impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for PlaceDecisionDeposit {
const PALLET: &'static str = "TechReferenda";
const CALL: &'static str = "place_decision_deposit";
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode"
)]
#[doc = "Refund the Decision Deposit for a closed referendum back to the depositor."]
#[doc = ""]
#[doc = "- `origin`: must be `Signed` or `Root`."]
#[doc = "- `index`: The index of a closed referendum whose Decision Deposit has not yet been"]
#[doc = " refunded."]
#[doc = ""]
#[doc = "Emits `DecisionDepositRefunded`."]
pub struct RefundDecisionDeposit {
pub index: refund_decision_deposit::Index,
}
pub mod refund_decision_deposit {
use super::runtime_types;
pub type Index = ::core::primitive::u32;
}
impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for RefundDecisionDeposit {
const PALLET: &'static str = "TechReferenda";
const CALL: &'static str = "refund_decision_deposit";
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode"
)]
#[doc = "Cancel an ongoing referendum."]
#[doc = ""]
#[doc = "- `origin`: must be the `CancelOrigin`."]
#[doc = "- `index`: The index of the referendum to be cancelled."]
#[doc = ""]
#[doc = "Emits `Cancelled`."]
pub struct Cancel {
pub index: cancel::Index,
}
pub mod cancel {
use super::runtime_types;
pub type Index = ::core::primitive::u32;
}
impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for Cancel {
const PALLET: &'static str = "TechReferenda";
const CALL: &'static str = "cancel";
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode"
)]
#[doc = "Cancel an ongoing referendum and slash the deposits."]
#[doc = ""]
#[doc = "- `origin`: must be the `KillOrigin`."]
#[doc = "- `index`: The index of the referendum to be cancelled."]
#[doc = ""]
#[doc = "Emits `Killed` and `DepositSlashed`."]
pub struct Kill {
pub index: kill::Index,
}
pub mod kill {
use super::runtime_types;
pub type Index = ::core::primitive::u32;
}
impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for Kill {
const PALLET: &'static str = "TechReferenda";
const CALL: &'static str = "kill";
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode"
)]
#[doc = "Advance a referendum onto its next logical state. Only used internally."]
#[doc = ""]
#[doc = "- `origin`: must be `Root`."]
#[doc = "- `index`: the referendum to be advanced."]
pub struct NudgeReferendum {
pub index: nudge_referendum::Index,
}
pub mod nudge_referendum {
use super::runtime_types;
pub type Index = ::core::primitive::u32;
}
impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for NudgeReferendum {
const PALLET: &'static str = "TechReferenda";
const CALL: &'static str = "nudge_referendum";
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode"
)]
#[doc = "Advance a track onto its next logical state. Only used internally."]
#[doc = ""]
#[doc = "- `origin`: must be `Root`."]
#[doc = "- `track`: the track to be advanced."]
#[doc = ""]
#[doc = "Action item for when there is now one fewer referendum in the deciding phase and the"]
#[doc = "`DecidingCount` is not yet updated. This means that we should either:"]
#[doc = "- begin deciding another referendum (and leave `DecidingCount` alone); or"]
#[doc = "- decrement `DecidingCount`."]
pub struct OneFewerDeciding {
pub track: one_fewer_deciding::Track,
}
pub mod one_fewer_deciding {
use super::runtime_types;
pub type Track = ::core::primitive::u16;
}
impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for OneFewerDeciding {
const PALLET: &'static str = "TechReferenda";
const CALL: &'static str = "one_fewer_deciding";
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode"
)]
#[doc = "Refund the Submission Deposit for a closed referendum back to the depositor."]
#[doc = ""]
#[doc = "- `origin`: must be `Signed` or `Root`."]
#[doc = "- `index`: The index of a closed referendum whose Submission Deposit has not yet been"]
#[doc = " refunded."]
#[doc = ""]
#[doc = "Emits `SubmissionDepositRefunded`."]
pub struct RefundSubmissionDeposit {
pub index: refund_submission_deposit::Index,
}
pub mod refund_submission_deposit {
use super::runtime_types;
pub type Index = ::core::primitive::u32;
}
impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for RefundSubmissionDeposit {
const PALLET: &'static str = "TechReferenda";
const CALL: &'static str = "refund_submission_deposit";
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode"
)]
#[doc = "Set or clear metadata of a referendum."]
#[doc = ""]
#[doc = "Parameters:"]
#[doc = "- `origin`: Must be `Signed` by a creator of a referendum or by anyone to clear a"]
#[doc = " metadata of a finished referendum."]
#[doc = "- `index`: The index of a referendum to set or clear metadata for."]
#[doc = "- `maybe_hash`: The hash of an on-chain stored preimage. `None` to clear a metadata."]
pub struct SetMetadata {
pub index: set_metadata::Index,
pub maybe_hash: set_metadata::MaybeHash,
}
pub mod set_metadata {
use super::runtime_types;
pub type Index = ::core::primitive::u32;
pub type MaybeHash =
::core::option::Option<::subxt::ext::subxt_core::utils::H256>;
}
impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for SetMetadata {
const PALLET: &'static str = "TechReferenda";
const CALL: &'static str = "set_metadata";
}
}
pub struct TransactionApi;
impl TransactionApi {
#[doc = "Propose a referendum on a privileged action."]
#[doc = ""]
#[doc = "- `origin`: must be `SubmitOrigin` and the account must have `SubmissionDeposit` funds"]
#[doc = " available."]
#[doc = "- `proposal_origin`: The origin from which the proposal should be executed."]
#[doc = "- `proposal`: The proposal."]
#[doc = "- `enactment_moment`: The moment that the proposal should be enacted."]
#[doc = ""]
#[doc = "Emits `Submitted`."]
pub fn submit(
&self,
proposal_origin: types::submit::ProposalOrigin,
proposal: types::submit::Proposal,
enactment_moment: types::submit::EnactmentMoment,
) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload<types::Submit> {
::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static(
"TechReferenda",
"submit",
types::Submit {
proposal_origin: ::subxt::ext::subxt_core::alloc::boxed::Box::new(
proposal_origin,
),
proposal,
enactment_moment,
},
[
0u8, 18u8, 14u8, 253u8, 33u8, 212u8, 33u8, 173u8, 241u8, 29u8, 88u8,
160u8, 111u8, 21u8, 6u8, 234u8, 249u8, 230u8, 222u8, 119u8, 161u8,
114u8, 43u8, 126u8, 164u8, 140u8, 199u8, 39u8, 2u8, 64u8, 132u8, 34u8,
],
)
}
#[doc = "Post the Decision Deposit for a referendum."]
#[doc = ""]
#[doc = "- `origin`: must be `Signed` and the account must have funds available for the"]
#[doc = " referendum's track's Decision Deposit."]
#[doc = "- `index`: The index of the submitted referendum whose Decision Deposit is yet to be"]
#[doc = " posted."]
#[doc = ""]
#[doc = "Emits `DecisionDepositPlaced`."]
pub fn place_decision_deposit(
&self,
index: types::place_decision_deposit::Index,
) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload<types::PlaceDecisionDeposit>
{
::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static(
"TechReferenda",
"place_decision_deposit",
types::PlaceDecisionDeposit { index },
[
247u8, 158u8, 55u8, 191u8, 188u8, 200u8, 3u8, 47u8, 20u8, 175u8, 86u8,
203u8, 52u8, 253u8, 91u8, 131u8, 21u8, 213u8, 56u8, 68u8, 40u8, 84u8,
184u8, 30u8, 9u8, 193u8, 63u8, 182u8, 178u8, 241u8, 247u8, 220u8,
],
)
}
#[doc = "Refund the Decision Deposit for a closed referendum back to the depositor."]
#[doc = ""]
#[doc = "- `origin`: must be `Signed` or `Root`."]
#[doc = "- `index`: The index of a closed referendum whose Decision Deposit has not yet been"]
#[doc = " refunded."]
#[doc = ""]
#[doc = "Emits `DecisionDepositRefunded`."]
pub fn refund_decision_deposit(
&self,
index: types::refund_decision_deposit::Index,
) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload<
types::RefundDecisionDeposit,
> {
::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static(
"TechReferenda",
"refund_decision_deposit",
types::RefundDecisionDeposit { index },
[
159u8, 19u8, 35u8, 216u8, 114u8, 105u8, 18u8, 42u8, 148u8, 151u8,
136u8, 92u8, 117u8, 30u8, 29u8, 41u8, 238u8, 58u8, 195u8, 91u8, 115u8,
135u8, 96u8, 99u8, 154u8, 233u8, 8u8, 249u8, 145u8, 165u8, 77u8, 164u8,
],
)
}
#[doc = "Cancel an ongoing referendum."]
#[doc = ""]
#[doc = "- `origin`: must be the `CancelOrigin`."]
#[doc = "- `index`: The index of the referendum to be cancelled."]
#[doc = ""]
#[doc = "Emits `Cancelled`."]
pub fn cancel(
&self,
index: types::cancel::Index,
) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload<types::Cancel> {
::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static(
"TechReferenda",
"cancel",
types::Cancel { index },
[
55u8, 206u8, 119u8, 156u8, 238u8, 165u8, 193u8, 73u8, 242u8, 13u8,
212u8, 75u8, 136u8, 156u8, 151u8, 14u8, 35u8, 41u8, 156u8, 107u8, 60u8,
190u8, 39u8, 216u8, 8u8, 74u8, 213u8, 130u8, 160u8, 131u8, 237u8,
122u8,
],
)
}
#[doc = "Cancel an ongoing referendum and slash the deposits."]
#[doc = ""]
#[doc = "- `origin`: must be the `KillOrigin`."]
#[doc = "- `index`: The index of the referendum to be cancelled."]
#[doc = ""]
#[doc = "Emits `Killed` and `DepositSlashed`."]
pub fn kill(
&self,
index: types::kill::Index,
) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload<types::Kill> {
::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static(
"TechReferenda",
"kill",
types::Kill { index },
[
50u8, 89u8, 57u8, 0u8, 87u8, 129u8, 113u8, 140u8, 179u8, 178u8, 126u8,
198u8, 92u8, 92u8, 189u8, 64u8, 123u8, 232u8, 57u8, 227u8, 223u8,
219u8, 73u8, 217u8, 179u8, 44u8, 210u8, 125u8, 180u8, 10u8, 143u8,
48u8,
],
)
}
#[doc = "Advance a referendum onto its next logical state. Only used internally."]
#[doc = ""]
#[doc = "- `origin`: must be `Root`."]
#[doc = "- `index`: the referendum to be advanced."]
pub fn nudge_referendum(
&self,
index: types::nudge_referendum::Index,
) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload<types::NudgeReferendum>
{
::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static(
"TechReferenda",
"nudge_referendum",
types::NudgeReferendum { index },
[
75u8, 99u8, 172u8, 30u8, 170u8, 150u8, 211u8, 229u8, 249u8, 128u8,
194u8, 246u8, 100u8, 142u8, 193u8, 184u8, 232u8, 81u8, 29u8, 17u8,
99u8, 91u8, 236u8, 85u8, 230u8, 226u8, 57u8, 115u8, 45u8, 170u8, 54u8,
213u8,
],
)
}
#[doc = "Advance a track onto its next logical state. Only used internally."]
#[doc = ""]
#[doc = "- `origin`: must be `Root`."]
#[doc = "- `track`: the track to be advanced."]
#[doc = ""]
#[doc = "Action item for when there is now one fewer referendum in the deciding phase and the"]
#[doc = "`DecidingCount` is not yet updated. This means that we should either:"]
#[doc = "- begin deciding another referendum (and leave `DecidingCount` alone); or"]
#[doc = "- decrement `DecidingCount`."]
pub fn one_fewer_deciding(
&self,
track: types::one_fewer_deciding::Track,
) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload<types::OneFewerDeciding>
{
::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static(
"TechReferenda",
"one_fewer_deciding",
types::OneFewerDeciding { track },
[
15u8, 84u8, 79u8, 231u8, 21u8, 239u8, 244u8, 143u8, 183u8, 215u8,
181u8, 25u8, 225u8, 195u8, 95u8, 171u8, 17u8, 156u8, 182u8, 128u8,
111u8, 40u8, 151u8, 102u8, 196u8, 55u8, 36u8, 212u8, 89u8, 190u8,
131u8, 167u8,
],
)
}
#[doc = "Refund the Submission Deposit for a closed referendum back to the depositor."]
#[doc = ""]
#[doc = "- `origin`: must be `Signed` or `Root`."]
#[doc = "- `index`: The index of a closed referendum whose Submission Deposit has not yet been"]
#[doc = " refunded."]
#[doc = ""]
#[doc = "Emits `SubmissionDepositRefunded`."]
pub fn refund_submission_deposit(
&self,
index: types::refund_submission_deposit::Index,
) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload<
types::RefundSubmissionDeposit,
> {
::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static(
"TechReferenda",
"refund_submission_deposit",
types::RefundSubmissionDeposit { index },
[
20u8, 217u8, 115u8, 6u8, 1u8, 60u8, 54u8, 136u8, 35u8, 41u8, 38u8,
23u8, 85u8, 100u8, 141u8, 126u8, 30u8, 160u8, 61u8, 46u8, 134u8, 98u8,
82u8, 38u8, 211u8, 124u8, 208u8, 222u8, 210u8, 10u8, 155u8, 122u8,
],
)
}
#[doc = "Set or clear metadata of a referendum."]
#[doc = ""]
#[doc = "Parameters:"]
#[doc = "- `origin`: Must be `Signed` by a creator of a referendum or by anyone to clear a"]
#[doc = " metadata of a finished referendum."]
#[doc = "- `index`: The index of a referendum to set or clear metadata for."]
#[doc = "- `maybe_hash`: The hash of an on-chain stored preimage. `None` to clear a metadata."]
pub fn set_metadata(
&self,
index: types::set_metadata::Index,
maybe_hash: types::set_metadata::MaybeHash,
) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload<types::SetMetadata> {
::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static(
"TechReferenda",
"set_metadata",
types::SetMetadata { index, maybe_hash },
[
207u8, 29u8, 146u8, 233u8, 219u8, 205u8, 88u8, 118u8, 106u8, 61u8,
124u8, 101u8, 2u8, 41u8, 169u8, 70u8, 114u8, 189u8, 162u8, 118u8, 1u8,
108u8, 234u8, 98u8, 245u8, 245u8, 183u8, 126u8, 89u8, 13u8, 112u8,
88u8,
],
)
}
}
}
#[doc = "The `Event` enum of this pallet"]
pub type Event = runtime_types::pallet_referenda::pallet::Event2;
pub mod events {
use super::runtime_types;
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")]
#[doc = "A referendum has been submitted."]
pub struct Submitted {
pub index: submitted::Index,
pub track: submitted::Track,
pub proposal: submitted::Proposal,
}
pub mod submitted {
use super::runtime_types;
pub type Index = ::core::primitive::u32;
pub type Track = ::core::primitive::u16;
pub type Proposal = runtime_types::frame_support::traits::preimages::Bounded<
runtime_types::quantus_runtime::RuntimeCall,
runtime_types::sp_runtime::traits::BlakeTwo256,
>;
}
impl ::subxt::ext::subxt_core::events::StaticEvent for Submitted {
const PALLET: &'static str = "TechReferenda";
const EVENT: &'static str = "Submitted";
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")]
#[doc = "The decision deposit has been placed."]
pub struct DecisionDepositPlaced {
pub index: decision_deposit_placed::Index,
pub who: decision_deposit_placed::Who,
pub amount: decision_deposit_placed::Amount,
}
pub mod decision_deposit_placed {
use super::runtime_types;
pub type Index = ::core::primitive::u32;
pub type Who = ::subxt::ext::subxt_core::utils::AccountId32;
pub type Amount = ::core::primitive::u128;
}
impl ::subxt::ext::subxt_core::events::StaticEvent for DecisionDepositPlaced {
const PALLET: &'static str = "TechReferenda";
const EVENT: &'static str = "DecisionDepositPlaced";
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")]
#[doc = "The decision deposit has been refunded."]
pub struct DecisionDepositRefunded {
pub index: decision_deposit_refunded::Index,
pub who: decision_deposit_refunded::Who,
pub amount: decision_deposit_refunded::Amount,
}
pub mod decision_deposit_refunded {
use super::runtime_types;
pub type Index = ::core::primitive::u32;
pub type Who = ::subxt::ext::subxt_core::utils::AccountId32;
pub type Amount = ::core::primitive::u128;
}
impl ::subxt::ext::subxt_core::events::StaticEvent for DecisionDepositRefunded {
const PALLET: &'static str = "TechReferenda";
const EVENT: &'static str = "DecisionDepositRefunded";
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")]
#[doc = "A deposit has been slashed."]
pub struct DepositSlashed {
pub who: deposit_slashed::Who,
pub amount: deposit_slashed::Amount,
}
pub mod deposit_slashed {
use super::runtime_types;
pub type Who = ::subxt::ext::subxt_core::utils::AccountId32;
pub type Amount = ::core::primitive::u128;
}
impl ::subxt::ext::subxt_core::events::StaticEvent for DepositSlashed {
const PALLET: &'static str = "TechReferenda";
const EVENT: &'static str = "DepositSlashed";
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")]
#[doc = "A referendum has moved into the deciding phase."]
pub struct DecisionStarted {
pub index: decision_started::Index,
pub track: decision_started::Track,
pub proposal: decision_started::Proposal,
pub tally: decision_started::Tally,
}
pub mod decision_started {
use super::runtime_types;
pub type Index = ::core::primitive::u32;
pub type Track = ::core::primitive::u16;
pub type Proposal = runtime_types::frame_support::traits::preimages::Bounded<
runtime_types::quantus_runtime::RuntimeCall,
runtime_types::sp_runtime::traits::BlakeTwo256,
>;
pub type Tally = runtime_types::pallet_ranked_collective::Tally;
}
impl ::subxt::ext::subxt_core::events::StaticEvent for DecisionStarted {
const PALLET: &'static str = "TechReferenda";
const EVENT: &'static str = "DecisionStarted";
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")]
pub struct ConfirmStarted {
pub index: confirm_started::Index,
}
pub mod confirm_started {
use super::runtime_types;
pub type Index = ::core::primitive::u32;
}
impl ::subxt::ext::subxt_core::events::StaticEvent for ConfirmStarted {
const PALLET: &'static str = "TechReferenda";
const EVENT: &'static str = "ConfirmStarted";
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")]
pub struct ConfirmAborted {
pub index: confirm_aborted::Index,
}
pub mod confirm_aborted {
use super::runtime_types;
pub type Index = ::core::primitive::u32;
}
impl ::subxt::ext::subxt_core::events::StaticEvent for ConfirmAborted {
const PALLET: &'static str = "TechReferenda";
const EVENT: &'static str = "ConfirmAborted";
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")]
#[doc = "A referendum has ended its confirmation phase and is ready for approval."]
pub struct Confirmed {
pub index: confirmed::Index,
pub tally: confirmed::Tally,
}
pub mod confirmed {
use super::runtime_types;
pub type Index = ::core::primitive::u32;
pub type Tally = runtime_types::pallet_ranked_collective::Tally;
}
impl ::subxt::ext::subxt_core::events::StaticEvent for Confirmed {
const PALLET: &'static str = "TechReferenda";
const EVENT: &'static str = "Confirmed";
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")]
#[doc = "A referendum has been approved and its proposal has been scheduled."]
pub struct Approved {
pub index: approved::Index,
}
pub mod approved {
use super::runtime_types;
pub type Index = ::core::primitive::u32;
}
impl ::subxt::ext::subxt_core::events::StaticEvent for Approved {
const PALLET: &'static str = "TechReferenda";
const EVENT: &'static str = "Approved";
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")]
#[doc = "A proposal has been rejected by referendum."]
pub struct Rejected {
pub index: rejected::Index,
pub tally: rejected::Tally,
}
pub mod rejected {
use super::runtime_types;
pub type Index = ::core::primitive::u32;
pub type Tally = runtime_types::pallet_ranked_collective::Tally;
}
impl ::subxt::ext::subxt_core::events::StaticEvent for Rejected {
const PALLET: &'static str = "TechReferenda";
const EVENT: &'static str = "Rejected";
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")]
#[doc = "A referendum has been timed out without being decided."]
pub struct TimedOut {
pub index: timed_out::Index,
pub tally: timed_out::Tally,
}
pub mod timed_out {
use super::runtime_types;
pub type Index = ::core::primitive::u32;
pub type Tally = runtime_types::pallet_ranked_collective::Tally;
}
impl ::subxt::ext::subxt_core::events::StaticEvent for TimedOut {
const PALLET: &'static str = "TechReferenda";
const EVENT: &'static str = "TimedOut";
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")]
#[doc = "A referendum has been cancelled."]
pub struct Cancelled {
pub index: cancelled::Index,
pub tally: cancelled::Tally,
}
pub mod cancelled {
use super::runtime_types;
pub type Index = ::core::primitive::u32;
pub type Tally = runtime_types::pallet_ranked_collective::Tally;
}
impl ::subxt::ext::subxt_core::events::StaticEvent for Cancelled {
const PALLET: &'static str = "TechReferenda";
const EVENT: &'static str = "Cancelled";
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")]
#[doc = "A referendum has been killed."]
pub struct Killed {
pub index: killed::Index,
pub tally: killed::Tally,
}
pub mod killed {
use super::runtime_types;
pub type Index = ::core::primitive::u32;
pub type Tally = runtime_types::pallet_ranked_collective::Tally;
}
impl ::subxt::ext::subxt_core::events::StaticEvent for Killed {
const PALLET: &'static str = "TechReferenda";
const EVENT: &'static str = "Killed";
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")]
#[doc = "The submission deposit has been refunded."]
pub struct SubmissionDepositRefunded {
pub index: submission_deposit_refunded::Index,
pub who: submission_deposit_refunded::Who,
pub amount: submission_deposit_refunded::Amount,
}
pub mod submission_deposit_refunded {
use super::runtime_types;
pub type Index = ::core::primitive::u32;
pub type Who = ::subxt::ext::subxt_core::utils::AccountId32;
pub type Amount = ::core::primitive::u128;
}
impl ::subxt::ext::subxt_core::events::StaticEvent for SubmissionDepositRefunded {
const PALLET: &'static str = "TechReferenda";
const EVENT: &'static str = "SubmissionDepositRefunded";
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")]
#[doc = "Metadata for a referendum has been set."]
pub struct MetadataSet {
pub index: metadata_set::Index,
pub hash: metadata_set::Hash,
}
pub mod metadata_set {
use super::runtime_types;
pub type Index = ::core::primitive::u32;
pub type Hash = ::subxt::ext::subxt_core::utils::H256;
}
impl ::subxt::ext::subxt_core::events::StaticEvent for MetadataSet {
const PALLET: &'static str = "TechReferenda";
const EVENT: &'static str = "MetadataSet";
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")]
#[doc = "Metadata for a referendum has been cleared."]
pub struct MetadataCleared {
pub index: metadata_cleared::Index,
pub hash: metadata_cleared::Hash,
}
pub mod metadata_cleared {
use super::runtime_types;
pub type Index = ::core::primitive::u32;
pub type Hash = ::subxt::ext::subxt_core::utils::H256;
}
impl ::subxt::ext::subxt_core::events::StaticEvent for MetadataCleared {
const PALLET: &'static str = "TechReferenda";
const EVENT: &'static str = "MetadataCleared";
}
}
pub mod storage {
use super::runtime_types;
pub mod types {
use super::runtime_types;
pub mod referendum_count {
use super::runtime_types;
pub type ReferendumCount = ::core::primitive::u32;
}
pub mod referendum_info_for {
use super::runtime_types;
pub type ReferendumInfoFor =
runtime_types::pallet_referenda::types::ReferendumInfo<
::core::primitive::u16,
runtime_types::quantus_runtime::OriginCaller,
::core::primitive::u32,
runtime_types::frame_support::traits::preimages::Bounded<
runtime_types::quantus_runtime::RuntimeCall,
runtime_types::sp_runtime::traits::BlakeTwo256,
>,
::core::primitive::u128,
runtime_types::pallet_ranked_collective::Tally,
::subxt::ext::subxt_core::utils::AccountId32,
(
runtime_types::qp_scheduler::BlockNumberOrTimestamp<
::core::primitive::u32,
::core::primitive::u64,
>,
::core::primitive::u32,
),
>;
pub type Param0 = ::core::primitive::u32;
}
pub mod track_queue {
use super::runtime_types;
pub type TrackQueue =
runtime_types::bounded_collections::bounded_vec::BoundedVec<(
::core::primitive::u32,
::core::primitive::u32,
)>;
pub type Param0 = ::core::primitive::u16;
}
pub mod deciding_count {
use super::runtime_types;
pub type DecidingCount = ::core::primitive::u32;
pub type Param0 = ::core::primitive::u16;
}
pub mod metadata_of {
use super::runtime_types;
pub type MetadataOf = ::subxt::ext::subxt_core::utils::H256;
pub type Param0 = ::core::primitive::u32;
}
}
pub struct StorageApi;
impl StorageApi {
#[doc = " The next free referendum index, aka the number of referenda started so far."]
pub fn referendum_count(
&self,
) -> ::subxt::ext::subxt_core::storage::address::StaticAddress<
(),
types::referendum_count::ReferendumCount,
::subxt::ext::subxt_core::utils::Yes,
::subxt::ext::subxt_core::utils::Yes,
(),
> {
::subxt::ext::subxt_core::storage::address::StaticAddress::new_static(
"TechReferenda",
"ReferendumCount",
(),
[
64u8, 145u8, 232u8, 153u8, 121u8, 87u8, 128u8, 253u8, 170u8, 192u8,
139u8, 18u8, 0u8, 33u8, 243u8, 11u8, 238u8, 222u8, 244u8, 5u8, 247u8,
198u8, 149u8, 31u8, 122u8, 208u8, 86u8, 179u8, 166u8, 167u8, 93u8,
67u8,
],
)
}
#[doc = " Information concerning any given referendum."]
pub fn referendum_info_for_iter(
&self,
) -> ::subxt::ext::subxt_core::storage::address::StaticAddress<
(),
types::referendum_info_for::ReferendumInfoFor,
(),
(),
::subxt::ext::subxt_core::utils::Yes,
> {
::subxt::ext::subxt_core::storage::address::StaticAddress::new_static(
"TechReferenda",
"ReferendumInfoFor",
(),
[
242u8, 125u8, 226u8, 99u8, 67u8, 226u8, 43u8, 159u8, 222u8, 238u8,
72u8, 38u8, 45u8, 26u8, 95u8, 64u8, 141u8, 140u8, 37u8, 44u8, 101u8,
67u8, 46u8, 66u8, 45u8, 93u8, 41u8, 156u8, 63u8, 59u8, 9u8, 29u8,
],
)
}
#[doc = " Information concerning any given referendum."]
pub fn referendum_info_for(
&self,
_0: types::referendum_info_for::Param0,
) -> ::subxt::ext::subxt_core::storage::address::StaticAddress<
::subxt::ext::subxt_core::storage::address::StaticStorageKey<
types::referendum_info_for::Param0,
>,
types::referendum_info_for::ReferendumInfoFor,
::subxt::ext::subxt_core::utils::Yes,
(),
(),
> {
::subxt::ext::subxt_core::storage::address::StaticAddress::new_static(
"TechReferenda",
"ReferendumInfoFor",
::subxt::ext::subxt_core::storage::address::StaticStorageKey::new(_0),
[
242u8, 125u8, 226u8, 99u8, 67u8, 226u8, 43u8, 159u8, 222u8, 238u8,
72u8, 38u8, 45u8, 26u8, 95u8, 64u8, 141u8, 140u8, 37u8, 44u8, 101u8,
67u8, 46u8, 66u8, 45u8, 93u8, 41u8, 156u8, 63u8, 59u8, 9u8, 29u8,
],
)
}
#[doc = " The sorted list of referenda ready to be decided but not yet being decided, ordered by"]
#[doc = " conviction-weighted approvals."]
#[doc = ""]
#[doc = " This should be empty if `DecidingCount` is less than `TrackInfo::max_deciding`."]
pub fn track_queue_iter(
&self,
) -> ::subxt::ext::subxt_core::storage::address::StaticAddress<
(),
types::track_queue::TrackQueue,
(),
::subxt::ext::subxt_core::utils::Yes,
::subxt::ext::subxt_core::utils::Yes,
> {
::subxt::ext::subxt_core::storage::address::StaticAddress::new_static(
"TechReferenda",
"TrackQueue",
(),
[
187u8, 113u8, 225u8, 99u8, 159u8, 207u8, 182u8, 41u8, 116u8, 136u8,
119u8, 196u8, 152u8, 50u8, 192u8, 22u8, 171u8, 182u8, 237u8, 228u8,
80u8, 255u8, 227u8, 141u8, 155u8, 83u8, 71u8, 131u8, 118u8, 109u8,
186u8, 65u8,
],
)
}
#[doc = " The sorted list of referenda ready to be decided but not yet being decided, ordered by"]
#[doc = " conviction-weighted approvals."]
#[doc = ""]
#[doc = " This should be empty if `DecidingCount` is less than `TrackInfo::max_deciding`."]
pub fn track_queue(
&self,
_0: types::track_queue::Param0,
) -> ::subxt::ext::subxt_core::storage::address::StaticAddress<
::subxt::ext::subxt_core::storage::address::StaticStorageKey<
types::track_queue::Param0,
>,
types::track_queue::TrackQueue,
::subxt::ext::subxt_core::utils::Yes,
::subxt::ext::subxt_core::utils::Yes,
(),
> {
::subxt::ext::subxt_core::storage::address::StaticAddress::new_static(
"TechReferenda",
"TrackQueue",
::subxt::ext::subxt_core::storage::address::StaticStorageKey::new(_0),
[
187u8, 113u8, 225u8, 99u8, 159u8, 207u8, 182u8, 41u8, 116u8, 136u8,
119u8, 196u8, 152u8, 50u8, 192u8, 22u8, 171u8, 182u8, 237u8, 228u8,
80u8, 255u8, 227u8, 141u8, 155u8, 83u8, 71u8, 131u8, 118u8, 109u8,
186u8, 65u8,
],
)
}
#[doc = " The number of referenda being decided currently."]
pub fn deciding_count_iter(
&self,
) -> ::subxt::ext::subxt_core::storage::address::StaticAddress<
(),
types::deciding_count::DecidingCount,
(),
::subxt::ext::subxt_core::utils::Yes,
::subxt::ext::subxt_core::utils::Yes,
> {
::subxt::ext::subxt_core::storage::address::StaticAddress::new_static(
"TechReferenda",
"DecidingCount",
(),
[
203u8, 89u8, 158u8, 179u8, 194u8, 82u8, 248u8, 162u8, 93u8, 140u8,
146u8, 51u8, 110u8, 232u8, 51u8, 1u8, 128u8, 212u8, 199u8, 14u8, 182u8,
103u8, 47u8, 252u8, 126u8, 108u8, 166u8, 69u8, 252u8, 179u8, 126u8,
245u8,
],
)
}
#[doc = " The number of referenda being decided currently."]
pub fn deciding_count(
&self,
_0: types::deciding_count::Param0,
) -> ::subxt::ext::subxt_core::storage::address::StaticAddress<
::subxt::ext::subxt_core::storage::address::StaticStorageKey<
types::deciding_count::Param0,
>,
types::deciding_count::DecidingCount,
::subxt::ext::subxt_core::utils::Yes,
::subxt::ext::subxt_core::utils::Yes,
(),
> {
::subxt::ext::subxt_core::storage::address::StaticAddress::new_static(
"TechReferenda",
"DecidingCount",
::subxt::ext::subxt_core::storage::address::StaticStorageKey::new(_0),
[
203u8, 89u8, 158u8, 179u8, 194u8, 82u8, 248u8, 162u8, 93u8, 140u8,
146u8, 51u8, 110u8, 232u8, 51u8, 1u8, 128u8, 212u8, 199u8, 14u8, 182u8,
103u8, 47u8, 252u8, 126u8, 108u8, 166u8, 69u8, 252u8, 179u8, 126u8,
245u8,
],
)
}
#[doc = " The metadata is a general information concerning the referendum."]
#[doc = " The `Hash` refers to the preimage of the `Preimages` provider which can be a JSON"]
#[doc = " dump or IPFS hash of a JSON file."]
#[doc = ""]
#[doc = " Consider a garbage collection for a metadata of finished referendums to `unrequest` (remove)"]
#[doc = " large preimages."]
pub fn metadata_of_iter(
&self,
) -> ::subxt::ext::subxt_core::storage::address::StaticAddress<
(),
types::metadata_of::MetadataOf,
(),
(),
::subxt::ext::subxt_core::utils::Yes,
> {
::subxt::ext::subxt_core::storage::address::StaticAddress::new_static(
"TechReferenda",
"MetadataOf",
(),
[
159u8, 250u8, 56u8, 189u8, 247u8, 165u8, 206u8, 166u8, 91u8, 139u8,
124u8, 164u8, 25u8, 246u8, 199u8, 36u8, 159u8, 56u8, 227u8, 136u8, 4u8,
45u8, 193u8, 72u8, 200u8, 164u8, 39u8, 207u8, 224u8, 124u8, 191u8,
110u8,
],
)
}
#[doc = " The metadata is a general information concerning the referendum."]
#[doc = " The `Hash` refers to the preimage of the `Preimages` provider which can be a JSON"]
#[doc = " dump or IPFS hash of a JSON file."]
#[doc = ""]
#[doc = " Consider a garbage collection for a metadata of finished referendums to `unrequest` (remove)"]
#[doc = " large preimages."]
pub fn metadata_of(
&self,
_0: types::metadata_of::Param0,
) -> ::subxt::ext::subxt_core::storage::address::StaticAddress<
::subxt::ext::subxt_core::storage::address::StaticStorageKey<
types::metadata_of::Param0,
>,
types::metadata_of::MetadataOf,
::subxt::ext::subxt_core::utils::Yes,
(),
(),
> {
::subxt::ext::subxt_core::storage::address::StaticAddress::new_static(
"TechReferenda",
"MetadataOf",
::subxt::ext::subxt_core::storage::address::StaticStorageKey::new(_0),
[
159u8, 250u8, 56u8, 189u8, 247u8, 165u8, 206u8, 166u8, 91u8, 139u8,
124u8, 164u8, 25u8, 246u8, 199u8, 36u8, 159u8, 56u8, 227u8, 136u8, 4u8,
45u8, 193u8, 72u8, 200u8, 164u8, 39u8, 207u8, 224u8, 124u8, 191u8,
110u8,
],
)
}
}
}
pub mod constants {
use super::runtime_types;
pub struct ConstantsApi;
impl ConstantsApi {
#[doc = " The minimum amount to be used as a deposit for a public referendum proposal."]
pub fn submission_deposit(
&self,
) -> ::subxt::ext::subxt_core::constants::address::StaticAddress<
::core::primitive::u128,
> {
::subxt::ext::subxt_core::constants::address::StaticAddress::new_static(
"TechReferenda",
"SubmissionDeposit",
[
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 = " Maximum size of the referendum queue for a single track."]
pub fn max_queued(
&self,
) -> ::subxt::ext::subxt_core::constants::address::StaticAddress<
::core::primitive::u32,
> {
::subxt::ext::subxt_core::constants::address::StaticAddress::new_static(
"TechReferenda",
"MaxQueued",
[
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 number of blocks after submission that a referendum must begin being decided by."]
#[doc = " Once this passes, then anyone may cancel the referendum."]
pub fn undeciding_timeout(
&self,
) -> ::subxt::ext::subxt_core::constants::address::StaticAddress<
::core::primitive::u32,
> {
::subxt::ext::subxt_core::constants::address::StaticAddress::new_static(
"TechReferenda",
"UndecidingTimeout",
[
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 = " Quantization level for the referendum wakeup scheduler. A higher number will result in"]
#[doc = " fewer storage reads/writes needed for smaller voters, but also result in delays to the"]
#[doc = " automatic referendum status changes. Explicit servicing instructions are unaffected."]
pub fn alarm_interval(
&self,
) -> ::subxt::ext::subxt_core::constants::address::StaticAddress<
::core::primitive::u32,
> {
::subxt::ext::subxt_core::constants::address::StaticAddress::new_static(
"TechReferenda",
"AlarmInterval",
[
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 = " A list of tracks."]
#[doc = ""]
#[doc = " Note: if the tracks are dynamic, the value in the static metadata might be inaccurate."]
pub fn tracks(
&self,
) -> ::subxt::ext::subxt_core::constants::address::StaticAddress<
::subxt::ext::subxt_core::alloc::vec::Vec<(
::core::primitive::u16,
runtime_types::pallet_referenda::types::TrackDetails<
::core::primitive::u128,
::core::primitive::u32,
::subxt::ext::subxt_core::alloc::string::String,
>,
)>,
> {
::subxt::ext::subxt_core::constants::address::StaticAddress::new_static(
"TechReferenda",
"Tracks",
[
35u8, 226u8, 207u8, 234u8, 184u8, 139u8, 187u8, 184u8, 128u8, 199u8,
227u8, 15u8, 31u8, 196u8, 5u8, 207u8, 138u8, 174u8, 130u8, 201u8,
200u8, 113u8, 86u8, 93u8, 221u8, 243u8, 229u8, 24u8, 18u8, 150u8, 56u8,
159u8,
],
)
}
}
}
}
pub mod treasury_pallet {
use super::{root_mod, runtime_types};
#[doc = "The `Error` enum of this pallet."]
pub type Error = runtime_types::pallet_treasury::pallet::Error;
#[doc = "Contains a variant per dispatchable extrinsic that this pallet has."]
pub type Call = runtime_types::pallet_treasury::pallet::Call;
pub mod calls {
use super::{root_mod, runtime_types};
type DispatchError = runtime_types::sp_runtime::DispatchError;
pub mod types {
use super::runtime_types;
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode"
)]
#[doc = "Set the treasury account. Root only. Zero address is rejected (funds would be locked)."]
#[doc = ""]
#[doc = "**Important**: This only changes where *future* mining rewards are sent. Any balance"]
#[doc = "that has already accumulated in the current treasury account is NOT automatically"]
#[doc = "migrated to the new account. If you need to move existing funds, perform a separate"]
#[doc = "balance transfer (e.g., via governance proposal) after updating the account."]
pub struct SetTreasuryAccount {
pub account: set_treasury_account::Account,
}
pub mod set_treasury_account {
use super::runtime_types;
pub type Account = ::subxt::ext::subxt_core::utils::AccountId32;
}
impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for SetTreasuryAccount {
const PALLET: &'static str = "TreasuryPallet";
const CALL: &'static str = "set_treasury_account";
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode"
)]
#[doc = "Set the treasury portion (Permill, 0–100%). Root only."]
pub struct SetTreasuryPortion {
pub portion: set_treasury_portion::Portion,
}
pub mod set_treasury_portion {
use super::runtime_types;
pub type Portion = runtime_types::sp_arithmetic::per_things::Permill;
}
impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for SetTreasuryPortion {
const PALLET: &'static str = "TreasuryPallet";
const CALL: &'static str = "set_treasury_portion";
}
}
pub struct TransactionApi;
impl TransactionApi {
#[doc = "Set the treasury account. Root only. Zero address is rejected (funds would be locked)."]
#[doc = ""]
#[doc = "**Important**: This only changes where *future* mining rewards are sent. Any balance"]
#[doc = "that has already accumulated in the current treasury account is NOT automatically"]
#[doc = "migrated to the new account. If you need to move existing funds, perform a separate"]
#[doc = "balance transfer (e.g., via governance proposal) after updating the account."]
pub fn set_treasury_account(
&self,
account: types::set_treasury_account::Account,
) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload<types::SetTreasuryAccount>
{
::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static(
"TreasuryPallet",
"set_treasury_account",
types::SetTreasuryAccount { account },
[
221u8, 22u8, 186u8, 39u8, 76u8, 65u8, 143u8, 149u8, 126u8, 244u8,
227u8, 129u8, 16u8, 183u8, 56u8, 248u8, 82u8, 131u8, 255u8, 246u8,
243u8, 145u8, 255u8, 5u8, 125u8, 142u8, 201u8, 38u8, 185u8, 124u8,
76u8, 167u8,
],
)
}
#[doc = "Set the treasury portion (Permill, 0–100%). Root only."]
pub fn set_treasury_portion(
&self,
portion: types::set_treasury_portion::Portion,
) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload<types::SetTreasuryPortion>
{
::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static(
"TreasuryPallet",
"set_treasury_portion",
types::SetTreasuryPortion { portion },
[
226u8, 74u8, 96u8, 96u8, 120u8, 14u8, 29u8, 33u8, 85u8, 192u8, 26u8,
67u8, 86u8, 203u8, 21u8, 96u8, 127u8, 87u8, 217u8, 185u8, 8u8, 68u8,
126u8, 227u8, 38u8, 172u8, 9u8, 97u8, 172u8, 27u8, 17u8, 199u8,
],
)
}
}
}
#[doc = "The `Event` enum of this pallet"]
pub type Event = runtime_types::pallet_treasury::pallet::Event;
pub mod events {
use super::runtime_types;
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")]
#[doc = "The treasury account was updated."]
#[doc = ""]
#[doc = "Note: This only redirects where future mining rewards are sent. Any balance"]
#[doc = "accumulated in the old account remains there and is NOT automatically migrated."]
#[doc = "Use a separate balance transfer if funds need to be moved."]
pub struct TreasuryAccountUpdated {
pub old_account: treasury_account_updated::OldAccount,
pub new_account: treasury_account_updated::NewAccount,
}
pub mod treasury_account_updated {
use super::runtime_types;
pub type OldAccount =
::core::option::Option<::subxt::ext::subxt_core::utils::AccountId32>;
pub type NewAccount = ::subxt::ext::subxt_core::utils::AccountId32;
}
impl ::subxt::ext::subxt_core::events::StaticEvent for TreasuryAccountUpdated {
const PALLET: &'static str = "TreasuryPallet";
const EVENT: &'static str = "TreasuryAccountUpdated";
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")]
#[doc = "The treasury portion (share of mining rewards) was updated."]
pub struct TreasuryPortionUpdated {
pub new_portion: treasury_portion_updated::NewPortion,
}
pub mod treasury_portion_updated {
use super::runtime_types;
pub type NewPortion = runtime_types::sp_arithmetic::per_things::Permill;
}
impl ::subxt::ext::subxt_core::events::StaticEvent for TreasuryPortionUpdated {
const PALLET: &'static str = "TreasuryPallet";
const EVENT: &'static str = "TreasuryPortionUpdated";
}
}
pub mod storage {
use super::runtime_types;
pub mod types {
use super::runtime_types;
pub mod treasury_account {
use super::runtime_types;
pub type TreasuryAccount = ::subxt::ext::subxt_core::utils::AccountId32;
}
pub mod treasury_portion {
use super::runtime_types;
pub type TreasuryPortion = runtime_types::sp_arithmetic::per_things::Permill;
}
}
pub struct StorageApi;
impl StorageApi {
#[doc = " The treasury account that receives mining rewards."]
pub fn treasury_account(
&self,
) -> ::subxt::ext::subxt_core::storage::address::StaticAddress<
(),
types::treasury_account::TreasuryAccount,
::subxt::ext::subxt_core::utils::Yes,
(),
(),
> {
::subxt::ext::subxt_core::storage::address::StaticAddress::new_static(
"TreasuryPallet",
"TreasuryAccount",
(),
[
25u8, 40u8, 39u8, 114u8, 80u8, 247u8, 49u8, 5u8, 9u8, 118u8, 249u8,
36u8, 77u8, 73u8, 229u8, 167u8, 107u8, 254u8, 175u8, 199u8, 203u8,
238u8, 166u8, 158u8, 155u8, 209u8, 155u8, 219u8, 191u8, 204u8, 237u8,
227u8,
],
)
}
#[doc = " The portion of mining rewards that goes to treasury (Permill, 0–100%)."]
#[doc = " Uses OptionQuery so genesis is required. Permill allows fine granularity (e.g. 33.3%)."]
pub fn treasury_portion(
&self,
) -> ::subxt::ext::subxt_core::storage::address::StaticAddress<
(),
types::treasury_portion::TreasuryPortion,
::subxt::ext::subxt_core::utils::Yes,
(),
(),
> {
::subxt::ext::subxt_core::storage::address::StaticAddress::new_static(
"TreasuryPallet",
"TreasuryPortion",
(),
[
27u8, 148u8, 61u8, 76u8, 110u8, 174u8, 202u8, 184u8, 62u8, 134u8,
238u8, 169u8, 40u8, 112u8, 83u8, 192u8, 156u8, 67u8, 1u8, 145u8, 11u8,
88u8, 249u8, 1u8, 37u8, 163u8, 238u8, 131u8, 242u8, 232u8, 20u8, 195u8,
],
)
}
}
}
}
pub mod recovery {
use super::{root_mod, runtime_types};
#[doc = "The `Error` enum of this pallet."]
pub type Error = runtime_types::pallet_recovery::pallet::Error;
#[doc = "Contains a variant per dispatchable extrinsic that this pallet has."]
pub type Call = runtime_types::pallet_recovery::pallet::Call;
pub mod calls {
use super::{root_mod, runtime_types};
type DispatchError = runtime_types::sp_runtime::DispatchError;
pub mod types {
use super::runtime_types;
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode"
)]
#[doc = "Send a call through a recovered account."]
#[doc = ""]
#[doc = "The dispatch origin for this call must be _Signed_ and registered to"]
#[doc = "be able to make calls on behalf of the recovered account."]
#[doc = ""]
#[doc = "Parameters:"]
#[doc = "- `account`: The recovered account you want to make a call on-behalf-of."]
#[doc = "- `call`: The call you want to make with the recovered account."]
pub struct AsRecovered {
pub account: as_recovered::Account,
pub call: ::subxt::ext::subxt_core::alloc::boxed::Box<as_recovered::Call>,
}
pub mod as_recovered {
use super::runtime_types;
pub type Account = ::subxt::ext::subxt_core::utils::MultiAddress<
::subxt::ext::subxt_core::utils::AccountId32,
(),
>;
pub type Call = runtime_types::quantus_runtime::RuntimeCall;
}
impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for AsRecovered {
const PALLET: &'static str = "Recovery";
const CALL: &'static str = "as_recovered";
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode"
)]
#[doc = "Allow ROOT to bypass the recovery process and set a rescuer account"]
#[doc = "for a lost account directly."]
#[doc = ""]
#[doc = "The dispatch origin for this call must be _ROOT_."]
#[doc = ""]
#[doc = "Parameters:"]
#[doc = "- `lost`: The \"lost account\" to be recovered."]
#[doc = "- `rescuer`: The \"rescuer account\" which can call as the lost account."]
pub struct SetRecovered {
pub lost: set_recovered::Lost,
pub rescuer: set_recovered::Rescuer,
}
pub mod set_recovered {
use super::runtime_types;
pub type Lost = ::subxt::ext::subxt_core::utils::MultiAddress<
::subxt::ext::subxt_core::utils::AccountId32,
(),
>;
pub type Rescuer = ::subxt::ext::subxt_core::utils::MultiAddress<
::subxt::ext::subxt_core::utils::AccountId32,
(),
>;
}
impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for SetRecovered {
const PALLET: &'static str = "Recovery";
const CALL: &'static str = "set_recovered";
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode"
)]
#[doc = "Create a recovery configuration for your account. This makes your account recoverable."]
#[doc = ""]
#[doc = "Payment: `ConfigDepositBase` + `FriendDepositFactor` * #_of_friends balance"]
#[doc = "will be reserved for storing the recovery configuration. This deposit is returned"]
#[doc = "in full when the user calls `remove_recovery`."]
#[doc = ""]
#[doc = "The dispatch origin for this call must be _Signed_."]
#[doc = ""]
#[doc = "Parameters:"]
#[doc = "- `friends`: A list of friends you trust to vouch for recovery attempts. Should be"]
#[doc = " ordered and contain no duplicate values."]
#[doc = "- `threshold`: The number of friends that must vouch for a recovery attempt before the"]
#[doc = " account can be recovered. Should be less than or equal to the length of the list of"]
#[doc = " friends."]
#[doc = "- `delay_period`: The number of blocks after a recovery attempt is initialized that"]
#[doc = " needs to pass before the account can be recovered."]
pub struct CreateRecovery {
pub friends: create_recovery::Friends,
pub threshold: create_recovery::Threshold,
pub delay_period: create_recovery::DelayPeriod,
}
pub mod create_recovery {
use super::runtime_types;
pub type Friends = ::subxt::ext::subxt_core::alloc::vec::Vec<
::subxt::ext::subxt_core::utils::AccountId32,
>;
pub type Threshold = ::core::primitive::u16;
pub type DelayPeriod = ::core::primitive::u32;
}
impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for CreateRecovery {
const PALLET: &'static str = "Recovery";
const CALL: &'static str = "create_recovery";
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode"
)]
#[doc = "Initiate the process for recovering a recoverable account."]
#[doc = ""]
#[doc = "Payment: `RecoveryDeposit` balance will be reserved for initiating the"]
#[doc = "recovery process. This deposit will always be repatriated to the account"]
#[doc = "trying to be recovered. See `close_recovery`."]
#[doc = ""]
#[doc = "The dispatch origin for this call must be _Signed_."]
#[doc = ""]
#[doc = "Parameters:"]
#[doc = "- `account`: The lost account that you want to recover. This account needs to be"]
#[doc = " recoverable (i.e. have a recovery configuration)."]
pub struct InitiateRecovery {
pub account: initiate_recovery::Account,
}
pub mod initiate_recovery {
use super::runtime_types;
pub type Account = ::subxt::ext::subxt_core::utils::MultiAddress<
::subxt::ext::subxt_core::utils::AccountId32,
(),
>;
}
impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for InitiateRecovery {
const PALLET: &'static str = "Recovery";
const CALL: &'static str = "initiate_recovery";
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode"
)]
#[doc = "Allow a \"friend\" of a recoverable account to vouch for an active recovery"]
#[doc = "process for that account."]
#[doc = ""]
#[doc = "The dispatch origin for this call must be _Signed_ and must be a \"friend\""]
#[doc = "for the recoverable account."]
#[doc = ""]
#[doc = "Parameters:"]
#[doc = "- `lost`: The lost account that you want to recover."]
#[doc = "- `rescuer`: The account trying to rescue the lost account that you want to vouch for."]
#[doc = ""]
#[doc = "The combination of these two parameters must point to an active recovery"]
#[doc = "process."]
pub struct VouchRecovery {
pub lost: vouch_recovery::Lost,
pub rescuer: vouch_recovery::Rescuer,
}
pub mod vouch_recovery {
use super::runtime_types;
pub type Lost = ::subxt::ext::subxt_core::utils::MultiAddress<
::subxt::ext::subxt_core::utils::AccountId32,
(),
>;
pub type Rescuer = ::subxt::ext::subxt_core::utils::MultiAddress<
::subxt::ext::subxt_core::utils::AccountId32,
(),
>;
}
impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for VouchRecovery {
const PALLET: &'static str = "Recovery";
const CALL: &'static str = "vouch_recovery";
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode"
)]
#[doc = "Allow a successful rescuer to claim their recovered account."]
#[doc = ""]
#[doc = "The dispatch origin for this call must be _Signed_ and must be a \"rescuer\""]
#[doc = "who has successfully completed the account recovery process: collected"]
#[doc = "`threshold` or more vouches, waited `delay_period` blocks since initiation."]
#[doc = ""]
#[doc = "Parameters:"]
#[doc = "- `account`: The lost account that you want to claim has been successfully recovered by"]
#[doc = " you."]
pub struct ClaimRecovery {
pub account: claim_recovery::Account,
}
pub mod claim_recovery {
use super::runtime_types;
pub type Account = ::subxt::ext::subxt_core::utils::MultiAddress<
::subxt::ext::subxt_core::utils::AccountId32,
(),
>;
}
impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for ClaimRecovery {
const PALLET: &'static str = "Recovery";
const CALL: &'static str = "claim_recovery";
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode"
)]
#[doc = "As the controller of a recoverable account, close an active recovery"]
#[doc = "process for your account."]
#[doc = ""]
#[doc = "Payment: By calling this function, the recoverable account will receive"]
#[doc = "the recovery deposit `RecoveryDeposit` placed by the rescuer."]
#[doc = ""]
#[doc = "The dispatch origin for this call must be _Signed_ and must be a"]
#[doc = "recoverable account with an active recovery process for it."]
#[doc = ""]
#[doc = "Parameters:"]
#[doc = "- `rescuer`: The account trying to rescue this recoverable account."]
pub struct CloseRecovery {
pub rescuer: close_recovery::Rescuer,
}
pub mod close_recovery {
use super::runtime_types;
pub type Rescuer = ::subxt::ext::subxt_core::utils::MultiAddress<
::subxt::ext::subxt_core::utils::AccountId32,
(),
>;
}
impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for CloseRecovery {
const PALLET: &'static str = "Recovery";
const CALL: &'static str = "close_recovery";
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode"
)]
#[doc = "Remove the recovery process for your account. Recovered accounts are still accessible."]
#[doc = ""]
#[doc = "NOTE: The user must make sure to call `close_recovery` on all active"]
#[doc = "recovery attempts before calling this function else it will fail."]
#[doc = ""]
#[doc = "Payment: By calling this function the recoverable account will unreserve"]
#[doc = "their recovery configuration deposit."]
#[doc = "(`ConfigDepositBase` + `FriendDepositFactor` * #_of_friends)"]
#[doc = ""]
#[doc = "The dispatch origin for this call must be _Signed_ and must be a"]
#[doc = "recoverable account (i.e. has a recovery configuration)."]
pub struct RemoveRecovery;
impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for RemoveRecovery {
const PALLET: &'static str = "Recovery";
const CALL: &'static str = "remove_recovery";
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode"
)]
#[doc = "Cancel the ability to use `as_recovered` for `account`."]
#[doc = ""]
#[doc = "The dispatch origin for this call must be _Signed_ and registered to"]
#[doc = "be able to make calls on behalf of the recovered account."]
#[doc = ""]
#[doc = "Parameters:"]
#[doc = "- `account`: The recovered account you are able to call on-behalf-of."]
pub struct CancelRecovered {
pub account: cancel_recovered::Account,
}
pub mod cancel_recovered {
use super::runtime_types;
pub type Account = ::subxt::ext::subxt_core::utils::MultiAddress<
::subxt::ext::subxt_core::utils::AccountId32,
(),
>;
}
impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for CancelRecovered {
const PALLET: &'static str = "Recovery";
const CALL: &'static str = "cancel_recovered";
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode"
)]
#[doc = "Poke deposits for recovery configurations and / or active recoveries."]
#[doc = ""]
#[doc = "This can be used by accounts to possibly lower their locked amount."]
#[doc = ""]
#[doc = "The dispatch origin for this call must be _Signed_."]
#[doc = ""]
#[doc = "Parameters:"]
#[doc = "- `maybe_account`: Optional recoverable account for which you have an active recovery"]
#[doc = "and want to adjust the deposit for the active recovery."]
#[doc = ""]
#[doc = "This function checks both recovery configuration deposit and active recovery deposits"]
#[doc = "of the caller:"]
#[doc = "- If the caller has created a recovery configuration, checks and adjusts its deposit"]
#[doc = "- If the caller has initiated any active recoveries, and provides the account in"]
#[doc = "`maybe_account`, checks and adjusts those deposits"]
#[doc = ""]
#[doc = "If any deposit is updated, the difference will be reserved/unreserved from the caller's"]
#[doc = "account."]
#[doc = ""]
#[doc = "The transaction is made free if any deposit is updated and paid otherwise."]
#[doc = ""]
#[doc = "Emits `DepositPoked` if any deposit is updated."]
#[doc = "Multiple events may be emitted in case both types of deposits are updated."]
pub struct PokeDeposit {
pub maybe_account: poke_deposit::MaybeAccount,
}
pub mod poke_deposit {
use super::runtime_types;
pub type MaybeAccount = ::core::option::Option<
::subxt::ext::subxt_core::utils::MultiAddress<
::subxt::ext::subxt_core::utils::AccountId32,
(),
>,
>;
}
impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for PokeDeposit {
const PALLET: &'static str = "Recovery";
const CALL: &'static str = "poke_deposit";
}
}
pub struct TransactionApi;
impl TransactionApi {
#[doc = "Send a call through a recovered account."]
#[doc = ""]
#[doc = "The dispatch origin for this call must be _Signed_ and registered to"]
#[doc = "be able to make calls on behalf of the recovered account."]
#[doc = ""]
#[doc = "Parameters:"]
#[doc = "- `account`: The recovered account you want to make a call on-behalf-of."]
#[doc = "- `call`: The call you want to make with the recovered account."]
pub fn as_recovered(
&self,
account: types::as_recovered::Account,
call: types::as_recovered::Call,
) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload<types::AsRecovered> {
::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static(
"Recovery",
"as_recovered",
types::AsRecovered {
account,
call: ::subxt::ext::subxt_core::alloc::boxed::Box::new(call),
},
[
71u8, 178u8, 63u8, 91u8, 78u8, 140u8, 29u8, 153u8, 6u8, 45u8, 75u8,
246u8, 87u8, 173u8, 86u8, 162u8, 22u8, 132u8, 34u8, 59u8, 39u8, 235u8,
150u8, 74u8, 227u8, 47u8, 217u8, 153u8, 37u8, 164u8, 173u8, 239u8,
],
)
}
#[doc = "Allow ROOT to bypass the recovery process and set a rescuer account"]
#[doc = "for a lost account directly."]
#[doc = ""]
#[doc = "The dispatch origin for this call must be _ROOT_."]
#[doc = ""]
#[doc = "Parameters:"]
#[doc = "- `lost`: The \"lost account\" to be recovered."]
#[doc = "- `rescuer`: The \"rescuer account\" which can call as the lost account."]
pub fn set_recovered(
&self,
lost: types::set_recovered::Lost,
rescuer: types::set_recovered::Rescuer,
) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload<types::SetRecovered> {
::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static(
"Recovery",
"set_recovered",
types::SetRecovered { lost, rescuer },
[
194u8, 147u8, 14u8, 197u8, 132u8, 185u8, 122u8, 81u8, 61u8, 14u8, 10u8,
177u8, 74u8, 184u8, 150u8, 217u8, 246u8, 149u8, 26u8, 165u8, 196u8,
83u8, 230u8, 195u8, 213u8, 40u8, 51u8, 180u8, 23u8, 90u8, 3u8, 14u8,
],
)
}
#[doc = "Create a recovery configuration for your account. This makes your account recoverable."]
#[doc = ""]
#[doc = "Payment: `ConfigDepositBase` + `FriendDepositFactor` * #_of_friends balance"]
#[doc = "will be reserved for storing the recovery configuration. This deposit is returned"]
#[doc = "in full when the user calls `remove_recovery`."]
#[doc = ""]
#[doc = "The dispatch origin for this call must be _Signed_."]
#[doc = ""]
#[doc = "Parameters:"]
#[doc = "- `friends`: A list of friends you trust to vouch for recovery attempts. Should be"]
#[doc = " ordered and contain no duplicate values."]
#[doc = "- `threshold`: The number of friends that must vouch for a recovery attempt before the"]
#[doc = " account can be recovered. Should be less than or equal to the length of the list of"]
#[doc = " friends."]
#[doc = "- `delay_period`: The number of blocks after a recovery attempt is initialized that"]
#[doc = " needs to pass before the account can be recovered."]
pub fn create_recovery(
&self,
friends: types::create_recovery::Friends,
threshold: types::create_recovery::Threshold,
delay_period: types::create_recovery::DelayPeriod,
) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload<types::CreateRecovery>
{
::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static(
"Recovery",
"create_recovery",
types::CreateRecovery { friends, threshold, delay_period },
[
36u8, 175u8, 11u8, 85u8, 95u8, 170u8, 58u8, 193u8, 102u8, 18u8, 117u8,
27u8, 199u8, 214u8, 70u8, 47u8, 129u8, 130u8, 109u8, 242u8, 240u8,
255u8, 120u8, 176u8, 40u8, 243u8, 175u8, 71u8, 3u8, 91u8, 186u8, 220u8,
],
)
}
#[doc = "Initiate the process for recovering a recoverable account."]
#[doc = ""]
#[doc = "Payment: `RecoveryDeposit` balance will be reserved for initiating the"]
#[doc = "recovery process. This deposit will always be repatriated to the account"]
#[doc = "trying to be recovered. See `close_recovery`."]
#[doc = ""]
#[doc = "The dispatch origin for this call must be _Signed_."]
#[doc = ""]
#[doc = "Parameters:"]
#[doc = "- `account`: The lost account that you want to recover. This account needs to be"]
#[doc = " recoverable (i.e. have a recovery configuration)."]
pub fn initiate_recovery(
&self,
account: types::initiate_recovery::Account,
) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload<types::InitiateRecovery>
{
::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static(
"Recovery",
"initiate_recovery",
types::InitiateRecovery { account },
[
60u8, 243u8, 229u8, 176u8, 221u8, 52u8, 44u8, 224u8, 233u8, 14u8, 89u8,
100u8, 174u8, 74u8, 38u8, 32u8, 97u8, 48u8, 53u8, 74u8, 30u8, 242u8,
19u8, 114u8, 145u8, 74u8, 69u8, 125u8, 227u8, 214u8, 144u8, 58u8,
],
)
}
#[doc = "Allow a \"friend\" of a recoverable account to vouch for an active recovery"]
#[doc = "process for that account."]
#[doc = ""]
#[doc = "The dispatch origin for this call must be _Signed_ and must be a \"friend\""]
#[doc = "for the recoverable account."]
#[doc = ""]
#[doc = "Parameters:"]
#[doc = "- `lost`: The lost account that you want to recover."]
#[doc = "- `rescuer`: The account trying to rescue the lost account that you want to vouch for."]
#[doc = ""]
#[doc = "The combination of these two parameters must point to an active recovery"]
#[doc = "process."]
pub fn vouch_recovery(
&self,
lost: types::vouch_recovery::Lost,
rescuer: types::vouch_recovery::Rescuer,
) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload<types::VouchRecovery>
{
::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static(
"Recovery",
"vouch_recovery",
types::VouchRecovery { lost, rescuer },
[
97u8, 190u8, 60u8, 15u8, 191u8, 117u8, 1u8, 217u8, 62u8, 40u8, 210u8,
1u8, 237u8, 111u8, 48u8, 196u8, 180u8, 154u8, 198u8, 12u8, 108u8, 42u8,
6u8, 234u8, 2u8, 113u8, 163u8, 111u8, 80u8, 146u8, 6u8, 73u8,
],
)
}
#[doc = "Allow a successful rescuer to claim their recovered account."]
#[doc = ""]
#[doc = "The dispatch origin for this call must be _Signed_ and must be a \"rescuer\""]
#[doc = "who has successfully completed the account recovery process: collected"]
#[doc = "`threshold` or more vouches, waited `delay_period` blocks since initiation."]
#[doc = ""]
#[doc = "Parameters:"]
#[doc = "- `account`: The lost account that you want to claim has been successfully recovered by"]
#[doc = " you."]
pub fn claim_recovery(
&self,
account: types::claim_recovery::Account,
) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload<types::ClaimRecovery>
{
::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static(
"Recovery",
"claim_recovery",
types::ClaimRecovery { account },
[
41u8, 47u8, 162u8, 88u8, 13u8, 166u8, 130u8, 146u8, 218u8, 162u8,
166u8, 33u8, 89u8, 129u8, 177u8, 178u8, 68u8, 128u8, 161u8, 229u8,
207u8, 3u8, 57u8, 35u8, 211u8, 208u8, 74u8, 155u8, 183u8, 173u8, 74u8,
56u8,
],
)
}
#[doc = "As the controller of a recoverable account, close an active recovery"]
#[doc = "process for your account."]
#[doc = ""]
#[doc = "Payment: By calling this function, the recoverable account will receive"]
#[doc = "the recovery deposit `RecoveryDeposit` placed by the rescuer."]
#[doc = ""]
#[doc = "The dispatch origin for this call must be _Signed_ and must be a"]
#[doc = "recoverable account with an active recovery process for it."]
#[doc = ""]
#[doc = "Parameters:"]
#[doc = "- `rescuer`: The account trying to rescue this recoverable account."]
pub fn close_recovery(
&self,
rescuer: types::close_recovery::Rescuer,
) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload<types::CloseRecovery>
{
::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static(
"Recovery",
"close_recovery",
types::CloseRecovery { rescuer },
[
161u8, 178u8, 117u8, 209u8, 119u8, 164u8, 135u8, 41u8, 25u8, 108u8,
194u8, 175u8, 221u8, 65u8, 184u8, 137u8, 171u8, 97u8, 204u8, 61u8,
159u8, 39u8, 192u8, 53u8, 246u8, 69u8, 113u8, 16u8, 170u8, 232u8,
163u8, 10u8,
],
)
}
#[doc = "Remove the recovery process for your account. Recovered accounts are still accessible."]
#[doc = ""]
#[doc = "NOTE: The user must make sure to call `close_recovery` on all active"]
#[doc = "recovery attempts before calling this function else it will fail."]
#[doc = ""]
#[doc = "Payment: By calling this function the recoverable account will unreserve"]
#[doc = "their recovery configuration deposit."]
#[doc = "(`ConfigDepositBase` + `FriendDepositFactor` * #_of_friends)"]
#[doc = ""]
#[doc = "The dispatch origin for this call must be _Signed_ and must be a"]
#[doc = "recoverable account (i.e. has a recovery configuration)."]
pub fn remove_recovery(
&self,
) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload<types::RemoveRecovery>
{
::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static(
"Recovery",
"remove_recovery",
types::RemoveRecovery {},
[
11u8, 38u8, 133u8, 172u8, 212u8, 252u8, 57u8, 216u8, 42u8, 202u8,
206u8, 91u8, 115u8, 91u8, 242u8, 123u8, 95u8, 196u8, 172u8, 243u8,
164u8, 1u8, 69u8, 180u8, 40u8, 68u8, 208u8, 221u8, 161u8, 250u8, 8u8,
72u8,
],
)
}
#[doc = "Cancel the ability to use `as_recovered` for `account`."]
#[doc = ""]
#[doc = "The dispatch origin for this call must be _Signed_ and registered to"]
#[doc = "be able to make calls on behalf of the recovered account."]
#[doc = ""]
#[doc = "Parameters:"]
#[doc = "- `account`: The recovered account you are able to call on-behalf-of."]
pub fn cancel_recovered(
&self,
account: types::cancel_recovered::Account,
) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload<types::CancelRecovered>
{
::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static(
"Recovery",
"cancel_recovered",
types::CancelRecovered { account },
[
100u8, 222u8, 80u8, 226u8, 187u8, 188u8, 111u8, 58u8, 190u8, 5u8,
178u8, 144u8, 37u8, 98u8, 71u8, 145u8, 28u8, 248u8, 222u8, 188u8, 53u8,
21u8, 127u8, 176u8, 249u8, 166u8, 250u8, 59u8, 170u8, 33u8, 251u8,
239u8,
],
)
}
#[doc = "Poke deposits for recovery configurations and / or active recoveries."]
#[doc = ""]
#[doc = "This can be used by accounts to possibly lower their locked amount."]
#[doc = ""]
#[doc = "The dispatch origin for this call must be _Signed_."]
#[doc = ""]
#[doc = "Parameters:"]
#[doc = "- `maybe_account`: Optional recoverable account for which you have an active recovery"]
#[doc = "and want to adjust the deposit for the active recovery."]
#[doc = ""]
#[doc = "This function checks both recovery configuration deposit and active recovery deposits"]
#[doc = "of the caller:"]
#[doc = "- If the caller has created a recovery configuration, checks and adjusts its deposit"]
#[doc = "- If the caller has initiated any active recoveries, and provides the account in"]
#[doc = "`maybe_account`, checks and adjusts those deposits"]
#[doc = ""]
#[doc = "If any deposit is updated, the difference will be reserved/unreserved from the caller's"]
#[doc = "account."]
#[doc = ""]
#[doc = "The transaction is made free if any deposit is updated and paid otherwise."]
#[doc = ""]
#[doc = "Emits `DepositPoked` if any deposit is updated."]
#[doc = "Multiple events may be emitted in case both types of deposits are updated."]
pub fn poke_deposit(
&self,
maybe_account: types::poke_deposit::MaybeAccount,
) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload<types::PokeDeposit> {
::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static(
"Recovery",
"poke_deposit",
types::PokeDeposit { maybe_account },
[
177u8, 98u8, 53u8, 15u8, 228u8, 36u8, 173u8, 55u8, 125u8, 3u8, 234u8,
70u8, 147u8, 147u8, 124u8, 86u8, 31u8, 101u8, 171u8, 56u8, 148u8,
180u8, 87u8, 149u8, 11u8, 113u8, 195u8, 35u8, 56u8, 32u8, 251u8, 56u8,
],
)
}
}
}
#[doc = "Events type."]
pub type Event = runtime_types::pallet_recovery::pallet::Event;
pub mod events {
use super::runtime_types;
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")]
#[doc = "A recovery process has been set up for an account."]
pub struct RecoveryCreated {
pub account: recovery_created::Account,
}
pub mod recovery_created {
use super::runtime_types;
pub type Account = ::subxt::ext::subxt_core::utils::AccountId32;
}
impl ::subxt::ext::subxt_core::events::StaticEvent for RecoveryCreated {
const PALLET: &'static str = "Recovery";
const EVENT: &'static str = "RecoveryCreated";
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")]
#[doc = "A recovery process has been initiated for lost account by rescuer account."]
pub struct RecoveryInitiated {
pub lost_account: recovery_initiated::LostAccount,
pub rescuer_account: recovery_initiated::RescuerAccount,
}
pub mod recovery_initiated {
use super::runtime_types;
pub type LostAccount = ::subxt::ext::subxt_core::utils::AccountId32;
pub type RescuerAccount = ::subxt::ext::subxt_core::utils::AccountId32;
}
impl ::subxt::ext::subxt_core::events::StaticEvent for RecoveryInitiated {
const PALLET: &'static str = "Recovery";
const EVENT: &'static str = "RecoveryInitiated";
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")]
#[doc = "A recovery process for lost account by rescuer account has been vouched for by sender."]
pub struct RecoveryVouched {
pub lost_account: recovery_vouched::LostAccount,
pub rescuer_account: recovery_vouched::RescuerAccount,
pub sender: recovery_vouched::Sender,
}
pub mod recovery_vouched {
use super::runtime_types;
pub type LostAccount = ::subxt::ext::subxt_core::utils::AccountId32;
pub type RescuerAccount = ::subxt::ext::subxt_core::utils::AccountId32;
pub type Sender = ::subxt::ext::subxt_core::utils::AccountId32;
}
impl ::subxt::ext::subxt_core::events::StaticEvent for RecoveryVouched {
const PALLET: &'static str = "Recovery";
const EVENT: &'static str = "RecoveryVouched";
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")]
#[doc = "A recovery process for lost account by rescuer account has been closed."]
pub struct RecoveryClosed {
pub lost_account: recovery_closed::LostAccount,
pub rescuer_account: recovery_closed::RescuerAccount,
}
pub mod recovery_closed {
use super::runtime_types;
pub type LostAccount = ::subxt::ext::subxt_core::utils::AccountId32;
pub type RescuerAccount = ::subxt::ext::subxt_core::utils::AccountId32;
}
impl ::subxt::ext::subxt_core::events::StaticEvent for RecoveryClosed {
const PALLET: &'static str = "Recovery";
const EVENT: &'static str = "RecoveryClosed";
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")]
#[doc = "Lost account has been successfully recovered by rescuer account."]
pub struct AccountRecovered {
pub lost_account: account_recovered::LostAccount,
pub rescuer_account: account_recovered::RescuerAccount,
}
pub mod account_recovered {
use super::runtime_types;
pub type LostAccount = ::subxt::ext::subxt_core::utils::AccountId32;
pub type RescuerAccount = ::subxt::ext::subxt_core::utils::AccountId32;
}
impl ::subxt::ext::subxt_core::events::StaticEvent for AccountRecovered {
const PALLET: &'static str = "Recovery";
const EVENT: &'static str = "AccountRecovered";
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")]
#[doc = "A recovery process has been removed for an account."]
pub struct RecoveryRemoved {
pub lost_account: recovery_removed::LostAccount,
}
pub mod recovery_removed {
use super::runtime_types;
pub type LostAccount = ::subxt::ext::subxt_core::utils::AccountId32;
}
impl ::subxt::ext::subxt_core::events::StaticEvent for RecoveryRemoved {
const PALLET: &'static str = "Recovery";
const EVENT: &'static str = "RecoveryRemoved";
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")]
#[doc = "A deposit has been updated."]
pub struct DepositPoked {
pub who: deposit_poked::Who,
pub kind: deposit_poked::Kind,
pub old_deposit: deposit_poked::OldDeposit,
pub new_deposit: deposit_poked::NewDeposit,
}
pub mod deposit_poked {
use super::runtime_types;
pub type Who = ::subxt::ext::subxt_core::utils::AccountId32;
pub type Kind = runtime_types::pallet_recovery::DepositKind<
runtime_types::quantus_runtime::Runtime,
>;
pub type OldDeposit = ::core::primitive::u128;
pub type NewDeposit = ::core::primitive::u128;
}
impl ::subxt::ext::subxt_core::events::StaticEvent for DepositPoked {
const PALLET: &'static str = "Recovery";
const EVENT: &'static str = "DepositPoked";
}
}
pub mod storage {
use super::runtime_types;
pub mod types {
use super::runtime_types;
pub mod recoverable {
use super::runtime_types;
pub type Recoverable = runtime_types::pallet_recovery::RecoveryConfig<
::core::primitive::u32,
::core::primitive::u128,
runtime_types::bounded_collections::bounded_vec::BoundedVec<
::subxt::ext::subxt_core::utils::AccountId32,
>,
>;
pub type Param0 = ::subxt::ext::subxt_core::utils::AccountId32;
}
pub mod active_recoveries {
use super::runtime_types;
pub type ActiveRecoveries = runtime_types::pallet_recovery::ActiveRecovery<
::core::primitive::u32,
::core::primitive::u128,
runtime_types::bounded_collections::bounded_vec::BoundedVec<
::subxt::ext::subxt_core::utils::AccountId32,
>,
>;
pub type Param0 = ::subxt::ext::subxt_core::utils::AccountId32;
pub type Param1 = ::subxt::ext::subxt_core::utils::AccountId32;
}
pub mod proxy {
use super::runtime_types;
pub type Proxy = ::subxt::ext::subxt_core::utils::AccountId32;
pub type Param0 = ::subxt::ext::subxt_core::utils::AccountId32;
}
}
pub struct StorageApi;
impl StorageApi {
#[doc = " The set of recoverable accounts and their recovery configuration."]
pub fn recoverable_iter(
&self,
) -> ::subxt::ext::subxt_core::storage::address::StaticAddress<
(),
types::recoverable::Recoverable,
(),
(),
::subxt::ext::subxt_core::utils::Yes,
> {
::subxt::ext::subxt_core::storage::address::StaticAddress::new_static(
"Recovery",
"Recoverable",
(),
[
112u8, 7u8, 56u8, 46u8, 138u8, 197u8, 63u8, 234u8, 140u8, 123u8, 145u8,
106u8, 189u8, 190u8, 247u8, 61u8, 250u8, 67u8, 107u8, 42u8, 170u8,
79u8, 54u8, 168u8, 33u8, 214u8, 91u8, 227u8, 5u8, 107u8, 38u8, 26u8,
],
)
}
#[doc = " The set of recoverable accounts and their recovery configuration."]
pub fn recoverable(
&self,
_0: types::recoverable::Param0,
) -> ::subxt::ext::subxt_core::storage::address::StaticAddress<
::subxt::ext::subxt_core::storage::address::StaticStorageKey<
types::recoverable::Param0,
>,
types::recoverable::Recoverable,
::subxt::ext::subxt_core::utils::Yes,
(),
(),
> {
::subxt::ext::subxt_core::storage::address::StaticAddress::new_static(
"Recovery",
"Recoverable",
::subxt::ext::subxt_core::storage::address::StaticStorageKey::new(_0),
[
112u8, 7u8, 56u8, 46u8, 138u8, 197u8, 63u8, 234u8, 140u8, 123u8, 145u8,
106u8, 189u8, 190u8, 247u8, 61u8, 250u8, 67u8, 107u8, 42u8, 170u8,
79u8, 54u8, 168u8, 33u8, 214u8, 91u8, 227u8, 5u8, 107u8, 38u8, 26u8,
],
)
}
#[doc = " Active recovery attempts."]
#[doc = ""]
#[doc = " First account is the account to be recovered, and the second account"]
#[doc = " is the user trying to recover the account."]
pub fn active_recoveries_iter(
&self,
) -> ::subxt::ext::subxt_core::storage::address::StaticAddress<
(),
types::active_recoveries::ActiveRecoveries,
(),
(),
::subxt::ext::subxt_core::utils::Yes,
> {
::subxt::ext::subxt_core::storage::address::StaticAddress::new_static(
"Recovery",
"ActiveRecoveries",
(),
[
104u8, 252u8, 28u8, 142u8, 48u8, 26u8, 91u8, 201u8, 184u8, 163u8,
180u8, 197u8, 189u8, 71u8, 144u8, 88u8, 225u8, 13u8, 183u8, 84u8,
244u8, 41u8, 164u8, 212u8, 153u8, 247u8, 191u8, 25u8, 162u8, 25u8,
91u8, 123u8,
],
)
}
#[doc = " Active recovery attempts."]
#[doc = ""]
#[doc = " First account is the account to be recovered, and the second account"]
#[doc = " is the user trying to recover the account."]
pub fn active_recoveries_iter1(
&self,
_0: types::active_recoveries::Param0,
) -> ::subxt::ext::subxt_core::storage::address::StaticAddress<
::subxt::ext::subxt_core::storage::address::StaticStorageKey<
types::active_recoveries::Param0,
>,
types::active_recoveries::ActiveRecoveries,
(),
(),
::subxt::ext::subxt_core::utils::Yes,
> {
::subxt::ext::subxt_core::storage::address::StaticAddress::new_static(
"Recovery",
"ActiveRecoveries",
::subxt::ext::subxt_core::storage::address::StaticStorageKey::new(_0),
[
104u8, 252u8, 28u8, 142u8, 48u8, 26u8, 91u8, 201u8, 184u8, 163u8,
180u8, 197u8, 189u8, 71u8, 144u8, 88u8, 225u8, 13u8, 183u8, 84u8,
244u8, 41u8, 164u8, 212u8, 153u8, 247u8, 191u8, 25u8, 162u8, 25u8,
91u8, 123u8,
],
)
}
#[doc = " Active recovery attempts."]
#[doc = ""]
#[doc = " First account is the account to be recovered, and the second account"]
#[doc = " is the user trying to recover the account."]
pub fn active_recoveries(
&self,
_0: types::active_recoveries::Param0,
_1: types::active_recoveries::Param1,
) -> ::subxt::ext::subxt_core::storage::address::StaticAddress<
(
::subxt::ext::subxt_core::storage::address::StaticStorageKey<
types::active_recoveries::Param0,
>,
::subxt::ext::subxt_core::storage::address::StaticStorageKey<
types::active_recoveries::Param1,
>,
),
types::active_recoveries::ActiveRecoveries,
::subxt::ext::subxt_core::utils::Yes,
(),
(),
> {
::subxt::ext::subxt_core::storage::address::StaticAddress::new_static(
"Recovery",
"ActiveRecoveries",
(
::subxt::ext::subxt_core::storage::address::StaticStorageKey::new(_0),
::subxt::ext::subxt_core::storage::address::StaticStorageKey::new(_1),
),
[
104u8, 252u8, 28u8, 142u8, 48u8, 26u8, 91u8, 201u8, 184u8, 163u8,
180u8, 197u8, 189u8, 71u8, 144u8, 88u8, 225u8, 13u8, 183u8, 84u8,
244u8, 41u8, 164u8, 212u8, 153u8, 247u8, 191u8, 25u8, 162u8, 25u8,
91u8, 123u8,
],
)
}
#[doc = " The list of allowed proxy accounts."]
#[doc = ""]
#[doc = " Map from the user who can access it to the recovered account."]
pub fn proxy_iter(
&self,
) -> ::subxt::ext::subxt_core::storage::address::StaticAddress<
(),
types::proxy::Proxy,
(),
(),
::subxt::ext::subxt_core::utils::Yes,
> {
::subxt::ext::subxt_core::storage::address::StaticAddress::new_static(
"Recovery",
"Proxy",
(),
[
161u8, 242u8, 17u8, 183u8, 161u8, 47u8, 87u8, 110u8, 201u8, 177u8,
199u8, 157u8, 30u8, 131u8, 49u8, 89u8, 182u8, 86u8, 152u8, 19u8, 199u8,
33u8, 12u8, 138u8, 51u8, 215u8, 130u8, 5u8, 251u8, 115u8, 69u8, 159u8,
],
)
}
#[doc = " The list of allowed proxy accounts."]
#[doc = ""]
#[doc = " Map from the user who can access it to the recovered account."]
pub fn proxy(
&self,
_0: types::proxy::Param0,
) -> ::subxt::ext::subxt_core::storage::address::StaticAddress<
::subxt::ext::subxt_core::storage::address::StaticStorageKey<
types::proxy::Param0,
>,
types::proxy::Proxy,
::subxt::ext::subxt_core::utils::Yes,
(),
(),
> {
::subxt::ext::subxt_core::storage::address::StaticAddress::new_static(
"Recovery",
"Proxy",
::subxt::ext::subxt_core::storage::address::StaticStorageKey::new(_0),
[
161u8, 242u8, 17u8, 183u8, 161u8, 47u8, 87u8, 110u8, 201u8, 177u8,
199u8, 157u8, 30u8, 131u8, 49u8, 89u8, 182u8, 86u8, 152u8, 19u8, 199u8,
33u8, 12u8, 138u8, 51u8, 215u8, 130u8, 5u8, 251u8, 115u8, 69u8, 159u8,
],
)
}
}
}
pub mod constants {
use super::runtime_types;
pub struct ConstantsApi;
impl ConstantsApi {
#[doc = " The base amount of currency needed to reserve for creating a recovery configuration."]
#[doc = ""]
#[doc = " This is held for an additional storage item whose value size is"]
#[doc = " `2 + sizeof(BlockNumber, Balance)` bytes."]
pub fn config_deposit_base(
&self,
) -> ::subxt::ext::subxt_core::constants::address::StaticAddress<
::core::primitive::u128,
> {
::subxt::ext::subxt_core::constants::address::StaticAddress::new_static(
"Recovery",
"ConfigDepositBase",
[
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 currency needed per additional user when creating a recovery"]
#[doc = " configuration."]
#[doc = ""]
#[doc = " This is held for adding `sizeof(AccountId)` bytes more into a pre-existing storage"]
#[doc = " value."]
pub fn friend_deposit_factor(
&self,
) -> ::subxt::ext::subxt_core::constants::address::StaticAddress<
::core::primitive::u128,
> {
::subxt::ext::subxt_core::constants::address::StaticAddress::new_static(
"Recovery",
"FriendDepositFactor",
[
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 amount of friends allowed in a recovery configuration."]
#[doc = ""]
#[doc = " NOTE: The threshold programmed in this Pallet uses u16, so it does"]
#[doc = " not really make sense to have a limit here greater than u16::MAX."]
#[doc = " But also, that is a lot more than you should probably set this value"]
#[doc = " to anyway..."]
pub fn max_friends(
&self,
) -> ::subxt::ext::subxt_core::constants::address::StaticAddress<
::core::primitive::u32,
> {
::subxt::ext::subxt_core::constants::address::StaticAddress::new_static(
"Recovery",
"MaxFriends",
[
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 base amount of currency needed to reserve for starting a recovery."]
#[doc = ""]
#[doc = " This is primarily held for deterring malicious recovery attempts, and should"]
#[doc = " have a value large enough that a bad actor would choose not to place this"]
#[doc = " deposit. It also acts to fund additional storage item whose value size is"]
#[doc = " `sizeof(BlockNumber, Balance + T * AccountId)` bytes. Where T is a configurable"]
#[doc = " threshold."]
pub fn recovery_deposit(
&self,
) -> ::subxt::ext::subxt_core::constants::address::StaticAddress<
::core::primitive::u128,
> {
::subxt::ext::subxt_core::constants::address::StaticAddress::new_static(
"Recovery",
"RecoveryDeposit",
[
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,
],
)
}
}
}
}
pub mod assets {
use super::{root_mod, runtime_types};
#[doc = "The `Error` enum of this pallet."]
pub type Error = runtime_types::pallet_assets::pallet::Error;
#[doc = "Contains a variant per dispatchable extrinsic that this pallet has."]
pub type Call = runtime_types::pallet_assets::pallet::Call;
pub mod calls {
use super::{root_mod, runtime_types};
type DispatchError = runtime_types::sp_runtime::DispatchError;
pub mod types {
use super::runtime_types;
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode"
)]
#[doc = "Issue a new class of fungible assets from a public origin."]
#[doc = ""]
#[doc = "This new asset class has no assets initially and its owner is the origin."]
#[doc = ""]
#[doc = "The origin must conform to the configured `CreateOrigin` and have sufficient funds free."]
#[doc = ""]
#[doc = "Funds of sender are reserved by `AssetDeposit`."]
#[doc = ""]
#[doc = "Parameters:"]
#[doc = "- `id`: The identifier of the new asset. This must not be currently in use to identify"]
#[doc = "an existing asset. If [`NextAssetId`] is set, then this must be equal to it."]
#[doc = "- `admin`: The admin of this class of assets. The admin is the initial address of each"]
#[doc = "member of the asset class's admin team."]
#[doc = "- `min_balance`: The minimum balance of this new asset that any single account must"]
#[doc = "have. If an account's balance is reduced below this, then it collapses to zero."]
#[doc = ""]
#[doc = "Emits `Created` event when successful."]
#[doc = ""]
#[doc = "Weight: `O(1)`"]
pub struct Create {
#[codec(compact)]
pub id: create::Id,
pub admin: create::Admin,
pub min_balance: create::MinBalance,
}
pub mod create {
use super::runtime_types;
pub type Id = ::core::primitive::u32;
pub type Admin = ::subxt::ext::subxt_core::utils::MultiAddress<
::subxt::ext::subxt_core::utils::AccountId32,
(),
>;
pub type MinBalance = ::core::primitive::u128;
}
impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for Create {
const PALLET: &'static str = "Assets";
const CALL: &'static str = "create";
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode"
)]
#[doc = "Issue a new class of fungible assets from a privileged origin."]
#[doc = ""]
#[doc = "This new asset class has no assets initially."]
#[doc = ""]
#[doc = "The origin must conform to `ForceOrigin`."]
#[doc = ""]
#[doc = "Unlike `create`, no funds are reserved."]
#[doc = ""]
#[doc = "- `id`: The identifier of the new asset. This must not be currently in use to identify"]
#[doc = "an existing asset. If [`NextAssetId`] is set, then this must be equal to it."]
#[doc = "- `owner`: The owner of this class of assets. The owner has full superuser permissions"]
#[doc = "over this asset, but may later change and configure the permissions using"]
#[doc = "`transfer_ownership` and `set_team`."]
#[doc = "- `min_balance`: The minimum balance of this new asset that any single account must"]
#[doc = "have. If an account's balance is reduced below this, then it collapses to zero."]
#[doc = ""]
#[doc = "Emits `ForceCreated` event when successful."]
#[doc = ""]
#[doc = "Weight: `O(1)`"]
pub struct ForceCreate {
#[codec(compact)]
pub id: force_create::Id,
pub owner: force_create::Owner,
pub is_sufficient: force_create::IsSufficient,
#[codec(compact)]
pub min_balance: force_create::MinBalance,
}
pub mod force_create {
use super::runtime_types;
pub type Id = ::core::primitive::u32;
pub type Owner = ::subxt::ext::subxt_core::utils::MultiAddress<
::subxt::ext::subxt_core::utils::AccountId32,
(),
>;
pub type IsSufficient = ::core::primitive::bool;
pub type MinBalance = ::core::primitive::u128;
}
impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for ForceCreate {
const PALLET: &'static str = "Assets";
const CALL: &'static str = "force_create";
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode"
)]
#[doc = "Start the process of destroying a fungible asset class."]
#[doc = ""]
#[doc = "`start_destroy` is the first in a series of extrinsics that should be called, to allow"]
#[doc = "destruction of an asset class."]
#[doc = ""]
#[doc = "The origin must conform to `ForceOrigin` or must be `Signed` by the asset's `owner`."]
#[doc = ""]
#[doc = "- `id`: The identifier of the asset to be destroyed. This must identify an existing"]
#[doc = " asset."]
#[doc = ""]
#[doc = "It will fail with either [`Error::ContainsHolds`] or [`Error::ContainsFreezes`] if"]
#[doc = "an account contains holds or freezes in place."]
pub struct StartDestroy {
#[codec(compact)]
pub id: start_destroy::Id,
}
pub mod start_destroy {
use super::runtime_types;
pub type Id = ::core::primitive::u32;
}
impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for StartDestroy {
const PALLET: &'static str = "Assets";
const CALL: &'static str = "start_destroy";
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode"
)]
#[doc = "Destroy all accounts associated with a given asset."]
#[doc = ""]
#[doc = "`destroy_accounts` should only be called after `start_destroy` has been called, and the"]
#[doc = "asset is in a `Destroying` state."]
#[doc = ""]
#[doc = "Due to weight restrictions, this function may need to be called multiple times to fully"]
#[doc = "destroy all accounts. It will destroy `RemoveItemsLimit` accounts at a time."]
#[doc = ""]
#[doc = "- `id`: The identifier of the asset to be destroyed. This must identify an existing"]
#[doc = " asset."]
#[doc = ""]
#[doc = "Each call emits the `Event::DestroyedAccounts` event."]
pub struct DestroyAccounts {
#[codec(compact)]
pub id: destroy_accounts::Id,
}
pub mod destroy_accounts {
use super::runtime_types;
pub type Id = ::core::primitive::u32;
}
impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for DestroyAccounts {
const PALLET: &'static str = "Assets";
const CALL: &'static str = "destroy_accounts";
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode"
)]
#[doc = "Destroy all approvals associated with a given asset up to the max (T::RemoveItemsLimit)."]
#[doc = ""]
#[doc = "`destroy_approvals` should only be called after `start_destroy` has been called, and the"]
#[doc = "asset is in a `Destroying` state."]
#[doc = ""]
#[doc = "Due to weight restrictions, this function may need to be called multiple times to fully"]
#[doc = "destroy all approvals. It will destroy `RemoveItemsLimit` approvals at a time."]
#[doc = ""]
#[doc = "- `id`: The identifier of the asset to be destroyed. This must identify an existing"]
#[doc = " asset."]
#[doc = ""]
#[doc = "Each call emits the `Event::DestroyedApprovals` event."]
pub struct DestroyApprovals {
#[codec(compact)]
pub id: destroy_approvals::Id,
}
pub mod destroy_approvals {
use super::runtime_types;
pub type Id = ::core::primitive::u32;
}
impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for DestroyApprovals {
const PALLET: &'static str = "Assets";
const CALL: &'static str = "destroy_approvals";
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode"
)]
#[doc = "Complete destroying asset and unreserve currency."]
#[doc = ""]
#[doc = "`finish_destroy` should only be called after `start_destroy` has been called, and the"]
#[doc = "asset is in a `Destroying` state. All accounts or approvals should be destroyed before"]
#[doc = "hand."]
#[doc = ""]
#[doc = "- `id`: The identifier of the asset to be destroyed. This must identify an existing"]
#[doc = " asset."]
#[doc = ""]
#[doc = "Each successful call emits the `Event::Destroyed` event."]
pub struct FinishDestroy {
#[codec(compact)]
pub id: finish_destroy::Id,
}
pub mod finish_destroy {
use super::runtime_types;
pub type Id = ::core::primitive::u32;
}
impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for FinishDestroy {
const PALLET: &'static str = "Assets";
const CALL: &'static str = "finish_destroy";
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode"
)]
#[doc = "Mint assets of a particular class."]
#[doc = ""]
#[doc = "The origin must be Signed and the sender must be the Issuer of the asset `id`."]
#[doc = ""]
#[doc = "- `id`: The identifier of the asset to have some amount minted."]
#[doc = "- `beneficiary`: The account to be credited with the minted assets."]
#[doc = "- `amount`: The amount of the asset to be minted."]
#[doc = ""]
#[doc = "Emits `Issued` event when successful."]
#[doc = ""]
#[doc = "Weight: `O(1)`"]
#[doc = "Modes: Pre-existing balance of `beneficiary`; Account pre-existence of `beneficiary`."]
pub struct Mint {
#[codec(compact)]
pub id: mint::Id,
pub beneficiary: mint::Beneficiary,
#[codec(compact)]
pub amount: mint::Amount,
}
pub mod mint {
use super::runtime_types;
pub type Id = ::core::primitive::u32;
pub type Beneficiary = ::subxt::ext::subxt_core::utils::MultiAddress<
::subxt::ext::subxt_core::utils::AccountId32,
(),
>;
pub type Amount = ::core::primitive::u128;
}
impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for Mint {
const PALLET: &'static str = "Assets";
const CALL: &'static str = "mint";
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode"
)]
#[doc = "Reduce the balance of `who` by as much as possible up to `amount` assets of `id`."]
#[doc = ""]
#[doc = "Origin must be Signed and the sender should be the Manager of the asset `id`."]
#[doc = ""]
#[doc = "Bails with `NoAccount` if the `who` is already dead."]
#[doc = ""]
#[doc = "- `id`: The identifier of the asset to have some amount burned."]
#[doc = "- `who`: The account to be debited from."]
#[doc = "- `amount`: The maximum amount by which `who`'s balance should be reduced."]
#[doc = ""]
#[doc = "Emits `Burned` with the actual amount burned. If this takes the balance to below the"]
#[doc = "minimum for the asset, then the amount burned is increased to take it to zero."]
#[doc = ""]
#[doc = "Weight: `O(1)`"]
#[doc = "Modes: Post-existence of `who`; Pre & post Zombie-status of `who`."]
pub struct Burn {
#[codec(compact)]
pub id: burn::Id,
pub who: burn::Who,
#[codec(compact)]
pub amount: burn::Amount,
}
pub mod burn {
use super::runtime_types;
pub type Id = ::core::primitive::u32;
pub type Who = ::subxt::ext::subxt_core::utils::MultiAddress<
::subxt::ext::subxt_core::utils::AccountId32,
(),
>;
pub type Amount = ::core::primitive::u128;
}
impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for Burn {
const PALLET: &'static str = "Assets";
const CALL: &'static str = "burn";
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode"
)]
#[doc = "Move some assets from the sender account to another."]
#[doc = ""]
#[doc = "Origin must be Signed."]
#[doc = ""]
#[doc = "- `id`: The identifier of the asset to have some amount transferred."]
#[doc = "- `target`: The account to be credited."]
#[doc = "- `amount`: The amount by which the sender's balance of assets should be reduced and"]
#[doc = "`target`'s balance increased. The amount actually transferred may be slightly greater in"]
#[doc = "the case that the transfer would otherwise take the sender balance above zero but below"]
#[doc = "the minimum balance. Must be greater than zero."]
#[doc = ""]
#[doc = "Emits `Transferred` with the actual amount transferred. If this takes the source balance"]
#[doc = "to below the minimum for the asset, then the amount transferred is increased to take it"]
#[doc = "to zero."]
#[doc = ""]
#[doc = "Weight: `O(1)`"]
#[doc = "Modes: Pre-existence of `target`; Post-existence of sender; Account pre-existence of"]
#[doc = "`target`."]
pub struct Transfer {
#[codec(compact)]
pub id: transfer::Id,
pub target: transfer::Target,
#[codec(compact)]
pub amount: transfer::Amount,
}
pub mod transfer {
use super::runtime_types;
pub type Id = ::core::primitive::u32;
pub type Target = ::subxt::ext::subxt_core::utils::MultiAddress<
::subxt::ext::subxt_core::utils::AccountId32,
(),
>;
pub type Amount = ::core::primitive::u128;
}
impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for Transfer {
const PALLET: &'static str = "Assets";
const CALL: &'static str = "transfer";
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode"
)]
#[doc = "Move some assets from the sender account to another, keeping the sender account alive."]
#[doc = ""]
#[doc = "Origin must be Signed."]
#[doc = ""]
#[doc = "- `id`: The identifier of the asset to have some amount transferred."]
#[doc = "- `target`: The account to be credited."]
#[doc = "- `amount`: The amount by which the sender's balance of assets should be reduced and"]
#[doc = "`target`'s balance increased. The amount actually transferred may be slightly greater in"]
#[doc = "the case that the transfer would otherwise take the sender balance above zero but below"]
#[doc = "the minimum balance. Must be greater than zero."]
#[doc = ""]
#[doc = "Emits `Transferred` with the actual amount transferred. If this takes the source balance"]
#[doc = "to below the minimum for the asset, then the amount transferred is increased to take it"]
#[doc = "to zero."]
#[doc = ""]
#[doc = "Weight: `O(1)`"]
#[doc = "Modes: Pre-existence of `target`; Post-existence of sender; Account pre-existence of"]
#[doc = "`target`."]
pub struct TransferKeepAlive {
#[codec(compact)]
pub id: transfer_keep_alive::Id,
pub target: transfer_keep_alive::Target,
#[codec(compact)]
pub amount: transfer_keep_alive::Amount,
}
pub mod transfer_keep_alive {
use super::runtime_types;
pub type Id = ::core::primitive::u32;
pub type Target = ::subxt::ext::subxt_core::utils::MultiAddress<
::subxt::ext::subxt_core::utils::AccountId32,
(),
>;
pub type Amount = ::core::primitive::u128;
}
impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for TransferKeepAlive {
const PALLET: &'static str = "Assets";
const CALL: &'static str = "transfer_keep_alive";
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode"
)]
#[doc = "Move some assets from one account to another."]
#[doc = ""]
#[doc = "Origin must be Signed and the sender should be the Admin of the asset `id`."]
#[doc = ""]
#[doc = "- `id`: The identifier of the asset to have some amount transferred."]
#[doc = "- `source`: The account to be debited."]
#[doc = "- `dest`: The account to be credited."]
#[doc = "- `amount`: The amount by which the `source`'s balance of assets should be reduced and"]
#[doc = "`dest`'s balance increased. The amount actually transferred may be slightly greater in"]
#[doc = "the case that the transfer would otherwise take the `source` balance above zero but"]
#[doc = "below the minimum balance. Must be greater than zero."]
#[doc = ""]
#[doc = "Emits `Transferred` with the actual amount transferred. If this takes the source balance"]
#[doc = "to below the minimum for the asset, then the amount transferred is increased to take it"]
#[doc = "to zero."]
#[doc = ""]
#[doc = "Weight: `O(1)`"]
#[doc = "Modes: Pre-existence of `dest`; Post-existence of `source`; Account pre-existence of"]
#[doc = "`dest`."]
pub struct ForceTransfer {
#[codec(compact)]
pub id: force_transfer::Id,
pub source: force_transfer::Source,
pub dest: force_transfer::Dest,
#[codec(compact)]
pub amount: force_transfer::Amount,
}
pub mod force_transfer {
use super::runtime_types;
pub type Id = ::core::primitive::u32;
pub type Source = ::subxt::ext::subxt_core::utils::MultiAddress<
::subxt::ext::subxt_core::utils::AccountId32,
(),
>;
pub type Dest = ::subxt::ext::subxt_core::utils::MultiAddress<
::subxt::ext::subxt_core::utils::AccountId32,
(),
>;
pub type Amount = ::core::primitive::u128;
}
impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for ForceTransfer {
const PALLET: &'static str = "Assets";
const CALL: &'static str = "force_transfer";
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode"
)]
#[doc = "Disallow further unprivileged transfers of an asset `id` from an account `who`. `who`"]
#[doc = "must already exist as an entry in `Account`s of the asset. If you want to freeze an"]
#[doc = "account that does not have an entry, use `touch_other` first."]
#[doc = ""]
#[doc = "Origin must be Signed and the sender should be the Freezer of the asset `id`."]
#[doc = ""]
#[doc = "- `id`: The identifier of the asset to be frozen."]
#[doc = "- `who`: The account to be frozen."]
#[doc = ""]
#[doc = "Emits `Frozen`."]
#[doc = ""]
#[doc = "Weight: `O(1)`"]
pub struct Freeze {
#[codec(compact)]
pub id: freeze::Id,
pub who: freeze::Who,
}
pub mod freeze {
use super::runtime_types;
pub type Id = ::core::primitive::u32;
pub type Who = ::subxt::ext::subxt_core::utils::MultiAddress<
::subxt::ext::subxt_core::utils::AccountId32,
(),
>;
}
impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for Freeze {
const PALLET: &'static str = "Assets";
const CALL: &'static str = "freeze";
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode"
)]
#[doc = "Allow unprivileged transfers to and from an account again."]
#[doc = ""]
#[doc = "Origin must be Signed and the sender should be the Admin of the asset `id`."]
#[doc = ""]
#[doc = "- `id`: The identifier of the asset to be frozen."]
#[doc = "- `who`: The account to be unfrozen."]
#[doc = ""]
#[doc = "Emits `Thawed`."]
#[doc = ""]
#[doc = "Weight: `O(1)`"]
pub struct Thaw {
#[codec(compact)]
pub id: thaw::Id,
pub who: thaw::Who,
}
pub mod thaw {
use super::runtime_types;
pub type Id = ::core::primitive::u32;
pub type Who = ::subxt::ext::subxt_core::utils::MultiAddress<
::subxt::ext::subxt_core::utils::AccountId32,
(),
>;
}
impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for Thaw {
const PALLET: &'static str = "Assets";
const CALL: &'static str = "thaw";
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode"
)]
#[doc = "Disallow further unprivileged transfers for the asset class."]
#[doc = ""]
#[doc = "Origin must be Signed and the sender should be the Freezer of the asset `id`."]
#[doc = ""]
#[doc = "- `id`: The identifier of the asset to be frozen."]
#[doc = ""]
#[doc = "Emits `Frozen`."]
#[doc = ""]
#[doc = "Weight: `O(1)`"]
pub struct FreezeAsset {
#[codec(compact)]
pub id: freeze_asset::Id,
}
pub mod freeze_asset {
use super::runtime_types;
pub type Id = ::core::primitive::u32;
}
impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for FreezeAsset {
const PALLET: &'static str = "Assets";
const CALL: &'static str = "freeze_asset";
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode"
)]
#[doc = "Allow unprivileged transfers for the asset again."]
#[doc = ""]
#[doc = "Origin must be Signed and the sender should be the Admin of the asset `id`."]
#[doc = ""]
#[doc = "- `id`: The identifier of the asset to be thawed."]
#[doc = ""]
#[doc = "Emits `Thawed`."]
#[doc = ""]
#[doc = "Weight: `O(1)`"]
pub struct ThawAsset {
#[codec(compact)]
pub id: thaw_asset::Id,
}
pub mod thaw_asset {
use super::runtime_types;
pub type Id = ::core::primitive::u32;
}
impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for ThawAsset {
const PALLET: &'static str = "Assets";
const CALL: &'static str = "thaw_asset";
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode"
)]
#[doc = "Change the Owner of an asset."]
#[doc = ""]
#[doc = "Origin must be Signed and the sender should be the Owner of the asset `id`."]
#[doc = ""]
#[doc = "- `id`: The identifier of the asset."]
#[doc = "- `owner`: The new Owner of this asset."]
#[doc = ""]
#[doc = "Emits `OwnerChanged`."]
#[doc = ""]
#[doc = "Weight: `O(1)`"]
pub struct TransferOwnership {
#[codec(compact)]
pub id: transfer_ownership::Id,
pub owner: transfer_ownership::Owner,
}
pub mod transfer_ownership {
use super::runtime_types;
pub type Id = ::core::primitive::u32;
pub type Owner = ::subxt::ext::subxt_core::utils::MultiAddress<
::subxt::ext::subxt_core::utils::AccountId32,
(),
>;
}
impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for TransferOwnership {
const PALLET: &'static str = "Assets";
const CALL: &'static str = "transfer_ownership";
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode"
)]
#[doc = "Change the Issuer, Admin and Freezer of an asset."]
#[doc = ""]
#[doc = "Origin must be Signed and the sender should be the Owner of the asset `id`."]
#[doc = ""]
#[doc = "- `id`: The identifier of the asset to be frozen."]
#[doc = "- `issuer`: The new Issuer of this asset."]
#[doc = "- `admin`: The new Admin of this asset."]
#[doc = "- `freezer`: The new Freezer of this asset."]
#[doc = ""]
#[doc = "Emits `TeamChanged`."]
#[doc = ""]
#[doc = "Weight: `O(1)`"]
pub struct SetTeam {
#[codec(compact)]
pub id: set_team::Id,
pub issuer: set_team::Issuer,
pub admin: set_team::Admin,
pub freezer: set_team::Freezer,
}
pub mod set_team {
use super::runtime_types;
pub type Id = ::core::primitive::u32;
pub type Issuer = ::subxt::ext::subxt_core::utils::MultiAddress<
::subxt::ext::subxt_core::utils::AccountId32,
(),
>;
pub type Admin = ::subxt::ext::subxt_core::utils::MultiAddress<
::subxt::ext::subxt_core::utils::AccountId32,
(),
>;
pub type Freezer = ::subxt::ext::subxt_core::utils::MultiAddress<
::subxt::ext::subxt_core::utils::AccountId32,
(),
>;
}
impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for SetTeam {
const PALLET: &'static str = "Assets";
const CALL: &'static str = "set_team";
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode"
)]
#[doc = "Set the metadata for an asset."]
#[doc = ""]
#[doc = "Origin must be Signed and the sender should be the Owner of the asset `id`."]
#[doc = ""]
#[doc = "Funds of sender are reserved according to the formula:"]
#[doc = "`MetadataDepositBase + MetadataDepositPerByte * (name.len + symbol.len)` taking into"]
#[doc = "account any already reserved funds."]
#[doc = ""]
#[doc = "- `id`: The identifier of the asset to update."]
#[doc = "- `name`: The user friendly name of this asset. Limited in length by `StringLimit`."]
#[doc = "- `symbol`: The exchange symbol for this asset. Limited in length by `StringLimit`."]
#[doc = "- `decimals`: The number of decimals this asset uses to represent one unit."]
#[doc = ""]
#[doc = "Emits `MetadataSet`."]
#[doc = ""]
#[doc = "Weight: `O(1)`"]
pub struct SetMetadata {
#[codec(compact)]
pub id: set_metadata::Id,
pub name: set_metadata::Name,
pub symbol: set_metadata::Symbol,
pub decimals: set_metadata::Decimals,
}
pub mod set_metadata {
use super::runtime_types;
pub type Id = ::core::primitive::u32;
pub type Name =
::subxt::ext::subxt_core::alloc::vec::Vec<::core::primitive::u8>;
pub type Symbol =
::subxt::ext::subxt_core::alloc::vec::Vec<::core::primitive::u8>;
pub type Decimals = ::core::primitive::u8;
}
impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for SetMetadata {
const PALLET: &'static str = "Assets";
const CALL: &'static str = "set_metadata";
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode"
)]
#[doc = "Clear the metadata for an asset."]
#[doc = ""]
#[doc = "Origin must be Signed and the sender should be the Owner of the asset `id`."]
#[doc = ""]
#[doc = "Any deposit is freed for the asset owner."]
#[doc = ""]
#[doc = "- `id`: The identifier of the asset to clear."]
#[doc = ""]
#[doc = "Emits `MetadataCleared`."]
#[doc = ""]
#[doc = "Weight: `O(1)`"]
pub struct ClearMetadata {
#[codec(compact)]
pub id: clear_metadata::Id,
}
pub mod clear_metadata {
use super::runtime_types;
pub type Id = ::core::primitive::u32;
}
impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for ClearMetadata {
const PALLET: &'static str = "Assets";
const CALL: &'static str = "clear_metadata";
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode"
)]
#[doc = "Force the metadata for an asset to some value."]
#[doc = ""]
#[doc = "Origin must be ForceOrigin."]
#[doc = ""]
#[doc = "Any deposit is left alone."]
#[doc = ""]
#[doc = "- `id`: The identifier of the asset to update."]
#[doc = "- `name`: The user friendly name of this asset. Limited in length by `StringLimit`."]
#[doc = "- `symbol`: The exchange symbol for this asset. Limited in length by `StringLimit`."]
#[doc = "- `decimals`: The number of decimals this asset uses to represent one unit."]
#[doc = ""]
#[doc = "Emits `MetadataSet`."]
#[doc = ""]
#[doc = "Weight: `O(N + S)` where N and S are the length of the name and symbol respectively."]
pub struct ForceSetMetadata {
#[codec(compact)]
pub id: force_set_metadata::Id,
pub name: force_set_metadata::Name,
pub symbol: force_set_metadata::Symbol,
pub decimals: force_set_metadata::Decimals,
pub is_frozen: force_set_metadata::IsFrozen,
}
pub mod force_set_metadata {
use super::runtime_types;
pub type Id = ::core::primitive::u32;
pub type Name =
::subxt::ext::subxt_core::alloc::vec::Vec<::core::primitive::u8>;
pub type Symbol =
::subxt::ext::subxt_core::alloc::vec::Vec<::core::primitive::u8>;
pub type Decimals = ::core::primitive::u8;
pub type IsFrozen = ::core::primitive::bool;
}
impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for ForceSetMetadata {
const PALLET: &'static str = "Assets";
const CALL: &'static str = "force_set_metadata";
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode"
)]
#[doc = "Clear the metadata for an asset."]
#[doc = ""]
#[doc = "Origin must be ForceOrigin."]
#[doc = ""]
#[doc = "Any deposit is returned."]
#[doc = ""]
#[doc = "- `id`: The identifier of the asset to clear."]
#[doc = ""]
#[doc = "Emits `MetadataCleared`."]
#[doc = ""]
#[doc = "Weight: `O(1)`"]
pub struct ForceClearMetadata {
#[codec(compact)]
pub id: force_clear_metadata::Id,
}
pub mod force_clear_metadata {
use super::runtime_types;
pub type Id = ::core::primitive::u32;
}
impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for ForceClearMetadata {
const PALLET: &'static str = "Assets";
const CALL: &'static str = "force_clear_metadata";
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode"
)]
#[doc = "Alter the attributes of a given asset."]
#[doc = ""]
#[doc = "Origin must be `ForceOrigin`."]
#[doc = ""]
#[doc = "- `id`: The identifier of the asset."]
#[doc = "- `owner`: The new Owner of this asset."]
#[doc = "- `issuer`: The new Issuer of this asset."]
#[doc = "- `admin`: The new Admin of this asset."]
#[doc = "- `freezer`: The new Freezer of this asset."]
#[doc = "- `min_balance`: The minimum balance of this new asset that any single account must"]
#[doc = "have. If an account's balance is reduced below this, then it collapses to zero."]
#[doc = "- `is_sufficient`: Whether a non-zero balance of this asset is deposit of sufficient"]
#[doc = "value to account for the state bloat associated with its balance storage. If set to"]
#[doc = "`true`, then non-zero balances may be stored without a `consumer` reference (and thus"]
#[doc = "an ED in the Balances pallet or whatever else is used to control user-account state"]
#[doc = "growth)."]
#[doc = "- `is_frozen`: Whether this asset class is frozen except for permissioned/admin"]
#[doc = "instructions."]
#[doc = ""]
#[doc = "Emits `AssetStatusChanged` with the identity of the asset."]
#[doc = ""]
#[doc = "Weight: `O(1)`"]
pub struct ForceAssetStatus {
#[codec(compact)]
pub id: force_asset_status::Id,
pub owner: force_asset_status::Owner,
pub issuer: force_asset_status::Issuer,
pub admin: force_asset_status::Admin,
pub freezer: force_asset_status::Freezer,
#[codec(compact)]
pub min_balance: force_asset_status::MinBalance,
pub is_sufficient: force_asset_status::IsSufficient,
pub is_frozen: force_asset_status::IsFrozen,
}
pub mod force_asset_status {
use super::runtime_types;
pub type Id = ::core::primitive::u32;
pub type Owner = ::subxt::ext::subxt_core::utils::MultiAddress<
::subxt::ext::subxt_core::utils::AccountId32,
(),
>;
pub type Issuer = ::subxt::ext::subxt_core::utils::MultiAddress<
::subxt::ext::subxt_core::utils::AccountId32,
(),
>;
pub type Admin = ::subxt::ext::subxt_core::utils::MultiAddress<
::subxt::ext::subxt_core::utils::AccountId32,
(),
>;
pub type Freezer = ::subxt::ext::subxt_core::utils::MultiAddress<
::subxt::ext::subxt_core::utils::AccountId32,
(),
>;
pub type MinBalance = ::core::primitive::u128;
pub type IsSufficient = ::core::primitive::bool;
pub type IsFrozen = ::core::primitive::bool;
}
impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for ForceAssetStatus {
const PALLET: &'static str = "Assets";
const CALL: &'static str = "force_asset_status";
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode"
)]
#[doc = "Approve an amount of asset for transfer by a delegated third-party account."]
#[doc = ""]
#[doc = "Origin must be Signed."]
#[doc = ""]
#[doc = "Ensures that `ApprovalDeposit` worth of `Currency` is reserved from signing account"]
#[doc = "for the purpose of holding the approval. If some non-zero amount of assets is already"]
#[doc = "approved from signing account to `delegate`, then it is topped up or unreserved to"]
#[doc = "meet the right value."]
#[doc = ""]
#[doc = "NOTE: The signing account does not need to own `amount` of assets at the point of"]
#[doc = "making this call."]
#[doc = ""]
#[doc = "- `id`: The identifier of the asset."]
#[doc = "- `delegate`: The account to delegate permission to transfer asset."]
#[doc = "- `amount`: The amount of asset that may be transferred by `delegate`. If there is"]
#[doc = "already an approval in place, then this acts additively."]
#[doc = ""]
#[doc = "Emits `ApprovedTransfer` on success."]
#[doc = ""]
#[doc = "Weight: `O(1)`"]
pub struct ApproveTransfer {
#[codec(compact)]
pub id: approve_transfer::Id,
pub delegate: approve_transfer::Delegate,
#[codec(compact)]
pub amount: approve_transfer::Amount,
}
pub mod approve_transfer {
use super::runtime_types;
pub type Id = ::core::primitive::u32;
pub type Delegate = ::subxt::ext::subxt_core::utils::MultiAddress<
::subxt::ext::subxt_core::utils::AccountId32,
(),
>;
pub type Amount = ::core::primitive::u128;
}
impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for ApproveTransfer {
const PALLET: &'static str = "Assets";
const CALL: &'static str = "approve_transfer";
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode"
)]
#[doc = "Cancel all of some asset approved for delegated transfer by a third-party account."]
#[doc = ""]
#[doc = "Origin must be Signed and there must be an approval in place between signer and"]
#[doc = "`delegate`."]
#[doc = ""]
#[doc = "Unreserves any deposit previously reserved by `approve_transfer` for the approval."]
#[doc = ""]
#[doc = "- `id`: The identifier of the asset."]
#[doc = "- `delegate`: The account delegated permission to transfer asset."]
#[doc = ""]
#[doc = "Emits `ApprovalCancelled` on success."]
#[doc = ""]
#[doc = "Weight: `O(1)`"]
pub struct CancelApproval {
#[codec(compact)]
pub id: cancel_approval::Id,
pub delegate: cancel_approval::Delegate,
}
pub mod cancel_approval {
use super::runtime_types;
pub type Id = ::core::primitive::u32;
pub type Delegate = ::subxt::ext::subxt_core::utils::MultiAddress<
::subxt::ext::subxt_core::utils::AccountId32,
(),
>;
}
impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for CancelApproval {
const PALLET: &'static str = "Assets";
const CALL: &'static str = "cancel_approval";
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode"
)]
#[doc = "Cancel all of some asset approved for delegated transfer by a third-party account."]
#[doc = ""]
#[doc = "Origin must be either ForceOrigin or Signed origin with the signer being the Admin"]
#[doc = "account of the asset `id`."]
#[doc = ""]
#[doc = "Unreserves any deposit previously reserved by `approve_transfer` for the approval."]
#[doc = ""]
#[doc = "- `id`: The identifier of the asset."]
#[doc = "- `delegate`: The account delegated permission to transfer asset."]
#[doc = ""]
#[doc = "Emits `ApprovalCancelled` on success."]
#[doc = ""]
#[doc = "Weight: `O(1)`"]
pub struct ForceCancelApproval {
#[codec(compact)]
pub id: force_cancel_approval::Id,
pub owner: force_cancel_approval::Owner,
pub delegate: force_cancel_approval::Delegate,
}
pub mod force_cancel_approval {
use super::runtime_types;
pub type Id = ::core::primitive::u32;
pub type Owner = ::subxt::ext::subxt_core::utils::MultiAddress<
::subxt::ext::subxt_core::utils::AccountId32,
(),
>;
pub type Delegate = ::subxt::ext::subxt_core::utils::MultiAddress<
::subxt::ext::subxt_core::utils::AccountId32,
(),
>;
}
impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for ForceCancelApproval {
const PALLET: &'static str = "Assets";
const CALL: &'static str = "force_cancel_approval";
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode"
)]
#[doc = "Transfer some asset balance from a previously delegated account to some third-party"]
#[doc = "account."]
#[doc = ""]
#[doc = "Origin must be Signed and there must be an approval in place by the `owner` to the"]
#[doc = "signer."]
#[doc = ""]
#[doc = "If the entire amount approved for transfer is transferred, then any deposit previously"]
#[doc = "reserved by `approve_transfer` is unreserved."]
#[doc = ""]
#[doc = "- `id`: The identifier of the asset."]
#[doc = "- `owner`: The account which previously approved for a transfer of at least `amount` and"]
#[doc = "from which the asset balance will be withdrawn."]
#[doc = "- `destination`: The account to which the asset balance of `amount` will be transferred."]
#[doc = "- `amount`: The amount of assets to transfer."]
#[doc = ""]
#[doc = "Emits `TransferredApproved` on success."]
#[doc = ""]
#[doc = "Weight: `O(1)`"]
pub struct TransferApproved {
#[codec(compact)]
pub id: transfer_approved::Id,
pub owner: transfer_approved::Owner,
pub destination: transfer_approved::Destination,
#[codec(compact)]
pub amount: transfer_approved::Amount,
}
pub mod transfer_approved {
use super::runtime_types;
pub type Id = ::core::primitive::u32;
pub type Owner = ::subxt::ext::subxt_core::utils::MultiAddress<
::subxt::ext::subxt_core::utils::AccountId32,
(),
>;
pub type Destination = ::subxt::ext::subxt_core::utils::MultiAddress<
::subxt::ext::subxt_core::utils::AccountId32,
(),
>;
pub type Amount = ::core::primitive::u128;
}
impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for TransferApproved {
const PALLET: &'static str = "Assets";
const CALL: &'static str = "transfer_approved";
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode"
)]
#[doc = "Create an asset account for non-provider assets."]
#[doc = ""]
#[doc = "A deposit will be taken from the signer account."]
#[doc = ""]
#[doc = "- `origin`: Must be Signed; the signer account must have sufficient funds for a deposit"]
#[doc = " to be taken."]
#[doc = "- `id`: The identifier of the asset for the account to be created."]
#[doc = ""]
#[doc = "Emits `Touched` event when successful."]
pub struct Touch {
#[codec(compact)]
pub id: touch::Id,
}
pub mod touch {
use super::runtime_types;
pub type Id = ::core::primitive::u32;
}
impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for Touch {
const PALLET: &'static str = "Assets";
const CALL: &'static str = "touch";
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode"
)]
#[doc = "Return the deposit (if any) of an asset account or a consumer reference (if any) of an"]
#[doc = "account."]
#[doc = ""]
#[doc = "The origin must be Signed."]
#[doc = ""]
#[doc = "- `id`: The identifier of the asset for which the caller would like the deposit"]
#[doc = " refunded."]
#[doc = "- `allow_burn`: If `true` then assets may be destroyed in order to complete the refund."]
#[doc = ""]
#[doc = "It will fail with either [`Error::ContainsHolds`] or [`Error::ContainsFreezes`] if"]
#[doc = "the asset account contains holds or freezes in place."]
#[doc = ""]
#[doc = "Emits `Refunded` event when successful."]
pub struct Refund {
#[codec(compact)]
pub id: refund::Id,
pub allow_burn: refund::AllowBurn,
}
pub mod refund {
use super::runtime_types;
pub type Id = ::core::primitive::u32;
pub type AllowBurn = ::core::primitive::bool;
}
impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for Refund {
const PALLET: &'static str = "Assets";
const CALL: &'static str = "refund";
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode"
)]
#[doc = "Sets the minimum balance of an asset."]
#[doc = ""]
#[doc = "Only works if there aren't any accounts that are holding the asset or if"]
#[doc = "the new value of `min_balance` is less than the old one."]
#[doc = ""]
#[doc = "Origin must be Signed and the sender has to be the Owner of the"]
#[doc = "asset `id`."]
#[doc = ""]
#[doc = "- `id`: The identifier of the asset."]
#[doc = "- `min_balance`: The new value of `min_balance`."]
#[doc = ""]
#[doc = "Emits `AssetMinBalanceChanged` event when successful."]
pub struct SetMinBalance {
#[codec(compact)]
pub id: set_min_balance::Id,
pub min_balance: set_min_balance::MinBalance,
}
pub mod set_min_balance {
use super::runtime_types;
pub type Id = ::core::primitive::u32;
pub type MinBalance = ::core::primitive::u128;
}
impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for SetMinBalance {
const PALLET: &'static str = "Assets";
const CALL: &'static str = "set_min_balance";
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode"
)]
#[doc = "Create an asset account for `who`."]
#[doc = ""]
#[doc = "A deposit will be taken from the signer account."]
#[doc = ""]
#[doc = "- `origin`: Must be Signed; the signer account must have sufficient funds for a deposit"]
#[doc = " to be taken."]
#[doc = "- `id`: The identifier of the asset for the account to be created, the asset status must"]
#[doc = " be live."]
#[doc = "- `who`: The account to be created."]
#[doc = ""]
#[doc = "Emits `Touched` event when successful."]
pub struct TouchOther {
#[codec(compact)]
pub id: touch_other::Id,
pub who: touch_other::Who,
}
pub mod touch_other {
use super::runtime_types;
pub type Id = ::core::primitive::u32;
pub type Who = ::subxt::ext::subxt_core::utils::MultiAddress<
::subxt::ext::subxt_core::utils::AccountId32,
(),
>;
}
impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for TouchOther {
const PALLET: &'static str = "Assets";
const CALL: &'static str = "touch_other";
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode"
)]
#[doc = "Return the deposit (if any) of a target asset account. Useful if you are the depositor."]
#[doc = ""]
#[doc = "The origin must be Signed and either the account owner, depositor, or asset `Admin`. In"]
#[doc = "order to burn a non-zero balance of the asset, the caller must be the account and should"]
#[doc = "use `refund`."]
#[doc = ""]
#[doc = "- `id`: The identifier of the asset for the account holding a deposit."]
#[doc = "- `who`: The account to refund."]
#[doc = ""]
#[doc = "It will fail with either [`Error::ContainsHolds`] or [`Error::ContainsFreezes`] if"]
#[doc = "the asset account contains holds or freezes in place."]
#[doc = ""]
#[doc = "Emits `Refunded` event when successful."]
pub struct RefundOther {
#[codec(compact)]
pub id: refund_other::Id,
pub who: refund_other::Who,
}
pub mod refund_other {
use super::runtime_types;
pub type Id = ::core::primitive::u32;
pub type Who = ::subxt::ext::subxt_core::utils::MultiAddress<
::subxt::ext::subxt_core::utils::AccountId32,
(),
>;
}
impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for RefundOther {
const PALLET: &'static str = "Assets";
const CALL: &'static str = "refund_other";
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode"
)]
#[doc = "Disallow further unprivileged transfers of an asset `id` to and from an account `who`."]
#[doc = ""]
#[doc = "Origin must be Signed and the sender should be the Freezer of the asset `id`."]
#[doc = ""]
#[doc = "- `id`: The identifier of the account's asset."]
#[doc = "- `who`: The account to be unblocked."]
#[doc = ""]
#[doc = "Emits `Blocked`."]
#[doc = ""]
#[doc = "Weight: `O(1)`"]
pub struct Block {
#[codec(compact)]
pub id: block::Id,
pub who: block::Who,
}
pub mod block {
use super::runtime_types;
pub type Id = ::core::primitive::u32;
pub type Who = ::subxt::ext::subxt_core::utils::MultiAddress<
::subxt::ext::subxt_core::utils::AccountId32,
(),
>;
}
impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for Block {
const PALLET: &'static str = "Assets";
const CALL: &'static str = "block";
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode"
)]
#[doc = "Transfer the entire transferable balance from the caller asset account."]
#[doc = ""]
#[doc = "NOTE: This function only attempts to transfer _transferable_ balances. This means that"]
#[doc = "any held, frozen, or minimum balance (when `keep_alive` is `true`), will not be"]
#[doc = "transferred by this function. To ensure that this function results in a killed account,"]
#[doc = "you might need to prepare the account by removing any reference counters, storage"]
#[doc = "deposits, etc..."]
#[doc = ""]
#[doc = "The dispatch origin of this call must be Signed."]
#[doc = ""]
#[doc = "- `id`: The identifier of the asset for the account holding a deposit."]
#[doc = "- `dest`: The recipient of the transfer."]
#[doc = "- `keep_alive`: A boolean to determine if the `transfer_all` operation should send all"]
#[doc = " of the funds the asset account has, causing the sender asset account to be killed"]
#[doc = " (false), or transfer everything except at least the minimum balance, which will"]
#[doc = " guarantee to keep the sender asset account alive (true)."]
pub struct TransferAll {
#[codec(compact)]
pub id: transfer_all::Id,
pub dest: transfer_all::Dest,
pub keep_alive: transfer_all::KeepAlive,
}
pub mod transfer_all {
use super::runtime_types;
pub type Id = ::core::primitive::u32;
pub type Dest = ::subxt::ext::subxt_core::utils::MultiAddress<
::subxt::ext::subxt_core::utils::AccountId32,
(),
>;
pub type KeepAlive = ::core::primitive::bool;
}
impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for TransferAll {
const PALLET: &'static str = "Assets";
const CALL: &'static str = "transfer_all";
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode"
)]
#[doc = "Sets the trusted reserve information of an asset."]
#[doc = ""]
#[doc = "Origin must be the Owner of the asset `id`. The origin must conform to the configured"]
#[doc = "`CreateOrigin` or be the signed `owner` configured during asset creation."]
#[doc = ""]
#[doc = "- `id`: The identifier of the asset."]
#[doc = "- `reserves`: The full list of trusted reserves information."]
#[doc = ""]
#[doc = "Emits `AssetMinBalanceChanged` event when successful."]
pub struct SetReserves {
#[codec(compact)]
pub id: set_reserves::Id,
pub reserves: set_reserves::Reserves,
}
pub mod set_reserves {
use super::runtime_types;
pub type Id = ::core::primitive::u32;
pub type Reserves =
runtime_types::bounded_collections::bounded_vec::BoundedVec<()>;
}
impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for SetReserves {
const PALLET: &'static str = "Assets";
const CALL: &'static str = "set_reserves";
}
}
pub struct TransactionApi;
impl TransactionApi {
#[doc = "Issue a new class of fungible assets from a public origin."]
#[doc = ""]
#[doc = "This new asset class has no assets initially and its owner is the origin."]
#[doc = ""]
#[doc = "The origin must conform to the configured `CreateOrigin` and have sufficient funds free."]
#[doc = ""]
#[doc = "Funds of sender are reserved by `AssetDeposit`."]
#[doc = ""]
#[doc = "Parameters:"]
#[doc = "- `id`: The identifier of the new asset. This must not be currently in use to identify"]
#[doc = "an existing asset. If [`NextAssetId`] is set, then this must be equal to it."]
#[doc = "- `admin`: The admin of this class of assets. The admin is the initial address of each"]
#[doc = "member of the asset class's admin team."]
#[doc = "- `min_balance`: The minimum balance of this new asset that any single account must"]
#[doc = "have. If an account's balance is reduced below this, then it collapses to zero."]
#[doc = ""]
#[doc = "Emits `Created` event when successful."]
#[doc = ""]
#[doc = "Weight: `O(1)`"]
pub fn create(
&self,
id: types::create::Id,
admin: types::create::Admin,
min_balance: types::create::MinBalance,
) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload<types::Create> {
::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static(
"Assets",
"create",
types::Create { id, admin, min_balance },
[
120u8, 25u8, 99u8, 39u8, 102u8, 201u8, 14u8, 2u8, 32u8, 139u8, 206u8,
218u8, 223u8, 161u8, 25u8, 98u8, 159u8, 133u8, 65u8, 105u8, 45u8, 4u8,
28u8, 49u8, 248u8, 147u8, 2u8, 179u8, 11u8, 195u8, 177u8, 250u8,
],
)
}
#[doc = "Issue a new class of fungible assets from a privileged origin."]
#[doc = ""]
#[doc = "This new asset class has no assets initially."]
#[doc = ""]
#[doc = "The origin must conform to `ForceOrigin`."]
#[doc = ""]
#[doc = "Unlike `create`, no funds are reserved."]
#[doc = ""]
#[doc = "- `id`: The identifier of the new asset. This must not be currently in use to identify"]
#[doc = "an existing asset. If [`NextAssetId`] is set, then this must be equal to it."]
#[doc = "- `owner`: The owner of this class of assets. The owner has full superuser permissions"]
#[doc = "over this asset, but may later change and configure the permissions using"]
#[doc = "`transfer_ownership` and `set_team`."]
#[doc = "- `min_balance`: The minimum balance of this new asset that any single account must"]
#[doc = "have. If an account's balance is reduced below this, then it collapses to zero."]
#[doc = ""]
#[doc = "Emits `ForceCreated` event when successful."]
#[doc = ""]
#[doc = "Weight: `O(1)`"]
pub fn force_create(
&self,
id: types::force_create::Id,
owner: types::force_create::Owner,
is_sufficient: types::force_create::IsSufficient,
min_balance: types::force_create::MinBalance,
) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload<types::ForceCreate> {
::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static(
"Assets",
"force_create",
types::ForceCreate { id, owner, is_sufficient, min_balance },
[
149u8, 41u8, 54u8, 146u8, 18u8, 248u8, 84u8, 52u8, 202u8, 88u8, 192u8,
208u8, 247u8, 227u8, 254u8, 98u8, 92u8, 46u8, 164u8, 152u8, 143u8,
20u8, 179u8, 227u8, 197u8, 247u8, 242u8, 153u8, 142u8, 148u8, 40u8,
184u8,
],
)
}
#[doc = "Start the process of destroying a fungible asset class."]
#[doc = ""]
#[doc = "`start_destroy` is the first in a series of extrinsics that should be called, to allow"]
#[doc = "destruction of an asset class."]
#[doc = ""]
#[doc = "The origin must conform to `ForceOrigin` or must be `Signed` by the asset's `owner`."]
#[doc = ""]
#[doc = "- `id`: The identifier of the asset to be destroyed. This must identify an existing"]
#[doc = " asset."]
#[doc = ""]
#[doc = "It will fail with either [`Error::ContainsHolds`] or [`Error::ContainsFreezes`] if"]
#[doc = "an account contains holds or freezes in place."]
pub fn start_destroy(
&self,
id: types::start_destroy::Id,
) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload<types::StartDestroy> {
::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static(
"Assets",
"start_destroy",
types::StartDestroy { id },
[
125u8, 82u8, 151u8, 106u8, 25u8, 49u8, 68u8, 203u8, 247u8, 175u8,
117u8, 230u8, 84u8, 98u8, 172u8, 73u8, 233u8, 218u8, 212u8, 198u8,
69u8, 35u8, 15u8, 179u8, 161u8, 205u8, 190u8, 109u8, 198u8, 214u8,
65u8, 164u8,
],
)
}
#[doc = "Destroy all accounts associated with a given asset."]
#[doc = ""]
#[doc = "`destroy_accounts` should only be called after `start_destroy` has been called, and the"]
#[doc = "asset is in a `Destroying` state."]
#[doc = ""]
#[doc = "Due to weight restrictions, this function may need to be called multiple times to fully"]
#[doc = "destroy all accounts. It will destroy `RemoveItemsLimit` accounts at a time."]
#[doc = ""]
#[doc = "- `id`: The identifier of the asset to be destroyed. This must identify an existing"]
#[doc = " asset."]
#[doc = ""]
#[doc = "Each call emits the `Event::DestroyedAccounts` event."]
pub fn destroy_accounts(
&self,
id: types::destroy_accounts::Id,
) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload<types::DestroyAccounts>
{
::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static(
"Assets",
"destroy_accounts",
types::DestroyAccounts { id },
[
236u8, 102u8, 233u8, 170u8, 179u8, 46u8, 42u8, 29u8, 200u8, 116u8,
62u8, 114u8, 233u8, 59u8, 217u8, 215u8, 109u8, 232u8, 147u8, 95u8,
255u8, 248u8, 119u8, 222u8, 216u8, 165u8, 138u8, 47u8, 28u8, 56u8,
204u8, 93u8,
],
)
}
#[doc = "Destroy all approvals associated with a given asset up to the max (T::RemoveItemsLimit)."]
#[doc = ""]
#[doc = "`destroy_approvals` should only be called after `start_destroy` has been called, and the"]
#[doc = "asset is in a `Destroying` state."]
#[doc = ""]
#[doc = "Due to weight restrictions, this function may need to be called multiple times to fully"]
#[doc = "destroy all approvals. It will destroy `RemoveItemsLimit` approvals at a time."]
#[doc = ""]
#[doc = "- `id`: The identifier of the asset to be destroyed. This must identify an existing"]
#[doc = " asset."]
#[doc = ""]
#[doc = "Each call emits the `Event::DestroyedApprovals` event."]
pub fn destroy_approvals(
&self,
id: types::destroy_approvals::Id,
) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload<types::DestroyApprovals>
{
::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static(
"Assets",
"destroy_approvals",
types::DestroyApprovals { id },
[
34u8, 35u8, 15u8, 44u8, 239u8, 232u8, 88u8, 130u8, 130u8, 87u8, 171u8,
255u8, 247u8, 179u8, 14u8, 35u8, 47u8, 223u8, 32u8, 232u8, 41u8, 105u8,
207u8, 199u8, 90u8, 136u8, 144u8, 139u8, 252u8, 76u8, 177u8, 106u8,
],
)
}
#[doc = "Complete destroying asset and unreserve currency."]
#[doc = ""]
#[doc = "`finish_destroy` should only be called after `start_destroy` has been called, and the"]
#[doc = "asset is in a `Destroying` state. All accounts or approvals should be destroyed before"]
#[doc = "hand."]
#[doc = ""]
#[doc = "- `id`: The identifier of the asset to be destroyed. This must identify an existing"]
#[doc = " asset."]
#[doc = ""]
#[doc = "Each successful call emits the `Event::Destroyed` event."]
pub fn finish_destroy(
&self,
id: types::finish_destroy::Id,
) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload<types::FinishDestroy>
{
::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static(
"Assets",
"finish_destroy",
types::FinishDestroy { id },
[
132u8, 67u8, 78u8, 84u8, 240u8, 51u8, 176u8, 119u8, 48u8, 34u8, 153u8,
37u8, 25u8, 171u8, 21u8, 164u8, 53u8, 214u8, 36u8, 149u8, 20u8, 240u8,
123u8, 195u8, 170u8, 162u8, 118u8, 81u8, 176u8, 218u8, 114u8, 113u8,
],
)
}
#[doc = "Mint assets of a particular class."]
#[doc = ""]
#[doc = "The origin must be Signed and the sender must be the Issuer of the asset `id`."]
#[doc = ""]
#[doc = "- `id`: The identifier of the asset to have some amount minted."]
#[doc = "- `beneficiary`: The account to be credited with the minted assets."]
#[doc = "- `amount`: The amount of the asset to be minted."]
#[doc = ""]
#[doc = "Emits `Issued` event when successful."]
#[doc = ""]
#[doc = "Weight: `O(1)`"]
#[doc = "Modes: Pre-existing balance of `beneficiary`; Account pre-existence of `beneficiary`."]
pub fn mint(
&self,
id: types::mint::Id,
beneficiary: types::mint::Beneficiary,
amount: types::mint::Amount,
) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload<types::Mint> {
::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static(
"Assets",
"mint",
types::Mint { id, beneficiary, amount },
[
172u8, 131u8, 103u8, 81u8, 206u8, 2u8, 143u8, 114u8, 137u8, 60u8,
147u8, 67u8, 226u8, 64u8, 71u8, 11u8, 36u8, 145u8, 51u8, 8u8, 0u8,
110u8, 8u8, 195u8, 103u8, 205u8, 156u8, 43u8, 215u8, 12u8, 150u8,
135u8,
],
)
}
#[doc = "Reduce the balance of `who` by as much as possible up to `amount` assets of `id`."]
#[doc = ""]
#[doc = "Origin must be Signed and the sender should be the Manager of the asset `id`."]
#[doc = ""]
#[doc = "Bails with `NoAccount` if the `who` is already dead."]
#[doc = ""]
#[doc = "- `id`: The identifier of the asset to have some amount burned."]
#[doc = "- `who`: The account to be debited from."]
#[doc = "- `amount`: The maximum amount by which `who`'s balance should be reduced."]
#[doc = ""]
#[doc = "Emits `Burned` with the actual amount burned. If this takes the balance to below the"]
#[doc = "minimum for the asset, then the amount burned is increased to take it to zero."]
#[doc = ""]
#[doc = "Weight: `O(1)`"]
#[doc = "Modes: Post-existence of `who`; Pre & post Zombie-status of `who`."]
pub fn burn(
&self,
id: types::burn::Id,
who: types::burn::Who,
amount: types::burn::Amount,
) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload<types::Burn> {
::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static(
"Assets",
"burn",
types::Burn { id, who, amount },
[
105u8, 133u8, 82u8, 100u8, 124u8, 65u8, 174u8, 31u8, 152u8, 45u8, 23u8,
200u8, 23u8, 199u8, 239u8, 8u8, 187u8, 142u8, 21u8, 192u8, 35u8, 211u8,
172u8, 130u8, 169u8, 74u8, 167u8, 36u8, 149u8, 7u8, 19u8, 37u8,
],
)
}
#[doc = "Move some assets from the sender account to another."]
#[doc = ""]
#[doc = "Origin must be Signed."]
#[doc = ""]
#[doc = "- `id`: The identifier of the asset to have some amount transferred."]
#[doc = "- `target`: The account to be credited."]
#[doc = "- `amount`: The amount by which the sender's balance of assets should be reduced and"]
#[doc = "`target`'s balance increased. The amount actually transferred may be slightly greater in"]
#[doc = "the case that the transfer would otherwise take the sender balance above zero but below"]
#[doc = "the minimum balance. Must be greater than zero."]
#[doc = ""]
#[doc = "Emits `Transferred` with the actual amount transferred. If this takes the source balance"]
#[doc = "to below the minimum for the asset, then the amount transferred is increased to take it"]
#[doc = "to zero."]
#[doc = ""]
#[doc = "Weight: `O(1)`"]
#[doc = "Modes: Pre-existence of `target`; Post-existence of sender; Account pre-existence of"]
#[doc = "`target`."]
pub fn transfer(
&self,
id: types::transfer::Id,
target: types::transfer::Target,
amount: types::transfer::Amount,
) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload<types::Transfer> {
::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static(
"Assets",
"transfer",
types::Transfer { id, target, amount },
[
126u8, 31u8, 70u8, 179u8, 222u8, 190u8, 12u8, 19u8, 94u8, 225u8, 217u8,
109u8, 54u8, 69u8, 124u8, 61u8, 97u8, 199u8, 193u8, 166u8, 39u8, 143u8,
125u8, 251u8, 87u8, 173u8, 149u8, 91u8, 182u8, 18u8, 184u8, 65u8,
],
)
}
#[doc = "Move some assets from the sender account to another, keeping the sender account alive."]
#[doc = ""]
#[doc = "Origin must be Signed."]
#[doc = ""]
#[doc = "- `id`: The identifier of the asset to have some amount transferred."]
#[doc = "- `target`: The account to be credited."]
#[doc = "- `amount`: The amount by which the sender's balance of assets should be reduced and"]
#[doc = "`target`'s balance increased. The amount actually transferred may be slightly greater in"]
#[doc = "the case that the transfer would otherwise take the sender balance above zero but below"]
#[doc = "the minimum balance. Must be greater than zero."]
#[doc = ""]
#[doc = "Emits `Transferred` with the actual amount transferred. If this takes the source balance"]
#[doc = "to below the minimum for the asset, then the amount transferred is increased to take it"]
#[doc = "to zero."]
#[doc = ""]
#[doc = "Weight: `O(1)`"]
#[doc = "Modes: Pre-existence of `target`; Post-existence of sender; Account pre-existence of"]
#[doc = "`target`."]
pub fn transfer_keep_alive(
&self,
id: types::transfer_keep_alive::Id,
target: types::transfer_keep_alive::Target,
amount: types::transfer_keep_alive::Amount,
) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload<types::TransferKeepAlive>
{
::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static(
"Assets",
"transfer_keep_alive",
types::TransferKeepAlive { id, target, amount },
[
99u8, 101u8, 219u8, 188u8, 238u8, 230u8, 141u8, 43u8, 38u8, 175u8,
46u8, 89u8, 33u8, 23u8, 223u8, 115u8, 108u8, 18u8, 190u8, 213u8, 157u8,
12u8, 139u8, 97u8, 7u8, 75u8, 196u8, 159u8, 122u8, 32u8, 164u8, 154u8,
],
)
}
#[doc = "Move some assets from one account to another."]
#[doc = ""]
#[doc = "Origin must be Signed and the sender should be the Admin of the asset `id`."]
#[doc = ""]
#[doc = "- `id`: The identifier of the asset to have some amount transferred."]
#[doc = "- `source`: The account to be debited."]
#[doc = "- `dest`: The account to be credited."]
#[doc = "- `amount`: The amount by which the `source`'s balance of assets should be reduced and"]
#[doc = "`dest`'s balance increased. The amount actually transferred may be slightly greater in"]
#[doc = "the case that the transfer would otherwise take the `source` balance above zero but"]
#[doc = "below the minimum balance. Must be greater than zero."]
#[doc = ""]
#[doc = "Emits `Transferred` with the actual amount transferred. If this takes the source balance"]
#[doc = "to below the minimum for the asset, then the amount transferred is increased to take it"]
#[doc = "to zero."]
#[doc = ""]
#[doc = "Weight: `O(1)`"]
#[doc = "Modes: Pre-existence of `dest`; Post-existence of `source`; Account pre-existence of"]
#[doc = "`dest`."]
pub fn force_transfer(
&self,
id: types::force_transfer::Id,
source: types::force_transfer::Source,
dest: types::force_transfer::Dest,
amount: types::force_transfer::Amount,
) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload<types::ForceTransfer>
{
::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static(
"Assets",
"force_transfer",
types::ForceTransfer { id, source, dest, amount },
[
10u8, 210u8, 8u8, 209u8, 8u8, 78u8, 40u8, 213u8, 235u8, 176u8, 144u8,
145u8, 70u8, 13u8, 75u8, 72u8, 166u8, 137u8, 22u8, 191u8, 226u8, 244u8,
92u8, 183u8, 129u8, 212u8, 158u8, 179u8, 169u8, 232u8, 177u8, 225u8,
],
)
}
#[doc = "Disallow further unprivileged transfers of an asset `id` from an account `who`. `who`"]
#[doc = "must already exist as an entry in `Account`s of the asset. If you want to freeze an"]
#[doc = "account that does not have an entry, use `touch_other` first."]
#[doc = ""]
#[doc = "Origin must be Signed and the sender should be the Freezer of the asset `id`."]
#[doc = ""]
#[doc = "- `id`: The identifier of the asset to be frozen."]
#[doc = "- `who`: The account to be frozen."]
#[doc = ""]
#[doc = "Emits `Frozen`."]
#[doc = ""]
#[doc = "Weight: `O(1)`"]
pub fn freeze(
&self,
id: types::freeze::Id,
who: types::freeze::Who,
) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload<types::Freeze> {
::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static(
"Assets",
"freeze",
types::Freeze { id, who },
[
180u8, 124u8, 252u8, 66u8, 205u8, 23u8, 32u8, 217u8, 173u8, 10u8, 91u8,
57u8, 44u8, 215u8, 234u8, 152u8, 115u8, 38u8, 141u8, 212u8, 57u8,
217u8, 169u8, 61u8, 215u8, 130u8, 172u8, 58u8, 90u8, 193u8, 25u8,
249u8,
],
)
}
#[doc = "Allow unprivileged transfers to and from an account again."]
#[doc = ""]
#[doc = "Origin must be Signed and the sender should be the Admin of the asset `id`."]
#[doc = ""]
#[doc = "- `id`: The identifier of the asset to be frozen."]
#[doc = "- `who`: The account to be unfrozen."]
#[doc = ""]
#[doc = "Emits `Thawed`."]
#[doc = ""]
#[doc = "Weight: `O(1)`"]
pub fn thaw(
&self,
id: types::thaw::Id,
who: types::thaw::Who,
) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload<types::Thaw> {
::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static(
"Assets",
"thaw",
types::Thaw { id, who },
[
187u8, 130u8, 9u8, 152u8, 231u8, 9u8, 245u8, 162u8, 115u8, 19u8, 73u8,
176u8, 16u8, 230u8, 30u8, 60u8, 180u8, 183u8, 154u8, 160u8, 72u8,
219u8, 116u8, 57u8, 140u8, 6u8, 105u8, 38u8, 98u8, 90u8, 250u8, 135u8,
],
)
}
#[doc = "Disallow further unprivileged transfers for the asset class."]
#[doc = ""]
#[doc = "Origin must be Signed and the sender should be the Freezer of the asset `id`."]
#[doc = ""]
#[doc = "- `id`: The identifier of the asset to be frozen."]
#[doc = ""]
#[doc = "Emits `Frozen`."]
#[doc = ""]
#[doc = "Weight: `O(1)`"]
pub fn freeze_asset(
&self,
id: types::freeze_asset::Id,
) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload<types::FreezeAsset> {
::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static(
"Assets",
"freeze_asset",
types::FreezeAsset { id },
[
75u8, 237u8, 183u8, 112u8, 112u8, 123u8, 250u8, 203u8, 169u8, 51u8,
218u8, 35u8, 159u8, 23u8, 21u8, 10u8, 167u8, 84u8, 161u8, 212u8, 124u8,
236u8, 88u8, 175u8, 48u8, 195u8, 33u8, 145u8, 141u8, 156u8, 31u8,
250u8,
],
)
}
#[doc = "Allow unprivileged transfers for the asset again."]
#[doc = ""]
#[doc = "Origin must be Signed and the sender should be the Admin of the asset `id`."]
#[doc = ""]
#[doc = "- `id`: The identifier of the asset to be thawed."]
#[doc = ""]
#[doc = "Emits `Thawed`."]
#[doc = ""]
#[doc = "Weight: `O(1)`"]
pub fn thaw_asset(
&self,
id: types::thaw_asset::Id,
) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload<types::ThawAsset> {
::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static(
"Assets",
"thaw_asset",
types::ThawAsset { id },
[
151u8, 6u8, 170u8, 114u8, 55u8, 8u8, 5u8, 194u8, 251u8, 78u8, 232u8,
181u8, 157u8, 62u8, 16u8, 39u8, 79u8, 119u8, 205u8, 198u8, 199u8, 26u8,
92u8, 162u8, 169u8, 173u8, 93u8, 51u8, 7u8, 79u8, 198u8, 77u8,
],
)
}
#[doc = "Change the Owner of an asset."]
#[doc = ""]
#[doc = "Origin must be Signed and the sender should be the Owner of the asset `id`."]
#[doc = ""]
#[doc = "- `id`: The identifier of the asset."]
#[doc = "- `owner`: The new Owner of this asset."]
#[doc = ""]
#[doc = "Emits `OwnerChanged`."]
#[doc = ""]
#[doc = "Weight: `O(1)`"]
pub fn transfer_ownership(
&self,
id: types::transfer_ownership::Id,
owner: types::transfer_ownership::Owner,
) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload<types::TransferOwnership>
{
::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static(
"Assets",
"transfer_ownership",
types::TransferOwnership { id, owner },
[
65u8, 85u8, 40u8, 202u8, 212u8, 170u8, 130u8, 132u8, 140u8, 90u8, 68u8,
28u8, 101u8, 154u8, 222u8, 150u8, 244u8, 165u8, 44u8, 22u8, 225u8,
152u8, 7u8, 162u8, 110u8, 54u8, 173u8, 181u8, 54u8, 215u8, 105u8,
239u8,
],
)
}
#[doc = "Change the Issuer, Admin and Freezer of an asset."]
#[doc = ""]
#[doc = "Origin must be Signed and the sender should be the Owner of the asset `id`."]
#[doc = ""]
#[doc = "- `id`: The identifier of the asset to be frozen."]
#[doc = "- `issuer`: The new Issuer of this asset."]
#[doc = "- `admin`: The new Admin of this asset."]
#[doc = "- `freezer`: The new Freezer of this asset."]
#[doc = ""]
#[doc = "Emits `TeamChanged`."]
#[doc = ""]
#[doc = "Weight: `O(1)`"]
pub fn set_team(
&self,
id: types::set_team::Id,
issuer: types::set_team::Issuer,
admin: types::set_team::Admin,
freezer: types::set_team::Freezer,
) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload<types::SetTeam> {
::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static(
"Assets",
"set_team",
types::SetTeam { id, issuer, admin, freezer },
[
52u8, 75u8, 50u8, 30u8, 164u8, 161u8, 121u8, 25u8, 135u8, 83u8, 115u8,
25u8, 103u8, 1u8, 124u8, 206u8, 83u8, 182u8, 41u8, 116u8, 44u8, 37u8,
75u8, 70u8, 252u8, 225u8, 240u8, 144u8, 96u8, 160u8, 151u8, 4u8,
],
)
}
#[doc = "Set the metadata for an asset."]
#[doc = ""]
#[doc = "Origin must be Signed and the sender should be the Owner of the asset `id`."]
#[doc = ""]
#[doc = "Funds of sender are reserved according to the formula:"]
#[doc = "`MetadataDepositBase + MetadataDepositPerByte * (name.len + symbol.len)` taking into"]
#[doc = "account any already reserved funds."]
#[doc = ""]
#[doc = "- `id`: The identifier of the asset to update."]
#[doc = "- `name`: The user friendly name of this asset. Limited in length by `StringLimit`."]
#[doc = "- `symbol`: The exchange symbol for this asset. Limited in length by `StringLimit`."]
#[doc = "- `decimals`: The number of decimals this asset uses to represent one unit."]
#[doc = ""]
#[doc = "Emits `MetadataSet`."]
#[doc = ""]
#[doc = "Weight: `O(1)`"]
pub fn set_metadata(
&self,
id: types::set_metadata::Id,
name: types::set_metadata::Name,
symbol: types::set_metadata::Symbol,
decimals: types::set_metadata::Decimals,
) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload<types::SetMetadata> {
::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static(
"Assets",
"set_metadata",
types::SetMetadata { id, name, symbol, decimals },
[
215u8, 66u8, 15u8, 17u8, 88u8, 174u8, 77u8, 75u8, 229u8, 155u8, 160u8,
34u8, 108u8, 194u8, 88u8, 238u8, 131u8, 97u8, 234u8, 102u8, 71u8, 56u8,
70u8, 248u8, 211u8, 85u8, 72u8, 92u8, 71u8, 222u8, 190u8, 91u8,
],
)
}
#[doc = "Clear the metadata for an asset."]
#[doc = ""]
#[doc = "Origin must be Signed and the sender should be the Owner of the asset `id`."]
#[doc = ""]
#[doc = "Any deposit is freed for the asset owner."]
#[doc = ""]
#[doc = "- `id`: The identifier of the asset to clear."]
#[doc = ""]
#[doc = "Emits `MetadataCleared`."]
#[doc = ""]
#[doc = "Weight: `O(1)`"]
pub fn clear_metadata(
&self,
id: types::clear_metadata::Id,
) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload<types::ClearMetadata>
{
::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static(
"Assets",
"clear_metadata",
types::ClearMetadata { id },
[
68u8, 172u8, 6u8, 158u8, 237u8, 254u8, 22u8, 4u8, 254u8, 157u8, 179u8,
168u8, 105u8, 114u8, 56u8, 166u8, 213u8, 38u8, 188u8, 195u8, 99u8,
43u8, 142u8, 220u8, 94u8, 248u8, 51u8, 226u8, 233u8, 114u8, 86u8, 93u8,
],
)
}
#[doc = "Force the metadata for an asset to some value."]
#[doc = ""]
#[doc = "Origin must be ForceOrigin."]
#[doc = ""]
#[doc = "Any deposit is left alone."]
#[doc = ""]
#[doc = "- `id`: The identifier of the asset to update."]
#[doc = "- `name`: The user friendly name of this asset. Limited in length by `StringLimit`."]
#[doc = "- `symbol`: The exchange symbol for this asset. Limited in length by `StringLimit`."]
#[doc = "- `decimals`: The number of decimals this asset uses to represent one unit."]
#[doc = ""]
#[doc = "Emits `MetadataSet`."]
#[doc = ""]
#[doc = "Weight: `O(N + S)` where N and S are the length of the name and symbol respectively."]
pub fn force_set_metadata(
&self,
id: types::force_set_metadata::Id,
name: types::force_set_metadata::Name,
symbol: types::force_set_metadata::Symbol,
decimals: types::force_set_metadata::Decimals,
is_frozen: types::force_set_metadata::IsFrozen,
) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload<types::ForceSetMetadata>
{
::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static(
"Assets",
"force_set_metadata",
types::ForceSetMetadata { id, name, symbol, decimals, is_frozen },
[
76u8, 90u8, 182u8, 13u8, 133u8, 248u8, 94u8, 136u8, 169u8, 114u8,
151u8, 20u8, 106u8, 89u8, 78u8, 228u8, 22u8, 29u8, 68u8, 8u8, 54u8,
47u8, 1u8, 186u8, 45u8, 167u8, 14u8, 112u8, 34u8, 43u8, 91u8, 140u8,
],
)
}
#[doc = "Clear the metadata for an asset."]
#[doc = ""]
#[doc = "Origin must be ForceOrigin."]
#[doc = ""]
#[doc = "Any deposit is returned."]
#[doc = ""]
#[doc = "- `id`: The identifier of the asset to clear."]
#[doc = ""]
#[doc = "Emits `MetadataCleared`."]
#[doc = ""]
#[doc = "Weight: `O(1)`"]
pub fn force_clear_metadata(
&self,
id: types::force_clear_metadata::Id,
) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload<types::ForceClearMetadata>
{
::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static(
"Assets",
"force_clear_metadata",
types::ForceClearMetadata { id },
[
2u8, 224u8, 84u8, 48u8, 130u8, 132u8, 79u8, 38u8, 217u8, 17u8, 165u8,
139u8, 89u8, 53u8, 116u8, 184u8, 32u8, 91u8, 122u8, 39u8, 85u8, 40u8,
213u8, 216u8, 135u8, 171u8, 50u8, 69u8, 202u8, 28u8, 166u8, 147u8,
],
)
}
#[doc = "Alter the attributes of a given asset."]
#[doc = ""]
#[doc = "Origin must be `ForceOrigin`."]
#[doc = ""]
#[doc = "- `id`: The identifier of the asset."]
#[doc = "- `owner`: The new Owner of this asset."]
#[doc = "- `issuer`: The new Issuer of this asset."]
#[doc = "- `admin`: The new Admin of this asset."]
#[doc = "- `freezer`: The new Freezer of this asset."]
#[doc = "- `min_balance`: The minimum balance of this new asset that any single account must"]
#[doc = "have. If an account's balance is reduced below this, then it collapses to zero."]
#[doc = "- `is_sufficient`: Whether a non-zero balance of this asset is deposit of sufficient"]
#[doc = "value to account for the state bloat associated with its balance storage. If set to"]
#[doc = "`true`, then non-zero balances may be stored without a `consumer` reference (and thus"]
#[doc = "an ED in the Balances pallet or whatever else is used to control user-account state"]
#[doc = "growth)."]
#[doc = "- `is_frozen`: Whether this asset class is frozen except for permissioned/admin"]
#[doc = "instructions."]
#[doc = ""]
#[doc = "Emits `AssetStatusChanged` with the identity of the asset."]
#[doc = ""]
#[doc = "Weight: `O(1)`"]
pub fn force_asset_status(
&self,
id: types::force_asset_status::Id,
owner: types::force_asset_status::Owner,
issuer: types::force_asset_status::Issuer,
admin: types::force_asset_status::Admin,
freezer: types::force_asset_status::Freezer,
min_balance: types::force_asset_status::MinBalance,
is_sufficient: types::force_asset_status::IsSufficient,
is_frozen: types::force_asset_status::IsFrozen,
) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload<types::ForceAssetStatus>
{
::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static(
"Assets",
"force_asset_status",
types::ForceAssetStatus {
id,
owner,
issuer,
admin,
freezer,
min_balance,
is_sufficient,
is_frozen,
},
[
149u8, 136u8, 250u8, 33u8, 53u8, 220u8, 207u8, 187u8, 42u8, 118u8,
93u8, 173u8, 100u8, 243u8, 234u8, 207u8, 88u8, 45u8, 79u8, 221u8,
113u8, 166u8, 229u8, 171u8, 223u8, 126u8, 20u8, 67u8, 19u8, 77u8, 44u8,
19u8,
],
)
}
#[doc = "Approve an amount of asset for transfer by a delegated third-party account."]
#[doc = ""]
#[doc = "Origin must be Signed."]
#[doc = ""]
#[doc = "Ensures that `ApprovalDeposit` worth of `Currency` is reserved from signing account"]
#[doc = "for the purpose of holding the approval. If some non-zero amount of assets is already"]
#[doc = "approved from signing account to `delegate`, then it is topped up or unreserved to"]
#[doc = "meet the right value."]
#[doc = ""]
#[doc = "NOTE: The signing account does not need to own `amount` of assets at the point of"]
#[doc = "making this call."]
#[doc = ""]
#[doc = "- `id`: The identifier of the asset."]
#[doc = "- `delegate`: The account to delegate permission to transfer asset."]
#[doc = "- `amount`: The amount of asset that may be transferred by `delegate`. If there is"]
#[doc = "already an approval in place, then this acts additively."]
#[doc = ""]
#[doc = "Emits `ApprovedTransfer` on success."]
#[doc = ""]
#[doc = "Weight: `O(1)`"]
pub fn approve_transfer(
&self,
id: types::approve_transfer::Id,
delegate: types::approve_transfer::Delegate,
amount: types::approve_transfer::Amount,
) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload<types::ApproveTransfer>
{
::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static(
"Assets",
"approve_transfer",
types::ApproveTransfer { id, delegate, amount },
[
39u8, 227u8, 23u8, 143u8, 10u8, 120u8, 227u8, 1u8, 223u8, 78u8, 40u8,
213u8, 249u8, 175u8, 170u8, 183u8, 10u8, 244u8, 117u8, 111u8, 140u8,
157u8, 153u8, 212u8, 94u8, 119u8, 213u8, 44u8, 41u8, 8u8, 114u8, 200u8,
],
)
}
#[doc = "Cancel all of some asset approved for delegated transfer by a third-party account."]
#[doc = ""]
#[doc = "Origin must be Signed and there must be an approval in place between signer and"]
#[doc = "`delegate`."]
#[doc = ""]
#[doc = "Unreserves any deposit previously reserved by `approve_transfer` for the approval."]
#[doc = ""]
#[doc = "- `id`: The identifier of the asset."]
#[doc = "- `delegate`: The account delegated permission to transfer asset."]
#[doc = ""]
#[doc = "Emits `ApprovalCancelled` on success."]
#[doc = ""]
#[doc = "Weight: `O(1)`"]
pub fn cancel_approval(
&self,
id: types::cancel_approval::Id,
delegate: types::cancel_approval::Delegate,
) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload<types::CancelApproval>
{
::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static(
"Assets",
"cancel_approval",
types::CancelApproval { id, delegate },
[
74u8, 117u8, 101u8, 78u8, 152u8, 208u8, 16u8, 102u8, 34u8, 195u8, 61u8,
36u8, 85u8, 91u8, 253u8, 182u8, 61u8, 199u8, 12u8, 102u8, 149u8, 20u8,
238u8, 207u8, 236u8, 50u8, 63u8, 249u8, 34u8, 85u8, 88u8, 229u8,
],
)
}
#[doc = "Cancel all of some asset approved for delegated transfer by a third-party account."]
#[doc = ""]
#[doc = "Origin must be either ForceOrigin or Signed origin with the signer being the Admin"]
#[doc = "account of the asset `id`."]
#[doc = ""]
#[doc = "Unreserves any deposit previously reserved by `approve_transfer` for the approval."]
#[doc = ""]
#[doc = "- `id`: The identifier of the asset."]
#[doc = "- `delegate`: The account delegated permission to transfer asset."]
#[doc = ""]
#[doc = "Emits `ApprovalCancelled` on success."]
#[doc = ""]
#[doc = "Weight: `O(1)`"]
pub fn force_cancel_approval(
&self,
id: types::force_cancel_approval::Id,
owner: types::force_cancel_approval::Owner,
delegate: types::force_cancel_approval::Delegate,
) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload<types::ForceCancelApproval>
{
::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static(
"Assets",
"force_cancel_approval",
types::ForceCancelApproval { id, owner, delegate },
[
27u8, 231u8, 85u8, 241u8, 18u8, 151u8, 64u8, 234u8, 11u8, 84u8, 252u8,
128u8, 44u8, 247u8, 132u8, 82u8, 34u8, 210u8, 202u8, 50u8, 158u8, 45u8,
239u8, 192u8, 7u8, 24u8, 39u8, 95u8, 57u8, 21u8, 178u8, 113u8,
],
)
}
#[doc = "Transfer some asset balance from a previously delegated account to some third-party"]
#[doc = "account."]
#[doc = ""]
#[doc = "Origin must be Signed and there must be an approval in place by the `owner` to the"]
#[doc = "signer."]
#[doc = ""]
#[doc = "If the entire amount approved for transfer is transferred, then any deposit previously"]
#[doc = "reserved by `approve_transfer` is unreserved."]
#[doc = ""]
#[doc = "- `id`: The identifier of the asset."]
#[doc = "- `owner`: The account which previously approved for a transfer of at least `amount` and"]
#[doc = "from which the asset balance will be withdrawn."]
#[doc = "- `destination`: The account to which the asset balance of `amount` will be transferred."]
#[doc = "- `amount`: The amount of assets to transfer."]
#[doc = ""]
#[doc = "Emits `TransferredApproved` on success."]
#[doc = ""]
#[doc = "Weight: `O(1)`"]
pub fn transfer_approved(
&self,
id: types::transfer_approved::Id,
owner: types::transfer_approved::Owner,
destination: types::transfer_approved::Destination,
amount: types::transfer_approved::Amount,
) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload<types::TransferApproved>
{
::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static(
"Assets",
"transfer_approved",
types::TransferApproved { id, owner, destination, amount },
[
214u8, 51u8, 243u8, 129u8, 116u8, 233u8, 199u8, 183u8, 25u8, 5u8,
109u8, 85u8, 255u8, 68u8, 36u8, 99u8, 99u8, 179u8, 34u8, 66u8, 65u8,
82u8, 189u8, 174u8, 22u8, 100u8, 211u8, 13u8, 178u8, 19u8, 128u8,
177u8,
],
)
}
#[doc = "Create an asset account for non-provider assets."]
#[doc = ""]
#[doc = "A deposit will be taken from the signer account."]
#[doc = ""]
#[doc = "- `origin`: Must be Signed; the signer account must have sufficient funds for a deposit"]
#[doc = " to be taken."]
#[doc = "- `id`: The identifier of the asset for the account to be created."]
#[doc = ""]
#[doc = "Emits `Touched` event when successful."]
pub fn touch(
&self,
id: types::touch::Id,
) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload<types::Touch> {
::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static(
"Assets",
"touch",
types::Touch { id },
[
50u8, 185u8, 46u8, 134u8, 136u8, 31u8, 191u8, 34u8, 215u8, 150u8, 73u8,
103u8, 140u8, 36u8, 95u8, 156u8, 201u8, 152u8, 32u8, 165u8, 47u8, 86u8,
163u8, 255u8, 8u8, 251u8, 176u8, 138u8, 165u8, 48u8, 12u8, 27u8,
],
)
}
#[doc = "Return the deposit (if any) of an asset account or a consumer reference (if any) of an"]
#[doc = "account."]
#[doc = ""]
#[doc = "The origin must be Signed."]
#[doc = ""]
#[doc = "- `id`: The identifier of the asset for which the caller would like the deposit"]
#[doc = " refunded."]
#[doc = "- `allow_burn`: If `true` then assets may be destroyed in order to complete the refund."]
#[doc = ""]
#[doc = "It will fail with either [`Error::ContainsHolds`] or [`Error::ContainsFreezes`] if"]
#[doc = "the asset account contains holds or freezes in place."]
#[doc = ""]
#[doc = "Emits `Refunded` event when successful."]
pub fn refund(
&self,
id: types::refund::Id,
allow_burn: types::refund::AllowBurn,
) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload<types::Refund> {
::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static(
"Assets",
"refund",
types::Refund { id, allow_burn },
[
218u8, 207u8, 8u8, 41u8, 154u8, 250u8, 117u8, 174u8, 143u8, 133u8,
34u8, 113u8, 171u8, 18u8, 177u8, 227u8, 146u8, 92u8, 12u8, 226u8,
101u8, 230u8, 246u8, 162u8, 32u8, 73u8, 138u8, 158u8, 95u8, 226u8,
75u8, 95u8,
],
)
}
#[doc = "Sets the minimum balance of an asset."]
#[doc = ""]
#[doc = "Only works if there aren't any accounts that are holding the asset or if"]
#[doc = "the new value of `min_balance` is less than the old one."]
#[doc = ""]
#[doc = "Origin must be Signed and the sender has to be the Owner of the"]
#[doc = "asset `id`."]
#[doc = ""]
#[doc = "- `id`: The identifier of the asset."]
#[doc = "- `min_balance`: The new value of `min_balance`."]
#[doc = ""]
#[doc = "Emits `AssetMinBalanceChanged` event when successful."]
pub fn set_min_balance(
&self,
id: types::set_min_balance::Id,
min_balance: types::set_min_balance::MinBalance,
) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload<types::SetMinBalance>
{
::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static(
"Assets",
"set_min_balance",
types::SetMinBalance { id, min_balance },
[
141u8, 241u8, 137u8, 50u8, 232u8, 122u8, 252u8, 104u8, 185u8, 170u8,
246u8, 0u8, 20u8, 128u8, 136u8, 155u8, 62u8, 243u8, 4u8, 221u8, 42u8,
225u8, 16u8, 245u8, 58u8, 127u8, 84u8, 193u8, 175u8, 165u8, 35u8, 49u8,
],
)
}
#[doc = "Create an asset account for `who`."]
#[doc = ""]
#[doc = "A deposit will be taken from the signer account."]
#[doc = ""]
#[doc = "- `origin`: Must be Signed; the signer account must have sufficient funds for a deposit"]
#[doc = " to be taken."]
#[doc = "- `id`: The identifier of the asset for the account to be created, the asset status must"]
#[doc = " be live."]
#[doc = "- `who`: The account to be created."]
#[doc = ""]
#[doc = "Emits `Touched` event when successful."]
pub fn touch_other(
&self,
id: types::touch_other::Id,
who: types::touch_other::Who,
) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload<types::TouchOther> {
::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static(
"Assets",
"touch_other",
types::TouchOther { id, who },
[
104u8, 85u8, 80u8, 68u8, 135u8, 149u8, 102u8, 104u8, 188u8, 79u8, 42u8,
34u8, 241u8, 84u8, 183u8, 176u8, 215u8, 172u8, 78u8, 196u8, 206u8,
214u8, 138u8, 240u8, 92u8, 65u8, 117u8, 170u8, 140u8, 120u8, 50u8,
166u8,
],
)
}
#[doc = "Return the deposit (if any) of a target asset account. Useful if you are the depositor."]
#[doc = ""]
#[doc = "The origin must be Signed and either the account owner, depositor, or asset `Admin`. In"]
#[doc = "order to burn a non-zero balance of the asset, the caller must be the account and should"]
#[doc = "use `refund`."]
#[doc = ""]
#[doc = "- `id`: The identifier of the asset for the account holding a deposit."]
#[doc = "- `who`: The account to refund."]
#[doc = ""]
#[doc = "It will fail with either [`Error::ContainsHolds`] or [`Error::ContainsFreezes`] if"]
#[doc = "the asset account contains holds or freezes in place."]
#[doc = ""]
#[doc = "Emits `Refunded` event when successful."]
pub fn refund_other(
&self,
id: types::refund_other::Id,
who: types::refund_other::Who,
) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload<types::RefundOther> {
::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static(
"Assets",
"refund_other",
types::RefundOther { id, who },
[
113u8, 58u8, 33u8, 109u8, 233u8, 229u8, 210u8, 40u8, 176u8, 252u8,
131u8, 80u8, 33u8, 132u8, 19u8, 170u8, 145u8, 146u8, 246u8, 31u8,
222u8, 120u8, 167u8, 187u8, 8u8, 144u8, 164u8, 251u8, 52u8, 249u8,
91u8, 136u8,
],
)
}
#[doc = "Disallow further unprivileged transfers of an asset `id` to and from an account `who`."]
#[doc = ""]
#[doc = "Origin must be Signed and the sender should be the Freezer of the asset `id`."]
#[doc = ""]
#[doc = "- `id`: The identifier of the account's asset."]
#[doc = "- `who`: The account to be unblocked."]
#[doc = ""]
#[doc = "Emits `Blocked`."]
#[doc = ""]
#[doc = "Weight: `O(1)`"]
pub fn block(
&self,
id: types::block::Id,
who: types::block::Who,
) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload<types::Block> {
::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static(
"Assets",
"block",
types::Block { id, who },
[
224u8, 63u8, 26u8, 229u8, 23u8, 164u8, 212u8, 170u8, 156u8, 104u8,
63u8, 158u8, 53u8, 162u8, 157u8, 127u8, 183u8, 94u8, 211u8, 123u8,
228u8, 198u8, 47u8, 80u8, 53u8, 122u8, 46u8, 69u8, 67u8, 170u8, 193u8,
33u8,
],
)
}
#[doc = "Transfer the entire transferable balance from the caller asset account."]
#[doc = ""]
#[doc = "NOTE: This function only attempts to transfer _transferable_ balances. This means that"]
#[doc = "any held, frozen, or minimum balance (when `keep_alive` is `true`), will not be"]
#[doc = "transferred by this function. To ensure that this function results in a killed account,"]
#[doc = "you might need to prepare the account by removing any reference counters, storage"]
#[doc = "deposits, etc..."]
#[doc = ""]
#[doc = "The dispatch origin of this call must be Signed."]
#[doc = ""]
#[doc = "- `id`: The identifier of the asset for the account holding a deposit."]
#[doc = "- `dest`: The recipient of the transfer."]
#[doc = "- `keep_alive`: A boolean to determine if the `transfer_all` operation should send all"]
#[doc = " of the funds the asset account has, causing the sender asset account to be killed"]
#[doc = " (false), or transfer everything except at least the minimum balance, which will"]
#[doc = " guarantee to keep the sender asset account alive (true)."]
pub fn transfer_all(
&self,
id: types::transfer_all::Id,
dest: types::transfer_all::Dest,
keep_alive: types::transfer_all::KeepAlive,
) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload<types::TransferAll> {
::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static(
"Assets",
"transfer_all",
types::TransferAll { id, dest, keep_alive },
[
180u8, 161u8, 252u8, 127u8, 200u8, 117u8, 245u8, 213u8, 170u8, 169u8,
178u8, 115u8, 156u8, 8u8, 79u8, 50u8, 168u8, 229u8, 87u8, 33u8, 238u8,
124u8, 13u8, 210u8, 81u8, 132u8, 236u8, 46u8, 101u8, 18u8, 22u8, 61u8,
],
)
}
#[doc = "Sets the trusted reserve information of an asset."]
#[doc = ""]
#[doc = "Origin must be the Owner of the asset `id`. The origin must conform to the configured"]
#[doc = "`CreateOrigin` or be the signed `owner` configured during asset creation."]
#[doc = ""]
#[doc = "- `id`: The identifier of the asset."]
#[doc = "- `reserves`: The full list of trusted reserves information."]
#[doc = ""]
#[doc = "Emits `AssetMinBalanceChanged` event when successful."]
pub fn set_reserves(
&self,
id: types::set_reserves::Id,
reserves: types::set_reserves::Reserves,
) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload<types::SetReserves> {
::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static(
"Assets",
"set_reserves",
types::SetReserves { id, reserves },
[
170u8, 210u8, 175u8, 235u8, 220u8, 223u8, 164u8, 253u8, 189u8, 4u8,
100u8, 160u8, 181u8, 44u8, 79u8, 187u8, 37u8, 102u8, 0u8, 187u8, 48u8,
82u8, 247u8, 200u8, 2u8, 141u8, 57u8, 55u8, 224u8, 32u8, 176u8, 231u8,
],
)
}
}
}
pub mod view_functions {
use super::{root_mod, runtime_types};
pub struct ViewFunctionsApi;
impl ViewFunctionsApi {
#[doc = " Provide the asset details for asset `id`."]
pub fn asset_details(
&self,
id: asset_details::Id,
) -> ::subxt::ext::subxt_core::view_functions::payload::StaticPayload<
asset_details::Input,
asset_details::output::Output,
> {
::subxt::ext::subxt_core::view_functions::payload::StaticPayload::new_static(
[
104u8, 42u8, 89u8, 213u8, 26u8, 185u8, 228u8, 138u8, 140u8, 140u8,
196u8, 24u8, 255u8, 151u8, 8u8, 210u8, 167u8, 2u8, 151u8, 173u8, 11u8,
75u8, 221u8, 61u8, 164u8, 183u8, 70u8, 41u8, 166u8, 90u8, 110u8, 92u8,
],
asset_details::Input { id },
[
211u8, 90u8, 10u8, 200u8, 75u8, 44u8, 223u8, 16u8, 230u8, 165u8, 250u8,
228u8, 154u8, 9u8, 130u8, 112u8, 113u8, 184u8, 170u8, 127u8, 188u8,
95u8, 63u8, 51u8, 78u8, 130u8, 147u8, 123u8, 190u8, 170u8, 16u8, 65u8,
],
)
}
#[doc = " Provide the balance of `who` for asset `id`."]
pub fn balance_of(
&self,
who: balance_of::Who,
id: balance_of::Id,
) -> ::subxt::ext::subxt_core::view_functions::payload::StaticPayload<
balance_of::Input,
balance_of::output::Output,
> {
::subxt::ext::subxt_core::view_functions::payload::StaticPayload::new_static(
[
104u8, 42u8, 89u8, 213u8, 26u8, 185u8, 228u8, 138u8, 140u8, 140u8,
196u8, 24u8, 255u8, 151u8, 8u8, 210u8, 83u8, 26u8, 199u8, 226u8, 27u8,
118u8, 177u8, 33u8, 231u8, 97u8, 228u8, 115u8, 65u8, 154u8, 27u8, 2u8,
],
balance_of::Input { who, id },
[
111u8, 166u8, 174u8, 198u8, 50u8, 246u8, 223u8, 192u8, 195u8, 6u8,
218u8, 113u8, 85u8, 251u8, 79u8, 59u8, 196u8, 83u8, 39u8, 141u8, 200u8,
113u8, 92u8, 67u8, 110u8, 112u8, 255u8, 77u8, 94u8, 232u8, 148u8,
189u8,
],
)
}
#[doc = " Provide the configured metadata for asset `id`."]
pub fn get_metadata(
&self,
id: get_metadata::Id,
) -> ::subxt::ext::subxt_core::view_functions::payload::StaticPayload<
get_metadata::Input,
get_metadata::output::Output,
> {
::subxt::ext::subxt_core::view_functions::payload::StaticPayload::new_static(
[
104u8, 42u8, 89u8, 213u8, 26u8, 185u8, 228u8, 138u8, 140u8, 140u8,
196u8, 24u8, 255u8, 151u8, 8u8, 210u8, 46u8, 135u8, 102u8, 164u8, 13u8,
27u8, 105u8, 214u8, 21u8, 27u8, 216u8, 1u8, 229u8, 117u8, 80u8, 94u8,
],
get_metadata::Input { id },
[
194u8, 126u8, 37u8, 51u8, 199u8, 8u8, 17u8, 77u8, 127u8, 118u8, 9u8,
196u8, 248u8, 40u8, 136u8, 175u8, 243u8, 35u8, 137u8, 159u8, 137u8,
162u8, 58u8, 4u8, 206u8, 51u8, 222u8, 234u8, 218u8, 8u8, 23u8, 195u8,
],
)
}
#[doc = " Provide the configured reserves data for asset `id`."]
pub fn get_reserves_data(
&self,
id: get_reserves_data::Id,
) -> ::subxt::ext::subxt_core::view_functions::payload::StaticPayload<
get_reserves_data::Input,
get_reserves_data::output::Output,
> {
::subxt::ext::subxt_core::view_functions::payload::StaticPayload::new_static(
[
104u8, 42u8, 89u8, 213u8, 26u8, 185u8, 228u8, 138u8, 140u8, 140u8,
196u8, 24u8, 255u8, 151u8, 8u8, 210u8, 100u8, 246u8, 63u8, 41u8, 35u8,
227u8, 152u8, 40u8, 36u8, 49u8, 99u8, 129u8, 174u8, 30u8, 105u8, 134u8,
],
get_reserves_data::Input { id },
[
209u8, 99u8, 108u8, 142u8, 202u8, 226u8, 194u8, 23u8, 99u8, 165u8,
72u8, 212u8, 158u8, 187u8, 5u8, 201u8, 58u8, 51u8, 161u8, 119u8, 0u8,
58u8, 15u8, 109u8, 255u8, 0u8, 192u8, 222u8, 51u8, 241u8, 34u8, 116u8,
],
)
}
}
pub mod asset_details {
use super::{root_mod, runtime_types};
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode"
)]
pub struct Input {
pub id: Id,
}
pub type Id = ::core::primitive::u32;
pub mod output {
use super::runtime_types;
pub type Output = ::core::option::Option<
runtime_types::pallet_assets::types::AssetDetails<
::core::primitive::u128,
::subxt::ext::subxt_core::utils::AccountId32,
::core::primitive::u128,
>,
>;
}
}
pub mod balance_of {
use super::{root_mod, runtime_types};
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode"
)]
pub struct Input {
pub who: Who,
pub id: Id,
}
pub type Who = ::subxt::ext::subxt_core::utils::AccountId32;
pub type Id = ::core::primitive::u32;
pub mod output {
use super::runtime_types;
pub type Output = ::core::option::Option<::core::primitive::u128>;
}
}
pub mod get_metadata {
use super::{root_mod, runtime_types};
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode"
)]
pub struct Input {
pub id: Id,
}
pub type Id = ::core::primitive::u32;
pub mod output {
use super::runtime_types;
pub type Output = ::core::option::Option<
runtime_types::pallet_assets::types::AssetMetadata<
::core::primitive::u128,
runtime_types::bounded_collections::bounded_vec::BoundedVec<
::core::primitive::u8,
>,
>,
>;
}
}
pub mod get_reserves_data {
use super::{root_mod, runtime_types};
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode"
)]
pub struct Input {
pub id: Id,
}
pub type Id = ::core::primitive::u32;
pub mod output {
use super::runtime_types;
pub type Output = ::subxt::ext::subxt_core::alloc::vec::Vec<()>;
}
}
}
#[doc = "The `Event` enum of this pallet"]
pub type Event = runtime_types::pallet_assets::pallet::Event;
pub mod events {
use super::runtime_types;
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")]
#[doc = "Some asset class was created."]
pub struct Created {
pub asset_id: created::AssetId,
pub creator: created::Creator,
pub owner: created::Owner,
}
pub mod created {
use super::runtime_types;
pub type AssetId = ::core::primitive::u32;
pub type Creator = ::subxt::ext::subxt_core::utils::AccountId32;
pub type Owner = ::subxt::ext::subxt_core::utils::AccountId32;
}
impl ::subxt::ext::subxt_core::events::StaticEvent for Created {
const PALLET: &'static str = "Assets";
const EVENT: &'static str = "Created";
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")]
#[doc = "Some assets were issued."]
pub struct Issued {
pub asset_id: issued::AssetId,
pub owner: issued::Owner,
pub amount: issued::Amount,
}
pub mod issued {
use super::runtime_types;
pub type AssetId = ::core::primitive::u32;
pub type Owner = ::subxt::ext::subxt_core::utils::AccountId32;
pub type Amount = ::core::primitive::u128;
}
impl ::subxt::ext::subxt_core::events::StaticEvent for Issued {
const PALLET: &'static str = "Assets";
const EVENT: &'static str = "Issued";
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")]
#[doc = "Some assets were transferred."]
pub struct Transferred {
pub asset_id: transferred::AssetId,
pub from: transferred::From,
pub to: transferred::To,
pub amount: transferred::Amount,
}
pub mod transferred {
use super::runtime_types;
pub type AssetId = ::core::primitive::u32;
pub type From = ::subxt::ext::subxt_core::utils::AccountId32;
pub type To = ::subxt::ext::subxt_core::utils::AccountId32;
pub type Amount = ::core::primitive::u128;
}
impl ::subxt::ext::subxt_core::events::StaticEvent for Transferred {
const PALLET: &'static str = "Assets";
const EVENT: &'static str = "Transferred";
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")]
#[doc = "Some assets were destroyed."]
pub struct Burned {
pub asset_id: burned::AssetId,
pub owner: burned::Owner,
pub balance: burned::Balance,
}
pub mod burned {
use super::runtime_types;
pub type AssetId = ::core::primitive::u32;
pub type Owner = ::subxt::ext::subxt_core::utils::AccountId32;
pub type Balance = ::core::primitive::u128;
}
impl ::subxt::ext::subxt_core::events::StaticEvent for Burned {
const PALLET: &'static str = "Assets";
const EVENT: &'static str = "Burned";
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")]
#[doc = "The management team changed."]
pub struct TeamChanged {
pub asset_id: team_changed::AssetId,
pub issuer: team_changed::Issuer,
pub admin: team_changed::Admin,
pub freezer: team_changed::Freezer,
}
pub mod team_changed {
use super::runtime_types;
pub type AssetId = ::core::primitive::u32;
pub type Issuer = ::subxt::ext::subxt_core::utils::AccountId32;
pub type Admin = ::subxt::ext::subxt_core::utils::AccountId32;
pub type Freezer = ::subxt::ext::subxt_core::utils::AccountId32;
}
impl ::subxt::ext::subxt_core::events::StaticEvent for TeamChanged {
const PALLET: &'static str = "Assets";
const EVENT: &'static str = "TeamChanged";
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")]
#[doc = "The owner changed."]
pub struct OwnerChanged {
pub asset_id: owner_changed::AssetId,
pub owner: owner_changed::Owner,
}
pub mod owner_changed {
use super::runtime_types;
pub type AssetId = ::core::primitive::u32;
pub type Owner = ::subxt::ext::subxt_core::utils::AccountId32;
}
impl ::subxt::ext::subxt_core::events::StaticEvent for OwnerChanged {
const PALLET: &'static str = "Assets";
const EVENT: &'static str = "OwnerChanged";
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")]
#[doc = "Some account `who` was frozen."]
pub struct Frozen {
pub asset_id: frozen::AssetId,
pub who: frozen::Who,
}
pub mod frozen {
use super::runtime_types;
pub type AssetId = ::core::primitive::u32;
pub type Who = ::subxt::ext::subxt_core::utils::AccountId32;
}
impl ::subxt::ext::subxt_core::events::StaticEvent for Frozen {
const PALLET: &'static str = "Assets";
const EVENT: &'static str = "Frozen";
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")]
#[doc = "Some account `who` was thawed."]
pub struct Thawed {
pub asset_id: thawed::AssetId,
pub who: thawed::Who,
}
pub mod thawed {
use super::runtime_types;
pub type AssetId = ::core::primitive::u32;
pub type Who = ::subxt::ext::subxt_core::utils::AccountId32;
}
impl ::subxt::ext::subxt_core::events::StaticEvent for Thawed {
const PALLET: &'static str = "Assets";
const EVENT: &'static str = "Thawed";
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")]
#[doc = "Some asset `asset_id` was frozen."]
pub struct AssetFrozen {
pub asset_id: asset_frozen::AssetId,
}
pub mod asset_frozen {
use super::runtime_types;
pub type AssetId = ::core::primitive::u32;
}
impl ::subxt::ext::subxt_core::events::StaticEvent for AssetFrozen {
const PALLET: &'static str = "Assets";
const EVENT: &'static str = "AssetFrozen";
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")]
#[doc = "Some asset `asset_id` was thawed."]
pub struct AssetThawed {
pub asset_id: asset_thawed::AssetId,
}
pub mod asset_thawed {
use super::runtime_types;
pub type AssetId = ::core::primitive::u32;
}
impl ::subxt::ext::subxt_core::events::StaticEvent for AssetThawed {
const PALLET: &'static str = "Assets";
const EVENT: &'static str = "AssetThawed";
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")]
#[doc = "Accounts were destroyed for given asset."]
pub struct AccountsDestroyed {
pub asset_id: accounts_destroyed::AssetId,
pub accounts_destroyed: accounts_destroyed::AccountsDestroyed,
pub accounts_remaining: accounts_destroyed::AccountsRemaining,
}
pub mod accounts_destroyed {
use super::runtime_types;
pub type AssetId = ::core::primitive::u32;
pub type AccountsDestroyed = ::core::primitive::u32;
pub type AccountsRemaining = ::core::primitive::u32;
}
impl ::subxt::ext::subxt_core::events::StaticEvent for AccountsDestroyed {
const PALLET: &'static str = "Assets";
const EVENT: &'static str = "AccountsDestroyed";
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")]
#[doc = "Approvals were destroyed for given asset."]
pub struct ApprovalsDestroyed {
pub asset_id: approvals_destroyed::AssetId,
pub approvals_destroyed: approvals_destroyed::ApprovalsDestroyed,
pub approvals_remaining: approvals_destroyed::ApprovalsRemaining,
}
pub mod approvals_destroyed {
use super::runtime_types;
pub type AssetId = ::core::primitive::u32;
pub type ApprovalsDestroyed = ::core::primitive::u32;
pub type ApprovalsRemaining = ::core::primitive::u32;
}
impl ::subxt::ext::subxt_core::events::StaticEvent for ApprovalsDestroyed {
const PALLET: &'static str = "Assets";
const EVENT: &'static str = "ApprovalsDestroyed";
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")]
#[doc = "An asset class is in the process of being destroyed."]
pub struct DestructionStarted {
pub asset_id: destruction_started::AssetId,
}
pub mod destruction_started {
use super::runtime_types;
pub type AssetId = ::core::primitive::u32;
}
impl ::subxt::ext::subxt_core::events::StaticEvent for DestructionStarted {
const PALLET: &'static str = "Assets";
const EVENT: &'static str = "DestructionStarted";
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")]
#[doc = "An asset class was destroyed."]
pub struct Destroyed {
pub asset_id: destroyed::AssetId,
}
pub mod destroyed {
use super::runtime_types;
pub type AssetId = ::core::primitive::u32;
}
impl ::subxt::ext::subxt_core::events::StaticEvent for Destroyed {
const PALLET: &'static str = "Assets";
const EVENT: &'static str = "Destroyed";
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")]
#[doc = "Some asset class was force-created."]
pub struct ForceCreated {
pub asset_id: force_created::AssetId,
pub owner: force_created::Owner,
}
pub mod force_created {
use super::runtime_types;
pub type AssetId = ::core::primitive::u32;
pub type Owner = ::subxt::ext::subxt_core::utils::AccountId32;
}
impl ::subxt::ext::subxt_core::events::StaticEvent for ForceCreated {
const PALLET: &'static str = "Assets";
const EVENT: &'static str = "ForceCreated";
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")]
#[doc = "New metadata has been set for an asset."]
pub struct MetadataSet {
pub asset_id: metadata_set::AssetId,
pub name: metadata_set::Name,
pub symbol: metadata_set::Symbol,
pub decimals: metadata_set::Decimals,
pub is_frozen: metadata_set::IsFrozen,
}
pub mod metadata_set {
use super::runtime_types;
pub type AssetId = ::core::primitive::u32;
pub type Name = ::subxt::ext::subxt_core::alloc::vec::Vec<::core::primitive::u8>;
pub type Symbol = ::subxt::ext::subxt_core::alloc::vec::Vec<::core::primitive::u8>;
pub type Decimals = ::core::primitive::u8;
pub type IsFrozen = ::core::primitive::bool;
}
impl ::subxt::ext::subxt_core::events::StaticEvent for MetadataSet {
const PALLET: &'static str = "Assets";
const EVENT: &'static str = "MetadataSet";
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")]
#[doc = "Metadata has been cleared for an asset."]
pub struct MetadataCleared {
pub asset_id: metadata_cleared::AssetId,
}
pub mod metadata_cleared {
use super::runtime_types;
pub type AssetId = ::core::primitive::u32;
}
impl ::subxt::ext::subxt_core::events::StaticEvent for MetadataCleared {
const PALLET: &'static str = "Assets";
const EVENT: &'static str = "MetadataCleared";
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")]
#[doc = "(Additional) funds have been approved for transfer to a destination account."]
pub struct ApprovedTransfer {
pub asset_id: approved_transfer::AssetId,
pub source: approved_transfer::Source,
pub delegate: approved_transfer::Delegate,
pub amount: approved_transfer::Amount,
}
pub mod approved_transfer {
use super::runtime_types;
pub type AssetId = ::core::primitive::u32;
pub type Source = ::subxt::ext::subxt_core::utils::AccountId32;
pub type Delegate = ::subxt::ext::subxt_core::utils::AccountId32;
pub type Amount = ::core::primitive::u128;
}
impl ::subxt::ext::subxt_core::events::StaticEvent for ApprovedTransfer {
const PALLET: &'static str = "Assets";
const EVENT: &'static str = "ApprovedTransfer";
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")]
#[doc = "An approval for account `delegate` was cancelled by `owner`."]
pub struct ApprovalCancelled {
pub asset_id: approval_cancelled::AssetId,
pub owner: approval_cancelled::Owner,
pub delegate: approval_cancelled::Delegate,
}
pub mod approval_cancelled {
use super::runtime_types;
pub type AssetId = ::core::primitive::u32;
pub type Owner = ::subxt::ext::subxt_core::utils::AccountId32;
pub type Delegate = ::subxt::ext::subxt_core::utils::AccountId32;
}
impl ::subxt::ext::subxt_core::events::StaticEvent for ApprovalCancelled {
const PALLET: &'static str = "Assets";
const EVENT: &'static str = "ApprovalCancelled";
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")]
#[doc = "An `amount` was transferred in its entirety from `owner` to `destination` by"]
#[doc = "the approved `delegate`."]
pub struct TransferredApproved {
pub asset_id: transferred_approved::AssetId,
pub owner: transferred_approved::Owner,
pub delegate: transferred_approved::Delegate,
pub destination: transferred_approved::Destination,
pub amount: transferred_approved::Amount,
}
pub mod transferred_approved {
use super::runtime_types;
pub type AssetId = ::core::primitive::u32;
pub type Owner = ::subxt::ext::subxt_core::utils::AccountId32;
pub type Delegate = ::subxt::ext::subxt_core::utils::AccountId32;
pub type Destination = ::subxt::ext::subxt_core::utils::AccountId32;
pub type Amount = ::core::primitive::u128;
}
impl ::subxt::ext::subxt_core::events::StaticEvent for TransferredApproved {
const PALLET: &'static str = "Assets";
const EVENT: &'static str = "TransferredApproved";
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")]
#[doc = "An asset has had its attributes changed by the `Force` origin."]
pub struct AssetStatusChanged {
pub asset_id: asset_status_changed::AssetId,
}
pub mod asset_status_changed {
use super::runtime_types;
pub type AssetId = ::core::primitive::u32;
}
impl ::subxt::ext::subxt_core::events::StaticEvent for AssetStatusChanged {
const PALLET: &'static str = "Assets";
const EVENT: &'static str = "AssetStatusChanged";
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")]
#[doc = "The min_balance of an asset has been updated by the asset owner."]
pub struct AssetMinBalanceChanged {
pub asset_id: asset_min_balance_changed::AssetId,
pub new_min_balance: asset_min_balance_changed::NewMinBalance,
}
pub mod asset_min_balance_changed {
use super::runtime_types;
pub type AssetId = ::core::primitive::u32;
pub type NewMinBalance = ::core::primitive::u128;
}
impl ::subxt::ext::subxt_core::events::StaticEvent for AssetMinBalanceChanged {
const PALLET: &'static str = "Assets";
const EVENT: &'static str = "AssetMinBalanceChanged";
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")]
#[doc = "Some account `who` was created with a deposit from `depositor`."]
pub struct Touched {
pub asset_id: touched::AssetId,
pub who: touched::Who,
pub depositor: touched::Depositor,
}
pub mod touched {
use super::runtime_types;
pub type AssetId = ::core::primitive::u32;
pub type Who = ::subxt::ext::subxt_core::utils::AccountId32;
pub type Depositor = ::subxt::ext::subxt_core::utils::AccountId32;
}
impl ::subxt::ext::subxt_core::events::StaticEvent for Touched {
const PALLET: &'static str = "Assets";
const EVENT: &'static str = "Touched";
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")]
#[doc = "Some account `who` was blocked."]
pub struct Blocked {
pub asset_id: blocked::AssetId,
pub who: blocked::Who,
}
pub mod blocked {
use super::runtime_types;
pub type AssetId = ::core::primitive::u32;
pub type Who = ::subxt::ext::subxt_core::utils::AccountId32;
}
impl ::subxt::ext::subxt_core::events::StaticEvent for Blocked {
const PALLET: &'static str = "Assets";
const EVENT: &'static str = "Blocked";
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")]
#[doc = "Some assets were deposited (e.g. for transaction fees)."]
pub struct Deposited {
pub asset_id: deposited::AssetId,
pub who: deposited::Who,
pub amount: deposited::Amount,
}
pub mod deposited {
use super::runtime_types;
pub type AssetId = ::core::primitive::u32;
pub type Who = ::subxt::ext::subxt_core::utils::AccountId32;
pub type Amount = ::core::primitive::u128;
}
impl ::subxt::ext::subxt_core::events::StaticEvent for Deposited {
const PALLET: &'static str = "Assets";
const EVENT: &'static str = "Deposited";
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")]
#[doc = "Some assets were withdrawn from the account (e.g. for transaction fees)."]
pub struct Withdrawn {
pub asset_id: withdrawn::AssetId,
pub who: withdrawn::Who,
pub amount: withdrawn::Amount,
}
pub mod withdrawn {
use super::runtime_types;
pub type AssetId = ::core::primitive::u32;
pub type Who = ::subxt::ext::subxt_core::utils::AccountId32;
pub type Amount = ::core::primitive::u128;
}
impl ::subxt::ext::subxt_core::events::StaticEvent for Withdrawn {
const PALLET: &'static str = "Assets";
const EVENT: &'static str = "Withdrawn";
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")]
#[doc = "Reserve information was set or updated for `asset_id`."]
pub struct ReservesUpdated {
pub asset_id: reserves_updated::AssetId,
pub reserves: reserves_updated::Reserves,
}
pub mod reserves_updated {
use super::runtime_types;
pub type AssetId = ::core::primitive::u32;
pub type Reserves = ::subxt::ext::subxt_core::alloc::vec::Vec<()>;
}
impl ::subxt::ext::subxt_core::events::StaticEvent for ReservesUpdated {
const PALLET: &'static str = "Assets";
const EVENT: &'static str = "ReservesUpdated";
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")]
#[doc = "Reserve information was removed for `asset_id`."]
pub struct ReservesRemoved {
pub asset_id: reserves_removed::AssetId,
}
pub mod reserves_removed {
use super::runtime_types;
pub type AssetId = ::core::primitive::u32;
}
impl ::subxt::ext::subxt_core::events::StaticEvent for ReservesRemoved {
const PALLET: &'static str = "Assets";
const EVENT: &'static str = "ReservesRemoved";
}
}
pub mod storage {
use super::runtime_types;
pub mod types {
use super::runtime_types;
pub mod asset {
use super::runtime_types;
pub type Asset = runtime_types::pallet_assets::types::AssetDetails<
::core::primitive::u128,
::subxt::ext::subxt_core::utils::AccountId32,
::core::primitive::u128,
>;
pub type Param0 = ::core::primitive::u32;
}
pub mod account {
use super::runtime_types;
pub type Account = runtime_types::pallet_assets::types::AssetAccount<
::core::primitive::u128,
::core::primitive::u128,
(),
::subxt::ext::subxt_core::utils::AccountId32,
>;
pub type Param0 = ::core::primitive::u32;
pub type Param1 = ::subxt::ext::subxt_core::utils::AccountId32;
}
pub mod approvals {
use super::runtime_types;
pub type Approvals = runtime_types::pallet_assets::types::Approval<
::core::primitive::u128,
::core::primitive::u128,
>;
pub type Param0 = ::core::primitive::u32;
pub type Param1 = ::subxt::ext::subxt_core::utils::AccountId32;
pub type Param2 = ::subxt::ext::subxt_core::utils::AccountId32;
}
pub mod metadata {
use super::runtime_types;
pub type Metadata = runtime_types::pallet_assets::types::AssetMetadata<
::core::primitive::u128,
runtime_types::bounded_collections::bounded_vec::BoundedVec<
::core::primitive::u8,
>,
>;
pub type Param0 = ::core::primitive::u32;
}
pub mod reserves {
use super::runtime_types;
pub type Reserves =
runtime_types::bounded_collections::bounded_vec::BoundedVec<()>;
pub type Param0 = ::core::primitive::u32;
}
pub mod next_asset_id {
use super::runtime_types;
pub type NextAssetId = ::core::primitive::u32;
}
}
pub struct StorageApi;
impl StorageApi {
#[doc = " Details of an asset."]
pub fn asset_iter(
&self,
) -> ::subxt::ext::subxt_core::storage::address::StaticAddress<
(),
types::asset::Asset,
(),
(),
::subxt::ext::subxt_core::utils::Yes,
> {
::subxt::ext::subxt_core::storage::address::StaticAddress::new_static(
"Assets",
"Asset",
(),
[
159u8, 234u8, 177u8, 31u8, 58u8, 51u8, 173u8, 184u8, 250u8, 169u8,
246u8, 122u8, 54u8, 19u8, 232u8, 60u8, 0u8, 165u8, 12u8, 101u8, 93u8,
169u8, 23u8, 34u8, 154u8, 44u8, 134u8, 128u8, 97u8, 71u8, 167u8, 224u8,
],
)
}
#[doc = " Details of an asset."]
pub fn asset(
&self,
_0: types::asset::Param0,
) -> ::subxt::ext::subxt_core::storage::address::StaticAddress<
::subxt::ext::subxt_core::storage::address::StaticStorageKey<
types::asset::Param0,
>,
types::asset::Asset,
::subxt::ext::subxt_core::utils::Yes,
(),
(),
> {
::subxt::ext::subxt_core::storage::address::StaticAddress::new_static(
"Assets",
"Asset",
::subxt::ext::subxt_core::storage::address::StaticStorageKey::new(_0),
[
159u8, 234u8, 177u8, 31u8, 58u8, 51u8, 173u8, 184u8, 250u8, 169u8,
246u8, 122u8, 54u8, 19u8, 232u8, 60u8, 0u8, 165u8, 12u8, 101u8, 93u8,
169u8, 23u8, 34u8, 154u8, 44u8, 134u8, 128u8, 97u8, 71u8, 167u8, 224u8,
],
)
}
#[doc = " The holdings of a specific account for a specific asset."]
pub fn account_iter(
&self,
) -> ::subxt::ext::subxt_core::storage::address::StaticAddress<
(),
types::account::Account,
(),
(),
::subxt::ext::subxt_core::utils::Yes,
> {
::subxt::ext::subxt_core::storage::address::StaticAddress::new_static(
"Assets",
"Account",
(),
[
188u8, 242u8, 133u8, 64u8, 0u8, 11u8, 57u8, 146u8, 60u8, 137u8, 35u8,
23u8, 183u8, 200u8, 242u8, 8u8, 94u8, 158u8, 218u8, 13u8, 104u8, 215u8,
87u8, 86u8, 69u8, 200u8, 11u8, 51u8, 6u8, 65u8, 216u8, 102u8,
],
)
}
#[doc = " The holdings of a specific account for a specific asset."]
pub fn account_iter1(
&self,
_0: types::account::Param0,
) -> ::subxt::ext::subxt_core::storage::address::StaticAddress<
::subxt::ext::subxt_core::storage::address::StaticStorageKey<
types::account::Param0,
>,
types::account::Account,
(),
(),
::subxt::ext::subxt_core::utils::Yes,
> {
::subxt::ext::subxt_core::storage::address::StaticAddress::new_static(
"Assets",
"Account",
::subxt::ext::subxt_core::storage::address::StaticStorageKey::new(_0),
[
188u8, 242u8, 133u8, 64u8, 0u8, 11u8, 57u8, 146u8, 60u8, 137u8, 35u8,
23u8, 183u8, 200u8, 242u8, 8u8, 94u8, 158u8, 218u8, 13u8, 104u8, 215u8,
87u8, 86u8, 69u8, 200u8, 11u8, 51u8, 6u8, 65u8, 216u8, 102u8,
],
)
}
#[doc = " The holdings of a specific account for a specific asset."]
pub fn account(
&self,
_0: types::account::Param0,
_1: types::account::Param1,
) -> ::subxt::ext::subxt_core::storage::address::StaticAddress<
(
::subxt::ext::subxt_core::storage::address::StaticStorageKey<
types::account::Param0,
>,
::subxt::ext::subxt_core::storage::address::StaticStorageKey<
types::account::Param1,
>,
),
types::account::Account,
::subxt::ext::subxt_core::utils::Yes,
(),
(),
> {
::subxt::ext::subxt_core::storage::address::StaticAddress::new_static(
"Assets",
"Account",
(
::subxt::ext::subxt_core::storage::address::StaticStorageKey::new(_0),
::subxt::ext::subxt_core::storage::address::StaticStorageKey::new(_1),
),
[
188u8, 242u8, 133u8, 64u8, 0u8, 11u8, 57u8, 146u8, 60u8, 137u8, 35u8,
23u8, 183u8, 200u8, 242u8, 8u8, 94u8, 158u8, 218u8, 13u8, 104u8, 215u8,
87u8, 86u8, 69u8, 200u8, 11u8, 51u8, 6u8, 65u8, 216u8, 102u8,
],
)
}
#[doc = " Approved balance transfers. First balance is the amount approved for transfer. Second"]
#[doc = " is the amount of `T::Currency` reserved for storing this."]
#[doc = " First key is the asset ID, second key is the owner and third key is the delegate."]
pub fn approvals_iter(
&self,
) -> ::subxt::ext::subxt_core::storage::address::StaticAddress<
(),
types::approvals::Approvals,
(),
(),
::subxt::ext::subxt_core::utils::Yes,
> {
::subxt::ext::subxt_core::storage::address::StaticAddress::new_static(
"Assets",
"Approvals",
(),
[
122u8, 92u8, 51u8, 45u8, 200u8, 200u8, 182u8, 208u8, 18u8, 47u8, 139u8,
68u8, 254u8, 15u8, 152u8, 110u8, 3u8, 138u8, 13u8, 183u8, 5u8, 185u8,
218u8, 44u8, 93u8, 28u8, 56u8, 189u8, 125u8, 127u8, 123u8, 8u8,
],
)
}
#[doc = " Approved balance transfers. First balance is the amount approved for transfer. Second"]
#[doc = " is the amount of `T::Currency` reserved for storing this."]
#[doc = " First key is the asset ID, second key is the owner and third key is the delegate."]
pub fn approvals_iter1(
&self,
_0: types::approvals::Param0,
) -> ::subxt::ext::subxt_core::storage::address::StaticAddress<
::subxt::ext::subxt_core::storage::address::StaticStorageKey<
types::approvals::Param0,
>,
types::approvals::Approvals,
(),
(),
::subxt::ext::subxt_core::utils::Yes,
> {
::subxt::ext::subxt_core::storage::address::StaticAddress::new_static(
"Assets",
"Approvals",
::subxt::ext::subxt_core::storage::address::StaticStorageKey::new(_0),
[
122u8, 92u8, 51u8, 45u8, 200u8, 200u8, 182u8, 208u8, 18u8, 47u8, 139u8,
68u8, 254u8, 15u8, 152u8, 110u8, 3u8, 138u8, 13u8, 183u8, 5u8, 185u8,
218u8, 44u8, 93u8, 28u8, 56u8, 189u8, 125u8, 127u8, 123u8, 8u8,
],
)
}
#[doc = " Approved balance transfers. First balance is the amount approved for transfer. Second"]
#[doc = " is the amount of `T::Currency` reserved for storing this."]
#[doc = " First key is the asset ID, second key is the owner and third key is the delegate."]
pub fn approvals_iter2(
&self,
_0: types::approvals::Param0,
_1: types::approvals::Param1,
) -> ::subxt::ext::subxt_core::storage::address::StaticAddress<
(
::subxt::ext::subxt_core::storage::address::StaticStorageKey<
types::approvals::Param0,
>,
::subxt::ext::subxt_core::storage::address::StaticStorageKey<
types::approvals::Param1,
>,
),
types::approvals::Approvals,
(),
(),
::subxt::ext::subxt_core::utils::Yes,
> {
::subxt::ext::subxt_core::storage::address::StaticAddress::new_static(
"Assets",
"Approvals",
(
::subxt::ext::subxt_core::storage::address::StaticStorageKey::new(_0),
::subxt::ext::subxt_core::storage::address::StaticStorageKey::new(_1),
),
[
122u8, 92u8, 51u8, 45u8, 200u8, 200u8, 182u8, 208u8, 18u8, 47u8, 139u8,
68u8, 254u8, 15u8, 152u8, 110u8, 3u8, 138u8, 13u8, 183u8, 5u8, 185u8,
218u8, 44u8, 93u8, 28u8, 56u8, 189u8, 125u8, 127u8, 123u8, 8u8,
],
)
}
#[doc = " Approved balance transfers. First balance is the amount approved for transfer. Second"]
#[doc = " is the amount of `T::Currency` reserved for storing this."]
#[doc = " First key is the asset ID, second key is the owner and third key is the delegate."]
pub fn approvals(
&self,
_0: types::approvals::Param0,
_1: types::approvals::Param1,
_2: types::approvals::Param2,
) -> ::subxt::ext::subxt_core::storage::address::StaticAddress<
(
::subxt::ext::subxt_core::storage::address::StaticStorageKey<
types::approvals::Param0,
>,
::subxt::ext::subxt_core::storage::address::StaticStorageKey<
types::approvals::Param1,
>,
::subxt::ext::subxt_core::storage::address::StaticStorageKey<
types::approvals::Param2,
>,
),
types::approvals::Approvals,
::subxt::ext::subxt_core::utils::Yes,
(),
(),
> {
::subxt::ext::subxt_core::storage::address::StaticAddress::new_static(
"Assets",
"Approvals",
(
::subxt::ext::subxt_core::storage::address::StaticStorageKey::new(_0),
::subxt::ext::subxt_core::storage::address::StaticStorageKey::new(_1),
::subxt::ext::subxt_core::storage::address::StaticStorageKey::new(_2),
),
[
122u8, 92u8, 51u8, 45u8, 200u8, 200u8, 182u8, 208u8, 18u8, 47u8, 139u8,
68u8, 254u8, 15u8, 152u8, 110u8, 3u8, 138u8, 13u8, 183u8, 5u8, 185u8,
218u8, 44u8, 93u8, 28u8, 56u8, 189u8, 125u8, 127u8, 123u8, 8u8,
],
)
}
#[doc = " Metadata of an asset."]
pub fn metadata_iter(
&self,
) -> ::subxt::ext::subxt_core::storage::address::StaticAddress<
(),
types::metadata::Metadata,
(),
::subxt::ext::subxt_core::utils::Yes,
::subxt::ext::subxt_core::utils::Yes,
> {
::subxt::ext::subxt_core::storage::address::StaticAddress::new_static(
"Assets",
"Metadata",
(),
[
129u8, 202u8, 244u8, 77u8, 55u8, 81u8, 86u8, 106u8, 20u8, 153u8, 209u8,
69u8, 199u8, 107u8, 111u8, 49u8, 88u8, 157u8, 84u8, 41u8, 198u8, 190u8,
234u8, 218u8, 68u8, 207u8, 87u8, 217u8, 73u8, 66u8, 211u8, 163u8,
],
)
}
#[doc = " Metadata of an asset."]
pub fn metadata(
&self,
_0: types::metadata::Param0,
) -> ::subxt::ext::subxt_core::storage::address::StaticAddress<
::subxt::ext::subxt_core::storage::address::StaticStorageKey<
types::metadata::Param0,
>,
types::metadata::Metadata,
::subxt::ext::subxt_core::utils::Yes,
::subxt::ext::subxt_core::utils::Yes,
(),
> {
::subxt::ext::subxt_core::storage::address::StaticAddress::new_static(
"Assets",
"Metadata",
::subxt::ext::subxt_core::storage::address::StaticStorageKey::new(_0),
[
129u8, 202u8, 244u8, 77u8, 55u8, 81u8, 86u8, 106u8, 20u8, 153u8, 209u8,
69u8, 199u8, 107u8, 111u8, 49u8, 88u8, 157u8, 84u8, 41u8, 198u8, 190u8,
234u8, 218u8, 68u8, 207u8, 87u8, 217u8, 73u8, 66u8, 211u8, 163u8,
],
)
}
#[doc = " Maps an asset to a list of its configured reserve information."]
pub fn reserves_iter(
&self,
) -> ::subxt::ext::subxt_core::storage::address::StaticAddress<
(),
types::reserves::Reserves,
(),
::subxt::ext::subxt_core::utils::Yes,
::subxt::ext::subxt_core::utils::Yes,
> {
::subxt::ext::subxt_core::storage::address::StaticAddress::new_static(
"Assets",
"Reserves",
(),
[
118u8, 223u8, 23u8, 189u8, 54u8, 5u8, 111u8, 29u8, 141u8, 11u8, 214u8,
144u8, 141u8, 14u8, 233u8, 226u8, 24u8, 243u8, 20u8, 91u8, 144u8,
162u8, 54u8, 144u8, 17u8, 115u8, 12u8, 127u8, 20u8, 255u8, 14u8, 188u8,
],
)
}
#[doc = " Maps an asset to a list of its configured reserve information."]
pub fn reserves(
&self,
_0: types::reserves::Param0,
) -> ::subxt::ext::subxt_core::storage::address::StaticAddress<
::subxt::ext::subxt_core::storage::address::StaticStorageKey<
types::reserves::Param0,
>,
types::reserves::Reserves,
::subxt::ext::subxt_core::utils::Yes,
::subxt::ext::subxt_core::utils::Yes,
(),
> {
::subxt::ext::subxt_core::storage::address::StaticAddress::new_static(
"Assets",
"Reserves",
::subxt::ext::subxt_core::storage::address::StaticStorageKey::new(_0),
[
118u8, 223u8, 23u8, 189u8, 54u8, 5u8, 111u8, 29u8, 141u8, 11u8, 214u8,
144u8, 141u8, 14u8, 233u8, 226u8, 24u8, 243u8, 20u8, 91u8, 144u8,
162u8, 54u8, 144u8, 17u8, 115u8, 12u8, 127u8, 20u8, 255u8, 14u8, 188u8,
],
)
}
#[doc = " The asset ID enforced for the next asset creation, if any present. Otherwise, this storage"]
#[doc = " item has no effect."]
#[doc = ""]
#[doc = " This can be useful for setting up constraints for IDs of the new assets. For example, by"]
#[doc = " providing an initial [`NextAssetId`] and using the [`crate::AutoIncAssetId`] callback, an"]
#[doc = " auto-increment model can be applied to all new asset IDs."]
#[doc = ""]
#[doc = " The initial next asset ID can be set using the [`GenesisConfig`] or the"]
#[doc = " [SetNextAssetId](`migration::next_asset_id::SetNextAssetId`) migration."]
pub fn next_asset_id(
&self,
) -> ::subxt::ext::subxt_core::storage::address::StaticAddress<
(),
types::next_asset_id::NextAssetId,
::subxt::ext::subxt_core::utils::Yes,
(),
(),
> {
::subxt::ext::subxt_core::storage::address::StaticAddress::new_static(
"Assets",
"NextAssetId",
(),
[
15u8, 61u8, 40u8, 217u8, 236u8, 34u8, 95u8, 53u8, 159u8, 182u8, 70u8,
251u8, 234u8, 188u8, 115u8, 23u8, 199u8, 118u8, 220u8, 40u8, 147u8,
174u8, 247u8, 129u8, 246u8, 107u8, 178u8, 43u8, 8u8, 19u8, 74u8, 116u8,
],
)
}
}
}
pub mod constants {
use super::runtime_types;
pub struct ConstantsApi;
impl ConstantsApi {
#[doc = " Max number of items to destroy per `destroy_accounts` and `destroy_approvals` call."]
#[doc = ""]
#[doc = " Must be configured to result in a weight that makes each call fit in a block."]
pub fn remove_items_limit(
&self,
) -> ::subxt::ext::subxt_core::constants::address::StaticAddress<
::core::primitive::u32,
> {
::subxt::ext::subxt_core::constants::address::StaticAddress::new_static(
"Assets",
"RemoveItemsLimit",
[
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 basic amount of funds that must be reserved for an asset."]
pub fn asset_deposit(
&self,
) -> ::subxt::ext::subxt_core::constants::address::StaticAddress<
::core::primitive::u128,
> {
::subxt::ext::subxt_core::constants::address::StaticAddress::new_static(
"Assets",
"AssetDeposit",
[
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 funds that must be reserved for a non-provider asset account to be"]
#[doc = " maintained."]
pub fn asset_account_deposit(
&self,
) -> ::subxt::ext::subxt_core::constants::address::StaticAddress<
::core::primitive::u128,
> {
::subxt::ext::subxt_core::constants::address::StaticAddress::new_static(
"Assets",
"AssetAccountDeposit",
[
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 basic amount of funds that must be reserved when adding metadata to your asset."]
pub fn metadata_deposit_base(
&self,
) -> ::subxt::ext::subxt_core::constants::address::StaticAddress<
::core::primitive::u128,
> {
::subxt::ext::subxt_core::constants::address::StaticAddress::new_static(
"Assets",
"MetadataDepositBase",
[
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 additional funds that must be reserved for the number of bytes you store in your"]
#[doc = " metadata."]
pub fn metadata_deposit_per_byte(
&self,
) -> ::subxt::ext::subxt_core::constants::address::StaticAddress<
::core::primitive::u128,
> {
::subxt::ext::subxt_core::constants::address::StaticAddress::new_static(
"Assets",
"MetadataDepositPerByte",
[
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 funds that must be reserved when creating a new approval."]
pub fn approval_deposit(
&self,
) -> ::subxt::ext::subxt_core::constants::address::StaticAddress<
::core::primitive::u128,
> {
::subxt::ext::subxt_core::constants::address::StaticAddress::new_static(
"Assets",
"ApprovalDeposit",
[
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 name or symbol stored on-chain."]
pub fn string_limit(
&self,
) -> ::subxt::ext::subxt_core::constants::address::StaticAddress<
::core::primitive::u32,
> {
::subxt::ext::subxt_core::constants::address::StaticAddress::new_static(
"Assets",
"StringLimit",
[
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 assets_holder {
use super::{root_mod, runtime_types};
#[doc = "The `Error` enum of this pallet."]
pub type Error = runtime_types::pallet_assets_holder::pallet::Error;
#[doc = "The `Event` enum of this pallet"]
pub type Event = runtime_types::pallet_assets_holder::pallet::Event;
pub mod events {
use super::runtime_types;
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")]
#[doc = "`who`s balance on hold was increased by `amount`."]
pub struct Held {
pub who: held::Who,
pub asset_id: held::AssetId,
pub reason: held::Reason,
pub amount: held::Amount,
}
pub mod held {
use super::runtime_types;
pub type Who = ::subxt::ext::subxt_core::utils::AccountId32;
pub type AssetId = ::core::primitive::u32;
pub type Reason = runtime_types::quantus_runtime::RuntimeHoldReason;
pub type Amount = ::core::primitive::u128;
}
impl ::subxt::ext::subxt_core::events::StaticEvent for Held {
const PALLET: &'static str = "AssetsHolder";
const EVENT: &'static str = "Held";
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")]
#[doc = "`who`s balance on hold was decreased by `amount`."]
pub struct Released {
pub who: released::Who,
pub asset_id: released::AssetId,
pub reason: released::Reason,
pub amount: released::Amount,
}
pub mod released {
use super::runtime_types;
pub type Who = ::subxt::ext::subxt_core::utils::AccountId32;
pub type AssetId = ::core::primitive::u32;
pub type Reason = runtime_types::quantus_runtime::RuntimeHoldReason;
pub type Amount = ::core::primitive::u128;
}
impl ::subxt::ext::subxt_core::events::StaticEvent for Released {
const PALLET: &'static str = "AssetsHolder";
const EVENT: &'static str = "Released";
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")]
#[doc = "`who`s balance on hold was burned by `amount`."]
pub struct Burned {
pub who: burned::Who,
pub asset_id: burned::AssetId,
pub reason: burned::Reason,
pub amount: burned::Amount,
}
pub mod burned {
use super::runtime_types;
pub type Who = ::subxt::ext::subxt_core::utils::AccountId32;
pub type AssetId = ::core::primitive::u32;
pub type Reason = runtime_types::quantus_runtime::RuntimeHoldReason;
pub type Amount = ::core::primitive::u128;
}
impl ::subxt::ext::subxt_core::events::StaticEvent for Burned {
const PALLET: &'static str = "AssetsHolder";
const EVENT: &'static str = "Burned";
}
}
pub mod storage {
use super::runtime_types;
pub mod types {
use super::runtime_types;
pub mod holds {
use super::runtime_types;
pub type Holds = runtime_types::bounded_collections::bounded_vec::BoundedVec<
runtime_types::frame_support::traits::tokens::misc::IdAmount<
runtime_types::quantus_runtime::RuntimeHoldReason,
::core::primitive::u128,
>,
>;
pub type Param0 = ::core::primitive::u32;
pub type Param1 = ::subxt::ext::subxt_core::utils::AccountId32;
}
pub mod balances_on_hold {
use super::runtime_types;
pub type BalancesOnHold = ::core::primitive::u128;
pub type Param0 = ::core::primitive::u32;
pub type Param1 = ::subxt::ext::subxt_core::utils::AccountId32;
}
}
pub struct StorageApi;
impl StorageApi {
#[doc = " A map that stores holds applied on an account for a given AssetId."]
pub fn holds_iter(
&self,
) -> ::subxt::ext::subxt_core::storage::address::StaticAddress<
(),
types::holds::Holds,
(),
::subxt::ext::subxt_core::utils::Yes,
::subxt::ext::subxt_core::utils::Yes,
> {
::subxt::ext::subxt_core::storage::address::StaticAddress::new_static(
"AssetsHolder",
"Holds",
(),
[
131u8, 85u8, 98u8, 45u8, 101u8, 28u8, 94u8, 4u8, 1u8, 137u8, 126u8,
129u8, 241u8, 99u8, 206u8, 145u8, 177u8, 135u8, 27u8, 52u8, 122u8,
94u8, 241u8, 29u8, 253u8, 154u8, 158u8, 229u8, 208u8, 129u8, 29u8,
41u8,
],
)
}
#[doc = " A map that stores holds applied on an account for a given AssetId."]
pub fn holds_iter1(
&self,
_0: types::holds::Param0,
) -> ::subxt::ext::subxt_core::storage::address::StaticAddress<
::subxt::ext::subxt_core::storage::address::StaticStorageKey<
types::holds::Param0,
>,
types::holds::Holds,
(),
::subxt::ext::subxt_core::utils::Yes,
::subxt::ext::subxt_core::utils::Yes,
> {
::subxt::ext::subxt_core::storage::address::StaticAddress::new_static(
"AssetsHolder",
"Holds",
::subxt::ext::subxt_core::storage::address::StaticStorageKey::new(_0),
[
131u8, 85u8, 98u8, 45u8, 101u8, 28u8, 94u8, 4u8, 1u8, 137u8, 126u8,
129u8, 241u8, 99u8, 206u8, 145u8, 177u8, 135u8, 27u8, 52u8, 122u8,
94u8, 241u8, 29u8, 253u8, 154u8, 158u8, 229u8, 208u8, 129u8, 29u8,
41u8,
],
)
}
#[doc = " A map that stores holds applied on an account for a given AssetId."]
pub fn holds(
&self,
_0: types::holds::Param0,
_1: types::holds::Param1,
) -> ::subxt::ext::subxt_core::storage::address::StaticAddress<
(
::subxt::ext::subxt_core::storage::address::StaticStorageKey<
types::holds::Param0,
>,
::subxt::ext::subxt_core::storage::address::StaticStorageKey<
types::holds::Param1,
>,
),
types::holds::Holds,
::subxt::ext::subxt_core::utils::Yes,
::subxt::ext::subxt_core::utils::Yes,
(),
> {
::subxt::ext::subxt_core::storage::address::StaticAddress::new_static(
"AssetsHolder",
"Holds",
(
::subxt::ext::subxt_core::storage::address::StaticStorageKey::new(_0),
::subxt::ext::subxt_core::storage::address::StaticStorageKey::new(_1),
),
[
131u8, 85u8, 98u8, 45u8, 101u8, 28u8, 94u8, 4u8, 1u8, 137u8, 126u8,
129u8, 241u8, 99u8, 206u8, 145u8, 177u8, 135u8, 27u8, 52u8, 122u8,
94u8, 241u8, 29u8, 253u8, 154u8, 158u8, 229u8, 208u8, 129u8, 29u8,
41u8,
],
)
}
#[doc = " A map that stores the current total balance on hold for every account on a given AssetId."]
pub fn balances_on_hold_iter(
&self,
) -> ::subxt::ext::subxt_core::storage::address::StaticAddress<
(),
types::balances_on_hold::BalancesOnHold,
(),
(),
::subxt::ext::subxt_core::utils::Yes,
> {
::subxt::ext::subxt_core::storage::address::StaticAddress::new_static(
"AssetsHolder",
"BalancesOnHold",
(),
[
39u8, 48u8, 137u8, 178u8, 85u8, 119u8, 90u8, 207u8, 72u8, 232u8, 81u8,
190u8, 234u8, 32u8, 246u8, 199u8, 37u8, 220u8, 0u8, 216u8, 47u8, 241u8,
9u8, 107u8, 9u8, 130u8, 13u8, 232u8, 142u8, 226u8, 77u8, 179u8,
],
)
}
#[doc = " A map that stores the current total balance on hold for every account on a given AssetId."]
pub fn balances_on_hold_iter1(
&self,
_0: types::balances_on_hold::Param0,
) -> ::subxt::ext::subxt_core::storage::address::StaticAddress<
::subxt::ext::subxt_core::storage::address::StaticStorageKey<
types::balances_on_hold::Param0,
>,
types::balances_on_hold::BalancesOnHold,
(),
(),
::subxt::ext::subxt_core::utils::Yes,
> {
::subxt::ext::subxt_core::storage::address::StaticAddress::new_static(
"AssetsHolder",
"BalancesOnHold",
::subxt::ext::subxt_core::storage::address::StaticStorageKey::new(_0),
[
39u8, 48u8, 137u8, 178u8, 85u8, 119u8, 90u8, 207u8, 72u8, 232u8, 81u8,
190u8, 234u8, 32u8, 246u8, 199u8, 37u8, 220u8, 0u8, 216u8, 47u8, 241u8,
9u8, 107u8, 9u8, 130u8, 13u8, 232u8, 142u8, 226u8, 77u8, 179u8,
],
)
}
#[doc = " A map that stores the current total balance on hold for every account on a given AssetId."]
pub fn balances_on_hold(
&self,
_0: types::balances_on_hold::Param0,
_1: types::balances_on_hold::Param1,
) -> ::subxt::ext::subxt_core::storage::address::StaticAddress<
(
::subxt::ext::subxt_core::storage::address::StaticStorageKey<
types::balances_on_hold::Param0,
>,
::subxt::ext::subxt_core::storage::address::StaticStorageKey<
types::balances_on_hold::Param1,
>,
),
types::balances_on_hold::BalancesOnHold,
::subxt::ext::subxt_core::utils::Yes,
(),
(),
> {
::subxt::ext::subxt_core::storage::address::StaticAddress::new_static(
"AssetsHolder",
"BalancesOnHold",
(
::subxt::ext::subxt_core::storage::address::StaticStorageKey::new(_0),
::subxt::ext::subxt_core::storage::address::StaticStorageKey::new(_1),
),
[
39u8, 48u8, 137u8, 178u8, 85u8, 119u8, 90u8, 207u8, 72u8, 232u8, 81u8,
190u8, 234u8, 32u8, 246u8, 199u8, 37u8, 220u8, 0u8, 216u8, 47u8, 241u8,
9u8, 107u8, 9u8, 130u8, 13u8, 232u8, 142u8, 226u8, 77u8, 179u8,
],
)
}
}
}
}
pub mod multisig {
use super::{root_mod, runtime_types};
#[doc = "The `Error` enum of this pallet."]
pub type Error = runtime_types::pallet_multisig::pallet::Error;
#[doc = "Contains a variant per dispatchable extrinsic that this pallet has."]
pub type Call = runtime_types::pallet_multisig::pallet::Call;
pub mod calls {
use super::{root_mod, runtime_types};
type DispatchError = runtime_types::sp_runtime::DispatchError;
pub mod types {
use super::runtime_types;
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode"
)]
#[doc = "Create a new multisig account with deterministic address"]
#[doc = ""]
#[doc = "Parameters:"]
#[doc = "- `signers`: List of accounts that can sign for this multisig"]
#[doc = "- `threshold`: Number of approvals required to execute transactions"]
#[doc = "- `nonce`: User-provided nonce for address uniqueness"]
#[doc = ""]
#[doc = "The multisig address is deterministically derived from:"]
#[doc = "hash(pallet_id || sorted_signers || threshold || nonce)"]
#[doc = ""]
#[doc = "Signers are automatically sorted before hashing, so order doesn't matter."]
#[doc = ""]
#[doc = "Economic costs:"]
#[doc = "- MultisigFee: burned immediately (spam prevention)"]
pub struct CreateMultisig {
pub signers: create_multisig::Signers,
pub threshold: create_multisig::Threshold,
pub nonce: create_multisig::Nonce,
}
pub mod create_multisig {
use super::runtime_types;
pub type Signers = ::subxt::ext::subxt_core::alloc::vec::Vec<
::subxt::ext::subxt_core::utils::AccountId32,
>;
pub type Threshold = ::core::primitive::u32;
pub type Nonce = ::core::primitive::u64;
}
impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for CreateMultisig {
const PALLET: &'static str = "Multisig";
const CALL: &'static str = "create_multisig";
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode"
)]
#[doc = "Propose a transaction to be executed by the multisig"]
#[doc = ""]
#[doc = "Parameters:"]
#[doc = "- `multisig_address`: The multisig account that will execute the call"]
#[doc = "- `call`: The encoded call to execute"]
#[doc = "- `expiry`: Block number when this proposal expires"]
#[doc = ""]
#[doc = "The proposer must be a signer and must pay:"]
#[doc = "- A deposit (refundable - returned immediately on execution/cancellation)"]
#[doc = "- A fee (non-refundable, burned immediately)"]
#[doc = ""]
#[doc = "**For threshold=1:** The proposal is created with `Approved` status immediately"]
#[doc = "and can be executed via `execute()` without additional approvals."]
#[doc = ""]
#[doc = "**Weight:** Charged upfront for worst-case (high-security path with decode)."]
#[doc = "Refunded to actual cost on success based on whether HS path was taken."]
pub struct Propose {
pub multisig_address: propose::MultisigAddress,
pub call: propose::Call,
pub expiry: propose::Expiry,
}
pub mod propose {
use super::runtime_types;
pub type MultisigAddress = ::subxt::ext::subxt_core::utils::AccountId32;
pub type Call = runtime_types::bounded_collections::bounded_vec::BoundedVec<
::core::primitive::u8,
>;
pub type Expiry = ::core::primitive::u32;
}
impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for Propose {
const PALLET: &'static str = "Multisig";
const CALL: &'static str = "propose";
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode"
)]
#[doc = "Approve a proposed transaction"]
#[doc = ""]
#[doc = "If this approval brings the total approvals to or above the threshold,"]
#[doc = "the proposal status changes to `Approved` and can be executed via `execute()`."]
#[doc = ""]
#[doc = "Parameters:"]
#[doc = "- `multisig_address`: The multisig account"]
#[doc = "- `proposal_id`: ID (nonce) of the proposal to approve"]
#[doc = ""]
#[doc = "Weight: Charges for MAX call size, refunds based on actual"]
pub struct Approve {
pub multisig_address: approve::MultisigAddress,
pub proposal_id: approve::ProposalId,
}
pub mod approve {
use super::runtime_types;
pub type MultisigAddress = ::subxt::ext::subxt_core::utils::AccountId32;
pub type ProposalId = ::core::primitive::u32;
}
impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for Approve {
const PALLET: &'static str = "Multisig";
const CALL: &'static str = "approve";
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode"
)]
#[doc = "Cancel a proposed transaction (only by proposer)"]
#[doc = ""]
#[doc = "Parameters:"]
#[doc = "- `multisig_address`: The multisig account"]
#[doc = "- `proposal_id`: ID (nonce) of the proposal to cancel"]
pub struct Cancel {
pub multisig_address: cancel::MultisigAddress,
pub proposal_id: cancel::ProposalId,
}
pub mod cancel {
use super::runtime_types;
pub type MultisigAddress = ::subxt::ext::subxt_core::utils::AccountId32;
pub type ProposalId = ::core::primitive::u32;
}
impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for Cancel {
const PALLET: &'static str = "Multisig";
const CALL: &'static str = "cancel";
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode"
)]
#[doc = "Remove expired proposals and return deposits to proposers"]
#[doc = ""]
#[doc = "Can only be called by signers of the multisig."]
#[doc = "Removes Active or Approved proposals that have expired (past expiry block)."]
#[doc = "Executed and Cancelled proposals are automatically cleaned up immediately."]
#[doc = ""]
#[doc = "Approved+expired proposals can become stuck if proposer is unavailable (e.g. lost"]
#[doc = "keys, compromise). Allowing any signer to remove them prevents permanent deposit"]
#[doc = "lockup and enables multisig dissolution."]
#[doc = ""]
#[doc = "The deposit is always returned to the original proposer, not the caller."]
pub struct RemoveExpired {
pub multisig_address: remove_expired::MultisigAddress,
pub proposal_id: remove_expired::ProposalId,
}
pub mod remove_expired {
use super::runtime_types;
pub type MultisigAddress = ::subxt::ext::subxt_core::utils::AccountId32;
pub type ProposalId = ::core::primitive::u32;
}
impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for RemoveExpired {
const PALLET: &'static str = "Multisig";
const CALL: &'static str = "remove_expired";
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode"
)]
#[doc = "Claim all deposits from expired proposals"]
#[doc = ""]
#[doc = "This is a batch operation that removes all expired proposals where:"]
#[doc = "- Caller is the proposer"]
#[doc = "- Proposal is Active or Approved and past expiry block"]
#[doc = ""]
#[doc = "Note: Executed and Cancelled proposals are automatically cleaned up immediately,"]
#[doc = "so only Active+Expired and Approved+Expired proposals need manual cleanup."]
#[doc = ""]
#[doc = "Returns all proposal deposits to the proposer in a single transaction."]
pub struct ClaimDeposits {
pub multisig_address: claim_deposits::MultisigAddress,
}
pub mod claim_deposits {
use super::runtime_types;
pub type MultisigAddress = ::subxt::ext::subxt_core::utils::AccountId32;
}
impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for ClaimDeposits {
const PALLET: &'static str = "Multisig";
const CALL: &'static str = "claim_deposits";
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode"
)]
#[doc = "Execute an approved proposal"]
#[doc = ""]
#[doc = "Can be called by any signer of the multisig once the proposal has reached"]
#[doc = "the approval threshold (status = Approved). The proposal must not be expired."]
#[doc = ""]
#[doc = "On execution:"]
#[doc = "- The call is decoded and dispatched as the multisig account"]
#[doc = "- Proposal is removed from storage"]
#[doc = "- Deposit is returned to the proposer"]
#[doc = ""]
#[doc = "Parameters:"]
#[doc = "- `multisig_address`: The multisig account"]
#[doc = "- `proposal_id`: ID (nonce) of the proposal to execute"]
#[doc = ""]
#[doc = "Note: The weight charged includes both multisig bookkeeping and MaxInnerCallWeight."]
#[doc = "Actual weight is refunded based on the inner call's post-dispatch info."]
#[doc = "The inner call's weight is validated against MaxInnerCallWeight at propose time."]
pub struct Execute {
pub multisig_address: execute::MultisigAddress,
pub proposal_id: execute::ProposalId,
}
pub mod execute {
use super::runtime_types;
pub type MultisigAddress = ::subxt::ext::subxt_core::utils::AccountId32;
pub type ProposalId = ::core::primitive::u32;
}
impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for Execute {
const PALLET: &'static str = "Multisig";
const CALL: &'static str = "execute";
}
}
pub struct TransactionApi;
impl TransactionApi {
#[doc = "Create a new multisig account with deterministic address"]
#[doc = ""]
#[doc = "Parameters:"]
#[doc = "- `signers`: List of accounts that can sign for this multisig"]
#[doc = "- `threshold`: Number of approvals required to execute transactions"]
#[doc = "- `nonce`: User-provided nonce for address uniqueness"]
#[doc = ""]
#[doc = "The multisig address is deterministically derived from:"]
#[doc = "hash(pallet_id || sorted_signers || threshold || nonce)"]
#[doc = ""]
#[doc = "Signers are automatically sorted before hashing, so order doesn't matter."]
#[doc = ""]
#[doc = "Economic costs:"]
#[doc = "- MultisigFee: burned immediately (spam prevention)"]
pub fn create_multisig(
&self,
signers: types::create_multisig::Signers,
threshold: types::create_multisig::Threshold,
nonce: types::create_multisig::Nonce,
) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload<types::CreateMultisig>
{
::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static(
"Multisig",
"create_multisig",
types::CreateMultisig { signers, threshold, nonce },
[
126u8, 145u8, 23u8, 129u8, 179u8, 174u8, 124u8, 92u8, 17u8, 77u8, 39u8,
143u8, 138u8, 202u8, 71u8, 46u8, 71u8, 104u8, 68u8, 236u8, 223u8,
128u8, 124u8, 89u8, 133u8, 103u8, 92u8, 150u8, 75u8, 49u8, 253u8,
177u8,
],
)
}
#[doc = "Propose a transaction to be executed by the multisig"]
#[doc = ""]
#[doc = "Parameters:"]
#[doc = "- `multisig_address`: The multisig account that will execute the call"]
#[doc = "- `call`: The encoded call to execute"]
#[doc = "- `expiry`: Block number when this proposal expires"]
#[doc = ""]
#[doc = "The proposer must be a signer and must pay:"]
#[doc = "- A deposit (refundable - returned immediately on execution/cancellation)"]
#[doc = "- A fee (non-refundable, burned immediately)"]
#[doc = ""]
#[doc = "**For threshold=1:** The proposal is created with `Approved` status immediately"]
#[doc = "and can be executed via `execute()` without additional approvals."]
#[doc = ""]
#[doc = "**Weight:** Charged upfront for worst-case (high-security path with decode)."]
#[doc = "Refunded to actual cost on success based on whether HS path was taken."]
pub fn propose(
&self,
multisig_address: types::propose::MultisigAddress,
call: types::propose::Call,
expiry: types::propose::Expiry,
) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload<types::Propose> {
::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static(
"Multisig",
"propose",
types::Propose { multisig_address, call, expiry },
[
211u8, 229u8, 94u8, 85u8, 157u8, 195u8, 92u8, 25u8, 121u8, 135u8,
222u8, 58u8, 218u8, 102u8, 12u8, 218u8, 179u8, 96u8, 47u8, 148u8,
236u8, 151u8, 95u8, 187u8, 170u8, 222u8, 148u8, 77u8, 136u8, 240u8,
119u8, 67u8,
],
)
}
#[doc = "Approve a proposed transaction"]
#[doc = ""]
#[doc = "If this approval brings the total approvals to or above the threshold,"]
#[doc = "the proposal status changes to `Approved` and can be executed via `execute()`."]
#[doc = ""]
#[doc = "Parameters:"]
#[doc = "- `multisig_address`: The multisig account"]
#[doc = "- `proposal_id`: ID (nonce) of the proposal to approve"]
#[doc = ""]
#[doc = "Weight: Charges for MAX call size, refunds based on actual"]
pub fn approve(
&self,
multisig_address: types::approve::MultisigAddress,
proposal_id: types::approve::ProposalId,
) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload<types::Approve> {
::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static(
"Multisig",
"approve",
types::Approve { multisig_address, proposal_id },
[
9u8, 56u8, 186u8, 135u8, 222u8, 23u8, 37u8, 64u8, 123u8, 199u8, 205u8,
29u8, 216u8, 128u8, 37u8, 185u8, 170u8, 121u8, 75u8, 100u8, 198u8,
80u8, 16u8, 249u8, 170u8, 91u8, 162u8, 201u8, 215u8, 81u8, 87u8, 190u8,
],
)
}
#[doc = "Cancel a proposed transaction (only by proposer)"]
#[doc = ""]
#[doc = "Parameters:"]
#[doc = "- `multisig_address`: The multisig account"]
#[doc = "- `proposal_id`: ID (nonce) of the proposal to cancel"]
pub fn cancel(
&self,
multisig_address: types::cancel::MultisigAddress,
proposal_id: types::cancel::ProposalId,
) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload<types::Cancel> {
::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static(
"Multisig",
"cancel",
types::Cancel { multisig_address, proposal_id },
[
83u8, 189u8, 89u8, 213u8, 70u8, 183u8, 216u8, 57u8, 226u8, 67u8, 212u8,
60u8, 59u8, 44u8, 49u8, 165u8, 181u8, 189u8, 26u8, 92u8, 49u8, 185u8,
224u8, 47u8, 81u8, 111u8, 51u8, 142u8, 165u8, 219u8, 103u8, 82u8,
],
)
}
#[doc = "Remove expired proposals and return deposits to proposers"]
#[doc = ""]
#[doc = "Can only be called by signers of the multisig."]
#[doc = "Removes Active or Approved proposals that have expired (past expiry block)."]
#[doc = "Executed and Cancelled proposals are automatically cleaned up immediately."]
#[doc = ""]
#[doc = "Approved+expired proposals can become stuck if proposer is unavailable (e.g. lost"]
#[doc = "keys, compromise). Allowing any signer to remove them prevents permanent deposit"]
#[doc = "lockup and enables multisig dissolution."]
#[doc = ""]
#[doc = "The deposit is always returned to the original proposer, not the caller."]
pub fn remove_expired(
&self,
multisig_address: types::remove_expired::MultisigAddress,
proposal_id: types::remove_expired::ProposalId,
) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload<types::RemoveExpired>
{
::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static(
"Multisig",
"remove_expired",
types::RemoveExpired { multisig_address, proposal_id },
[
94u8, 78u8, 117u8, 103u8, 202u8, 220u8, 114u8, 15u8, 215u8, 2u8, 39u8,
23u8, 128u8, 151u8, 103u8, 78u8, 66u8, 116u8, 182u8, 1u8, 28u8, 44u8,
111u8, 170u8, 201u8, 171u8, 248u8, 36u8, 71u8, 228u8, 85u8, 82u8,
],
)
}
#[doc = "Claim all deposits from expired proposals"]
#[doc = ""]
#[doc = "This is a batch operation that removes all expired proposals where:"]
#[doc = "- Caller is the proposer"]
#[doc = "- Proposal is Active or Approved and past expiry block"]
#[doc = ""]
#[doc = "Note: Executed and Cancelled proposals are automatically cleaned up immediately,"]
#[doc = "so only Active+Expired and Approved+Expired proposals need manual cleanup."]
#[doc = ""]
#[doc = "Returns all proposal deposits to the proposer in a single transaction."]
pub fn claim_deposits(
&self,
multisig_address: types::claim_deposits::MultisigAddress,
) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload<types::ClaimDeposits>
{
::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static(
"Multisig",
"claim_deposits",
types::ClaimDeposits { multisig_address },
[
59u8, 70u8, 208u8, 192u8, 13u8, 245u8, 227u8, 53u8, 105u8, 236u8, 5u8,
102u8, 28u8, 173u8, 134u8, 39u8, 125u8, 165u8, 106u8, 119u8, 150u8,
100u8, 57u8, 209u8, 37u8, 154u8, 51u8, 66u8, 66u8, 110u8, 57u8, 199u8,
],
)
}
#[doc = "Execute an approved proposal"]
#[doc = ""]
#[doc = "Can be called by any signer of the multisig once the proposal has reached"]
#[doc = "the approval threshold (status = Approved). The proposal must not be expired."]
#[doc = ""]
#[doc = "On execution:"]
#[doc = "- The call is decoded and dispatched as the multisig account"]
#[doc = "- Proposal is removed from storage"]
#[doc = "- Deposit is returned to the proposer"]
#[doc = ""]
#[doc = "Parameters:"]
#[doc = "- `multisig_address`: The multisig account"]
#[doc = "- `proposal_id`: ID (nonce) of the proposal to execute"]
#[doc = ""]
#[doc = "Note: The weight charged includes both multisig bookkeeping and MaxInnerCallWeight."]
#[doc = "Actual weight is refunded based on the inner call's post-dispatch info."]
#[doc = "The inner call's weight is validated against MaxInnerCallWeight at propose time."]
pub fn execute(
&self,
multisig_address: types::execute::MultisigAddress,
proposal_id: types::execute::ProposalId,
) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload<types::Execute> {
::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static(
"Multisig",
"execute",
types::Execute { multisig_address, proposal_id },
[
209u8, 110u8, 225u8, 231u8, 188u8, 230u8, 192u8, 42u8, 43u8, 233u8,
158u8, 149u8, 58u8, 203u8, 142u8, 44u8, 40u8, 27u8, 211u8, 194u8, 26u8,
7u8, 7u8, 254u8, 29u8, 245u8, 230u8, 195u8, 82u8, 108u8, 1u8, 27u8,
],
)
}
}
}
#[doc = "The `Event` enum of this pallet"]
pub type Event = runtime_types::pallet_multisig::pallet::Event;
pub mod events {
use super::runtime_types;
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")]
#[doc = "A new multisig account was created"]
#[doc = "[creator, multisig_address, signers, threshold, nonce]"]
pub struct MultisigCreated {
pub creator: multisig_created::Creator,
pub multisig_address: multisig_created::MultisigAddress,
pub signers: multisig_created::Signers,
pub threshold: multisig_created::Threshold,
pub nonce: multisig_created::Nonce,
}
pub mod multisig_created {
use super::runtime_types;
pub type Creator = ::subxt::ext::subxt_core::utils::AccountId32;
pub type MultisigAddress = ::subxt::ext::subxt_core::utils::AccountId32;
pub type Signers = ::subxt::ext::subxt_core::alloc::vec::Vec<
::subxt::ext::subxt_core::utils::AccountId32,
>;
pub type Threshold = ::core::primitive::u32;
pub type Nonce = ::core::primitive::u64;
}
impl ::subxt::ext::subxt_core::events::StaticEvent for MultisigCreated {
const PALLET: &'static str = "Multisig";
const EVENT: &'static str = "MultisigCreated";
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")]
#[doc = "A proposal has been created"]
pub struct ProposalCreated {
pub multisig_address: proposal_created::MultisigAddress,
pub proposer: proposal_created::Proposer,
pub proposal_id: proposal_created::ProposalId,
}
pub mod proposal_created {
use super::runtime_types;
pub type MultisigAddress = ::subxt::ext::subxt_core::utils::AccountId32;
pub type Proposer = ::subxt::ext::subxt_core::utils::AccountId32;
pub type ProposalId = ::core::primitive::u32;
}
impl ::subxt::ext::subxt_core::events::StaticEvent for ProposalCreated {
const PALLET: &'static str = "Multisig";
const EVENT: &'static str = "ProposalCreated";
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")]
#[doc = "A signer has approved a proposal (does not imply threshold reached)"]
pub struct SignerApproved {
pub multisig_address: signer_approved::MultisigAddress,
pub approver: signer_approved::Approver,
pub proposal_id: signer_approved::ProposalId,
pub approvals_count: signer_approved::ApprovalsCount,
}
pub mod signer_approved {
use super::runtime_types;
pub type MultisigAddress = ::subxt::ext::subxt_core::utils::AccountId32;
pub type Approver = ::subxt::ext::subxt_core::utils::AccountId32;
pub type ProposalId = ::core::primitive::u32;
pub type ApprovalsCount = ::core::primitive::u32;
}
impl ::subxt::ext::subxt_core::events::StaticEvent for SignerApproved {
const PALLET: &'static str = "Multisig";
const EVENT: &'static str = "SignerApproved";
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")]
#[doc = "A proposal has reached threshold and is ready to execute"]
pub struct ProposalReadyToExecute {
pub multisig_address: proposal_ready_to_execute::MultisigAddress,
pub proposal_id: proposal_ready_to_execute::ProposalId,
pub approvals_count: proposal_ready_to_execute::ApprovalsCount,
}
pub mod proposal_ready_to_execute {
use super::runtime_types;
pub type MultisigAddress = ::subxt::ext::subxt_core::utils::AccountId32;
pub type ProposalId = ::core::primitive::u32;
pub type ApprovalsCount = ::core::primitive::u32;
}
impl ::subxt::ext::subxt_core::events::StaticEvent for ProposalReadyToExecute {
const PALLET: &'static str = "Multisig";
const EVENT: &'static str = "ProposalReadyToExecute";
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")]
#[doc = "A proposal has been executed"]
#[doc = "Contains all data needed for indexing by SubSquid"]
pub struct ProposalExecuted {
pub multisig_address: proposal_executed::MultisigAddress,
pub proposal_id: proposal_executed::ProposalId,
pub proposer: proposal_executed::Proposer,
pub call: proposal_executed::Call,
pub approvers: proposal_executed::Approvers,
pub result: proposal_executed::Result,
}
pub mod proposal_executed {
use super::runtime_types;
pub type MultisigAddress = ::subxt::ext::subxt_core::utils::AccountId32;
pub type ProposalId = ::core::primitive::u32;
pub type Proposer = ::subxt::ext::subxt_core::utils::AccountId32;
pub type Call = ::subxt::ext::subxt_core::alloc::vec::Vec<::core::primitive::u8>;
pub type Approvers = ::subxt::ext::subxt_core::alloc::vec::Vec<
::subxt::ext::subxt_core::utils::AccountId32,
>;
pub type Result =
::core::result::Result<(), runtime_types::sp_runtime::DispatchError>;
}
impl ::subxt::ext::subxt_core::events::StaticEvent for ProposalExecuted {
const PALLET: &'static str = "Multisig";
const EVENT: &'static str = "ProposalExecuted";
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")]
#[doc = "A proposal has been cancelled by the proposer"]
pub struct ProposalCancelled {
pub multisig_address: proposal_cancelled::MultisigAddress,
pub proposer: proposal_cancelled::Proposer,
pub proposal_id: proposal_cancelled::ProposalId,
}
pub mod proposal_cancelled {
use super::runtime_types;
pub type MultisigAddress = ::subxt::ext::subxt_core::utils::AccountId32;
pub type Proposer = ::subxt::ext::subxt_core::utils::AccountId32;
pub type ProposalId = ::core::primitive::u32;
}
impl ::subxt::ext::subxt_core::events::StaticEvent for ProposalCancelled {
const PALLET: &'static str = "Multisig";
const EVENT: &'static str = "ProposalCancelled";
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")]
#[doc = "Expired proposal was removed from storage"]
pub struct ProposalRemoved {
pub multisig_address: proposal_removed::MultisigAddress,
pub proposal_id: proposal_removed::ProposalId,
pub proposer: proposal_removed::Proposer,
pub removed_by: proposal_removed::RemovedBy,
}
pub mod proposal_removed {
use super::runtime_types;
pub type MultisigAddress = ::subxt::ext::subxt_core::utils::AccountId32;
pub type ProposalId = ::core::primitive::u32;
pub type Proposer = ::subxt::ext::subxt_core::utils::AccountId32;
pub type RemovedBy = ::subxt::ext::subxt_core::utils::AccountId32;
}
impl ::subxt::ext::subxt_core::events::StaticEvent for ProposalRemoved {
const PALLET: &'static str = "Multisig";
const EVENT: &'static str = "ProposalRemoved";
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")]
#[doc = "Batch deposits claimed"]
pub struct DepositsClaimed {
pub multisig_address: deposits_claimed::MultisigAddress,
pub claimer: deposits_claimed::Claimer,
pub total_returned: deposits_claimed::TotalReturned,
pub proposals_removed: deposits_claimed::ProposalsRemoved,
}
pub mod deposits_claimed {
use super::runtime_types;
pub type MultisigAddress = ::subxt::ext::subxt_core::utils::AccountId32;
pub type Claimer = ::subxt::ext::subxt_core::utils::AccountId32;
pub type TotalReturned = ::core::primitive::u128;
pub type ProposalsRemoved = ::core::primitive::u32;
}
impl ::subxt::ext::subxt_core::events::StaticEvent for DepositsClaimed {
const PALLET: &'static str = "Multisig";
const EVENT: &'static str = "DepositsClaimed";
}
}
pub mod storage {
use super::runtime_types;
pub mod types {
use super::runtime_types;
pub mod multisigs {
use super::runtime_types;
pub type Multisigs = runtime_types::pallet_multisig::MultisigData<
::subxt::ext::subxt_core::utils::AccountId32,
runtime_types::bounded_collections::bounded_vec::BoundedVec<
::subxt::ext::subxt_core::utils::AccountId32,
>,
runtime_types::bounded_collections::bounded_btree_map::BoundedBTreeMap<
::subxt::ext::subxt_core::utils::AccountId32,
::core::primitive::u32,
>,
>;
pub type Param0 = ::subxt::ext::subxt_core::utils::AccountId32;
}
pub mod proposals {
use super::runtime_types;
pub type Proposals = runtime_types::pallet_multisig::ProposalData<
::subxt::ext::subxt_core::utils::AccountId32,
::core::primitive::u128,
::core::primitive::u32,
runtime_types::bounded_collections::bounded_vec::BoundedVec<
::core::primitive::u8,
>,
runtime_types::bounded_collections::bounded_vec::BoundedVec<
::subxt::ext::subxt_core::utils::AccountId32,
>,
>;
pub type Param0 = ::subxt::ext::subxt_core::utils::AccountId32;
pub type Param1 = ::core::primitive::u32;
}
}
pub struct StorageApi;
impl StorageApi {
#[doc = " Multisigs stored by their deterministic address"]
pub fn multisigs_iter(
&self,
) -> ::subxt::ext::subxt_core::storage::address::StaticAddress<
(),
types::multisigs::Multisigs,
(),
(),
::subxt::ext::subxt_core::utils::Yes,
> {
::subxt::ext::subxt_core::storage::address::StaticAddress::new_static(
"Multisig",
"Multisigs",
(),
[
33u8, 147u8, 123u8, 194u8, 230u8, 220u8, 119u8, 150u8, 95u8, 161u8,
244u8, 30u8, 177u8, 39u8, 20u8, 73u8, 112u8, 15u8, 42u8, 237u8, 117u8,
250u8, 200u8, 2u8, 0u8, 145u8, 91u8, 219u8, 8u8, 137u8, 107u8, 54u8,
],
)
}
#[doc = " Multisigs stored by their deterministic address"]
pub fn multisigs(
&self,
_0: types::multisigs::Param0,
) -> ::subxt::ext::subxt_core::storage::address::StaticAddress<
::subxt::ext::subxt_core::storage::address::StaticStorageKey<
types::multisigs::Param0,
>,
types::multisigs::Multisigs,
::subxt::ext::subxt_core::utils::Yes,
(),
(),
> {
::subxt::ext::subxt_core::storage::address::StaticAddress::new_static(
"Multisig",
"Multisigs",
::subxt::ext::subxt_core::storage::address::StaticStorageKey::new(_0),
[
33u8, 147u8, 123u8, 194u8, 230u8, 220u8, 119u8, 150u8, 95u8, 161u8,
244u8, 30u8, 177u8, 39u8, 20u8, 73u8, 112u8, 15u8, 42u8, 237u8, 117u8,
250u8, 200u8, 2u8, 0u8, 145u8, 91u8, 219u8, 8u8, 137u8, 107u8, 54u8,
],
)
}
#[doc = " Proposals indexed by (multisig_address, proposal_nonce)"]
pub fn proposals_iter(
&self,
) -> ::subxt::ext::subxt_core::storage::address::StaticAddress<
(),
types::proposals::Proposals,
(),
(),
::subxt::ext::subxt_core::utils::Yes,
> {
::subxt::ext::subxt_core::storage::address::StaticAddress::new_static(
"Multisig",
"Proposals",
(),
[
23u8, 150u8, 115u8, 215u8, 96u8, 175u8, 20u8, 135u8, 85u8, 106u8, 93u8,
135u8, 139u8, 72u8, 178u8, 43u8, 130u8, 76u8, 85u8, 75u8, 74u8, 69u8,
74u8, 232u8, 36u8, 30u8, 239u8, 26u8, 233u8, 249u8, 142u8, 163u8,
],
)
}
#[doc = " Proposals indexed by (multisig_address, proposal_nonce)"]
pub fn proposals_iter1(
&self,
_0: types::proposals::Param0,
) -> ::subxt::ext::subxt_core::storage::address::StaticAddress<
::subxt::ext::subxt_core::storage::address::StaticStorageKey<
types::proposals::Param0,
>,
types::proposals::Proposals,
(),
(),
::subxt::ext::subxt_core::utils::Yes,
> {
::subxt::ext::subxt_core::storage::address::StaticAddress::new_static(
"Multisig",
"Proposals",
::subxt::ext::subxt_core::storage::address::StaticStorageKey::new(_0),
[
23u8, 150u8, 115u8, 215u8, 96u8, 175u8, 20u8, 135u8, 85u8, 106u8, 93u8,
135u8, 139u8, 72u8, 178u8, 43u8, 130u8, 76u8, 85u8, 75u8, 74u8, 69u8,
74u8, 232u8, 36u8, 30u8, 239u8, 26u8, 233u8, 249u8, 142u8, 163u8,
],
)
}
#[doc = " Proposals indexed by (multisig_address, proposal_nonce)"]
pub fn proposals(
&self,
_0: types::proposals::Param0,
_1: types::proposals::Param1,
) -> ::subxt::ext::subxt_core::storage::address::StaticAddress<
(
::subxt::ext::subxt_core::storage::address::StaticStorageKey<
types::proposals::Param0,
>,
::subxt::ext::subxt_core::storage::address::StaticStorageKey<
types::proposals::Param1,
>,
),
types::proposals::Proposals,
::subxt::ext::subxt_core::utils::Yes,
(),
(),
> {
::subxt::ext::subxt_core::storage::address::StaticAddress::new_static(
"Multisig",
"Proposals",
(
::subxt::ext::subxt_core::storage::address::StaticStorageKey::new(_0),
::subxt::ext::subxt_core::storage::address::StaticStorageKey::new(_1),
),
[
23u8, 150u8, 115u8, 215u8, 96u8, 175u8, 20u8, 135u8, 85u8, 106u8, 93u8,
135u8, 139u8, 72u8, 178u8, 43u8, 130u8, 76u8, 85u8, 75u8, 74u8, 69u8,
74u8, 232u8, 36u8, 30u8, 239u8, 26u8, 233u8, 249u8, 142u8, 163u8,
],
)
}
}
}
pub mod constants {
use super::runtime_types;
pub struct ConstantsApi;
impl ConstantsApi {
#[doc = " Maximum number of signers allowed in a multisig"]
pub fn max_signers(
&self,
) -> ::subxt::ext::subxt_core::constants::address::StaticAddress<
::core::primitive::u32,
> {
::subxt::ext::subxt_core::constants::address::StaticAddress::new_static(
"Multisig",
"MaxSigners",
[
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 = " Maximum number of proposals in storage per multisig."]
#[doc = " Only Active and Approved proposals are stored; executed and cancelled"]
#[doc = " proposals are removed immediately. This limit prevents unbounded storage growth."]
pub fn max_total_proposals_in_storage(
&self,
) -> ::subxt::ext::subxt_core::constants::address::StaticAddress<
::core::primitive::u32,
> {
::subxt::ext::subxt_core::constants::address::StaticAddress::new_static(
"Multisig",
"MaxTotalProposalsInStorage",
[
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 = " Maximum size of an encoded call"]
pub fn max_call_size(
&self,
) -> ::subxt::ext::subxt_core::constants::address::StaticAddress<
::core::primitive::u32,
> {
::subxt::ext::subxt_core::constants::address::StaticAddress::new_static(
"Multisig",
"MaxCallSize",
[
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 = " Fee charged for creating a multisig (non-refundable, burned)."]
#[doc = " This prevents spam creation of multisig accounts."]
pub fn multisig_fee(
&self,
) -> ::subxt::ext::subxt_core::constants::address::StaticAddress<
::core::primitive::u128,
> {
::subxt::ext::subxt_core::constants::address::StaticAddress::new_static(
"Multisig",
"MultisigFee",
[
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 = " Deposit required per proposal (returned on execute or cancel)"]
pub fn proposal_deposit(
&self,
) -> ::subxt::ext::subxt_core::constants::address::StaticAddress<
::core::primitive::u128,
> {
::subxt::ext::subxt_core::constants::address::StaticAddress::new_static(
"Multisig",
"ProposalDeposit",
[
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 = " Fee charged for creating a proposal (non-refundable, paid always)"]
pub fn proposal_fee(
&self,
) -> ::subxt::ext::subxt_core::constants::address::StaticAddress<
::core::primitive::u128,
> {
::subxt::ext::subxt_core::constants::address::StaticAddress::new_static(
"Multisig",
"ProposalFee",
[
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 = " Percentage increase in ProposalFee for each signer in the multisig."]
#[doc = ""]
#[doc = " Formula: `FinalFee = ProposalFee + (ProposalFee * SignerCount * SignerStepFactor)`"]
#[doc = " Example: If Fee=100, Signers=5, Factor=1%, then Extra = 100 * 5 * 0.01 = 5. Total = 105."]
pub fn signer_step_factor(
&self,
) -> ::subxt::ext::subxt_core::constants::address::StaticAddress<
runtime_types::sp_arithmetic::per_things::Permill,
> {
::subxt::ext::subxt_core::constants::address::StaticAddress::new_static(
"Multisig",
"SignerStepFactor",
[
65u8, 93u8, 120u8, 165u8, 204u8, 81u8, 159u8, 163u8, 93u8, 135u8,
114u8, 121u8, 147u8, 35u8, 215u8, 213u8, 4u8, 223u8, 83u8, 37u8, 225u8,
200u8, 189u8, 156u8, 140u8, 36u8, 58u8, 46u8, 42u8, 232u8, 155u8, 0u8,
],
)
}
#[doc = " Pallet ID for generating multisig addresses"]
pub fn pallet_id(
&self,
) -> ::subxt::ext::subxt_core::constants::address::StaticAddress<
runtime_types::frame_support::PalletId,
> {
::subxt::ext::subxt_core::constants::address::StaticAddress::new_static(
"Multisig",
"PalletId",
[
56u8, 243u8, 53u8, 83u8, 154u8, 179u8, 170u8, 80u8, 133u8, 173u8, 61u8,
161u8, 47u8, 225u8, 146u8, 21u8, 50u8, 229u8, 248u8, 27u8, 104u8, 58u8,
129u8, 197u8, 102u8, 160u8, 168u8, 205u8, 154u8, 42u8, 217u8, 53u8,
],
)
}
#[doc = " Maximum duration (in blocks) that a proposal can be set to expire in the future."]
#[doc = " This prevents proposals from being created with extremely far expiry dates"]
#[doc = " that would lock deposits and bloat storage for extended periods."]
#[doc = ""]
#[doc = " Example: If set to 100_000 blocks (~2 weeks at 12s blocks),"]
#[doc = " a proposal created at block 1000 cannot have expiry > 101_000."]
pub fn max_expiry_duration(
&self,
) -> ::subxt::ext::subxt_core::constants::address::StaticAddress<
::core::primitive::u32,
> {
::subxt::ext::subxt_core::constants::address::StaticAddress::new_static(
"Multisig",
"MaxExpiryDuration",
[
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 = " Maximum weight allowed for inner calls executed through the multisig."]
#[doc = ""]
#[doc = " This bound ensures that the `execute` extrinsic can safely reserve weight"]
#[doc = " for the inner call at pre-dispatch time. Proposals with calls exceeding"]
#[doc = " this weight limit are rejected at propose time."]
#[doc = ""]
#[doc = " The execute extrinsic's weight annotation is: bookkeeping + MaxInnerCallWeight."]
#[doc = " This guarantees the block weight is never exceeded by arbitrary inner calls."]
pub fn max_inner_call_weight(
&self,
) -> ::subxt::ext::subxt_core::constants::address::StaticAddress<
runtime_types::sp_weights::weight_v2::Weight,
> {
::subxt::ext::subxt_core::constants::address::StaticAddress::new_static(
"Multisig",
"MaxInnerCallWeight",
[
149u8, 252u8, 129u8, 80u8, 169u8, 36u8, 79u8, 127u8, 240u8, 156u8,
56u8, 202u8, 219u8, 86u8, 5u8, 65u8, 245u8, 148u8, 138u8, 243u8, 210u8,
128u8, 234u8, 216u8, 240u8, 219u8, 123u8, 235u8, 21u8, 158u8, 237u8,
112u8,
],
)
}
}
}
}
pub mod wormhole {
use super::{root_mod, runtime_types};
#[doc = "The `Error` enum of this pallet."]
pub type Error = runtime_types::pallet_wormhole::pallet::Error;
#[doc = "Contains a variant per dispatchable extrinsic that this pallet has."]
pub type Call = runtime_types::pallet_wormhole::pallet::Call;
pub mod calls {
use super::{root_mod, runtime_types};
type DispatchError = runtime_types::sp_runtime::DispatchError;
pub mod types {
use super::runtime_types;
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode"
)]
#[doc = "Verify an aggregated wormhole proof and process all transfers in the batch."]
#[doc = ""]
#[doc = "Returns `DispatchResultWithPostInfo` to allow weight correction on early failures."]
#[doc = "If validation fails before ZK verification, we return minimal weight."]
#[doc = "If ZK verification fails, we return full weight since the work was done."]
pub struct VerifyAggregatedProof {
pub proof_bytes: verify_aggregated_proof::ProofBytes,
}
pub mod verify_aggregated_proof {
use super::runtime_types;
pub type ProofBytes =
::subxt::ext::subxt_core::alloc::vec::Vec<::core::primitive::u8>;
}
impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for VerifyAggregatedProof {
const PALLET: &'static str = "Wormhole";
const CALL: &'static str = "verify_aggregated_proof";
}
}
pub struct TransactionApi;
impl TransactionApi {
#[doc = "Verify an aggregated wormhole proof and process all transfers in the batch."]
#[doc = ""]
#[doc = "Returns `DispatchResultWithPostInfo` to allow weight correction on early failures."]
#[doc = "If validation fails before ZK verification, we return minimal weight."]
#[doc = "If ZK verification fails, we return full weight since the work was done."]
pub fn verify_aggregated_proof(
&self,
proof_bytes: types::verify_aggregated_proof::ProofBytes,
) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload<
types::VerifyAggregatedProof,
> {
::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static(
"Wormhole",
"verify_aggregated_proof",
types::VerifyAggregatedProof { proof_bytes },
[
122u8, 42u8, 194u8, 153u8, 22u8, 66u8, 199u8, 173u8, 19u8, 107u8,
232u8, 147u8, 77u8, 40u8, 115u8, 208u8, 183u8, 77u8, 46u8, 149u8, 56u8,
225u8, 146u8, 168u8, 49u8, 248u8, 42u8, 195u8, 180u8, 91u8, 75u8,
102u8,
],
)
}
}
}
#[doc = "The `Event` enum of this pallet"]
pub type Event = runtime_types::pallet_wormhole::pallet::Event;
pub mod events {
use super::runtime_types;
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")]
#[doc = "A native token transfer was recorded."]
#[doc = ""]
#[doc = "The `leaf_index` can be used to fetch Merkle proofs via the"]
#[doc = "`zkTrie_getMerkleProof` RPC for ZK circuit verification."]
pub struct NativeTransferred {
pub from: native_transferred::From,
pub to: native_transferred::To,
pub amount: native_transferred::Amount,
pub transfer_count: native_transferred::TransferCount,
pub leaf_index: native_transferred::LeafIndex,
}
pub mod native_transferred {
use super::runtime_types;
pub type From = ::subxt::ext::subxt_core::utils::AccountId32;
pub type To = ::subxt::ext::subxt_core::utils::AccountId32;
pub type Amount = ::core::primitive::u128;
pub type TransferCount = ::core::primitive::u64;
pub type LeafIndex = ::core::primitive::u64;
}
impl ::subxt::ext::subxt_core::events::StaticEvent for NativeTransferred {
const PALLET: &'static str = "Wormhole";
const EVENT: &'static str = "NativeTransferred";
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")]
#[doc = "A non-native asset transfer was recorded."]
#[doc = ""]
#[doc = "The `leaf_index` can be used to fetch Merkle proofs via the"]
#[doc = "`zkTrie_getMerkleProof` RPC for ZK circuit verification."]
pub struct AssetTransferred {
pub asset_id: asset_transferred::AssetId,
pub from: asset_transferred::From,
pub to: asset_transferred::To,
pub amount: asset_transferred::Amount,
pub transfer_count: asset_transferred::TransferCount,
pub leaf_index: asset_transferred::LeafIndex,
}
pub mod asset_transferred {
use super::runtime_types;
pub type AssetId = ::core::primitive::u32;
pub type From = ::subxt::ext::subxt_core::utils::AccountId32;
pub type To = ::subxt::ext::subxt_core::utils::AccountId32;
pub type Amount = ::core::primitive::u128;
pub type TransferCount = ::core::primitive::u64;
pub type LeafIndex = ::core::primitive::u64;
}
impl ::subxt::ext::subxt_core::events::StaticEvent for AssetTransferred {
const PALLET: &'static str = "Wormhole";
const EVENT: &'static str = "AssetTransferred";
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")]
pub struct ProofVerified {
pub exit_amount: proof_verified::ExitAmount,
pub nullifiers: proof_verified::Nullifiers,
}
pub mod proof_verified {
use super::runtime_types;
pub type ExitAmount = ::core::primitive::u128;
pub type Nullifiers =
::subxt::ext::subxt_core::alloc::vec::Vec<[::core::primitive::u8; 32usize]>;
}
impl ::subxt::ext::subxt_core::events::StaticEvent for ProofVerified {
const PALLET: &'static str = "Wormhole";
const EVENT: &'static str = "ProofVerified";
}
}
pub mod storage {
use super::runtime_types;
pub mod types {
use super::runtime_types;
pub mod used_nullifiers {
use super::runtime_types;
pub type UsedNullifiers = ::core::primitive::bool;
pub type Param0 = [::core::primitive::u8; 32usize];
}
pub mod transfer_count {
use super::runtime_types;
pub type TransferCount = ::core::primitive::u64;
pub type Param0 = ::subxt::ext::subxt_core::utils::AccountId32;
}
pub mod genesis_endowments_pending {
use super::runtime_types;
pub type GenesisEndowmentsPending = ::subxt::ext::subxt_core::alloc::vec::Vec<
(::subxt::ext::subxt_core::utils::AccountId32, ::core::primitive::u128),
>;
}
}
pub struct StorageApi;
impl StorageApi {
pub fn used_nullifiers_iter(
&self,
) -> ::subxt::ext::subxt_core::storage::address::StaticAddress<
(),
types::used_nullifiers::UsedNullifiers,
(),
::subxt::ext::subxt_core::utils::Yes,
::subxt::ext::subxt_core::utils::Yes,
> {
::subxt::ext::subxt_core::storage::address::StaticAddress::new_static(
"Wormhole",
"UsedNullifiers",
(),
[
111u8, 222u8, 249u8, 87u8, 31u8, 249u8, 120u8, 32u8, 221u8, 33u8, 86u8,
103u8, 116u8, 235u8, 16u8, 191u8, 73u8, 183u8, 183u8, 77u8, 229u8,
255u8, 221u8, 186u8, 29u8, 179u8, 110u8, 138u8, 146u8, 113u8, 241u8,
222u8,
],
)
}
pub fn used_nullifiers(
&self,
_0: types::used_nullifiers::Param0,
) -> ::subxt::ext::subxt_core::storage::address::StaticAddress<
::subxt::ext::subxt_core::storage::address::StaticStorageKey<
types::used_nullifiers::Param0,
>,
types::used_nullifiers::UsedNullifiers,
::subxt::ext::subxt_core::utils::Yes,
::subxt::ext::subxt_core::utils::Yes,
(),
> {
::subxt::ext::subxt_core::storage::address::StaticAddress::new_static(
"Wormhole",
"UsedNullifiers",
::subxt::ext::subxt_core::storage::address::StaticStorageKey::new(_0),
[
111u8, 222u8, 249u8, 87u8, 31u8, 249u8, 120u8, 32u8, 221u8, 33u8, 86u8,
103u8, 116u8, 235u8, 16u8, 191u8, 73u8, 183u8, 183u8, 77u8, 229u8,
255u8, 221u8, 186u8, 29u8, 179u8, 110u8, 138u8, 146u8, 113u8, 241u8,
222u8,
],
)
}
#[doc = " Transfer count per recipient - used to generate unique leaf indices in the ZK trie."]
pub fn transfer_count_iter(
&self,
) -> ::subxt::ext::subxt_core::storage::address::StaticAddress<
(),
types::transfer_count::TransferCount,
(),
::subxt::ext::subxt_core::utils::Yes,
::subxt::ext::subxt_core::utils::Yes,
> {
::subxt::ext::subxt_core::storage::address::StaticAddress::new_static(
"Wormhole",
"TransferCount",
(),
[
155u8, 203u8, 134u8, 227u8, 130u8, 247u8, 25u8, 140u8, 222u8, 140u8,
171u8, 84u8, 194u8, 43u8, 94u8, 219u8, 28u8, 230u8, 224u8, 180u8,
153u8, 223u8, 95u8, 3u8, 28u8, 119u8, 58u8, 220u8, 6u8, 146u8, 145u8,
4u8,
],
)
}
#[doc = " Transfer count per recipient - used to generate unique leaf indices in the ZK trie."]
pub fn transfer_count(
&self,
_0: types::transfer_count::Param0,
) -> ::subxt::ext::subxt_core::storage::address::StaticAddress<
::subxt::ext::subxt_core::storage::address::StaticStorageKey<
types::transfer_count::Param0,
>,
types::transfer_count::TransferCount,
::subxt::ext::subxt_core::utils::Yes,
::subxt::ext::subxt_core::utils::Yes,
(),
> {
::subxt::ext::subxt_core::storage::address::StaticAddress::new_static(
"Wormhole",
"TransferCount",
::subxt::ext::subxt_core::storage::address::StaticStorageKey::new(_0),
[
155u8, 203u8, 134u8, 227u8, 130u8, 247u8, 25u8, 140u8, 222u8, 140u8,
171u8, 84u8, 194u8, 43u8, 94u8, 219u8, 28u8, 230u8, 224u8, 180u8,
153u8, 223u8, 95u8, 3u8, 28u8, 119u8, 58u8, 220u8, 6u8, 146u8, 145u8,
4u8,
],
)
}
#[doc = " Genesis endowments pending event emission."]
#[doc = " Stores (to_address, amount) for each genesis endowment."]
#[doc = " These are processed in on_initialize at block 1 to emit NativeTransferred events,"]
#[doc = " then cleared. This ensures indexers like Subsquid can track genesis transfers."]
#[doc = ""]
#[doc = " Unbounded because it's only populated at genesis and cleared on block 1."]
pub fn genesis_endowments_pending(
&self,
) -> ::subxt::ext::subxt_core::storage::address::StaticAddress<
(),
types::genesis_endowments_pending::GenesisEndowmentsPending,
::subxt::ext::subxt_core::utils::Yes,
::subxt::ext::subxt_core::utils::Yes,
(),
> {
::subxt::ext::subxt_core::storage::address::StaticAddress::new_static(
"Wormhole",
"GenesisEndowmentsPending",
(),
[
92u8, 149u8, 109u8, 170u8, 10u8, 130u8, 163u8, 174u8, 224u8, 98u8,
190u8, 125u8, 213u8, 240u8, 211u8, 23u8, 222u8, 20u8, 104u8, 45u8, 7u8,
73u8, 225u8, 73u8, 21u8, 88u8, 91u8, 57u8, 207u8, 252u8, 25u8, 76u8,
],
)
}
}
}
pub mod constants {
use super::runtime_types;
pub struct ConstantsApi;
impl ConstantsApi {
#[doc = " Account ID used as the \"from\" account when creating transfer proofs for minted tokens"]
pub fn minting_account(
&self,
) -> ::subxt::ext::subxt_core::constants::address::StaticAddress<
::subxt::ext::subxt_core::utils::AccountId32,
> {
::subxt::ext::subxt_core::constants::address::StaticAddress::new_static(
"Wormhole",
"MintingAccount",
[
115u8, 233u8, 13u8, 223u8, 88u8, 20u8, 202u8, 139u8, 153u8, 28u8,
155u8, 157u8, 224u8, 66u8, 3u8, 250u8, 23u8, 53u8, 88u8, 168u8, 211u8,
204u8, 122u8, 166u8, 248u8, 23u8, 174u8, 225u8, 99u8, 108u8, 89u8,
135u8,
],
)
}
#[doc = " Minimum transfer amount required for wormhole transfers."]
#[doc = " This prevents dust transfers that waste storage."]
pub fn minimum_transfer_amount(
&self,
) -> ::subxt::ext::subxt_core::constants::address::StaticAddress<
::core::primitive::u128,
> {
::subxt::ext::subxt_core::constants::address::StaticAddress::new_static(
"Wormhole",
"MinimumTransferAmount",
[
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 = " Volume fee rate in basis points (1 basis point = 0.01%)."]
#[doc = " This must match the fee rate used in proof generation."]
pub fn volume_fee_rate_bps(
&self,
) -> ::subxt::ext::subxt_core::constants::address::StaticAddress<
::core::primitive::u32,
> {
::subxt::ext::subxt_core::constants::address::StaticAddress::new_static(
"Wormhole",
"VolumeFeeRateBps",
[
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 = " Proportion of volume fees to burn (not mint). The remainder goes to the block author."]
#[doc = " Example: Permill::from_percent(50) means 50% burned, 50% to miner."]
pub fn volume_fees_burn_rate(
&self,
) -> ::subxt::ext::subxt_core::constants::address::StaticAddress<
runtime_types::sp_arithmetic::per_things::Permill,
> {
::subxt::ext::subxt_core::constants::address::StaticAddress::new_static(
"Wormhole",
"VolumeFeesBurnRate",
[
65u8, 93u8, 120u8, 165u8, 204u8, 81u8, 159u8, 163u8, 93u8, 135u8,
114u8, 121u8, 147u8, 35u8, 215u8, 213u8, 4u8, 223u8, 83u8, 37u8, 225u8,
200u8, 189u8, 156u8, 140u8, 36u8, 58u8, 46u8, 42u8, 232u8, 155u8, 0u8,
],
)
}
}
}
}
pub mod zk_tree {
use super::{root_mod, runtime_types};
#[doc = "The `Error` enum of this pallet."]
pub type Error = runtime_types::pallet_zk_tree::pallet::Error;
#[doc = "The `Event` enum of this pallet"]
pub type Event = runtime_types::pallet_zk_tree::pallet::Event;
pub mod events {
use super::runtime_types;
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")]
#[doc = "A new leaf was inserted into the tree."]
pub struct LeafInserted {
pub index: leaf_inserted::Index,
pub leaf_hash: leaf_inserted::LeafHash,
pub new_root: leaf_inserted::NewRoot,
}
pub mod leaf_inserted {
use super::runtime_types;
pub type Index = ::core::primitive::u64;
pub type LeafHash = [::core::primitive::u8; 32usize];
pub type NewRoot = [::core::primitive::u8; 32usize];
}
impl ::subxt::ext::subxt_core::events::StaticEvent for LeafInserted {
const PALLET: &'static str = "ZkTree";
const EVENT: &'static str = "LeafInserted";
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")]
#[doc = "Tree depth increased."]
pub struct TreeGrew {
pub new_depth: tree_grew::NewDepth,
}
pub mod tree_grew {
use super::runtime_types;
pub type NewDepth = ::core::primitive::u8;
}
impl ::subxt::ext::subxt_core::events::StaticEvent for TreeGrew {
const PALLET: &'static str = "ZkTree";
const EVENT: &'static str = "TreeGrew";
}
}
pub mod storage {
use super::runtime_types;
pub mod types {
use super::runtime_types;
pub mod leaves {
use super::runtime_types;
pub type Leaves = runtime_types::pallet_zk_tree::ZkLeaf<
::subxt::ext::subxt_core::utils::AccountId32,
::core::primitive::u32,
::core::primitive::u128,
>;
pub type Param0 = ::core::primitive::u64;
}
pub mod nodes {
use super::runtime_types;
pub type Nodes = [::core::primitive::u8; 32usize];
pub type Param0 = (::core::primitive::u8, ::core::primitive::u64);
}
pub mod leaf_count {
use super::runtime_types;
pub type LeafCount = ::core::primitive::u64;
}
pub mod depth {
use super::runtime_types;
pub type Depth = ::core::primitive::u8;
}
pub mod root {
use super::runtime_types;
pub type Root = [::core::primitive::u8; 32usize];
}
}
pub struct StorageApi;
impl StorageApi {
#[doc = " Leaf data stored by index."]
pub fn leaves_iter(
&self,
) -> ::subxt::ext::subxt_core::storage::address::StaticAddress<
(),
types::leaves::Leaves,
(),
(),
::subxt::ext::subxt_core::utils::Yes,
> {
::subxt::ext::subxt_core::storage::address::StaticAddress::new_static(
"ZkTree",
"Leaves",
(),
[
179u8, 219u8, 161u8, 103u8, 54u8, 178u8, 204u8, 221u8, 15u8, 0u8,
103u8, 111u8, 19u8, 89u8, 167u8, 0u8, 200u8, 35u8, 149u8, 127u8, 230u8,
183u8, 152u8, 151u8, 88u8, 171u8, 223u8, 134u8, 58u8, 122u8, 119u8,
53u8,
],
)
}
#[doc = " Leaf data stored by index."]
pub fn leaves(
&self,
_0: types::leaves::Param0,
) -> ::subxt::ext::subxt_core::storage::address::StaticAddress<
::subxt::ext::subxt_core::storage::address::StaticStorageKey<
types::leaves::Param0,
>,
types::leaves::Leaves,
::subxt::ext::subxt_core::utils::Yes,
(),
(),
> {
::subxt::ext::subxt_core::storage::address::StaticAddress::new_static(
"ZkTree",
"Leaves",
::subxt::ext::subxt_core::storage::address::StaticStorageKey::new(_0),
[
179u8, 219u8, 161u8, 103u8, 54u8, 178u8, 204u8, 221u8, 15u8, 0u8,
103u8, 111u8, 19u8, 89u8, 167u8, 0u8, 200u8, 35u8, 149u8, 127u8, 230u8,
183u8, 152u8, 151u8, 88u8, 171u8, 223u8, 134u8, 58u8, 122u8, 119u8,
53u8,
],
)
}
#[doc = " Internal tree nodes: (level, index) -> hash."]
#[doc = " Level 0 is unused (leaves are hashed on-demand)."]
#[doc = " Level 1+ contains internal node hashes."]
pub fn nodes_iter(
&self,
) -> ::subxt::ext::subxt_core::storage::address::StaticAddress<
(),
types::nodes::Nodes,
(),
(),
::subxt::ext::subxt_core::utils::Yes,
> {
::subxt::ext::subxt_core::storage::address::StaticAddress::new_static(
"ZkTree",
"Nodes",
(),
[
109u8, 135u8, 134u8, 82u8, 149u8, 113u8, 22u8, 231u8, 196u8, 37u8,
27u8, 29u8, 86u8, 223u8, 101u8, 97u8, 89u8, 147u8, 86u8, 202u8, 170u8,
24u8, 164u8, 137u8, 71u8, 46u8, 91u8, 69u8, 35u8, 251u8, 152u8, 144u8,
],
)
}
#[doc = " Internal tree nodes: (level, index) -> hash."]
#[doc = " Level 0 is unused (leaves are hashed on-demand)."]
#[doc = " Level 1+ contains internal node hashes."]
pub fn nodes(
&self,
_0: types::nodes::Param0,
) -> ::subxt::ext::subxt_core::storage::address::StaticAddress<
::subxt::ext::subxt_core::storage::address::StaticStorageKey<
types::nodes::Param0,
>,
types::nodes::Nodes,
::subxt::ext::subxt_core::utils::Yes,
(),
(),
> {
::subxt::ext::subxt_core::storage::address::StaticAddress::new_static(
"ZkTree",
"Nodes",
::subxt::ext::subxt_core::storage::address::StaticStorageKey::new(_0),
[
109u8, 135u8, 134u8, 82u8, 149u8, 113u8, 22u8, 231u8, 196u8, 37u8,
27u8, 29u8, 86u8, 223u8, 101u8, 97u8, 89u8, 147u8, 86u8, 202u8, 170u8,
24u8, 164u8, 137u8, 71u8, 46u8, 91u8, 69u8, 35u8, 251u8, 152u8, 144u8,
],
)
}
#[doc = " Number of leaves in the tree."]
pub fn leaf_count(
&self,
) -> ::subxt::ext::subxt_core::storage::address::StaticAddress<
(),
types::leaf_count::LeafCount,
::subxt::ext::subxt_core::utils::Yes,
::subxt::ext::subxt_core::utils::Yes,
(),
> {
::subxt::ext::subxt_core::storage::address::StaticAddress::new_static(
"ZkTree",
"LeafCount",
(),
[
67u8, 168u8, 48u8, 81u8, 223u8, 41u8, 216u8, 165u8, 89u8, 116u8, 103u8,
23u8, 83u8, 40u8, 238u8, 124u8, 63u8, 8u8, 247u8, 246u8, 11u8, 63u8,
181u8, 30u8, 51u8, 181u8, 232u8, 236u8, 184u8, 121u8, 66u8, 250u8,
],
)
}
#[doc = " Current depth of the tree (0 = empty, 1 = up to 4 leaves, etc.)."]
pub fn depth(
&self,
) -> ::subxt::ext::subxt_core::storage::address::StaticAddress<
(),
types::depth::Depth,
::subxt::ext::subxt_core::utils::Yes,
::subxt::ext::subxt_core::utils::Yes,
(),
> {
::subxt::ext::subxt_core::storage::address::StaticAddress::new_static(
"ZkTree",
"Depth",
(),
[
15u8, 235u8, 244u8, 51u8, 6u8, 56u8, 103u8, 34u8, 29u8, 165u8, 154u8,
31u8, 166u8, 174u8, 83u8, 59u8, 232u8, 175u8, 227u8, 168u8, 185u8,
29u8, 71u8, 211u8, 162u8, 69u8, 81u8, 108u8, 247u8, 107u8, 215u8, 52u8,
],
)
}
#[doc = " Current root hash of the tree."]
pub fn root(
&self,
) -> ::subxt::ext::subxt_core::storage::address::StaticAddress<
(),
types::root::Root,
::subxt::ext::subxt_core::utils::Yes,
::subxt::ext::subxt_core::utils::Yes,
(),
> {
::subxt::ext::subxt_core::storage::address::StaticAddress::new_static(
"ZkTree",
"Root",
(),
[
240u8, 224u8, 214u8, 191u8, 99u8, 19u8, 153u8, 102u8, 246u8, 99u8,
194u8, 80u8, 179u8, 162u8, 75u8, 8u8, 74u8, 143u8, 162u8, 61u8, 251u8,
71u8, 235u8, 88u8, 14u8, 197u8, 34u8, 40u8, 136u8, 119u8, 201u8, 35u8,
],
)
}
}
}
}
pub mod runtime_types {
use super::runtime_types;
pub mod bounded_collections {
use super::runtime_types;
pub mod bounded_btree_map {
use super::runtime_types;
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode"
)]
pub struct BoundedBTreeMap<_0, _1>(
pub ::subxt::ext::subxt_core::utils::KeyedVec<_0, _1>,
);
}
pub mod bounded_vec {
use super::runtime_types;
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode"
)]
pub struct BoundedVec<_0>(pub ::subxt::ext::subxt_core::alloc::vec::Vec<_0>);
}
pub mod weak_bounded_vec {
use super::runtime_types;
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode"
)]
pub struct WeakBoundedVec<_0>(pub ::subxt::ext::subxt_core::alloc::vec::Vec<_0>);
}
}
pub mod frame_metadata_hash_extension {
use super::runtime_types;
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")]
pub struct CheckMetadataHash {
pub mode: runtime_types::frame_metadata_hash_extension::Mode,
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")]
pub enum Mode {
#[codec(index = 0)]
Disabled,
#[codec(index = 1)]
Enabled,
}
}
pub mod frame_support {
use super::runtime_types;
pub mod dispatch {
use super::runtime_types;
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode"
)]
pub enum DispatchClass {
#[codec(index = 0)]
Normal,
#[codec(index = 1)]
Operational,
#[codec(index = 2)]
Mandatory,
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode"
)]
pub enum Pays {
#[codec(index = 0)]
Yes,
#[codec(index = 1)]
No,
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode"
)]
pub struct PerDispatchClass<_0> {
pub normal: _0,
pub operational: _0,
pub mandatory: _0,
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode"
)]
pub struct PostDispatchInfo {
pub actual_weight:
::core::option::Option<runtime_types::sp_weights::weight_v2::Weight>,
pub pays_fee: runtime_types::frame_support::dispatch::Pays,
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode"
)]
pub enum RawOrigin<_0> {
#[codec(index = 0)]
Root,
#[codec(index = 1)]
Signed(_0),
#[codec(index = 2)]
None,
#[codec(index = 3)]
Authorized,
}
}
pub mod traits {
use super::runtime_types;
pub mod preimages {
use super::runtime_types;
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode"
)]
pub enum Bounded<_0, _1> {
#[codec(index = 0)]
Legacy {
hash: ::subxt::ext::subxt_core::utils::H256,
},
#[codec(index = 1)]
Inline(
runtime_types::bounded_collections::bounded_vec::BoundedVec<
::core::primitive::u8,
>,
),
#[codec(index = 2)]
Lookup {
hash: ::subxt::ext::subxt_core::utils::H256,
len: ::core::primitive::u32,
},
__Ignore(::core::marker::PhantomData<(_0, _1)>),
}
}
pub mod schedule {
use super::runtime_types;
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode"
)]
pub enum DispatchTime<_0> {
#[codec(index = 0)]
At(_0),
#[codec(index = 1)]
After(_0),
}
}
pub mod storage {
use super::runtime_types;
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode"
)]
pub struct NoDrop<_0>(pub _0);
}
pub mod tokens {
use super::runtime_types;
pub mod fungible {
use super::runtime_types;
pub mod imbalance {
use super::runtime_types;
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode"
)]
pub struct Imbalance<_0> {
pub amount: _0,
}
}
}
pub mod misc {
use super::runtime_types;
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode"
)]
pub enum BalanceStatus {
#[codec(index = 0)]
Free,
#[codec(index = 1)]
Reserved,
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode"
)]
pub struct IdAmount<_0, _1> {
pub id: _0,
pub amount: _1,
}
}
}
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")]
pub struct PalletId(pub [::core::primitive::u8; 8usize]);
}
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 :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode"
)]
pub struct CheckGenesis;
}
pub mod check_mortality {
use super::runtime_types;
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: 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 :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode"
)]
pub struct CheckNonZeroSender;
}
pub mod check_nonce {
use super::runtime_types;
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode"
)]
pub struct CheckNonce(#[codec(compact)] pub ::core::primitive::u32);
}
pub mod check_spec_version {
use super::runtime_types;
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode"
)]
pub struct CheckSpecVersion;
}
pub mod check_tx_version {
use super::runtime_types;
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode"
)]
pub struct CheckTxVersion;
}
pub mod check_weight {
use super::runtime_types;
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode"
)]
pub struct CheckWeight;
}
}
pub mod limits {
use super::runtime_types;
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode"
)]
pub struct BlockLength {
pub max: runtime_types::frame_support::dispatch::PerDispatchClass<
::core::primitive::u32,
>,
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: 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 :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: 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 :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode"
)]
#[doc = "Contains a variant per dispatchable extrinsic that this pallet has."]
pub enum Call {
#[codec(index = 0)]
#[doc = "Make some on-chain remark."]
#[doc = ""]
#[doc = "Can be executed by every `origin`."]
remark {
remark: ::subxt::ext::subxt_core::alloc::vec::Vec<::core::primitive::u8>,
},
#[codec(index = 1)]
#[doc = "Set the number of pages in the WebAssembly environment's heap."]
set_heap_pages { pages: ::core::primitive::u64 },
#[codec(index = 2)]
#[doc = "Set the new runtime code."]
set_code {
code: ::subxt::ext::subxt_core::alloc::vec::Vec<::core::primitive::u8>,
},
#[codec(index = 3)]
#[doc = "Set the new runtime code without doing any checks of the given `code`."]
#[doc = ""]
#[doc = "Note that runtime upgrades will not run if this is called with a not-increasing spec"]
#[doc = "version!"]
set_code_without_checks {
code: ::subxt::ext::subxt_core::alloc::vec::Vec<::core::primitive::u8>,
},
#[codec(index = 4)]
#[doc = "Set some items of storage."]
set_storage {
items: ::subxt::ext::subxt_core::alloc::vec::Vec<(
::subxt::ext::subxt_core::alloc::vec::Vec<::core::primitive::u8>,
::subxt::ext::subxt_core::alloc::vec::Vec<::core::primitive::u8>,
)>,
},
#[codec(index = 5)]
#[doc = "Kill some items from storage."]
kill_storage {
keys: ::subxt::ext::subxt_core::alloc::vec::Vec<
::subxt::ext::subxt_core::alloc::vec::Vec<::core::primitive::u8>,
>,
},
#[codec(index = 6)]
#[doc = "Kill all storage items with a key that starts with the given prefix."]
#[doc = ""]
#[doc = "**NOTE:** We rely on the Root origin to provide us the number of subkeys under"]
#[doc = "the prefix we are removing to accurately calculate the weight of this function."]
kill_prefix {
prefix: ::subxt::ext::subxt_core::alloc::vec::Vec<::core::primitive::u8>,
subkeys: ::core::primitive::u32,
},
#[codec(index = 7)]
#[doc = "Make some on-chain remark and emit event."]
remark_with_event {
remark: ::subxt::ext::subxt_core::alloc::vec::Vec<::core::primitive::u8>,
},
#[codec(index = 9)]
#[doc = "Authorize an upgrade to a given `code_hash` for the runtime. The runtime can be supplied"]
#[doc = "later."]
#[doc = ""]
#[doc = "This call requires Root origin."]
authorize_upgrade { code_hash: ::subxt::ext::subxt_core::utils::H256 },
#[codec(index = 10)]
#[doc = "Authorize an upgrade to a given `code_hash` for the runtime. The runtime can be supplied"]
#[doc = "later."]
#[doc = ""]
#[doc = "WARNING: This authorizes an upgrade that will take place without any safety checks, for"]
#[doc = "example that the spec name remains the same and that the version number increases. Not"]
#[doc = "recommended for normal use. Use `authorize_upgrade` instead."]
#[doc = ""]
#[doc = "This call requires Root origin."]
authorize_upgrade_without_checks {
code_hash: ::subxt::ext::subxt_core::utils::H256,
},
#[codec(index = 11)]
#[doc = "Provide the preimage (runtime binary) `code` for an upgrade that has been authorized."]
#[doc = ""]
#[doc = "If the authorization required a version check, this call will ensure the spec name"]
#[doc = "remains unchanged and that the spec version has increased."]
#[doc = ""]
#[doc = "Depending on the runtime's `OnSetCode` configuration, this function may directly apply"]
#[doc = "the new `code` in the same block or attempt to schedule the upgrade."]
#[doc = ""]
#[doc = "All origins are allowed."]
apply_authorized_upgrade {
code: ::subxt::ext::subxt_core::alloc::vec::Vec<::core::primitive::u8>,
},
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: 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,
#[codec(index = 6)]
#[doc = "A multi-block migration is ongoing and prevents the current code from being replaced."]
MultiBlockMigrationsOngoing,
#[codec(index = 7)]
#[doc = "No upgrade authorized."]
NothingAuthorized,
#[codec(index = 8)]
#[doc = "The submitted code is not authorized."]
Unauthorized,
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: 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_system::DispatchEventInfo,
},
#[codec(index = 1)]
#[doc = "An extrinsic failed."]
ExtrinsicFailed {
dispatch_error: runtime_types::sp_runtime::DispatchError,
dispatch_info: runtime_types::frame_system::DispatchEventInfo,
},
#[codec(index = 2)]
#[doc = "`:code` was updated."]
CodeUpdated,
#[codec(index = 3)]
#[doc = "A new account was created."]
NewAccount { account: ::subxt::ext::subxt_core::utils::AccountId32 },
#[codec(index = 4)]
#[doc = "An account was reaped."]
KilledAccount { account: ::subxt::ext::subxt_core::utils::AccountId32 },
#[codec(index = 5)]
#[doc = "On on-chain remark happened."]
Remarked {
sender: ::subxt::ext::subxt_core::utils::AccountId32,
hash: ::subxt::ext::subxt_core::utils::H256,
},
#[codec(index = 6)]
#[doc = "An upgrade was authorized."]
UpgradeAuthorized {
code_hash: ::subxt::ext::subxt_core::utils::H256,
check_version: ::core::primitive::bool,
},
#[codec(index = 7)]
#[doc = "An invalid authorized upgrade was rejected while trying to apply it."]
RejectedInvalidAuthorizedUpgrade {
code_hash: ::subxt::ext::subxt_core::utils::H256,
error: runtime_types::sp_runtime::DispatchError,
},
}
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: 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 :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")]
pub struct CodeUpgradeAuthorization {
pub code_hash: ::subxt::ext::subxt_core::utils::H256,
pub check_version: ::core::primitive::bool,
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")]
pub struct DispatchEventInfo {
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 :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")]
pub struct EventRecord<_0, _1> {
pub phase: runtime_types::frame_system::Phase,
pub event: _0,
pub topics: ::subxt::ext::subxt_core::alloc::vec::Vec<_1>,
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")]
pub struct LastRuntimeUpgradeInfo {
#[codec(compact)]
pub spec_version: ::core::primitive::u32,
pub spec_name: ::subxt::ext::subxt_core::alloc::string::String,
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")]
pub enum Phase {
#[codec(index = 0)]
ApplyExtrinsic(::core::primitive::u32),
#[codec(index = 1)]
Finalization,
#[codec(index = 2)]
Initialization,
}
}
pub mod pallet_assets {
use super::runtime_types;
pub mod pallet {
use super::runtime_types;
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode"
)]
#[doc = "Contains a variant per dispatchable extrinsic that this pallet has."]
pub enum Call {
#[codec(index = 0)]
#[doc = "Issue a new class of fungible assets from a public origin."]
#[doc = ""]
#[doc = "This new asset class has no assets initially and its owner is the origin."]
#[doc = ""]
#[doc = "The origin must conform to the configured `CreateOrigin` and have sufficient funds free."]
#[doc = ""]
#[doc = "Funds of sender are reserved by `AssetDeposit`."]
#[doc = ""]
#[doc = "Parameters:"]
#[doc = "- `id`: The identifier of the new asset. This must not be currently in use to identify"]
#[doc = "an existing asset. If [`NextAssetId`] is set, then this must be equal to it."]
#[doc = "- `admin`: The admin of this class of assets. The admin is the initial address of each"]
#[doc = "member of the asset class's admin team."]
#[doc = "- `min_balance`: The minimum balance of this new asset that any single account must"]
#[doc = "have. If an account's balance is reduced below this, then it collapses to zero."]
#[doc = ""]
#[doc = "Emits `Created` event when successful."]
#[doc = ""]
#[doc = "Weight: `O(1)`"]
create {
#[codec(compact)]
id: ::core::primitive::u32,
admin: ::subxt::ext::subxt_core::utils::MultiAddress<
::subxt::ext::subxt_core::utils::AccountId32,
(),
>,
min_balance: ::core::primitive::u128,
},
#[codec(index = 1)]
#[doc = "Issue a new class of fungible assets from a privileged origin."]
#[doc = ""]
#[doc = "This new asset class has no assets initially."]
#[doc = ""]
#[doc = "The origin must conform to `ForceOrigin`."]
#[doc = ""]
#[doc = "Unlike `create`, no funds are reserved."]
#[doc = ""]
#[doc = "- `id`: The identifier of the new asset. This must not be currently in use to identify"]
#[doc = "an existing asset. If [`NextAssetId`] is set, then this must be equal to it."]
#[doc = "- `owner`: The owner of this class of assets. The owner has full superuser permissions"]
#[doc = "over this asset, but may later change and configure the permissions using"]
#[doc = "`transfer_ownership` and `set_team`."]
#[doc = "- `min_balance`: The minimum balance of this new asset that any single account must"]
#[doc = "have. If an account's balance is reduced below this, then it collapses to zero."]
#[doc = ""]
#[doc = "Emits `ForceCreated` event when successful."]
#[doc = ""]
#[doc = "Weight: `O(1)`"]
force_create {
#[codec(compact)]
id: ::core::primitive::u32,
owner: ::subxt::ext::subxt_core::utils::MultiAddress<
::subxt::ext::subxt_core::utils::AccountId32,
(),
>,
is_sufficient: ::core::primitive::bool,
#[codec(compact)]
min_balance: ::core::primitive::u128,
},
#[codec(index = 2)]
#[doc = "Start the process of destroying a fungible asset class."]
#[doc = ""]
#[doc = "`start_destroy` is the first in a series of extrinsics that should be called, to allow"]
#[doc = "destruction of an asset class."]
#[doc = ""]
#[doc = "The origin must conform to `ForceOrigin` or must be `Signed` by the asset's `owner`."]
#[doc = ""]
#[doc = "- `id`: The identifier of the asset to be destroyed. This must identify an existing"]
#[doc = " asset."]
#[doc = ""]
#[doc = "It will fail with either [`Error::ContainsHolds`] or [`Error::ContainsFreezes`] if"]
#[doc = "an account contains holds or freezes in place."]
start_destroy {
#[codec(compact)]
id: ::core::primitive::u32,
},
#[codec(index = 3)]
#[doc = "Destroy all accounts associated with a given asset."]
#[doc = ""]
#[doc = "`destroy_accounts` should only be called after `start_destroy` has been called, and the"]
#[doc = "asset is in a `Destroying` state."]
#[doc = ""]
#[doc = "Due to weight restrictions, this function may need to be called multiple times to fully"]
#[doc = "destroy all accounts. It will destroy `RemoveItemsLimit` accounts at a time."]
#[doc = ""]
#[doc = "- `id`: The identifier of the asset to be destroyed. This must identify an existing"]
#[doc = " asset."]
#[doc = ""]
#[doc = "Each call emits the `Event::DestroyedAccounts` event."]
destroy_accounts {
#[codec(compact)]
id: ::core::primitive::u32,
},
#[codec(index = 4)]
#[doc = "Destroy all approvals associated with a given asset up to the max (T::RemoveItemsLimit)."]
#[doc = ""]
#[doc = "`destroy_approvals` should only be called after `start_destroy` has been called, and the"]
#[doc = "asset is in a `Destroying` state."]
#[doc = ""]
#[doc = "Due to weight restrictions, this function may need to be called multiple times to fully"]
#[doc = "destroy all approvals. It will destroy `RemoveItemsLimit` approvals at a time."]
#[doc = ""]
#[doc = "- `id`: The identifier of the asset to be destroyed. This must identify an existing"]
#[doc = " asset."]
#[doc = ""]
#[doc = "Each call emits the `Event::DestroyedApprovals` event."]
destroy_approvals {
#[codec(compact)]
id: ::core::primitive::u32,
},
#[codec(index = 5)]
#[doc = "Complete destroying asset and unreserve currency."]
#[doc = ""]
#[doc = "`finish_destroy` should only be called after `start_destroy` has been called, and the"]
#[doc = "asset is in a `Destroying` state. All accounts or approvals should be destroyed before"]
#[doc = "hand."]
#[doc = ""]
#[doc = "- `id`: The identifier of the asset to be destroyed. This must identify an existing"]
#[doc = " asset."]
#[doc = ""]
#[doc = "Each successful call emits the `Event::Destroyed` event."]
finish_destroy {
#[codec(compact)]
id: ::core::primitive::u32,
},
#[codec(index = 6)]
#[doc = "Mint assets of a particular class."]
#[doc = ""]
#[doc = "The origin must be Signed and the sender must be the Issuer of the asset `id`."]
#[doc = ""]
#[doc = "- `id`: The identifier of the asset to have some amount minted."]
#[doc = "- `beneficiary`: The account to be credited with the minted assets."]
#[doc = "- `amount`: The amount of the asset to be minted."]
#[doc = ""]
#[doc = "Emits `Issued` event when successful."]
#[doc = ""]
#[doc = "Weight: `O(1)`"]
#[doc = "Modes: Pre-existing balance of `beneficiary`; Account pre-existence of `beneficiary`."]
mint {
#[codec(compact)]
id: ::core::primitive::u32,
beneficiary: ::subxt::ext::subxt_core::utils::MultiAddress<
::subxt::ext::subxt_core::utils::AccountId32,
(),
>,
#[codec(compact)]
amount: ::core::primitive::u128,
},
#[codec(index = 7)]
#[doc = "Reduce the balance of `who` by as much as possible up to `amount` assets of `id`."]
#[doc = ""]
#[doc = "Origin must be Signed and the sender should be the Manager of the asset `id`."]
#[doc = ""]
#[doc = "Bails with `NoAccount` if the `who` is already dead."]
#[doc = ""]
#[doc = "- `id`: The identifier of the asset to have some amount burned."]
#[doc = "- `who`: The account to be debited from."]
#[doc = "- `amount`: The maximum amount by which `who`'s balance should be reduced."]
#[doc = ""]
#[doc = "Emits `Burned` with the actual amount burned. If this takes the balance to below the"]
#[doc = "minimum for the asset, then the amount burned is increased to take it to zero."]
#[doc = ""]
#[doc = "Weight: `O(1)`"]
#[doc = "Modes: Post-existence of `who`; Pre & post Zombie-status of `who`."]
burn {
#[codec(compact)]
id: ::core::primitive::u32,
who: ::subxt::ext::subxt_core::utils::MultiAddress<
::subxt::ext::subxt_core::utils::AccountId32,
(),
>,
#[codec(compact)]
amount: ::core::primitive::u128,
},
#[codec(index = 8)]
#[doc = "Move some assets from the sender account to another."]
#[doc = ""]
#[doc = "Origin must be Signed."]
#[doc = ""]
#[doc = "- `id`: The identifier of the asset to have some amount transferred."]
#[doc = "- `target`: The account to be credited."]
#[doc = "- `amount`: The amount by which the sender's balance of assets should be reduced and"]
#[doc = "`target`'s balance increased. The amount actually transferred may be slightly greater in"]
#[doc = "the case that the transfer would otherwise take the sender balance above zero but below"]
#[doc = "the minimum balance. Must be greater than zero."]
#[doc = ""]
#[doc = "Emits `Transferred` with the actual amount transferred. If this takes the source balance"]
#[doc = "to below the minimum for the asset, then the amount transferred is increased to take it"]
#[doc = "to zero."]
#[doc = ""]
#[doc = "Weight: `O(1)`"]
#[doc = "Modes: Pre-existence of `target`; Post-existence of sender; Account pre-existence of"]
#[doc = "`target`."]
transfer {
#[codec(compact)]
id: ::core::primitive::u32,
target: ::subxt::ext::subxt_core::utils::MultiAddress<
::subxt::ext::subxt_core::utils::AccountId32,
(),
>,
#[codec(compact)]
amount: ::core::primitive::u128,
},
#[codec(index = 9)]
#[doc = "Move some assets from the sender account to another, keeping the sender account alive."]
#[doc = ""]
#[doc = "Origin must be Signed."]
#[doc = ""]
#[doc = "- `id`: The identifier of the asset to have some amount transferred."]
#[doc = "- `target`: The account to be credited."]
#[doc = "- `amount`: The amount by which the sender's balance of assets should be reduced and"]
#[doc = "`target`'s balance increased. The amount actually transferred may be slightly greater in"]
#[doc = "the case that the transfer would otherwise take the sender balance above zero but below"]
#[doc = "the minimum balance. Must be greater than zero."]
#[doc = ""]
#[doc = "Emits `Transferred` with the actual amount transferred. If this takes the source balance"]
#[doc = "to below the minimum for the asset, then the amount transferred is increased to take it"]
#[doc = "to zero."]
#[doc = ""]
#[doc = "Weight: `O(1)`"]
#[doc = "Modes: Pre-existence of `target`; Post-existence of sender; Account pre-existence of"]
#[doc = "`target`."]
transfer_keep_alive {
#[codec(compact)]
id: ::core::primitive::u32,
target: ::subxt::ext::subxt_core::utils::MultiAddress<
::subxt::ext::subxt_core::utils::AccountId32,
(),
>,
#[codec(compact)]
amount: ::core::primitive::u128,
},
#[codec(index = 10)]
#[doc = "Move some assets from one account to another."]
#[doc = ""]
#[doc = "Origin must be Signed and the sender should be the Admin of the asset `id`."]
#[doc = ""]
#[doc = "- `id`: The identifier of the asset to have some amount transferred."]
#[doc = "- `source`: The account to be debited."]
#[doc = "- `dest`: The account to be credited."]
#[doc = "- `amount`: The amount by which the `source`'s balance of assets should be reduced and"]
#[doc = "`dest`'s balance increased. The amount actually transferred may be slightly greater in"]
#[doc = "the case that the transfer would otherwise take the `source` balance above zero but"]
#[doc = "below the minimum balance. Must be greater than zero."]
#[doc = ""]
#[doc = "Emits `Transferred` with the actual amount transferred. If this takes the source balance"]
#[doc = "to below the minimum for the asset, then the amount transferred is increased to take it"]
#[doc = "to zero."]
#[doc = ""]
#[doc = "Weight: `O(1)`"]
#[doc = "Modes: Pre-existence of `dest`; Post-existence of `source`; Account pre-existence of"]
#[doc = "`dest`."]
force_transfer {
#[codec(compact)]
id: ::core::primitive::u32,
source: ::subxt::ext::subxt_core::utils::MultiAddress<
::subxt::ext::subxt_core::utils::AccountId32,
(),
>,
dest: ::subxt::ext::subxt_core::utils::MultiAddress<
::subxt::ext::subxt_core::utils::AccountId32,
(),
>,
#[codec(compact)]
amount: ::core::primitive::u128,
},
#[codec(index = 11)]
#[doc = "Disallow further unprivileged transfers of an asset `id` from an account `who`. `who`"]
#[doc = "must already exist as an entry in `Account`s of the asset. If you want to freeze an"]
#[doc = "account that does not have an entry, use `touch_other` first."]
#[doc = ""]
#[doc = "Origin must be Signed and the sender should be the Freezer of the asset `id`."]
#[doc = ""]
#[doc = "- `id`: The identifier of the asset to be frozen."]
#[doc = "- `who`: The account to be frozen."]
#[doc = ""]
#[doc = "Emits `Frozen`."]
#[doc = ""]
#[doc = "Weight: `O(1)`"]
freeze {
#[codec(compact)]
id: ::core::primitive::u32,
who: ::subxt::ext::subxt_core::utils::MultiAddress<
::subxt::ext::subxt_core::utils::AccountId32,
(),
>,
},
#[codec(index = 12)]
#[doc = "Allow unprivileged transfers to and from an account again."]
#[doc = ""]
#[doc = "Origin must be Signed and the sender should be the Admin of the asset `id`."]
#[doc = ""]
#[doc = "- `id`: The identifier of the asset to be frozen."]
#[doc = "- `who`: The account to be unfrozen."]
#[doc = ""]
#[doc = "Emits `Thawed`."]
#[doc = ""]
#[doc = "Weight: `O(1)`"]
thaw {
#[codec(compact)]
id: ::core::primitive::u32,
who: ::subxt::ext::subxt_core::utils::MultiAddress<
::subxt::ext::subxt_core::utils::AccountId32,
(),
>,
},
#[codec(index = 13)]
#[doc = "Disallow further unprivileged transfers for the asset class."]
#[doc = ""]
#[doc = "Origin must be Signed and the sender should be the Freezer of the asset `id`."]
#[doc = ""]
#[doc = "- `id`: The identifier of the asset to be frozen."]
#[doc = ""]
#[doc = "Emits `Frozen`."]
#[doc = ""]
#[doc = "Weight: `O(1)`"]
freeze_asset {
#[codec(compact)]
id: ::core::primitive::u32,
},
#[codec(index = 14)]
#[doc = "Allow unprivileged transfers for the asset again."]
#[doc = ""]
#[doc = "Origin must be Signed and the sender should be the Admin of the asset `id`."]
#[doc = ""]
#[doc = "- `id`: The identifier of the asset to be thawed."]
#[doc = ""]
#[doc = "Emits `Thawed`."]
#[doc = ""]
#[doc = "Weight: `O(1)`"]
thaw_asset {
#[codec(compact)]
id: ::core::primitive::u32,
},
#[codec(index = 15)]
#[doc = "Change the Owner of an asset."]
#[doc = ""]
#[doc = "Origin must be Signed and the sender should be the Owner of the asset `id`."]
#[doc = ""]
#[doc = "- `id`: The identifier of the asset."]
#[doc = "- `owner`: The new Owner of this asset."]
#[doc = ""]
#[doc = "Emits `OwnerChanged`."]
#[doc = ""]
#[doc = "Weight: `O(1)`"]
transfer_ownership {
#[codec(compact)]
id: ::core::primitive::u32,
owner: ::subxt::ext::subxt_core::utils::MultiAddress<
::subxt::ext::subxt_core::utils::AccountId32,
(),
>,
},
#[codec(index = 16)]
#[doc = "Change the Issuer, Admin and Freezer of an asset."]
#[doc = ""]
#[doc = "Origin must be Signed and the sender should be the Owner of the asset `id`."]
#[doc = ""]
#[doc = "- `id`: The identifier of the asset to be frozen."]
#[doc = "- `issuer`: The new Issuer of this asset."]
#[doc = "- `admin`: The new Admin of this asset."]
#[doc = "- `freezer`: The new Freezer of this asset."]
#[doc = ""]
#[doc = "Emits `TeamChanged`."]
#[doc = ""]
#[doc = "Weight: `O(1)`"]
set_team {
#[codec(compact)]
id: ::core::primitive::u32,
issuer: ::subxt::ext::subxt_core::utils::MultiAddress<
::subxt::ext::subxt_core::utils::AccountId32,
(),
>,
admin: ::subxt::ext::subxt_core::utils::MultiAddress<
::subxt::ext::subxt_core::utils::AccountId32,
(),
>,
freezer: ::subxt::ext::subxt_core::utils::MultiAddress<
::subxt::ext::subxt_core::utils::AccountId32,
(),
>,
},
#[codec(index = 17)]
#[doc = "Set the metadata for an asset."]
#[doc = ""]
#[doc = "Origin must be Signed and the sender should be the Owner of the asset `id`."]
#[doc = ""]
#[doc = "Funds of sender are reserved according to the formula:"]
#[doc = "`MetadataDepositBase + MetadataDepositPerByte * (name.len + symbol.len)` taking into"]
#[doc = "account any already reserved funds."]
#[doc = ""]
#[doc = "- `id`: The identifier of the asset to update."]
#[doc = "- `name`: The user friendly name of this asset. Limited in length by `StringLimit`."]
#[doc = "- `symbol`: The exchange symbol for this asset. Limited in length by `StringLimit`."]
#[doc = "- `decimals`: The number of decimals this asset uses to represent one unit."]
#[doc = ""]
#[doc = "Emits `MetadataSet`."]
#[doc = ""]
#[doc = "Weight: `O(1)`"]
set_metadata {
#[codec(compact)]
id: ::core::primitive::u32,
name: ::subxt::ext::subxt_core::alloc::vec::Vec<::core::primitive::u8>,
symbol: ::subxt::ext::subxt_core::alloc::vec::Vec<::core::primitive::u8>,
decimals: ::core::primitive::u8,
},
#[codec(index = 18)]
#[doc = "Clear the metadata for an asset."]
#[doc = ""]
#[doc = "Origin must be Signed and the sender should be the Owner of the asset `id`."]
#[doc = ""]
#[doc = "Any deposit is freed for the asset owner."]
#[doc = ""]
#[doc = "- `id`: The identifier of the asset to clear."]
#[doc = ""]
#[doc = "Emits `MetadataCleared`."]
#[doc = ""]
#[doc = "Weight: `O(1)`"]
clear_metadata {
#[codec(compact)]
id: ::core::primitive::u32,
},
#[codec(index = 19)]
#[doc = "Force the metadata for an asset to some value."]
#[doc = ""]
#[doc = "Origin must be ForceOrigin."]
#[doc = ""]
#[doc = "Any deposit is left alone."]
#[doc = ""]
#[doc = "- `id`: The identifier of the asset to update."]
#[doc = "- `name`: The user friendly name of this asset. Limited in length by `StringLimit`."]
#[doc = "- `symbol`: The exchange symbol for this asset. Limited in length by `StringLimit`."]
#[doc = "- `decimals`: The number of decimals this asset uses to represent one unit."]
#[doc = ""]
#[doc = "Emits `MetadataSet`."]
#[doc = ""]
#[doc = "Weight: `O(N + S)` where N and S are the length of the name and symbol respectively."]
force_set_metadata {
#[codec(compact)]
id: ::core::primitive::u32,
name: ::subxt::ext::subxt_core::alloc::vec::Vec<::core::primitive::u8>,
symbol: ::subxt::ext::subxt_core::alloc::vec::Vec<::core::primitive::u8>,
decimals: ::core::primitive::u8,
is_frozen: ::core::primitive::bool,
},
#[codec(index = 20)]
#[doc = "Clear the metadata for an asset."]
#[doc = ""]
#[doc = "Origin must be ForceOrigin."]
#[doc = ""]
#[doc = "Any deposit is returned."]
#[doc = ""]
#[doc = "- `id`: The identifier of the asset to clear."]
#[doc = ""]
#[doc = "Emits `MetadataCleared`."]
#[doc = ""]
#[doc = "Weight: `O(1)`"]
force_clear_metadata {
#[codec(compact)]
id: ::core::primitive::u32,
},
#[codec(index = 21)]
#[doc = "Alter the attributes of a given asset."]
#[doc = ""]
#[doc = "Origin must be `ForceOrigin`."]
#[doc = ""]
#[doc = "- `id`: The identifier of the asset."]
#[doc = "- `owner`: The new Owner of this asset."]
#[doc = "- `issuer`: The new Issuer of this asset."]
#[doc = "- `admin`: The new Admin of this asset."]
#[doc = "- `freezer`: The new Freezer of this asset."]
#[doc = "- `min_balance`: The minimum balance of this new asset that any single account must"]
#[doc = "have. If an account's balance is reduced below this, then it collapses to zero."]
#[doc = "- `is_sufficient`: Whether a non-zero balance of this asset is deposit of sufficient"]
#[doc = "value to account for the state bloat associated with its balance storage. If set to"]
#[doc = "`true`, then non-zero balances may be stored without a `consumer` reference (and thus"]
#[doc = "an ED in the Balances pallet or whatever else is used to control user-account state"]
#[doc = "growth)."]
#[doc = "- `is_frozen`: Whether this asset class is frozen except for permissioned/admin"]
#[doc = "instructions."]
#[doc = ""]
#[doc = "Emits `AssetStatusChanged` with the identity of the asset."]
#[doc = ""]
#[doc = "Weight: `O(1)`"]
force_asset_status {
#[codec(compact)]
id: ::core::primitive::u32,
owner: ::subxt::ext::subxt_core::utils::MultiAddress<
::subxt::ext::subxt_core::utils::AccountId32,
(),
>,
issuer: ::subxt::ext::subxt_core::utils::MultiAddress<
::subxt::ext::subxt_core::utils::AccountId32,
(),
>,
admin: ::subxt::ext::subxt_core::utils::MultiAddress<
::subxt::ext::subxt_core::utils::AccountId32,
(),
>,
freezer: ::subxt::ext::subxt_core::utils::MultiAddress<
::subxt::ext::subxt_core::utils::AccountId32,
(),
>,
#[codec(compact)]
min_balance: ::core::primitive::u128,
is_sufficient: ::core::primitive::bool,
is_frozen: ::core::primitive::bool,
},
#[codec(index = 22)]
#[doc = "Approve an amount of asset for transfer by a delegated third-party account."]
#[doc = ""]
#[doc = "Origin must be Signed."]
#[doc = ""]
#[doc = "Ensures that `ApprovalDeposit` worth of `Currency` is reserved from signing account"]
#[doc = "for the purpose of holding the approval. If some non-zero amount of assets is already"]
#[doc = "approved from signing account to `delegate`, then it is topped up or unreserved to"]
#[doc = "meet the right value."]
#[doc = ""]
#[doc = "NOTE: The signing account does not need to own `amount` of assets at the point of"]
#[doc = "making this call."]
#[doc = ""]
#[doc = "- `id`: The identifier of the asset."]
#[doc = "- `delegate`: The account to delegate permission to transfer asset."]
#[doc = "- `amount`: The amount of asset that may be transferred by `delegate`. If there is"]
#[doc = "already an approval in place, then this acts additively."]
#[doc = ""]
#[doc = "Emits `ApprovedTransfer` on success."]
#[doc = ""]
#[doc = "Weight: `O(1)`"]
approve_transfer {
#[codec(compact)]
id: ::core::primitive::u32,
delegate: ::subxt::ext::subxt_core::utils::MultiAddress<
::subxt::ext::subxt_core::utils::AccountId32,
(),
>,
#[codec(compact)]
amount: ::core::primitive::u128,
},
#[codec(index = 23)]
#[doc = "Cancel all of some asset approved for delegated transfer by a third-party account."]
#[doc = ""]
#[doc = "Origin must be Signed and there must be an approval in place between signer and"]
#[doc = "`delegate`."]
#[doc = ""]
#[doc = "Unreserves any deposit previously reserved by `approve_transfer` for the approval."]
#[doc = ""]
#[doc = "- `id`: The identifier of the asset."]
#[doc = "- `delegate`: The account delegated permission to transfer asset."]
#[doc = ""]
#[doc = "Emits `ApprovalCancelled` on success."]
#[doc = ""]
#[doc = "Weight: `O(1)`"]
cancel_approval {
#[codec(compact)]
id: ::core::primitive::u32,
delegate: ::subxt::ext::subxt_core::utils::MultiAddress<
::subxt::ext::subxt_core::utils::AccountId32,
(),
>,
},
#[codec(index = 24)]
#[doc = "Cancel all of some asset approved for delegated transfer by a third-party account."]
#[doc = ""]
#[doc = "Origin must be either ForceOrigin or Signed origin with the signer being the Admin"]
#[doc = "account of the asset `id`."]
#[doc = ""]
#[doc = "Unreserves any deposit previously reserved by `approve_transfer` for the approval."]
#[doc = ""]
#[doc = "- `id`: The identifier of the asset."]
#[doc = "- `delegate`: The account delegated permission to transfer asset."]
#[doc = ""]
#[doc = "Emits `ApprovalCancelled` on success."]
#[doc = ""]
#[doc = "Weight: `O(1)`"]
force_cancel_approval {
#[codec(compact)]
id: ::core::primitive::u32,
owner: ::subxt::ext::subxt_core::utils::MultiAddress<
::subxt::ext::subxt_core::utils::AccountId32,
(),
>,
delegate: ::subxt::ext::subxt_core::utils::MultiAddress<
::subxt::ext::subxt_core::utils::AccountId32,
(),
>,
},
#[codec(index = 25)]
#[doc = "Transfer some asset balance from a previously delegated account to some third-party"]
#[doc = "account."]
#[doc = ""]
#[doc = "Origin must be Signed and there must be an approval in place by the `owner` to the"]
#[doc = "signer."]
#[doc = ""]
#[doc = "If the entire amount approved for transfer is transferred, then any deposit previously"]
#[doc = "reserved by `approve_transfer` is unreserved."]
#[doc = ""]
#[doc = "- `id`: The identifier of the asset."]
#[doc = "- `owner`: The account which previously approved for a transfer of at least `amount` and"]
#[doc = "from which the asset balance will be withdrawn."]
#[doc = "- `destination`: The account to which the asset balance of `amount` will be transferred."]
#[doc = "- `amount`: The amount of assets to transfer."]
#[doc = ""]
#[doc = "Emits `TransferredApproved` on success."]
#[doc = ""]
#[doc = "Weight: `O(1)`"]
transfer_approved {
#[codec(compact)]
id: ::core::primitive::u32,
owner: ::subxt::ext::subxt_core::utils::MultiAddress<
::subxt::ext::subxt_core::utils::AccountId32,
(),
>,
destination: ::subxt::ext::subxt_core::utils::MultiAddress<
::subxt::ext::subxt_core::utils::AccountId32,
(),
>,
#[codec(compact)]
amount: ::core::primitive::u128,
},
#[codec(index = 26)]
#[doc = "Create an asset account for non-provider assets."]
#[doc = ""]
#[doc = "A deposit will be taken from the signer account."]
#[doc = ""]
#[doc = "- `origin`: Must be Signed; the signer account must have sufficient funds for a deposit"]
#[doc = " to be taken."]
#[doc = "- `id`: The identifier of the asset for the account to be created."]
#[doc = ""]
#[doc = "Emits `Touched` event when successful."]
touch {
#[codec(compact)]
id: ::core::primitive::u32,
},
#[codec(index = 27)]
#[doc = "Return the deposit (if any) of an asset account or a consumer reference (if any) of an"]
#[doc = "account."]
#[doc = ""]
#[doc = "The origin must be Signed."]
#[doc = ""]
#[doc = "- `id`: The identifier of the asset for which the caller would like the deposit"]
#[doc = " refunded."]
#[doc = "- `allow_burn`: If `true` then assets may be destroyed in order to complete the refund."]
#[doc = ""]
#[doc = "It will fail with either [`Error::ContainsHolds`] or [`Error::ContainsFreezes`] if"]
#[doc = "the asset account contains holds or freezes in place."]
#[doc = ""]
#[doc = "Emits `Refunded` event when successful."]
refund {
#[codec(compact)]
id: ::core::primitive::u32,
allow_burn: ::core::primitive::bool,
},
#[codec(index = 28)]
#[doc = "Sets the minimum balance of an asset."]
#[doc = ""]
#[doc = "Only works if there aren't any accounts that are holding the asset or if"]
#[doc = "the new value of `min_balance` is less than the old one."]
#[doc = ""]
#[doc = "Origin must be Signed and the sender has to be the Owner of the"]
#[doc = "asset `id`."]
#[doc = ""]
#[doc = "- `id`: The identifier of the asset."]
#[doc = "- `min_balance`: The new value of `min_balance`."]
#[doc = ""]
#[doc = "Emits `AssetMinBalanceChanged` event when successful."]
set_min_balance {
#[codec(compact)]
id: ::core::primitive::u32,
min_balance: ::core::primitive::u128,
},
#[codec(index = 29)]
#[doc = "Create an asset account for `who`."]
#[doc = ""]
#[doc = "A deposit will be taken from the signer account."]
#[doc = ""]
#[doc = "- `origin`: Must be Signed; the signer account must have sufficient funds for a deposit"]
#[doc = " to be taken."]
#[doc = "- `id`: The identifier of the asset for the account to be created, the asset status must"]
#[doc = " be live."]
#[doc = "- `who`: The account to be created."]
#[doc = ""]
#[doc = "Emits `Touched` event when successful."]
touch_other {
#[codec(compact)]
id: ::core::primitive::u32,
who: ::subxt::ext::subxt_core::utils::MultiAddress<
::subxt::ext::subxt_core::utils::AccountId32,
(),
>,
},
#[codec(index = 30)]
#[doc = "Return the deposit (if any) of a target asset account. Useful if you are the depositor."]
#[doc = ""]
#[doc = "The origin must be Signed and either the account owner, depositor, or asset `Admin`. In"]
#[doc = "order to burn a non-zero balance of the asset, the caller must be the account and should"]
#[doc = "use `refund`."]
#[doc = ""]
#[doc = "- `id`: The identifier of the asset for the account holding a deposit."]
#[doc = "- `who`: The account to refund."]
#[doc = ""]
#[doc = "It will fail with either [`Error::ContainsHolds`] or [`Error::ContainsFreezes`] if"]
#[doc = "the asset account contains holds or freezes in place."]
#[doc = ""]
#[doc = "Emits `Refunded` event when successful."]
refund_other {
#[codec(compact)]
id: ::core::primitive::u32,
who: ::subxt::ext::subxt_core::utils::MultiAddress<
::subxt::ext::subxt_core::utils::AccountId32,
(),
>,
},
#[codec(index = 31)]
#[doc = "Disallow further unprivileged transfers of an asset `id` to and from an account `who`."]
#[doc = ""]
#[doc = "Origin must be Signed and the sender should be the Freezer of the asset `id`."]
#[doc = ""]
#[doc = "- `id`: The identifier of the account's asset."]
#[doc = "- `who`: The account to be unblocked."]
#[doc = ""]
#[doc = "Emits `Blocked`."]
#[doc = ""]
#[doc = "Weight: `O(1)`"]
block {
#[codec(compact)]
id: ::core::primitive::u32,
who: ::subxt::ext::subxt_core::utils::MultiAddress<
::subxt::ext::subxt_core::utils::AccountId32,
(),
>,
},
#[codec(index = 32)]
#[doc = "Transfer the entire transferable balance from the caller asset account."]
#[doc = ""]
#[doc = "NOTE: This function only attempts to transfer _transferable_ balances. This means that"]
#[doc = "any held, frozen, or minimum balance (when `keep_alive` is `true`), will not be"]
#[doc = "transferred by this function. To ensure that this function results in a killed account,"]
#[doc = "you might need to prepare the account by removing any reference counters, storage"]
#[doc = "deposits, etc..."]
#[doc = ""]
#[doc = "The dispatch origin of this call must be Signed."]
#[doc = ""]
#[doc = "- `id`: The identifier of the asset for the account holding a deposit."]
#[doc = "- `dest`: The recipient of the transfer."]
#[doc = "- `keep_alive`: A boolean to determine if the `transfer_all` operation should send all"]
#[doc = " of the funds the asset account has, causing the sender asset account to be killed"]
#[doc = " (false), or transfer everything except at least the minimum balance, which will"]
#[doc = " guarantee to keep the sender asset account alive (true)."]
transfer_all {
#[codec(compact)]
id: ::core::primitive::u32,
dest: ::subxt::ext::subxt_core::utils::MultiAddress<
::subxt::ext::subxt_core::utils::AccountId32,
(),
>,
keep_alive: ::core::primitive::bool,
},
#[codec(index = 33)]
#[doc = "Sets the trusted reserve information of an asset."]
#[doc = ""]
#[doc = "Origin must be the Owner of the asset `id`. The origin must conform to the configured"]
#[doc = "`CreateOrigin` or be the signed `owner` configured during asset creation."]
#[doc = ""]
#[doc = "- `id`: The identifier of the asset."]
#[doc = "- `reserves`: The full list of trusted reserves information."]
#[doc = ""]
#[doc = "Emits `AssetMinBalanceChanged` event when successful."]
set_reserves {
#[codec(compact)]
id: ::core::primitive::u32,
reserves: runtime_types::bounded_collections::bounded_vec::BoundedVec<()>,
},
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode"
)]
#[doc = "The `Error` enum of this pallet."]
pub enum Error {
#[codec(index = 0)]
#[doc = "Account balance must be greater than or equal to the transfer amount."]
BalanceLow,
#[codec(index = 1)]
#[doc = "The account to alter does not exist."]
NoAccount,
#[codec(index = 2)]
#[doc = "The signing account has no permission to do the operation."]
NoPermission,
#[codec(index = 3)]
#[doc = "The given asset ID is unknown."]
Unknown,
#[codec(index = 4)]
#[doc = "The origin account is frozen."]
Frozen,
#[codec(index = 5)]
#[doc = "The asset ID is already taken."]
InUse,
#[codec(index = 6)]
#[doc = "Invalid witness data given."]
BadWitness,
#[codec(index = 7)]
#[doc = "Minimum balance should be non-zero."]
MinBalanceZero,
#[codec(index = 8)]
#[doc = "Unable to increment the consumer reference counters on the account. Either no provider"]
#[doc = "reference exists to allow a non-zero balance of a non-self-sufficient asset, or one"]
#[doc = "fewer then the maximum number of consumers has been reached."]
UnavailableConsumer,
#[codec(index = 9)]
#[doc = "Invalid metadata given."]
BadMetadata,
#[codec(index = 10)]
#[doc = "No approval exists that would allow the transfer."]
Unapproved,
#[codec(index = 11)]
#[doc = "The source account would not survive the transfer and it needs to stay alive."]
WouldDie,
#[codec(index = 12)]
#[doc = "The asset-account already exists."]
AlreadyExists,
#[codec(index = 13)]
#[doc = "The asset-account doesn't have an associated deposit."]
NoDeposit,
#[codec(index = 14)]
#[doc = "The operation would result in funds being burned."]
WouldBurn,
#[codec(index = 15)]
#[doc = "The asset is a live asset and is actively being used. Usually emit for operations such"]
#[doc = "as `start_destroy` which require the asset to be in a destroying state."]
LiveAsset,
#[codec(index = 16)]
#[doc = "The asset is not live, and likely being destroyed."]
AssetNotLive,
#[codec(index = 17)]
#[doc = "The asset status is not the expected status."]
IncorrectStatus,
#[codec(index = 18)]
#[doc = "The asset should be frozen before the given operation."]
NotFrozen,
#[codec(index = 19)]
#[doc = "Callback action resulted in error"]
CallbackFailed,
#[codec(index = 20)]
#[doc = "The asset ID must be equal to the [`NextAssetId`]."]
BadAssetId,
#[codec(index = 21)]
#[doc = "The asset cannot be destroyed because some accounts for this asset contain freezes."]
ContainsFreezes,
#[codec(index = 22)]
#[doc = "The asset cannot be destroyed because some accounts for this asset contain holds."]
ContainsHolds,
#[codec(index = 23)]
#[doc = "Tried setting too many reserves."]
TooManyReserves,
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode"
)]
#[doc = "The `Event` enum of this pallet"]
pub enum Event {
#[codec(index = 0)]
#[doc = "Some asset class was created."]
Created {
asset_id: ::core::primitive::u32,
creator: ::subxt::ext::subxt_core::utils::AccountId32,
owner: ::subxt::ext::subxt_core::utils::AccountId32,
},
#[codec(index = 1)]
#[doc = "Some assets were issued."]
Issued {
asset_id: ::core::primitive::u32,
owner: ::subxt::ext::subxt_core::utils::AccountId32,
amount: ::core::primitive::u128,
},
#[codec(index = 2)]
#[doc = "Some assets were transferred."]
Transferred {
asset_id: ::core::primitive::u32,
from: ::subxt::ext::subxt_core::utils::AccountId32,
to: ::subxt::ext::subxt_core::utils::AccountId32,
amount: ::core::primitive::u128,
},
#[codec(index = 3)]
#[doc = "Some assets were destroyed."]
Burned {
asset_id: ::core::primitive::u32,
owner: ::subxt::ext::subxt_core::utils::AccountId32,
balance: ::core::primitive::u128,
},
#[codec(index = 4)]
#[doc = "The management team changed."]
TeamChanged {
asset_id: ::core::primitive::u32,
issuer: ::subxt::ext::subxt_core::utils::AccountId32,
admin: ::subxt::ext::subxt_core::utils::AccountId32,
freezer: ::subxt::ext::subxt_core::utils::AccountId32,
},
#[codec(index = 5)]
#[doc = "The owner changed."]
OwnerChanged {
asset_id: ::core::primitive::u32,
owner: ::subxt::ext::subxt_core::utils::AccountId32,
},
#[codec(index = 6)]
#[doc = "Some account `who` was frozen."]
Frozen {
asset_id: ::core::primitive::u32,
who: ::subxt::ext::subxt_core::utils::AccountId32,
},
#[codec(index = 7)]
#[doc = "Some account `who` was thawed."]
Thawed {
asset_id: ::core::primitive::u32,
who: ::subxt::ext::subxt_core::utils::AccountId32,
},
#[codec(index = 8)]
#[doc = "Some asset `asset_id` was frozen."]
AssetFrozen { asset_id: ::core::primitive::u32 },
#[codec(index = 9)]
#[doc = "Some asset `asset_id` was thawed."]
AssetThawed { asset_id: ::core::primitive::u32 },
#[codec(index = 10)]
#[doc = "Accounts were destroyed for given asset."]
AccountsDestroyed {
asset_id: ::core::primitive::u32,
accounts_destroyed: ::core::primitive::u32,
accounts_remaining: ::core::primitive::u32,
},
#[codec(index = 11)]
#[doc = "Approvals were destroyed for given asset."]
ApprovalsDestroyed {
asset_id: ::core::primitive::u32,
approvals_destroyed: ::core::primitive::u32,
approvals_remaining: ::core::primitive::u32,
},
#[codec(index = 12)]
#[doc = "An asset class is in the process of being destroyed."]
DestructionStarted { asset_id: ::core::primitive::u32 },
#[codec(index = 13)]
#[doc = "An asset class was destroyed."]
Destroyed { asset_id: ::core::primitive::u32 },
#[codec(index = 14)]
#[doc = "Some asset class was force-created."]
ForceCreated {
asset_id: ::core::primitive::u32,
owner: ::subxt::ext::subxt_core::utils::AccountId32,
},
#[codec(index = 15)]
#[doc = "New metadata has been set for an asset."]
MetadataSet {
asset_id: ::core::primitive::u32,
name: ::subxt::ext::subxt_core::alloc::vec::Vec<::core::primitive::u8>,
symbol: ::subxt::ext::subxt_core::alloc::vec::Vec<::core::primitive::u8>,
decimals: ::core::primitive::u8,
is_frozen: ::core::primitive::bool,
},
#[codec(index = 16)]
#[doc = "Metadata has been cleared for an asset."]
MetadataCleared { asset_id: ::core::primitive::u32 },
#[codec(index = 17)]
#[doc = "(Additional) funds have been approved for transfer to a destination account."]
ApprovedTransfer {
asset_id: ::core::primitive::u32,
source: ::subxt::ext::subxt_core::utils::AccountId32,
delegate: ::subxt::ext::subxt_core::utils::AccountId32,
amount: ::core::primitive::u128,
},
#[codec(index = 18)]
#[doc = "An approval for account `delegate` was cancelled by `owner`."]
ApprovalCancelled {
asset_id: ::core::primitive::u32,
owner: ::subxt::ext::subxt_core::utils::AccountId32,
delegate: ::subxt::ext::subxt_core::utils::AccountId32,
},
#[codec(index = 19)]
#[doc = "An `amount` was transferred in its entirety from `owner` to `destination` by"]
#[doc = "the approved `delegate`."]
TransferredApproved {
asset_id: ::core::primitive::u32,
owner: ::subxt::ext::subxt_core::utils::AccountId32,
delegate: ::subxt::ext::subxt_core::utils::AccountId32,
destination: ::subxt::ext::subxt_core::utils::AccountId32,
amount: ::core::primitive::u128,
},
#[codec(index = 20)]
#[doc = "An asset has had its attributes changed by the `Force` origin."]
AssetStatusChanged { asset_id: ::core::primitive::u32 },
#[codec(index = 21)]
#[doc = "The min_balance of an asset has been updated by the asset owner."]
AssetMinBalanceChanged {
asset_id: ::core::primitive::u32,
new_min_balance: ::core::primitive::u128,
},
#[codec(index = 22)]
#[doc = "Some account `who` was created with a deposit from `depositor`."]
Touched {
asset_id: ::core::primitive::u32,
who: ::subxt::ext::subxt_core::utils::AccountId32,
depositor: ::subxt::ext::subxt_core::utils::AccountId32,
},
#[codec(index = 23)]
#[doc = "Some account `who` was blocked."]
Blocked {
asset_id: ::core::primitive::u32,
who: ::subxt::ext::subxt_core::utils::AccountId32,
},
#[codec(index = 24)]
#[doc = "Some assets were deposited (e.g. for transaction fees)."]
Deposited {
asset_id: ::core::primitive::u32,
who: ::subxt::ext::subxt_core::utils::AccountId32,
amount: ::core::primitive::u128,
},
#[codec(index = 25)]
#[doc = "Some assets were withdrawn from the account (e.g. for transaction fees)."]
Withdrawn {
asset_id: ::core::primitive::u32,
who: ::subxt::ext::subxt_core::utils::AccountId32,
amount: ::core::primitive::u128,
},
#[codec(index = 26)]
#[doc = "Reserve information was set or updated for `asset_id`."]
ReservesUpdated {
asset_id: ::core::primitive::u32,
reserves: ::subxt::ext::subxt_core::alloc::vec::Vec<()>,
},
#[codec(index = 27)]
#[doc = "Reserve information was removed for `asset_id`."]
ReservesRemoved { asset_id: ::core::primitive::u32 },
}
}
pub mod types {
use super::runtime_types;
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode"
)]
pub enum AccountStatus {
#[codec(index = 0)]
Liquid,
#[codec(index = 1)]
Frozen,
#[codec(index = 2)]
Blocked,
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode"
)]
pub struct Approval<_0, _1> {
pub amount: _0,
pub deposit: _1,
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode"
)]
pub struct AssetAccount<_0, _1, _2, _3> {
pub balance: _0,
pub status: runtime_types::pallet_assets::types::AccountStatus,
pub reason: runtime_types::pallet_assets::types::ExistenceReason<_0, _3>,
pub extra: _2,
#[codec(skip)]
pub __ignore: ::core::marker::PhantomData<_1>,
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode"
)]
pub struct AssetDetails<_0, _1, _2> {
pub owner: _1,
pub issuer: _1,
pub admin: _1,
pub freezer: _1,
pub supply: _0,
pub deposit: _2,
pub min_balance: _0,
pub is_sufficient: ::core::primitive::bool,
pub accounts: ::core::primitive::u32,
pub sufficients: ::core::primitive::u32,
pub approvals: ::core::primitive::u32,
pub status: runtime_types::pallet_assets::types::AssetStatus,
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode"
)]
pub struct AssetMetadata<_0, _1> {
pub deposit: _0,
pub name: _1,
pub symbol: _1,
pub decimals: ::core::primitive::u8,
pub is_frozen: ::core::primitive::bool,
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode"
)]
pub enum AssetStatus {
#[codec(index = 0)]
Live,
#[codec(index = 1)]
Frozen,
#[codec(index = 2)]
Destroying,
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode"
)]
pub enum ExistenceReason<_0, _1> {
#[codec(index = 0)]
Consumer,
#[codec(index = 1)]
Sufficient,
#[codec(index = 2)]
DepositHeld(_0),
#[codec(index = 3)]
DepositRefunded,
#[codec(index = 4)]
DepositFrom(_1, _0),
}
}
}
pub mod pallet_assets_holder {
use super::runtime_types;
pub mod pallet {
use super::runtime_types;
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode"
)]
#[doc = "The `Error` enum of this pallet."]
pub enum Error {
#[codec(index = 0)]
#[doc = "Number of holds on an account would exceed the count of `RuntimeHoldReason`."]
TooManyHolds,
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode"
)]
#[doc = "The `Event` enum of this pallet"]
pub enum Event {
#[codec(index = 0)]
#[doc = "`who`s balance on hold was increased by `amount`."]
Held {
who: ::subxt::ext::subxt_core::utils::AccountId32,
asset_id: ::core::primitive::u32,
reason: runtime_types::quantus_runtime::RuntimeHoldReason,
amount: ::core::primitive::u128,
},
#[codec(index = 1)]
#[doc = "`who`s balance on hold was decreased by `amount`."]
Released {
who: ::subxt::ext::subxt_core::utils::AccountId32,
asset_id: ::core::primitive::u32,
reason: runtime_types::quantus_runtime::RuntimeHoldReason,
amount: ::core::primitive::u128,
},
#[codec(index = 2)]
#[doc = "`who`s balance on hold was burned by `amount`."]
Burned {
who: ::subxt::ext::subxt_core::utils::AccountId32,
asset_id: ::core::primitive::u32,
reason: runtime_types::quantus_runtime::RuntimeHoldReason,
amount: ::core::primitive::u128,
},
}
}
}
pub mod pallet_balances {
use super::runtime_types;
pub mod pallet {
use super::runtime_types;
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode"
)]
#[doc = "Contains a variant per dispatchable extrinsic that this pallet has."]
pub enum Call {
#[codec(index = 0)]
#[doc = "Transfer some liquid free balance to another account."]
#[doc = ""]
#[doc = "`transfer_allow_death` will set the `FreeBalance` of the sender and receiver."]
#[doc = "If the sender's account is below the existential deposit as a result"]
#[doc = "of the transfer, the account will be reaped."]
#[doc = ""]
#[doc = "The dispatch origin for this call must be `Signed` by the transactor."]
transfer_allow_death {
dest: ::subxt::ext::subxt_core::utils::MultiAddress<
::subxt::ext::subxt_core::utils::AccountId32,
(),
>,
#[codec(compact)]
value: ::core::primitive::u128,
},
#[codec(index = 2)]
#[doc = "Exactly as `transfer_allow_death`, except the origin must be root and the source account"]
#[doc = "may be specified."]
force_transfer {
source: ::subxt::ext::subxt_core::utils::MultiAddress<
::subxt::ext::subxt_core::utils::AccountId32,
(),
>,
dest: ::subxt::ext::subxt_core::utils::MultiAddress<
::subxt::ext::subxt_core::utils::AccountId32,
(),
>,
#[codec(compact)]
value: ::core::primitive::u128,
},
#[codec(index = 3)]
#[doc = "Same as the [`transfer_allow_death`] call, but with a check that the transfer will not"]
#[doc = "kill the origin account."]
#[doc = ""]
#[doc = "99% of the time you want [`transfer_allow_death`] instead."]
#[doc = ""]
#[doc = "[`transfer_allow_death`]: struct.Pallet.html#method.transfer"]
transfer_keep_alive {
dest: ::subxt::ext::subxt_core::utils::MultiAddress<
::subxt::ext::subxt_core::utils::AccountId32,
(),
>,
#[codec(compact)]
value: ::core::primitive::u128,
},
#[codec(index = 4)]
#[doc = "Transfer the entire transferable balance from the caller account."]
#[doc = ""]
#[doc = "NOTE: This function only attempts to transfer _transferable_ balances. This means that"]
#[doc = "any locked, reserved, or existential deposits (when `keep_alive` is `true`), will not be"]
#[doc = "transferred by this function. To ensure that this function results in a killed account,"]
#[doc = "you might need to prepare the account by removing any reference counters, storage"]
#[doc = "deposits, etc..."]
#[doc = ""]
#[doc = "The dispatch origin of this call must be Signed."]
#[doc = ""]
#[doc = "- `dest`: The recipient of the transfer."]
#[doc = "- `keep_alive`: A boolean to determine if the `transfer_all` operation should send all"]
#[doc = " of the funds the account has, causing the sender account to be killed (false), or"]
#[doc = " transfer everything except at least the existential deposit, which will guarantee to"]
#[doc = " keep the sender account alive (true)."]
transfer_all {
dest: ::subxt::ext::subxt_core::utils::MultiAddress<
::subxt::ext::subxt_core::utils::AccountId32,
(),
>,
keep_alive: ::core::primitive::bool,
},
#[codec(index = 5)]
#[doc = "Unreserve some balance from a user by force."]
#[doc = ""]
#[doc = "Can only be called by ROOT."]
force_unreserve {
who: ::subxt::ext::subxt_core::utils::MultiAddress<
::subxt::ext::subxt_core::utils::AccountId32,
(),
>,
amount: ::core::primitive::u128,
},
#[codec(index = 6)]
#[doc = "Upgrade a specified account."]
#[doc = ""]
#[doc = "- `origin`: Must be `Signed`."]
#[doc = "- `who`: The account to be upgraded."]
#[doc = ""]
#[doc = "This will waive the transaction fee if at least all but 10% of the accounts needed to"]
#[doc = "be upgraded. (We let some not have to be upgraded just in order to allow for the"]
#[doc = "possibility of churn)."]
upgrade_accounts {
who: ::subxt::ext::subxt_core::alloc::vec::Vec<
::subxt::ext::subxt_core::utils::AccountId32,
>,
},
#[codec(index = 8)]
#[doc = "Set the regular balance of a given account."]
#[doc = ""]
#[doc = "The dispatch origin for this call is `root`."]
force_set_balance {
who: ::subxt::ext::subxt_core::utils::MultiAddress<
::subxt::ext::subxt_core::utils::AccountId32,
(),
>,
#[codec(compact)]
new_free: ::core::primitive::u128,
},
#[codec(index = 9)]
#[doc = "Adjust the total issuance in a saturating way."]
#[doc = ""]
#[doc = "Can only be called by root and always needs a positive `delta`."]
#[doc = ""]
#[doc = "# Example"]
force_adjust_total_issuance {
direction: runtime_types::pallet_balances::types::AdjustmentDirection,
#[codec(compact)]
delta: ::core::primitive::u128,
},
#[codec(index = 10)]
#[doc = "Burn the specified liquid free balance from the origin account."]
#[doc = ""]
#[doc = "If the origin's account ends up below the existential deposit as a result"]
#[doc = "of the burn and `keep_alive` is false, the account will be reaped."]
#[doc = ""]
#[doc = "Unlike sending funds to a _burn_ address, which merely makes the funds inaccessible,"]
#[doc = "this `burn` operation will reduce total issuance by the amount _burned_."]
burn {
#[codec(compact)]
value: ::core::primitive::u128,
keep_alive: ::core::primitive::bool,
},
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: 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 `VariantCountOf<T::RuntimeHoldReason>`."]
TooManyHolds,
#[codec(index = 9)]
#[doc = "Number of freezes exceed `MaxFreezes`."]
TooManyFreezes,
#[codec(index = 10)]
#[doc = "The issuance cannot be modified since it is already deactivated."]
IssuanceDeactivated,
#[codec(index = 11)]
#[doc = "The delta cannot be zero."]
DeltaZero,
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: 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::ext::subxt_core::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::ext::subxt_core::utils::AccountId32,
amount: ::core::primitive::u128,
},
#[codec(index = 2)]
#[doc = "Transfer succeeded."]
Transfer {
from: ::subxt::ext::subxt_core::utils::AccountId32,
to: ::subxt::ext::subxt_core::utils::AccountId32,
amount: ::core::primitive::u128,
},
#[codec(index = 3)]
#[doc = "A balance was set by root."]
BalanceSet {
who: ::subxt::ext::subxt_core::utils::AccountId32,
free: ::core::primitive::u128,
},
#[codec(index = 4)]
#[doc = "Some balance was reserved (moved from free to reserved)."]
Reserved {
who: ::subxt::ext::subxt_core::utils::AccountId32,
amount: ::core::primitive::u128,
},
#[codec(index = 5)]
#[doc = "Some balance was unreserved (moved from reserved to free)."]
Unreserved {
who: ::subxt::ext::subxt_core::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::ext::subxt_core::utils::AccountId32,
to: ::subxt::ext::subxt_core::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::ext::subxt_core::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::ext::subxt_core::utils::AccountId32,
amount: ::core::primitive::u128,
},
#[codec(index = 9)]
#[doc = "Some amount was removed from the account (e.g. for misbehavior)."]
Slashed {
who: ::subxt::ext::subxt_core::utils::AccountId32,
amount: ::core::primitive::u128,
},
#[codec(index = 10)]
#[doc = "Some amount was minted into an account."]
Minted {
who: ::subxt::ext::subxt_core::utils::AccountId32,
amount: ::core::primitive::u128,
},
#[codec(index = 11)]
#[doc = "Some credit was balanced and added to the TotalIssuance."]
MintedCredit { amount: ::core::primitive::u128 },
#[codec(index = 12)]
#[doc = "Some amount was burned from an account."]
Burned {
who: ::subxt::ext::subxt_core::utils::AccountId32,
amount: ::core::primitive::u128,
},
#[codec(index = 13)]
#[doc = "Some debt has been dropped from the Total Issuance."]
BurnedDebt { amount: ::core::primitive::u128 },
#[codec(index = 14)]
#[doc = "Some amount was suspended from an account (it can be restored later)."]
Suspended {
who: ::subxt::ext::subxt_core::utils::AccountId32,
amount: ::core::primitive::u128,
},
#[codec(index = 15)]
#[doc = "Some amount was restored into an account."]
Restored {
who: ::subxt::ext::subxt_core::utils::AccountId32,
amount: ::core::primitive::u128,
},
#[codec(index = 16)]
#[doc = "An account was upgraded."]
Upgraded { who: ::subxt::ext::subxt_core::utils::AccountId32 },
#[codec(index = 17)]
#[doc = "Total issuance was increased by `amount`, creating a credit to be balanced."]
Issued { amount: ::core::primitive::u128 },
#[codec(index = 18)]
#[doc = "Total issuance was decreased by `amount`, creating a debt to be balanced."]
Rescinded { amount: ::core::primitive::u128 },
#[codec(index = 19)]
#[doc = "Some balance was locked."]
Locked {
who: ::subxt::ext::subxt_core::utils::AccountId32,
amount: ::core::primitive::u128,
},
#[codec(index = 20)]
#[doc = "Some balance was unlocked."]
Unlocked {
who: ::subxt::ext::subxt_core::utils::AccountId32,
amount: ::core::primitive::u128,
},
#[codec(index = 21)]
#[doc = "Some balance was frozen."]
Frozen {
who: ::subxt::ext::subxt_core::utils::AccountId32,
amount: ::core::primitive::u128,
},
#[codec(index = 22)]
#[doc = "Some balance was thawed."]
Thawed {
who: ::subxt::ext::subxt_core::utils::AccountId32,
amount: ::core::primitive::u128,
},
#[codec(index = 23)]
#[doc = "The `TotalIssuance` was forcefully changed."]
TotalIssuanceForced {
old: ::core::primitive::u128,
new: ::core::primitive::u128,
},
#[codec(index = 24)]
#[doc = "Some balance was placed on hold."]
Held {
reason: runtime_types::quantus_runtime::RuntimeHoldReason,
who: ::subxt::ext::subxt_core::utils::AccountId32,
amount: ::core::primitive::u128,
},
#[codec(index = 25)]
#[doc = "Held balance was burned from an account."]
BurnedHeld {
reason: runtime_types::quantus_runtime::RuntimeHoldReason,
who: ::subxt::ext::subxt_core::utils::AccountId32,
amount: ::core::primitive::u128,
},
#[codec(index = 26)]
#[doc = "A transfer of `amount` on hold from `source` to `dest` was initiated."]
TransferOnHold {
reason: runtime_types::quantus_runtime::RuntimeHoldReason,
source: ::subxt::ext::subxt_core::utils::AccountId32,
dest: ::subxt::ext::subxt_core::utils::AccountId32,
amount: ::core::primitive::u128,
},
#[codec(index = 27)]
#[doc = "The `transferred` balance is placed on hold at the `dest` account."]
TransferAndHold {
reason: runtime_types::quantus_runtime::RuntimeHoldReason,
source: ::subxt::ext::subxt_core::utils::AccountId32,
dest: ::subxt::ext::subxt_core::utils::AccountId32,
transferred: ::core::primitive::u128,
},
#[codec(index = 28)]
#[doc = "Some balance was released from hold."]
Released {
reason: runtime_types::quantus_runtime::RuntimeHoldReason,
who: ::subxt::ext::subxt_core::utils::AccountId32,
amount: ::core::primitive::u128,
},
#[codec(index = 29)]
#[doc = "An unexpected/defensive event was triggered."]
Unexpected(runtime_types::pallet_balances::pallet::UnexpectedKind),
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode"
)]
pub enum UnexpectedKind {
#[codec(index = 0)]
BalanceUpdated,
#[codec(index = 1)]
FailedToMutateAccount,
}
}
pub mod types {
use super::runtime_types;
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: 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 :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode"
)]
pub enum AdjustmentDirection {
#[codec(index = 0)]
Increase,
#[codec(index = 1)]
Decrease,
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: 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 :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode"
)]
pub struct ExtraFlags(pub ::core::primitive::u128);
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode"
)]
pub enum Reasons {
#[codec(index = 0)]
Fee,
#[codec(index = 1)]
Misc,
#[codec(index = 2)]
All,
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode"
)]
pub struct ReserveData<_0, _1> {
pub id: _0,
pub amount: _1,
}
}
}
pub mod pallet_conviction_voting {
use super::runtime_types;
pub mod conviction {
use super::runtime_types;
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode"
)]
pub enum Conviction {
#[codec(index = 0)]
None,
#[codec(index = 1)]
Locked1x,
#[codec(index = 2)]
Locked2x,
#[codec(index = 3)]
Locked3x,
#[codec(index = 4)]
Locked4x,
#[codec(index = 5)]
Locked5x,
#[codec(index = 6)]
Locked6x,
}
}
pub mod pallet {
use super::runtime_types;
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode"
)]
#[doc = "Contains a variant per dispatchable extrinsic that this pallet has."]
pub enum Call {
#[codec(index = 0)]
#[doc = "Vote in a poll. If `vote.is_aye()`, the vote is to enact the proposal;"]
#[doc = "otherwise it is a vote to keep the status quo."]
#[doc = ""]
#[doc = "The dispatch origin of this call must be _Signed_."]
#[doc = ""]
#[doc = "- `poll_index`: The index of the poll to vote for."]
#[doc = "- `vote`: The vote configuration."]
#[doc = ""]
#[doc = "Weight: `O(R)` where R is the number of polls the voter has voted on."]
vote {
#[codec(compact)]
poll_index: ::core::primitive::u32,
vote: runtime_types::pallet_conviction_voting::vote::AccountVote<
::core::primitive::u128,
>,
},
#[codec(index = 1)]
#[doc = "Delegate the voting power (with some given conviction) of the sending account for a"]
#[doc = "particular class of polls."]
#[doc = ""]
#[doc = "The balance delegated is locked for as long as it's delegated, and thereafter for the"]
#[doc = "time appropriate for the conviction's lock period."]
#[doc = ""]
#[doc = "The dispatch origin of this call must be _Signed_, and the signing account must either:"]
#[doc = " - be delegating already; or"]
#[doc = " - have no voting activity (if there is, then it will need to be removed through"]
#[doc = " `remove_vote`)."]
#[doc = ""]
#[doc = "- `to`: The account whose voting the `target` account's voting power will follow."]
#[doc = "- `class`: The class of polls to delegate. To delegate multiple classes, multiple calls"]
#[doc = " to this function are required."]
#[doc = "- `conviction`: The conviction that will be attached to the delegated votes. When the"]
#[doc = " account is undelegated, the funds will be locked for the corresponding period."]
#[doc = "- `balance`: The amount of the account's balance to be used in delegating. This must not"]
#[doc = " be more than the account's current balance."]
#[doc = ""]
#[doc = "Emits `Delegated`."]
#[doc = ""]
#[doc = "Weight: `O(R)` where R is the number of polls the voter delegating to has"]
#[doc = " voted on. Weight is initially charged as if maximum votes, but is refunded later."]
delegate {
class: ::core::primitive::u16,
to: ::subxt::ext::subxt_core::utils::MultiAddress<
::subxt::ext::subxt_core::utils::AccountId32,
(),
>,
conviction: runtime_types::pallet_conviction_voting::conviction::Conviction,
balance: ::core::primitive::u128,
},
#[codec(index = 2)]
#[doc = "Undelegate the voting power of the sending account for a particular class of polls."]
#[doc = ""]
#[doc = "Tokens may be unlocked following once an amount of time consistent with the lock period"]
#[doc = "of the conviction with which the delegation was issued has passed."]
#[doc = ""]
#[doc = "The dispatch origin of this call must be _Signed_ and the signing account must be"]
#[doc = "currently delegating."]
#[doc = ""]
#[doc = "- `class`: The class of polls to remove the delegation from."]
#[doc = ""]
#[doc = "Emits `Undelegated`."]
#[doc = ""]
#[doc = "Weight: `O(R)` where R is the number of polls the voter delegating to has"]
#[doc = " voted on. Weight is initially charged as if maximum votes, but is refunded later."]
undelegate { class: ::core::primitive::u16 },
#[codec(index = 3)]
#[doc = "Remove the lock caused by prior voting/delegating which has expired within a particular"]
#[doc = "class."]
#[doc = ""]
#[doc = "The dispatch origin of this call must be _Signed_."]
#[doc = ""]
#[doc = "- `class`: The class of polls to unlock."]
#[doc = "- `target`: The account to remove the lock on."]
#[doc = ""]
#[doc = "Weight: `O(R)` with R number of vote of target."]
unlock {
class: ::core::primitive::u16,
target: ::subxt::ext::subxt_core::utils::MultiAddress<
::subxt::ext::subxt_core::utils::AccountId32,
(),
>,
},
#[codec(index = 4)]
#[doc = "Remove a vote for a poll."]
#[doc = ""]
#[doc = "If:"]
#[doc = "- the poll was cancelled, or"]
#[doc = "- the poll is ongoing, or"]
#[doc = "- the poll has ended such that"]
#[doc = " - the vote of the account was in opposition to the result; or"]
#[doc = " - there was no conviction to the account's vote; or"]
#[doc = " - the account made a split vote"]
#[doc = "...then the vote is removed cleanly and a following call to `unlock` may result in more"]
#[doc = "funds being available."]
#[doc = ""]
#[doc = "If, however, the poll has ended and:"]
#[doc = "- it finished corresponding to the vote of the account, and"]
#[doc = "- the account made a standard vote with conviction, and"]
#[doc = "- the lock period of the conviction is not over"]
#[doc = "...then the lock will be aggregated into the overall account's lock, which may involve"]
#[doc = "*overlocking* (where the two locks are combined into a single lock that is the maximum"]
#[doc = "of both the amount locked and the time is it locked for)."]
#[doc = ""]
#[doc = "The dispatch origin of this call must be _Signed_, and the signer must have a vote"]
#[doc = "registered for poll `index`."]
#[doc = ""]
#[doc = "- `index`: The index of poll of the vote to be removed."]
#[doc = "- `class`: Optional parameter, if given it indicates the class of the poll. For polls"]
#[doc = " which have finished or are cancelled, this must be `Some`."]
#[doc = ""]
#[doc = "Weight: `O(R + log R)` where R is the number of polls that `target` has voted on."]
#[doc = " Weight is calculated for the maximum number of vote."]
remove_vote {
class: ::core::option::Option<::core::primitive::u16>,
index: ::core::primitive::u32,
},
#[codec(index = 5)]
#[doc = "Remove a vote for a poll."]
#[doc = ""]
#[doc = "If the `target` is equal to the signer, then this function is exactly equivalent to"]
#[doc = "`remove_vote`. If not equal to the signer, then the vote must have expired,"]
#[doc = "either because the poll was cancelled, because the voter lost the poll or"]
#[doc = "because the conviction period is over."]
#[doc = ""]
#[doc = "The dispatch origin of this call must be _Signed_."]
#[doc = ""]
#[doc = "- `target`: The account of the vote to be removed; this account must have voted for poll"]
#[doc = " `index`."]
#[doc = "- `index`: The index of poll of the vote to be removed."]
#[doc = "- `class`: The class of the poll."]
#[doc = ""]
#[doc = "Weight: `O(R + log R)` where R is the number of polls that `target` has voted on."]
#[doc = " Weight is calculated for the maximum number of vote."]
remove_other_vote {
target: ::subxt::ext::subxt_core::utils::MultiAddress<
::subxt::ext::subxt_core::utils::AccountId32,
(),
>,
class: ::core::primitive::u16,
index: ::core::primitive::u32,
},
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode"
)]
#[doc = "The `Error` enum of this pallet."]
pub enum Error {
#[codec(index = 0)]
#[doc = "Poll is not ongoing."]
NotOngoing,
#[codec(index = 1)]
#[doc = "The given account did not vote on the poll."]
NotVoter,
#[codec(index = 2)]
#[doc = "The actor has no permission to conduct the action."]
NoPermission,
#[codec(index = 3)]
#[doc = "The actor has no permission to conduct the action right now but will do in the future."]
NoPermissionYet,
#[codec(index = 4)]
#[doc = "The account is already delegating."]
AlreadyDelegating,
#[codec(index = 5)]
#[doc = "The account currently has votes attached to it and the operation cannot succeed until"]
#[doc = "these are removed through `remove_vote`."]
AlreadyVoting,
#[codec(index = 6)]
#[doc = "Too high a balance was provided that the account cannot afford."]
InsufficientFunds,
#[codec(index = 7)]
#[doc = "The account is not currently delegating."]
NotDelegating,
#[codec(index = 8)]
#[doc = "Delegation to oneself makes no sense."]
Nonsense,
#[codec(index = 9)]
#[doc = "Maximum number of votes reached."]
MaxVotesReached,
#[codec(index = 10)]
#[doc = "The class must be supplied since it is not easily determinable from the state."]
ClassNeeded,
#[codec(index = 11)]
#[doc = "The class ID supplied is invalid."]
BadClass,
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode"
)]
#[doc = "The `Event` enum of this pallet"]
pub enum Event {
#[codec(index = 0)]
#[doc = "An account has delegated their vote to another account. \\[who, target\\]"]
Delegated(
::subxt::ext::subxt_core::utils::AccountId32,
::subxt::ext::subxt_core::utils::AccountId32,
::core::primitive::u16,
),
#[codec(index = 1)]
#[doc = "An \\[account\\] has cancelled a previous delegation operation."]
Undelegated(
::subxt::ext::subxt_core::utils::AccountId32,
::core::primitive::u16,
),
#[codec(index = 2)]
#[doc = "An account has voted"]
Voted {
who: ::subxt::ext::subxt_core::utils::AccountId32,
vote: runtime_types::pallet_conviction_voting::vote::AccountVote<
::core::primitive::u128,
>,
poll_index: ::core::primitive::u32,
},
#[codec(index = 3)]
#[doc = "A vote has been removed"]
VoteRemoved {
who: ::subxt::ext::subxt_core::utils::AccountId32,
vote: runtime_types::pallet_conviction_voting::vote::AccountVote<
::core::primitive::u128,
>,
poll_index: ::core::primitive::u32,
},
#[codec(index = 4)]
#[doc = "The lockup period of a conviction vote expired, and the funds have been unlocked."]
VoteUnlocked {
who: ::subxt::ext::subxt_core::utils::AccountId32,
class: ::core::primitive::u16,
},
}
}
pub mod types {
use super::runtime_types;
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode"
)]
pub struct Delegations<_0> {
pub votes: _0,
pub capital: _0,
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode"
)]
pub struct Tally<_0> {
pub ayes: _0,
pub nays: _0,
pub support: _0,
}
}
pub mod vote {
use super::runtime_types;
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode"
)]
pub enum AccountVote<_0> {
#[codec(index = 0)]
Standard {
vote: runtime_types::pallet_conviction_voting::vote::Vote,
balance: _0,
},
#[codec(index = 1)]
Split { aye: _0, nay: _0 },
#[codec(index = 2)]
SplitAbstain { aye: _0, nay: _0, abstain: _0 },
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode"
)]
pub struct Casting<_0, _1, _2> {
pub votes: runtime_types::bounded_collections::bounded_vec::BoundedVec<(
_1,
runtime_types::pallet_conviction_voting::vote::AccountVote<_0>,
)>,
pub delegations:
runtime_types::pallet_conviction_voting::types::Delegations<_0>,
pub prior: runtime_types::pallet_conviction_voting::vote::PriorLock<_1, _0>,
#[codec(skip)]
pub __ignore: ::core::marker::PhantomData<_2>,
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode"
)]
pub struct Delegating<_0, _1, _2> {
pub balance: _0,
pub target: _1,
pub conviction: runtime_types::pallet_conviction_voting::conviction::Conviction,
pub delegations:
runtime_types::pallet_conviction_voting::types::Delegations<_0>,
pub prior: runtime_types::pallet_conviction_voting::vote::PriorLock<_2, _0>,
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode"
)]
pub struct PriorLock<_0, _1>(pub _0, pub _1);
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode"
)]
pub struct Vote(pub ::core::primitive::u8);
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode"
)]
pub enum Voting<_0, _1, _2, _3> {
#[codec(index = 0)]
Casting(runtime_types::pallet_conviction_voting::vote::Casting<_0, _2, _2>),
#[codec(index = 1)]
Delegating(
runtime_types::pallet_conviction_voting::vote::Delegating<_0, _1, _2>,
),
__Ignore(::core::marker::PhantomData<_3>),
}
}
}
pub mod pallet_mining_rewards {
use super::runtime_types;
pub mod pallet {
use super::runtime_types;
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode"
)]
#[doc = "The `Event` enum of this pallet"]
pub enum Event {
#[codec(index = 0)]
#[doc = "A miner has been identified for a block"]
MinerRewarded {
miner: ::subxt::ext::subxt_core::utils::AccountId32,
reward: ::core::primitive::u128,
},
#[codec(index = 1)]
#[doc = "Transaction fees were collected for later distribution"]
FeesCollected {
amount: ::core::primitive::u128,
total: ::core::primitive::u128,
},
#[codec(index = 2)]
#[doc = "Rewards were sent to Treasury when no miner was specified"]
TreasuryRewarded { reward: ::core::primitive::u128 },
#[codec(index = 3)]
#[doc = "Miner reward was redirected to treasury due to mint failure"]
MinerRewardRedirected {
miner: ::subxt::ext::subxt_core::utils::AccountId32,
reward: ::core::primitive::u128,
},
}
}
}
pub mod pallet_multisig {
use super::runtime_types;
pub mod pallet {
use super::runtime_types;
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode"
)]
#[doc = "Contains a variant per dispatchable extrinsic that this pallet has."]
pub enum Call {
#[codec(index = 0)]
#[doc = "Create a new multisig account with deterministic address"]
#[doc = ""]
#[doc = "Parameters:"]
#[doc = "- `signers`: List of accounts that can sign for this multisig"]
#[doc = "- `threshold`: Number of approvals required to execute transactions"]
#[doc = "- `nonce`: User-provided nonce for address uniqueness"]
#[doc = ""]
#[doc = "The multisig address is deterministically derived from:"]
#[doc = "hash(pallet_id || sorted_signers || threshold || nonce)"]
#[doc = ""]
#[doc = "Signers are automatically sorted before hashing, so order doesn't matter."]
#[doc = ""]
#[doc = "Economic costs:"]
#[doc = "- MultisigFee: burned immediately (spam prevention)"]
create_multisig {
signers: ::subxt::ext::subxt_core::alloc::vec::Vec<
::subxt::ext::subxt_core::utils::AccountId32,
>,
threshold: ::core::primitive::u32,
nonce: ::core::primitive::u64,
},
#[codec(index = 1)]
#[doc = "Propose a transaction to be executed by the multisig"]
#[doc = ""]
#[doc = "Parameters:"]
#[doc = "- `multisig_address`: The multisig account that will execute the call"]
#[doc = "- `call`: The encoded call to execute"]
#[doc = "- `expiry`: Block number when this proposal expires"]
#[doc = ""]
#[doc = "The proposer must be a signer and must pay:"]
#[doc = "- A deposit (refundable - returned immediately on execution/cancellation)"]
#[doc = "- A fee (non-refundable, burned immediately)"]
#[doc = ""]
#[doc = "**For threshold=1:** The proposal is created with `Approved` status immediately"]
#[doc = "and can be executed via `execute()` without additional approvals."]
#[doc = ""]
#[doc = "**Weight:** Charged upfront for worst-case (high-security path with decode)."]
#[doc = "Refunded to actual cost on success based on whether HS path was taken."]
propose {
multisig_address: ::subxt::ext::subxt_core::utils::AccountId32,
call: runtime_types::bounded_collections::bounded_vec::BoundedVec<
::core::primitive::u8,
>,
expiry: ::core::primitive::u32,
},
#[codec(index = 2)]
#[doc = "Approve a proposed transaction"]
#[doc = ""]
#[doc = "If this approval brings the total approvals to or above the threshold,"]
#[doc = "the proposal status changes to `Approved` and can be executed via `execute()`."]
#[doc = ""]
#[doc = "Parameters:"]
#[doc = "- `multisig_address`: The multisig account"]
#[doc = "- `proposal_id`: ID (nonce) of the proposal to approve"]
#[doc = ""]
#[doc = "Weight: Charges for MAX call size, refunds based on actual"]
approve {
multisig_address: ::subxt::ext::subxt_core::utils::AccountId32,
proposal_id: ::core::primitive::u32,
},
#[codec(index = 3)]
#[doc = "Cancel a proposed transaction (only by proposer)"]
#[doc = ""]
#[doc = "Parameters:"]
#[doc = "- `multisig_address`: The multisig account"]
#[doc = "- `proposal_id`: ID (nonce) of the proposal to cancel"]
cancel {
multisig_address: ::subxt::ext::subxt_core::utils::AccountId32,
proposal_id: ::core::primitive::u32,
},
#[codec(index = 4)]
#[doc = "Remove expired proposals and return deposits to proposers"]
#[doc = ""]
#[doc = "Can only be called by signers of the multisig."]
#[doc = "Removes Active or Approved proposals that have expired (past expiry block)."]
#[doc = "Executed and Cancelled proposals are automatically cleaned up immediately."]
#[doc = ""]
#[doc = "Approved+expired proposals can become stuck if proposer is unavailable (e.g. lost"]
#[doc = "keys, compromise). Allowing any signer to remove them prevents permanent deposit"]
#[doc = "lockup and enables multisig dissolution."]
#[doc = ""]
#[doc = "The deposit is always returned to the original proposer, not the caller."]
remove_expired {
multisig_address: ::subxt::ext::subxt_core::utils::AccountId32,
proposal_id: ::core::primitive::u32,
},
#[codec(index = 5)]
#[doc = "Claim all deposits from expired proposals"]
#[doc = ""]
#[doc = "This is a batch operation that removes all expired proposals where:"]
#[doc = "- Caller is the proposer"]
#[doc = "- Proposal is Active or Approved and past expiry block"]
#[doc = ""]
#[doc = "Note: Executed and Cancelled proposals are automatically cleaned up immediately,"]
#[doc = "so only Active+Expired and Approved+Expired proposals need manual cleanup."]
#[doc = ""]
#[doc = "Returns all proposal deposits to the proposer in a single transaction."]
claim_deposits {
multisig_address: ::subxt::ext::subxt_core::utils::AccountId32,
},
#[codec(index = 6)]
#[doc = "Execute an approved proposal"]
#[doc = ""]
#[doc = "Can be called by any signer of the multisig once the proposal has reached"]
#[doc = "the approval threshold (status = Approved). The proposal must not be expired."]
#[doc = ""]
#[doc = "On execution:"]
#[doc = "- The call is decoded and dispatched as the multisig account"]
#[doc = "- Proposal is removed from storage"]
#[doc = "- Deposit is returned to the proposer"]
#[doc = ""]
#[doc = "Parameters:"]
#[doc = "- `multisig_address`: The multisig account"]
#[doc = "- `proposal_id`: ID (nonce) of the proposal to execute"]
#[doc = ""]
#[doc = "Note: The weight charged includes both multisig bookkeeping and MaxInnerCallWeight."]
#[doc = "Actual weight is refunded based on the inner call's post-dispatch info."]
#[doc = "The inner call's weight is validated against MaxInnerCallWeight at propose time."]
execute {
multisig_address: ::subxt::ext::subxt_core::utils::AccountId32,
proposal_id: ::core::primitive::u32,
},
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode"
)]
#[doc = "The `Error` enum of this pallet."]
pub enum Error {
#[codec(index = 0)]
#[doc = "Not enough signers provided"]
#[doc = "Multisig requires at least 2 unique signers"]
NotEnoughSigners,
#[codec(index = 1)]
#[doc = "Threshold must be greater than zero"]
ThresholdZero,
#[codec(index = 2)]
#[doc = "Threshold exceeds number of signers"]
ThresholdTooHigh,
#[codec(index = 3)]
#[doc = "Too many signers"]
TooManySigners,
#[codec(index = 4)]
#[doc = "Multisig already exists"]
MultisigAlreadyExists,
#[codec(index = 5)]
#[doc = "Multisig not found"]
MultisigNotFound,
#[codec(index = 6)]
#[doc = "Caller is not a signer of this multisig"]
NotASigner,
#[codec(index = 7)]
#[doc = "Proposal not found"]
ProposalNotFound,
#[codec(index = 8)]
#[doc = "Caller is not the proposer"]
NotProposer,
#[codec(index = 9)]
#[doc = "Already approved by this signer"]
AlreadyApproved,
#[codec(index = 10)]
#[doc = "Not enough approvals to execute"]
NotEnoughApprovals,
#[codec(index = 11)]
#[doc = "Proposal expiry is in the past"]
ExpiryInPast,
#[codec(index = 12)]
#[doc = "Proposal expiry is too far in the future (exceeds MaxExpiryDuration)"]
ExpiryTooFar,
#[codec(index = 13)]
#[doc = "Proposal has expired"]
ProposalExpired,
#[codec(index = 14)]
#[doc = "Failed to decode call data"]
InvalidCall,
#[codec(index = 15)]
#[doc = "Too many total proposals in storage for this multisig (cleanup required)"]
TooManyProposalsInStorage,
#[codec(index = 16)]
#[doc = "This signer has too many proposals in storage (filibuster protection)"]
TooManyProposalsPerSigner,
#[codec(index = 17)]
#[doc = "Insufficient balance for deposit"]
InsufficientBalance,
#[codec(index = 18)]
#[doc = "Proposal has active deposit"]
ProposalHasDeposit,
#[codec(index = 19)]
#[doc = "Proposal has not expired yet"]
ProposalNotExpired,
#[codec(index = 20)]
#[doc = "Proposal is not in a cancellable state (must be Active or Approved)"]
ProposalNotActive,
#[codec(index = 21)]
#[doc = "Proposal has not been approved yet (threshold not reached)"]
ProposalNotApproved,
#[codec(index = 22)]
#[doc = "Call is not allowed for high-security multisig"]
CallNotAllowedForHighSecurityMultisig,
#[codec(index = 23)]
#[doc = "Proposal nonce exhausted (u32::MAX reached)"]
ProposalNonceExhausted,
#[codec(index = 24)]
#[doc = "Call weight exceeds MaxInnerCallWeight limit"]
CallWeightExceedsLimit,
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode"
)]
#[doc = "The `Event` enum of this pallet"]
pub enum Event {
#[codec(index = 0)]
#[doc = "A new multisig account was created"]
#[doc = "[creator, multisig_address, signers, threshold, nonce]"]
MultisigCreated {
creator: ::subxt::ext::subxt_core::utils::AccountId32,
multisig_address: ::subxt::ext::subxt_core::utils::AccountId32,
signers: ::subxt::ext::subxt_core::alloc::vec::Vec<
::subxt::ext::subxt_core::utils::AccountId32,
>,
threshold: ::core::primitive::u32,
nonce: ::core::primitive::u64,
},
#[codec(index = 1)]
#[doc = "A proposal has been created"]
ProposalCreated {
multisig_address: ::subxt::ext::subxt_core::utils::AccountId32,
proposer: ::subxt::ext::subxt_core::utils::AccountId32,
proposal_id: ::core::primitive::u32,
},
#[codec(index = 2)]
#[doc = "A signer has approved a proposal (does not imply threshold reached)"]
SignerApproved {
multisig_address: ::subxt::ext::subxt_core::utils::AccountId32,
approver: ::subxt::ext::subxt_core::utils::AccountId32,
proposal_id: ::core::primitive::u32,
approvals_count: ::core::primitive::u32,
},
#[codec(index = 3)]
#[doc = "A proposal has reached threshold and is ready to execute"]
ProposalReadyToExecute {
multisig_address: ::subxt::ext::subxt_core::utils::AccountId32,
proposal_id: ::core::primitive::u32,
approvals_count: ::core::primitive::u32,
},
#[codec(index = 4)]
#[doc = "A proposal has been executed"]
#[doc = "Contains all data needed for indexing by SubSquid"]
ProposalExecuted {
multisig_address: ::subxt::ext::subxt_core::utils::AccountId32,
proposal_id: ::core::primitive::u32,
proposer: ::subxt::ext::subxt_core::utils::AccountId32,
call: ::subxt::ext::subxt_core::alloc::vec::Vec<::core::primitive::u8>,
approvers: ::subxt::ext::subxt_core::alloc::vec::Vec<
::subxt::ext::subxt_core::utils::AccountId32,
>,
result:
::core::result::Result<(), runtime_types::sp_runtime::DispatchError>,
},
#[codec(index = 5)]
#[doc = "A proposal has been cancelled by the proposer"]
ProposalCancelled {
multisig_address: ::subxt::ext::subxt_core::utils::AccountId32,
proposer: ::subxt::ext::subxt_core::utils::AccountId32,
proposal_id: ::core::primitive::u32,
},
#[codec(index = 6)]
#[doc = "Expired proposal was removed from storage"]
ProposalRemoved {
multisig_address: ::subxt::ext::subxt_core::utils::AccountId32,
proposal_id: ::core::primitive::u32,
proposer: ::subxt::ext::subxt_core::utils::AccountId32,
removed_by: ::subxt::ext::subxt_core::utils::AccountId32,
},
#[codec(index = 7)]
#[doc = "Batch deposits claimed"]
DepositsClaimed {
multisig_address: ::subxt::ext::subxt_core::utils::AccountId32,
claimer: ::subxt::ext::subxt_core::utils::AccountId32,
total_returned: ::core::primitive::u128,
proposals_removed: ::core::primitive::u32,
},
}
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")]
pub struct MultisigData<_0, _1, _2> {
pub creator: _0,
pub signers: _1,
pub threshold: ::core::primitive::u32,
pub proposal_nonce: ::core::primitive::u32,
pub proposals_per_signer: _2,
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")]
pub struct ProposalData<_0, _1, _2, _3, _4> {
pub proposer: _0,
pub call: _3,
pub call_weight: runtime_types::sp_weights::weight_v2::Weight,
pub expiry: _2,
pub approvals: _4,
pub deposit: _1,
pub status: runtime_types::pallet_multisig::ProposalStatus,
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")]
pub enum ProposalStatus {
#[codec(index = 0)]
Active,
#[codec(index = 1)]
Approved,
}
}
pub mod pallet_preimage {
use super::runtime_types;
pub mod pallet {
use super::runtime_types;
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode"
)]
#[doc = "Contains a variant per dispatchable extrinsic that this pallet has."]
pub enum Call {
#[codec(index = 0)]
#[doc = "Register a preimage on-chain."]
#[doc = ""]
#[doc = "If the preimage was previously requested, no fees or deposits are taken for providing"]
#[doc = "the preimage. Otherwise, a deposit is taken proportional to the size of the preimage."]
note_preimage {
bytes: ::subxt::ext::subxt_core::alloc::vec::Vec<::core::primitive::u8>,
},
#[codec(index = 1)]
#[doc = "Clear an unrequested preimage from the runtime storage."]
#[doc = ""]
#[doc = "If `len` is provided, then it will be a much cheaper operation."]
#[doc = ""]
#[doc = "- `hash`: The hash of the preimage to be removed from the store."]
#[doc = "- `len`: The length of the preimage of `hash`."]
unnote_preimage { hash: ::subxt::ext::subxt_core::utils::H256 },
#[codec(index = 2)]
#[doc = "Request a preimage be uploaded to the chain without paying any fees or deposits."]
#[doc = ""]
#[doc = "If the preimage requests has already been provided on-chain, we unreserve any deposit"]
#[doc = "a user may have paid, and take the control of the preimage out of their hands."]
request_preimage { hash: ::subxt::ext::subxt_core::utils::H256 },
#[codec(index = 3)]
#[doc = "Clear a previously made request for a preimage."]
#[doc = ""]
#[doc = "NOTE: THIS MUST NOT BE CALLED ON `hash` MORE TIMES THAN `request_preimage`."]
unrequest_preimage { hash: ::subxt::ext::subxt_core::utils::H256 },
#[codec(index = 4)]
#[doc = "Ensure that the bulk of pre-images is upgraded."]
#[doc = ""]
#[doc = "The caller pays no fee if at least 90% of pre-images were successfully updated."]
ensure_updated {
hashes: ::subxt::ext::subxt_core::alloc::vec::Vec<
::subxt::ext::subxt_core::utils::H256,
>,
},
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode"
)]
#[doc = "The `Error` enum of this pallet."]
pub enum Error {
#[codec(index = 0)]
#[doc = "Preimage is too large to store on-chain."]
TooBig,
#[codec(index = 1)]
#[doc = "Preimage has already been noted on-chain."]
AlreadyNoted,
#[codec(index = 2)]
#[doc = "The user is not authorized to perform this action."]
NotAuthorized,
#[codec(index = 3)]
#[doc = "The preimage cannot be removed since it has not yet been noted."]
NotNoted,
#[codec(index = 4)]
#[doc = "A preimage may not be removed when there are outstanding requests."]
Requested,
#[codec(index = 5)]
#[doc = "The preimage request cannot be removed since no outstanding requests exist."]
NotRequested,
#[codec(index = 6)]
#[doc = "More than `MAX_HASH_UPGRADE_BULK_COUNT` hashes were requested to be upgraded at once."]
TooMany,
#[codec(index = 7)]
#[doc = "Too few hashes were requested to be upgraded (i.e. zero)."]
TooFew,
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode"
)]
#[doc = "The `Event` enum of this pallet"]
pub enum Event {
#[codec(index = 0)]
#[doc = "A preimage has been noted."]
Noted { hash: ::subxt::ext::subxt_core::utils::H256 },
#[codec(index = 1)]
#[doc = "A preimage has been requested."]
Requested { hash: ::subxt::ext::subxt_core::utils::H256 },
#[codec(index = 2)]
#[doc = "A preimage has ben cleared."]
Cleared { hash: ::subxt::ext::subxt_core::utils::H256 },
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode"
)]
pub enum HoldReason {
#[codec(index = 0)]
Preimage,
}
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")]
pub enum OldRequestStatus<_0, _1> {
#[codec(index = 0)]
Unrequested { deposit: (_0, _1), len: ::core::primitive::u32 },
#[codec(index = 1)]
Requested {
deposit: ::core::option::Option<(_0, _1)>,
count: ::core::primitive::u32,
len: ::core::option::Option<::core::primitive::u32>,
},
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")]
pub enum RequestStatus<_0, _1> {
#[codec(index = 0)]
Unrequested { ticket: (_0, _1), len: ::core::primitive::u32 },
#[codec(index = 1)]
Requested {
maybe_ticket: ::core::option::Option<(_0, _1)>,
count: ::core::primitive::u32,
maybe_len: ::core::option::Option<::core::primitive::u32>,
},
}
}
pub mod pallet_qpow {
use super::runtime_types;
pub mod pallet {
use super::runtime_types;
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode"
)]
#[doc = "The `Event` enum of this pallet"]
pub enum Event {
#[codec(index = 0)]
ProofSubmitted {
nonce: [::core::primitive::u8; 64usize],
difficulty: runtime_types::primitive_types::U512,
hash_achieved: runtime_types::primitive_types::U512,
},
#[codec(index = 1)]
DifficultyAdjusted {
old_difficulty: runtime_types::primitive_types::U512,
new_difficulty: runtime_types::primitive_types::U512,
observed_block_time: ::core::primitive::u64,
},
}
}
}
pub mod pallet_ranked_collective {
use super::runtime_types;
pub mod pallet {
use super::runtime_types;
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode"
)]
#[doc = "Contains a variant per dispatchable extrinsic that this pallet has."]
pub enum Call {
#[codec(index = 0)]
#[doc = "Introduce a new member."]
#[doc = ""]
#[doc = "- `origin`: Must be the `AddOrigin`."]
#[doc = "- `who`: Account of non-member which will become a member."]
#[doc = ""]
#[doc = "Weight: `O(1)`"]
add_member {
who: ::subxt::ext::subxt_core::utils::MultiAddress<
::subxt::ext::subxt_core::utils::AccountId32,
(),
>,
},
#[codec(index = 1)]
#[doc = "Increment the rank of an existing member by one."]
#[doc = ""]
#[doc = "- `origin`: Must be the `PromoteOrigin`."]
#[doc = "- `who`: Account of existing member."]
#[doc = ""]
#[doc = "Weight: `O(1)`"]
promote_member {
who: ::subxt::ext::subxt_core::utils::MultiAddress<
::subxt::ext::subxt_core::utils::AccountId32,
(),
>,
},
#[codec(index = 2)]
#[doc = "Decrement the rank of an existing member by one. If the member is already at rank zero,"]
#[doc = "then they are removed entirely."]
#[doc = ""]
#[doc = "- `origin`: Must be the `DemoteOrigin`."]
#[doc = "- `who`: Account of existing member of rank greater than zero."]
#[doc = ""]
#[doc = "Weight: `O(1)`, less if the member's index is highest in its rank."]
demote_member {
who: ::subxt::ext::subxt_core::utils::MultiAddress<
::subxt::ext::subxt_core::utils::AccountId32,
(),
>,
},
#[codec(index = 3)]
#[doc = "Remove the member entirely."]
#[doc = ""]
#[doc = "- `origin`: Must be the `RemoveOrigin`."]
#[doc = "- `who`: Account of existing member of rank greater than zero."]
#[doc = "- `min_rank`: The rank of the member or greater."]
#[doc = ""]
#[doc = "Weight: `O(min_rank)`."]
remove_member {
who: ::subxt::ext::subxt_core::utils::MultiAddress<
::subxt::ext::subxt_core::utils::AccountId32,
(),
>,
min_rank: ::core::primitive::u16,
},
#[codec(index = 4)]
#[doc = "Add an aye or nay vote for the sender to the given proposal."]
#[doc = ""]
#[doc = "- `origin`: Must be `Signed` by a member account."]
#[doc = "- `poll`: Index of a poll which is ongoing."]
#[doc = "- `aye`: `true` if the vote is to approve the proposal, `false` otherwise."]
#[doc = ""]
#[doc = "Transaction fees are be waived if the member is voting on any particular proposal"]
#[doc = "for the first time and the call is successful. Subsequent vote changes will charge a"]
#[doc = "fee."]
#[doc = ""]
#[doc = "Weight: `O(1)`, less if there was no previous vote on the poll by the member."]
vote { poll: ::core::primitive::u32, aye: ::core::primitive::bool },
#[codec(index = 5)]
#[doc = "Remove votes from the given poll. It must have ended."]
#[doc = ""]
#[doc = "- `origin`: Must be `Signed` by any account."]
#[doc = "- `poll_index`: Index of a poll which is completed and for which votes continue to"]
#[doc = " exist."]
#[doc = "- `max`: Maximum number of vote items from remove in this call."]
#[doc = ""]
#[doc = "Transaction fees are waived if the operation is successful."]
#[doc = ""]
#[doc = "Weight `O(max)` (less if there are fewer items to remove than `max`)."]
cleanup_poll { poll_index: ::core::primitive::u32, max: ::core::primitive::u32 },
#[codec(index = 6)]
#[doc = "Exchanges a member with a new account and the same existing rank."]
#[doc = ""]
#[doc = "- `origin`: Must be the `ExchangeOrigin`."]
#[doc = "- `who`: Account of existing member of rank greater than zero to be exchanged."]
#[doc = "- `new_who`: New Account of existing member of rank greater than zero to exchanged to."]
exchange_member {
who: ::subxt::ext::subxt_core::utils::MultiAddress<
::subxt::ext::subxt_core::utils::AccountId32,
(),
>,
new_who: ::subxt::ext::subxt_core::utils::MultiAddress<
::subxt::ext::subxt_core::utils::AccountId32,
(),
>,
},
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode"
)]
#[doc = "The `Error` enum of this pallet."]
pub enum Error {
#[codec(index = 0)]
#[doc = "Account is already a member."]
AlreadyMember,
#[codec(index = 1)]
#[doc = "Account is not a member."]
NotMember,
#[codec(index = 2)]
#[doc = "The given poll index is unknown or has closed."]
NotPolling,
#[codec(index = 3)]
#[doc = "The given poll is still ongoing."]
Ongoing,
#[codec(index = 4)]
#[doc = "There are no further records to be removed."]
NoneRemaining,
#[codec(index = 5)]
#[doc = "Unexpected error in state."]
Corruption,
#[codec(index = 6)]
#[doc = "The member's rank is too low to vote."]
RankTooLow,
#[codec(index = 7)]
#[doc = "The information provided is incorrect."]
InvalidWitness,
#[codec(index = 8)]
#[doc = "The origin is not sufficiently privileged to do the operation."]
NoPermission,
#[codec(index = 9)]
#[doc = "The new member to exchange is the same as the old member"]
SameMember,
#[codec(index = 10)]
#[doc = "The max member count for the rank has been reached."]
TooManyMembers,
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode"
)]
#[doc = "The `Event` enum of this pallet"]
pub enum Event {
#[codec(index = 0)]
#[doc = "A member `who` has been added."]
MemberAdded { who: ::subxt::ext::subxt_core::utils::AccountId32 },
#[codec(index = 1)]
#[doc = "The member `who`se rank has been changed to the given `rank`."]
RankChanged {
who: ::subxt::ext::subxt_core::utils::AccountId32,
rank: ::core::primitive::u16,
},
#[codec(index = 2)]
#[doc = "The member `who` of given `rank` has been removed from the collective."]
MemberRemoved {
who: ::subxt::ext::subxt_core::utils::AccountId32,
rank: ::core::primitive::u16,
},
#[codec(index = 3)]
#[doc = "The member `who` has voted for the `poll` with the given `vote` leading to an updated"]
#[doc = "`tally`."]
Voted {
who: ::subxt::ext::subxt_core::utils::AccountId32,
poll: ::core::primitive::u32,
vote: runtime_types::pallet_ranked_collective::VoteRecord,
tally: runtime_types::pallet_ranked_collective::Tally,
},
#[codec(index = 4)]
#[doc = "The member `who` had their `AccountId` changed to `new_who`."]
MemberExchanged {
who: ::subxt::ext::subxt_core::utils::AccountId32,
new_who: ::subxt::ext::subxt_core::utils::AccountId32,
},
}
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")]
pub struct MemberRecord {
pub rank: ::core::primitive::u16,
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")]
pub struct Tally {
pub bare_ayes: ::core::primitive::u32,
pub ayes: ::core::primitive::u32,
pub nays: ::core::primitive::u32,
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")]
pub enum VoteRecord {
#[codec(index = 0)]
Aye(::core::primitive::u32),
#[codec(index = 1)]
Nay(::core::primitive::u32),
}
}
pub mod pallet_recovery {
use super::runtime_types;
pub mod pallet {
use super::runtime_types;
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode"
)]
#[doc = "Contains a variant per dispatchable extrinsic that this pallet has."]
pub enum Call {
#[codec(index = 0)]
#[doc = "Send a call through a recovered account."]
#[doc = ""]
#[doc = "The dispatch origin for this call must be _Signed_ and registered to"]
#[doc = "be able to make calls on behalf of the recovered account."]
#[doc = ""]
#[doc = "Parameters:"]
#[doc = "- `account`: The recovered account you want to make a call on-behalf-of."]
#[doc = "- `call`: The call you want to make with the recovered account."]
as_recovered {
account: ::subxt::ext::subxt_core::utils::MultiAddress<
::subxt::ext::subxt_core::utils::AccountId32,
(),
>,
call: ::subxt::ext::subxt_core::alloc::boxed::Box<
runtime_types::quantus_runtime::RuntimeCall,
>,
},
#[codec(index = 1)]
#[doc = "Allow ROOT to bypass the recovery process and set a rescuer account"]
#[doc = "for a lost account directly."]
#[doc = ""]
#[doc = "The dispatch origin for this call must be _ROOT_."]
#[doc = ""]
#[doc = "Parameters:"]
#[doc = "- `lost`: The \"lost account\" to be recovered."]
#[doc = "- `rescuer`: The \"rescuer account\" which can call as the lost account."]
set_recovered {
lost: ::subxt::ext::subxt_core::utils::MultiAddress<
::subxt::ext::subxt_core::utils::AccountId32,
(),
>,
rescuer: ::subxt::ext::subxt_core::utils::MultiAddress<
::subxt::ext::subxt_core::utils::AccountId32,
(),
>,
},
#[codec(index = 2)]
#[doc = "Create a recovery configuration for your account. This makes your account recoverable."]
#[doc = ""]
#[doc = "Payment: `ConfigDepositBase` + `FriendDepositFactor` * #_of_friends balance"]
#[doc = "will be reserved for storing the recovery configuration. This deposit is returned"]
#[doc = "in full when the user calls `remove_recovery`."]
#[doc = ""]
#[doc = "The dispatch origin for this call must be _Signed_."]
#[doc = ""]
#[doc = "Parameters:"]
#[doc = "- `friends`: A list of friends you trust to vouch for recovery attempts. Should be"]
#[doc = " ordered and contain no duplicate values."]
#[doc = "- `threshold`: The number of friends that must vouch for a recovery attempt before the"]
#[doc = " account can be recovered. Should be less than or equal to the length of the list of"]
#[doc = " friends."]
#[doc = "- `delay_period`: The number of blocks after a recovery attempt is initialized that"]
#[doc = " needs to pass before the account can be recovered."]
create_recovery {
friends: ::subxt::ext::subxt_core::alloc::vec::Vec<
::subxt::ext::subxt_core::utils::AccountId32,
>,
threshold: ::core::primitive::u16,
delay_period: ::core::primitive::u32,
},
#[codec(index = 3)]
#[doc = "Initiate the process for recovering a recoverable account."]
#[doc = ""]
#[doc = "Payment: `RecoveryDeposit` balance will be reserved for initiating the"]
#[doc = "recovery process. This deposit will always be repatriated to the account"]
#[doc = "trying to be recovered. See `close_recovery`."]
#[doc = ""]
#[doc = "The dispatch origin for this call must be _Signed_."]
#[doc = ""]
#[doc = "Parameters:"]
#[doc = "- `account`: The lost account that you want to recover. This account needs to be"]
#[doc = " recoverable (i.e. have a recovery configuration)."]
initiate_recovery {
account: ::subxt::ext::subxt_core::utils::MultiAddress<
::subxt::ext::subxt_core::utils::AccountId32,
(),
>,
},
#[codec(index = 4)]
#[doc = "Allow a \"friend\" of a recoverable account to vouch for an active recovery"]
#[doc = "process for that account."]
#[doc = ""]
#[doc = "The dispatch origin for this call must be _Signed_ and must be a \"friend\""]
#[doc = "for the recoverable account."]
#[doc = ""]
#[doc = "Parameters:"]
#[doc = "- `lost`: The lost account that you want to recover."]
#[doc = "- `rescuer`: The account trying to rescue the lost account that you want to vouch for."]
#[doc = ""]
#[doc = "The combination of these two parameters must point to an active recovery"]
#[doc = "process."]
vouch_recovery {
lost: ::subxt::ext::subxt_core::utils::MultiAddress<
::subxt::ext::subxt_core::utils::AccountId32,
(),
>,
rescuer: ::subxt::ext::subxt_core::utils::MultiAddress<
::subxt::ext::subxt_core::utils::AccountId32,
(),
>,
},
#[codec(index = 5)]
#[doc = "Allow a successful rescuer to claim their recovered account."]
#[doc = ""]
#[doc = "The dispatch origin for this call must be _Signed_ and must be a \"rescuer\""]
#[doc = "who has successfully completed the account recovery process: collected"]
#[doc = "`threshold` or more vouches, waited `delay_period` blocks since initiation."]
#[doc = ""]
#[doc = "Parameters:"]
#[doc = "- `account`: The lost account that you want to claim has been successfully recovered by"]
#[doc = " you."]
claim_recovery {
account: ::subxt::ext::subxt_core::utils::MultiAddress<
::subxt::ext::subxt_core::utils::AccountId32,
(),
>,
},
#[codec(index = 6)]
#[doc = "As the controller of a recoverable account, close an active recovery"]
#[doc = "process for your account."]
#[doc = ""]
#[doc = "Payment: By calling this function, the recoverable account will receive"]
#[doc = "the recovery deposit `RecoveryDeposit` placed by the rescuer."]
#[doc = ""]
#[doc = "The dispatch origin for this call must be _Signed_ and must be a"]
#[doc = "recoverable account with an active recovery process for it."]
#[doc = ""]
#[doc = "Parameters:"]
#[doc = "- `rescuer`: The account trying to rescue this recoverable account."]
close_recovery {
rescuer: ::subxt::ext::subxt_core::utils::MultiAddress<
::subxt::ext::subxt_core::utils::AccountId32,
(),
>,
},
#[codec(index = 7)]
#[doc = "Remove the recovery process for your account. Recovered accounts are still accessible."]
#[doc = ""]
#[doc = "NOTE: The user must make sure to call `close_recovery` on all active"]
#[doc = "recovery attempts before calling this function else it will fail."]
#[doc = ""]
#[doc = "Payment: By calling this function the recoverable account will unreserve"]
#[doc = "their recovery configuration deposit."]
#[doc = "(`ConfigDepositBase` + `FriendDepositFactor` * #_of_friends)"]
#[doc = ""]
#[doc = "The dispatch origin for this call must be _Signed_ and must be a"]
#[doc = "recoverable account (i.e. has a recovery configuration)."]
remove_recovery,
#[codec(index = 8)]
#[doc = "Cancel the ability to use `as_recovered` for `account`."]
#[doc = ""]
#[doc = "The dispatch origin for this call must be _Signed_ and registered to"]
#[doc = "be able to make calls on behalf of the recovered account."]
#[doc = ""]
#[doc = "Parameters:"]
#[doc = "- `account`: The recovered account you are able to call on-behalf-of."]
cancel_recovered {
account: ::subxt::ext::subxt_core::utils::MultiAddress<
::subxt::ext::subxt_core::utils::AccountId32,
(),
>,
},
#[codec(index = 9)]
#[doc = "Poke deposits for recovery configurations and / or active recoveries."]
#[doc = ""]
#[doc = "This can be used by accounts to possibly lower their locked amount."]
#[doc = ""]
#[doc = "The dispatch origin for this call must be _Signed_."]
#[doc = ""]
#[doc = "Parameters:"]
#[doc = "- `maybe_account`: Optional recoverable account for which you have an active recovery"]
#[doc = "and want to adjust the deposit for the active recovery."]
#[doc = ""]
#[doc = "This function checks both recovery configuration deposit and active recovery deposits"]
#[doc = "of the caller:"]
#[doc = "- If the caller has created a recovery configuration, checks and adjusts its deposit"]
#[doc = "- If the caller has initiated any active recoveries, and provides the account in"]
#[doc = "`maybe_account`, checks and adjusts those deposits"]
#[doc = ""]
#[doc = "If any deposit is updated, the difference will be reserved/unreserved from the caller's"]
#[doc = "account."]
#[doc = ""]
#[doc = "The transaction is made free if any deposit is updated and paid otherwise."]
#[doc = ""]
#[doc = "Emits `DepositPoked` if any deposit is updated."]
#[doc = "Multiple events may be emitted in case both types of deposits are updated."]
poke_deposit {
maybe_account: ::core::option::Option<
::subxt::ext::subxt_core::utils::MultiAddress<
::subxt::ext::subxt_core::utils::AccountId32,
(),
>,
>,
},
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode"
)]
#[doc = "The `Error` enum of this pallet."]
pub enum Error {
#[codec(index = 0)]
#[doc = "User is not allowed to make a call on behalf of this account"]
NotAllowed,
#[codec(index = 1)]
#[doc = "Threshold must be greater than zero"]
ZeroThreshold,
#[codec(index = 2)]
#[doc = "Friends list must be greater than zero and threshold"]
NotEnoughFriends,
#[codec(index = 3)]
#[doc = "Friends list must be less than max friends"]
MaxFriends,
#[codec(index = 4)]
#[doc = "Friends list must be sorted and free of duplicates"]
NotSorted,
#[codec(index = 5)]
#[doc = "This account is not set up for recovery"]
NotRecoverable,
#[codec(index = 6)]
#[doc = "This account is already set up for recovery"]
AlreadyRecoverable,
#[codec(index = 7)]
#[doc = "A recovery process has already started for this account"]
AlreadyStarted,
#[codec(index = 8)]
#[doc = "A recovery process has not started for this rescuer"]
NotStarted,
#[codec(index = 9)]
#[doc = "This account is not a friend who can vouch"]
NotFriend,
#[codec(index = 10)]
#[doc = "The friend must wait until the delay period to vouch for this recovery"]
DelayPeriod,
#[codec(index = 11)]
#[doc = "This user has already vouched for this recovery"]
AlreadyVouched,
#[codec(index = 12)]
#[doc = "The threshold for recovering this account has not been met"]
Threshold,
#[codec(index = 13)]
#[doc = "There are still active recovery attempts that need to be closed"]
StillActive,
#[codec(index = 14)]
#[doc = "This account is already set up for recovery"]
AlreadyProxy,
#[codec(index = 15)]
#[doc = "Some internal state is broken."]
BadState,
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode"
)]
#[doc = "Events type."]
pub enum Event {
#[codec(index = 0)]
#[doc = "A recovery process has been set up for an account."]
RecoveryCreated { account: ::subxt::ext::subxt_core::utils::AccountId32 },
#[codec(index = 1)]
#[doc = "A recovery process has been initiated for lost account by rescuer account."]
RecoveryInitiated {
lost_account: ::subxt::ext::subxt_core::utils::AccountId32,
rescuer_account: ::subxt::ext::subxt_core::utils::AccountId32,
},
#[codec(index = 2)]
#[doc = "A recovery process for lost account by rescuer account has been vouched for by sender."]
RecoveryVouched {
lost_account: ::subxt::ext::subxt_core::utils::AccountId32,
rescuer_account: ::subxt::ext::subxt_core::utils::AccountId32,
sender: ::subxt::ext::subxt_core::utils::AccountId32,
},
#[codec(index = 3)]
#[doc = "A recovery process for lost account by rescuer account has been closed."]
RecoveryClosed {
lost_account: ::subxt::ext::subxt_core::utils::AccountId32,
rescuer_account: ::subxt::ext::subxt_core::utils::AccountId32,
},
#[codec(index = 4)]
#[doc = "Lost account has been successfully recovered by rescuer account."]
AccountRecovered {
lost_account: ::subxt::ext::subxt_core::utils::AccountId32,
rescuer_account: ::subxt::ext::subxt_core::utils::AccountId32,
},
#[codec(index = 5)]
#[doc = "A recovery process has been removed for an account."]
RecoveryRemoved { lost_account: ::subxt::ext::subxt_core::utils::AccountId32 },
#[codec(index = 6)]
#[doc = "A deposit has been updated."]
DepositPoked {
who: ::subxt::ext::subxt_core::utils::AccountId32,
kind: runtime_types::pallet_recovery::DepositKind<
runtime_types::quantus_runtime::Runtime,
>,
old_deposit: ::core::primitive::u128,
new_deposit: ::core::primitive::u128,
},
}
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")]
pub struct ActiveRecovery<_0, _1, _2> {
pub created: _0,
pub deposit: _1,
pub friends: _2,
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")]
pub enum DepositKind<_0> {
#[codec(index = 0)]
RecoveryConfig,
#[codec(index = 1)]
ActiveRecoveryFor(::subxt::ext::subxt_core::utils::AccountId32),
__Ignore(::core::marker::PhantomData<_0>),
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")]
pub struct RecoveryConfig<_0, _1, _2> {
pub delay_period: _0,
pub deposit: _1,
pub friends: _2,
pub threshold: ::core::primitive::u16,
}
}
pub mod pallet_referenda {
use super::runtime_types;
pub mod pallet {
use super::runtime_types;
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode"
)]
#[doc = "Contains a variant per dispatchable extrinsic that this pallet has."]
pub enum Call {
#[codec(index = 0)]
#[doc = "Propose a referendum on a privileged action."]
#[doc = ""]
#[doc = "- `origin`: must be `SubmitOrigin` and the account must have `SubmissionDeposit` funds"]
#[doc = " available."]
#[doc = "- `proposal_origin`: The origin from which the proposal should be executed."]
#[doc = "- `proposal`: The proposal."]
#[doc = "- `enactment_moment`: The moment that the proposal should be enacted."]
#[doc = ""]
#[doc = "Emits `Submitted`."]
submit {
proposal_origin: ::subxt::ext::subxt_core::alloc::boxed::Box<
runtime_types::quantus_runtime::OriginCaller,
>,
proposal: runtime_types::frame_support::traits::preimages::Bounded<
runtime_types::quantus_runtime::RuntimeCall,
runtime_types::sp_runtime::traits::BlakeTwo256,
>,
enactment_moment:
runtime_types::frame_support::traits::schedule::DispatchTime<
::core::primitive::u32,
>,
},
#[codec(index = 1)]
#[doc = "Post the Decision Deposit for a referendum."]
#[doc = ""]
#[doc = "- `origin`: must be `Signed` and the account must have funds available for the"]
#[doc = " referendum's track's Decision Deposit."]
#[doc = "- `index`: The index of the submitted referendum whose Decision Deposit is yet to be"]
#[doc = " posted."]
#[doc = ""]
#[doc = "Emits `DecisionDepositPlaced`."]
place_decision_deposit { index: ::core::primitive::u32 },
#[codec(index = 2)]
#[doc = "Refund the Decision Deposit for a closed referendum back to the depositor."]
#[doc = ""]
#[doc = "- `origin`: must be `Signed` or `Root`."]
#[doc = "- `index`: The index of a closed referendum whose Decision Deposit has not yet been"]
#[doc = " refunded."]
#[doc = ""]
#[doc = "Emits `DecisionDepositRefunded`."]
refund_decision_deposit { index: ::core::primitive::u32 },
#[codec(index = 3)]
#[doc = "Cancel an ongoing referendum."]
#[doc = ""]
#[doc = "- `origin`: must be the `CancelOrigin`."]
#[doc = "- `index`: The index of the referendum to be cancelled."]
#[doc = ""]
#[doc = "Emits `Cancelled`."]
cancel { index: ::core::primitive::u32 },
#[codec(index = 4)]
#[doc = "Cancel an ongoing referendum and slash the deposits."]
#[doc = ""]
#[doc = "- `origin`: must be the `KillOrigin`."]
#[doc = "- `index`: The index of the referendum to be cancelled."]
#[doc = ""]
#[doc = "Emits `Killed` and `DepositSlashed`."]
kill { index: ::core::primitive::u32 },
#[codec(index = 5)]
#[doc = "Advance a referendum onto its next logical state. Only used internally."]
#[doc = ""]
#[doc = "- `origin`: must be `Root`."]
#[doc = "- `index`: the referendum to be advanced."]
nudge_referendum { index: ::core::primitive::u32 },
#[codec(index = 6)]
#[doc = "Advance a track onto its next logical state. Only used internally."]
#[doc = ""]
#[doc = "- `origin`: must be `Root`."]
#[doc = "- `track`: the track to be advanced."]
#[doc = ""]
#[doc = "Action item for when there is now one fewer referendum in the deciding phase and the"]
#[doc = "`DecidingCount` is not yet updated. This means that we should either:"]
#[doc = "- begin deciding another referendum (and leave `DecidingCount` alone); or"]
#[doc = "- decrement `DecidingCount`."]
one_fewer_deciding { track: ::core::primitive::u16 },
#[codec(index = 7)]
#[doc = "Refund the Submission Deposit for a closed referendum back to the depositor."]
#[doc = ""]
#[doc = "- `origin`: must be `Signed` or `Root`."]
#[doc = "- `index`: The index of a closed referendum whose Submission Deposit has not yet been"]
#[doc = " refunded."]
#[doc = ""]
#[doc = "Emits `SubmissionDepositRefunded`."]
refund_submission_deposit { index: ::core::primitive::u32 },
#[codec(index = 8)]
#[doc = "Set or clear metadata of a referendum."]
#[doc = ""]
#[doc = "Parameters:"]
#[doc = "- `origin`: Must be `Signed` by a creator of a referendum or by anyone to clear a"]
#[doc = " metadata of a finished referendum."]
#[doc = "- `index`: The index of a referendum to set or clear metadata for."]
#[doc = "- `maybe_hash`: The hash of an on-chain stored preimage. `None` to clear a metadata."]
set_metadata {
index: ::core::primitive::u32,
maybe_hash: ::core::option::Option<::subxt::ext::subxt_core::utils::H256>,
},
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode"
)]
#[doc = "The `Error` enum of this pallet."]
pub enum Error {
#[codec(index = 0)]
#[doc = "Referendum is not ongoing."]
NotOngoing,
#[codec(index = 1)]
#[doc = "Referendum's decision deposit is already paid."]
HasDeposit,
#[codec(index = 2)]
#[doc = "The track identifier given was invalid."]
BadTrack,
#[codec(index = 3)]
#[doc = "There are already a full complement of referenda in progress for this track."]
Full,
#[codec(index = 4)]
#[doc = "The queue of the track is empty."]
QueueEmpty,
#[codec(index = 5)]
#[doc = "The referendum index provided is invalid in this context."]
BadReferendum,
#[codec(index = 6)]
#[doc = "There was nothing to do in the advancement."]
NothingToDo,
#[codec(index = 7)]
#[doc = "No track exists for the proposal origin."]
NoTrack,
#[codec(index = 8)]
#[doc = "Any deposit cannot be refunded until after the decision is over."]
Unfinished,
#[codec(index = 9)]
#[doc = "The deposit refunder is not the depositor."]
NoPermission,
#[codec(index = 10)]
#[doc = "The deposit cannot be refunded since none was made."]
NoDeposit,
#[codec(index = 11)]
#[doc = "The referendum status is invalid for this operation."]
BadStatus,
#[codec(index = 12)]
#[doc = "The preimage does not exist."]
PreimageNotExist,
#[codec(index = 13)]
#[doc = "The preimage is stored with a different length than the one provided."]
PreimageStoredWithDifferentLength,
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode"
)]
#[doc = "The `Event` enum of this pallet"]
pub enum Event1 {
#[codec(index = 0)]
#[doc = "A referendum has been submitted."]
Submitted {
index: ::core::primitive::u32,
track: ::core::primitive::u16,
proposal: runtime_types::frame_support::traits::preimages::Bounded<
runtime_types::quantus_runtime::RuntimeCall,
runtime_types::sp_runtime::traits::BlakeTwo256,
>,
},
#[codec(index = 1)]
#[doc = "The decision deposit has been placed."]
DecisionDepositPlaced {
index: ::core::primitive::u32,
who: ::subxt::ext::subxt_core::utils::AccountId32,
amount: ::core::primitive::u128,
},
#[codec(index = 2)]
#[doc = "The decision deposit has been refunded."]
DecisionDepositRefunded {
index: ::core::primitive::u32,
who: ::subxt::ext::subxt_core::utils::AccountId32,
amount: ::core::primitive::u128,
},
#[codec(index = 3)]
#[doc = "A deposit has been slashed."]
DepositSlashed {
who: ::subxt::ext::subxt_core::utils::AccountId32,
amount: ::core::primitive::u128,
},
#[codec(index = 4)]
#[doc = "A referendum has moved into the deciding phase."]
DecisionStarted {
index: ::core::primitive::u32,
track: ::core::primitive::u16,
proposal: runtime_types::frame_support::traits::preimages::Bounded<
runtime_types::quantus_runtime::RuntimeCall,
runtime_types::sp_runtime::traits::BlakeTwo256,
>,
tally: runtime_types::pallet_conviction_voting::types::Tally<
::core::primitive::u128,
>,
},
#[codec(index = 5)]
ConfirmStarted { index: ::core::primitive::u32 },
#[codec(index = 6)]
ConfirmAborted { index: ::core::primitive::u32 },
#[codec(index = 7)]
#[doc = "A referendum has ended its confirmation phase and is ready for approval."]
Confirmed {
index: ::core::primitive::u32,
tally: runtime_types::pallet_conviction_voting::types::Tally<
::core::primitive::u128,
>,
},
#[codec(index = 8)]
#[doc = "A referendum has been approved and its proposal has been scheduled."]
Approved { index: ::core::primitive::u32 },
#[codec(index = 9)]
#[doc = "A proposal has been rejected by referendum."]
Rejected {
index: ::core::primitive::u32,
tally: runtime_types::pallet_conviction_voting::types::Tally<
::core::primitive::u128,
>,
},
#[codec(index = 10)]
#[doc = "A referendum has been timed out without being decided."]
TimedOut {
index: ::core::primitive::u32,
tally: runtime_types::pallet_conviction_voting::types::Tally<
::core::primitive::u128,
>,
},
#[codec(index = 11)]
#[doc = "A referendum has been cancelled."]
Cancelled {
index: ::core::primitive::u32,
tally: runtime_types::pallet_conviction_voting::types::Tally<
::core::primitive::u128,
>,
},
#[codec(index = 12)]
#[doc = "A referendum has been killed."]
Killed {
index: ::core::primitive::u32,
tally: runtime_types::pallet_conviction_voting::types::Tally<
::core::primitive::u128,
>,
},
#[codec(index = 13)]
#[doc = "The submission deposit has been refunded."]
SubmissionDepositRefunded {
index: ::core::primitive::u32,
who: ::subxt::ext::subxt_core::utils::AccountId32,
amount: ::core::primitive::u128,
},
#[codec(index = 14)]
#[doc = "Metadata for a referendum has been set."]
MetadataSet {
index: ::core::primitive::u32,
hash: ::subxt::ext::subxt_core::utils::H256,
},
#[codec(index = 15)]
#[doc = "Metadata for a referendum has been cleared."]
MetadataCleared {
index: ::core::primitive::u32,
hash: ::subxt::ext::subxt_core::utils::H256,
},
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode"
)]
#[doc = "The `Event` enum of this pallet"]
pub enum Event2 {
#[codec(index = 0)]
#[doc = "A referendum has been submitted."]
Submitted {
index: ::core::primitive::u32,
track: ::core::primitive::u16,
proposal: runtime_types::frame_support::traits::preimages::Bounded<
runtime_types::quantus_runtime::RuntimeCall,
runtime_types::sp_runtime::traits::BlakeTwo256,
>,
},
#[codec(index = 1)]
#[doc = "The decision deposit has been placed."]
DecisionDepositPlaced {
index: ::core::primitive::u32,
who: ::subxt::ext::subxt_core::utils::AccountId32,
amount: ::core::primitive::u128,
},
#[codec(index = 2)]
#[doc = "The decision deposit has been refunded."]
DecisionDepositRefunded {
index: ::core::primitive::u32,
who: ::subxt::ext::subxt_core::utils::AccountId32,
amount: ::core::primitive::u128,
},
#[codec(index = 3)]
#[doc = "A deposit has been slashed."]
DepositSlashed {
who: ::subxt::ext::subxt_core::utils::AccountId32,
amount: ::core::primitive::u128,
},
#[codec(index = 4)]
#[doc = "A referendum has moved into the deciding phase."]
DecisionStarted {
index: ::core::primitive::u32,
track: ::core::primitive::u16,
proposal: runtime_types::frame_support::traits::preimages::Bounded<
runtime_types::quantus_runtime::RuntimeCall,
runtime_types::sp_runtime::traits::BlakeTwo256,
>,
tally: runtime_types::pallet_ranked_collective::Tally,
},
#[codec(index = 5)]
ConfirmStarted { index: ::core::primitive::u32 },
#[codec(index = 6)]
ConfirmAborted { index: ::core::primitive::u32 },
#[codec(index = 7)]
#[doc = "A referendum has ended its confirmation phase and is ready for approval."]
Confirmed {
index: ::core::primitive::u32,
tally: runtime_types::pallet_ranked_collective::Tally,
},
#[codec(index = 8)]
#[doc = "A referendum has been approved and its proposal has been scheduled."]
Approved { index: ::core::primitive::u32 },
#[codec(index = 9)]
#[doc = "A proposal has been rejected by referendum."]
Rejected {
index: ::core::primitive::u32,
tally: runtime_types::pallet_ranked_collective::Tally,
},
#[codec(index = 10)]
#[doc = "A referendum has been timed out without being decided."]
TimedOut {
index: ::core::primitive::u32,
tally: runtime_types::pallet_ranked_collective::Tally,
},
#[codec(index = 11)]
#[doc = "A referendum has been cancelled."]
Cancelled {
index: ::core::primitive::u32,
tally: runtime_types::pallet_ranked_collective::Tally,
},
#[codec(index = 12)]
#[doc = "A referendum has been killed."]
Killed {
index: ::core::primitive::u32,
tally: runtime_types::pallet_ranked_collective::Tally,
},
#[codec(index = 13)]
#[doc = "The submission deposit has been refunded."]
SubmissionDepositRefunded {
index: ::core::primitive::u32,
who: ::subxt::ext::subxt_core::utils::AccountId32,
amount: ::core::primitive::u128,
},
#[codec(index = 14)]
#[doc = "Metadata for a referendum has been set."]
MetadataSet {
index: ::core::primitive::u32,
hash: ::subxt::ext::subxt_core::utils::H256,
},
#[codec(index = 15)]
#[doc = "Metadata for a referendum has been cleared."]
MetadataCleared {
index: ::core::primitive::u32,
hash: ::subxt::ext::subxt_core::utils::H256,
},
}
}
pub mod types {
use super::runtime_types;
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode"
)]
pub enum Curve {
#[codec(index = 0)]
LinearDecreasing {
length: runtime_types::sp_arithmetic::per_things::Perbill,
floor: runtime_types::sp_arithmetic::per_things::Perbill,
ceil: runtime_types::sp_arithmetic::per_things::Perbill,
},
#[codec(index = 1)]
SteppedDecreasing {
begin: runtime_types::sp_arithmetic::per_things::Perbill,
end: runtime_types::sp_arithmetic::per_things::Perbill,
step: runtime_types::sp_arithmetic::per_things::Perbill,
period: runtime_types::sp_arithmetic::per_things::Perbill,
},
#[codec(index = 2)]
Reciprocal {
factor: runtime_types::sp_arithmetic::fixed_point::FixedI64,
x_offset: runtime_types::sp_arithmetic::fixed_point::FixedI64,
y_offset: runtime_types::sp_arithmetic::fixed_point::FixedI64,
},
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode"
)]
pub struct DecidingStatus<_0> {
pub since: _0,
pub confirming: ::core::option::Option<_0>,
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode"
)]
pub struct Deposit<_0, _1> {
pub who: _0,
pub amount: _1,
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode"
)]
pub enum ReferendumInfo<_0, _1, _2, _3, _4, _5, _6, _7> {
#[codec(index = 0)]
Ongoing(
runtime_types::pallet_referenda::types::ReferendumStatus<
_0,
_1,
_2,
_3,
_4,
_5,
_6,
_7,
>,
),
#[codec(index = 1)]
Approved(
_2,
::core::option::Option<
runtime_types::pallet_referenda::types::Deposit<_6, _4>,
>,
::core::option::Option<
runtime_types::pallet_referenda::types::Deposit<_6, _4>,
>,
),
#[codec(index = 2)]
Rejected(
_2,
::core::option::Option<
runtime_types::pallet_referenda::types::Deposit<_6, _4>,
>,
::core::option::Option<
runtime_types::pallet_referenda::types::Deposit<_6, _4>,
>,
),
#[codec(index = 3)]
Cancelled(
_2,
::core::option::Option<
runtime_types::pallet_referenda::types::Deposit<_6, _4>,
>,
::core::option::Option<
runtime_types::pallet_referenda::types::Deposit<_6, _4>,
>,
),
#[codec(index = 4)]
TimedOut(
_2,
::core::option::Option<
runtime_types::pallet_referenda::types::Deposit<_6, _4>,
>,
::core::option::Option<
runtime_types::pallet_referenda::types::Deposit<_6, _4>,
>,
),
#[codec(index = 5)]
Killed(_2),
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode"
)]
pub struct ReferendumStatus<_0, _1, _2, _3, _4, _5, _6, _7> {
pub track: _0,
pub origin: _1,
pub proposal: _3,
pub enactment: runtime_types::frame_support::traits::schedule::DispatchTime<_2>,
pub submitted: _2,
pub submission_deposit: runtime_types::pallet_referenda::types::Deposit<_6, _4>,
pub decision_deposit: ::core::option::Option<
runtime_types::pallet_referenda::types::Deposit<_6, _4>,
>,
pub deciding: ::core::option::Option<
runtime_types::pallet_referenda::types::DecidingStatus<_2>,
>,
pub tally: _5,
pub in_queue: ::core::primitive::bool,
pub alarm: ::core::option::Option<(_2, _7)>,
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode"
)]
pub struct TrackDetails<_0, _1, _2> {
pub name: _2,
pub max_deciding: ::core::primitive::u32,
pub decision_deposit: _0,
pub prepare_period: _1,
pub decision_period: _1,
pub confirm_period: _1,
pub min_enactment_period: _1,
pub min_approval: runtime_types::pallet_referenda::types::Curve,
pub min_support: runtime_types::pallet_referenda::types::Curve,
}
}
}
pub mod pallet_reversible_transfers {
use super::runtime_types;
pub mod pallet {
use super::runtime_types;
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode"
)]
#[doc = "Contains a variant per dispatchable extrinsic that this pallet has."]
pub enum Call {
#[codec(index = 0)]
#[doc = "Enable high-security for the calling account with a specified"]
#[doc = "reversibility delay."]
#[doc = ""]
#[doc = "Once an account is set as high security it can only make reversible"]
#[doc = "transfers. It is not allowed any other calls."]
#[doc = ""]
#[doc = "# Warning: Permanent and Irreversible"]
#[doc = ""]
#[doc = "**Enabling high security mode is a one-way operation that cannot be undone.**"]
#[doc = ""]
#[doc = "Once this function is called successfully, the account is permanently restricted"]
#[doc = "to only the following operations:"]
#[doc = "- [`schedule_transfer`](Self::schedule_transfer) - Schedule delayed native token"]
#[doc = " transfers"]
#[doc = "- [`schedule_asset_transfer`](Self::schedule_asset_transfer) - Schedule delayed asset"]
#[doc = " transfers"]
#[doc = "- [`cancel`](Self::cancel) - Cancel pending transfers"]
#[doc = "- [`recover_funds`](Self::recover_funds) - Guardian-initiated emergency fund recovery"]
#[doc = ""]
#[doc = "There is no mechanism to disable high security mode or restore normal account"]
#[doc = "functionality. This design is intentional to provide maximum security guarantees:"]
#[doc = "an attacker who gains access to the account cannot simply disable the protections."]
#[doc = ""]
#[doc = "Users who no longer wish to use high-security features can simply transfer their"]
#[doc = "funds to a different account using [`schedule_transfer`](Self::schedule_transfer)"]
#[doc = "or [`schedule_asset_transfer`](Self::schedule_asset_transfer)."]
#[doc = ""]
#[doc = "# Parameters"]
#[doc = ""]
#[doc = "- `delay`: The reversibility time for any transfer made by the high-security account."]
#[doc = "- `guardian`: The guardian account that can cancel pending transfers and recover funds"]
#[doc = " from this high-security account."]
set_high_security {
delay: runtime_types::qp_scheduler::BlockNumberOrTimestamp<
::core::primitive::u32,
::core::primitive::u64,
>,
guardian: ::subxt::ext::subxt_core::utils::AccountId32,
},
#[codec(index = 1)]
#[doc = "Cancel a pending reversible transaction scheduled by the caller."]
#[doc = ""]
#[doc = "- `tx_id`: The unique identifier of the transaction to cancel."]
cancel { tx_id: ::subxt::ext::subxt_core::utils::H256 },
#[codec(index = 2)]
#[doc = "Executes a previously scheduled transfer after the delay period has elapsed."]
#[doc = ""]
#[doc = "This extrinsic is called automatically by the Scheduler pallet when the"]
#[doc = "delay period expires. It must be signed by this pallet's account (not a user)."]
#[doc = "The pallet account is set as the origin when scheduling via"]
#[doc = "[`do_schedule_transfer_inner`](Self::do_schedule_transfer_inner)."]
#[doc = ""]
#[doc = "# Parameters"]
#[doc = ""]
#[doc = "- `tx_id`: The unique identifier of the pending transfer to execute."]
#[doc = ""]
#[doc = "# Errors"]
#[doc = ""]
#[doc = "- [`InvalidSchedulerOrigin`](Error::InvalidSchedulerOrigin): Called by an account other"]
#[doc = " than this pallet's account."]
#[doc = "- [`PendingTxNotFound`](Error::PendingTxNotFound): No pending transfer with this ID."]
execute_transfer { tx_id: ::subxt::ext::subxt_core::utils::H256 },
#[codec(index = 3)]
#[doc = "Schedule a transaction for delayed execution."]
schedule_transfer {
dest: ::subxt::ext::subxt_core::utils::MultiAddress<
::subxt::ext::subxt_core::utils::AccountId32,
(),
>,
amount: ::core::primitive::u128,
},
#[codec(index = 4)]
#[doc = "Schedule a transaction for delayed execution with a custom, one-time delay."]
#[doc = ""]
#[doc = "This can only be used by accounts that have *not* set up a persistent"]
#[doc = "reversibility configuration with `set_high_security`."]
#[doc = ""]
#[doc = "- `delay`: The time (in blocks or milliseconds) before the transaction executes."]
schedule_transfer_with_delay {
dest: ::subxt::ext::subxt_core::utils::MultiAddress<
::subxt::ext::subxt_core::utils::AccountId32,
(),
>,
amount: ::core::primitive::u128,
delay: runtime_types::qp_scheduler::BlockNumberOrTimestamp<
::core::primitive::u32,
::core::primitive::u64,
>,
},
#[codec(index = 5)]
#[doc = "Schedule an asset transfer (pallet-assets) for delayed execution using the configured"]
#[doc = "delay."]
schedule_asset_transfer {
asset_id: ::core::primitive::u32,
dest: ::subxt::ext::subxt_core::utils::MultiAddress<
::subxt::ext::subxt_core::utils::AccountId32,
(),
>,
amount: ::core::primitive::u128,
},
#[codec(index = 6)]
#[doc = "Schedule an asset transfer (pallet-assets) with a custom one-time delay."]
schedule_asset_transfer_with_delay {
asset_id: ::core::primitive::u32,
dest: ::subxt::ext::subxt_core::utils::MultiAddress<
::subxt::ext::subxt_core::utils::AccountId32,
(),
>,
amount: ::core::primitive::u128,
delay: runtime_types::qp_scheduler::BlockNumberOrTimestamp<
::core::primitive::u32,
::core::primitive::u64,
>,
},
#[codec(index = 7)]
#[doc = "Allows the guardian to recover all funds from a high-security account"]
#[doc = "by transferring the entire balance to themselves."]
#[doc = ""]
#[doc = "This is an emergency function for when the high-security account may be compromised."]
#[doc = "It cancels all pending transfers first (applying volume fees), then transfers"]
#[doc = "the remaining free balance to the guardian."]
#[doc = ""]
#[doc = "If releasing held funds fails for any transfer, that transfer is skipped (metadata"]
#[doc = "preserved for manual retry via `cancel`) and a `TransferRecoveryFailed` event is"]
#[doc = "emitted. Other transfers continue to be processed."]
recover_funds { account: ::subxt::ext::subxt_core::utils::AccountId32 },
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode"
)]
#[doc = "The `Error` enum of this pallet."]
pub enum Error {
#[codec(index = 0)]
#[doc = "The account attempting to enable reversibility is already marked as reversible."]
AccountAlreadyHighSecurity,
#[codec(index = 1)]
#[doc = "The account attempting the action is not marked as high security."]
AccountNotHighSecurity,
#[codec(index = 2)]
#[doc = "Guardian cannot be the account itself, because it is redundant."]
GuardianCannotBeSelf,
#[codec(index = 3)]
#[doc = "Recoverer cannot be the account itself, because it is redundant."]
RecovererCannotBeSelf,
#[codec(index = 4)]
#[doc = "The specified pending transaction ID was not found."]
PendingTxNotFound,
#[codec(index = 5)]
#[doc = "The caller is not the original submitter of the transaction they are trying to cancel."]
NotOwner,
#[codec(index = 6)]
#[doc = "The account has reached the maximum number of pending reversible transactions."]
TooManyPendingTransactions,
#[codec(index = 7)]
#[doc = "The specified delay period is below the configured minimum."]
DelayTooShort,
#[codec(index = 8)]
#[doc = "Failed to schedule the transaction execution with the scheduler pallet."]
SchedulingFailed,
#[codec(index = 9)]
#[doc = "Failed to cancel the scheduled task with the scheduler pallet."]
CancellationFailed,
#[codec(index = 10)]
#[doc = "Failed to decode the OpaqueCall back into a RuntimeCall."]
CallDecodingFailed,
#[codec(index = 11)]
#[doc = "Call is invalid."]
InvalidCall,
#[codec(index = 12)]
#[doc = "Invalid scheduler origin"]
InvalidSchedulerOrigin,
#[codec(index = 13)]
#[doc = "Reverser is invalid"]
InvalidReverser,
#[codec(index = 14)]
#[doc = "Cannot schedule one time reversible transaction when account is reversible (theft"]
#[doc = "deterrence)"]
AccountAlreadyReversibleCannotScheduleOneTime,
#[codec(index = 15)]
#[doc = "The guardian has reached the maximum number of accounts they can protect."]
TooManyGuardianAccounts,
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode"
)]
#[doc = "The `Event` enum of this pallet"]
pub enum Event {
#[codec(index = 0)]
#[doc = "A user has enabled their high-security settings."]
HighSecuritySet {
who: ::subxt::ext::subxt_core::utils::AccountId32,
guardian: ::subxt::ext::subxt_core::utils::AccountId32,
delay: runtime_types::qp_scheduler::BlockNumberOrTimestamp<
::core::primitive::u32,
::core::primitive::u64,
>,
},
#[codec(index = 1)]
#[doc = "A transaction has been scheduled for delayed execution."]
TransactionScheduled {
from: ::subxt::ext::subxt_core::utils::AccountId32,
to: ::subxt::ext::subxt_core::utils::AccountId32,
guardian: ::subxt::ext::subxt_core::utils::AccountId32,
asset_id: ::core::option::Option<::core::primitive::u32>,
amount: ::core::primitive::u128,
tx_id: ::subxt::ext::subxt_core::utils::H256,
execute_at: runtime_types::qp_scheduler::DispatchTime<
::core::primitive::u32,
::core::primitive::u64,
>,
},
#[codec(index = 2)]
#[doc = "A scheduled transaction has been successfully cancelled."]
TransactionCancelled {
who: ::subxt::ext::subxt_core::utils::AccountId32,
tx_id: ::subxt::ext::subxt_core::utils::H256,
},
#[codec(index = 3)]
#[doc = "A scheduled transaction was executed by the scheduler."]
TransactionExecuted {
tx_id: ::subxt::ext::subxt_core::utils::H256,
result: ::core::result::Result<
runtime_types::frame_support::dispatch::PostDispatchInfo,
runtime_types::sp_runtime::DispatchErrorWithPostInfo<
runtime_types::frame_support::dispatch::PostDispatchInfo,
>,
>,
},
#[codec(index = 4)]
#[doc = "All funds were recovered from a high-security account by its guardian."]
FundsRecovered {
account: ::subxt::ext::subxt_core::utils::AccountId32,
guardian: ::subxt::ext::subxt_core::utils::AccountId32,
},
#[codec(index = 5)]
#[doc = "Failed to release held funds during recovery. The transfer metadata is preserved"]
#[doc = "for manual retry via `cancel`."]
TransferRecoveryFailed { tx_id: ::subxt::ext::subxt_core::utils::H256 },
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode"
)]
pub enum HoldReason {
#[codec(index = 0)]
ScheduledTransfer,
}
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")]
pub struct HighSecurityAccountData<_0, _1> {
pub guardian: _0,
pub delay: _1,
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")]
pub struct PendingTransfer<_0, _1, _2> {
pub from: _0,
pub to: _0,
pub guardian: _0,
pub asset_id: ::core::option::Option<_2>,
pub amount: _1,
}
}
pub mod pallet_scheduler {
use super::runtime_types;
pub mod pallet {
use super::runtime_types;
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode"
)]
#[doc = "Contains a variant per dispatchable extrinsic that this pallet has."]
pub enum Call {
#[codec(index = 0)]
schedule {
when: ::core::primitive::u32,
priority: ::core::primitive::u8,
call: ::subxt::ext::subxt_core::alloc::boxed::Box<
runtime_types::quantus_runtime::RuntimeCall,
>,
},
#[codec(index = 1)]
#[doc = "Cancel an anonymously scheduled task."]
cancel {
when: runtime_types::qp_scheduler::BlockNumberOrTimestamp<
::core::primitive::u32,
::core::primitive::u64,
>,
index: ::core::primitive::u32,
},
#[codec(index = 2)]
schedule_named {
id: [::core::primitive::u8; 32usize],
when: ::core::primitive::u32,
priority: ::core::primitive::u8,
call: ::subxt::ext::subxt_core::alloc::boxed::Box<
runtime_types::quantus_runtime::RuntimeCall,
>,
},
#[codec(index = 3)]
#[doc = "Cancel a named scheduled task."]
cancel_named { id: [::core::primitive::u8; 32usize] },
#[codec(index = 4)]
schedule_after {
after: runtime_types::qp_scheduler::BlockNumberOrTimestamp<
::core::primitive::u32,
::core::primitive::u64,
>,
priority: ::core::primitive::u8,
call: ::subxt::ext::subxt_core::alloc::boxed::Box<
runtime_types::quantus_runtime::RuntimeCall,
>,
},
#[codec(index = 5)]
schedule_named_after {
id: [::core::primitive::u8; 32usize],
after: runtime_types::qp_scheduler::BlockNumberOrTimestamp<
::core::primitive::u32,
::core::primitive::u64,
>,
priority: ::core::primitive::u8,
call: ::subxt::ext::subxt_core::alloc::boxed::Box<
runtime_types::quantus_runtime::RuntimeCall,
>,
},
#[codec(index = 6)]
#[doc = "Set a retry configuration for a task so that, in case its scheduled run fails, it will"]
#[doc = "be retried after `period` blocks, for a total amount of `retries` retries or until it"]
#[doc = "succeeds."]
#[doc = ""]
#[doc = "Tasks which need to be scheduled for a retry are still subject to weight metering and"]
#[doc = "agenda space, same as a regular task."]
#[doc = ""]
#[doc = "Tasks scheduled as a result of a retry are unnamed"]
#[doc = "clones of the original task. Their retry configuration will be derived from the"]
#[doc = "original task's configuration, but will have a lower value for `remaining` than the"]
#[doc = "original `total_retries`."]
#[doc = ""]
#[doc = "The `period` type must match the task's scheduling type: block-scheduled tasks"]
#[doc = "require a block-number period, and timestamp-scheduled tasks require a timestamp"]
#[doc = "period. Mismatched types will return [`Error::RetryPeriodMismatch`]."]
set_retry {
task: (
runtime_types::qp_scheduler::BlockNumberOrTimestamp<
::core::primitive::u32,
::core::primitive::u64,
>,
::core::primitive::u32,
),
retries: ::core::primitive::u8,
period: runtime_types::qp_scheduler::BlockNumberOrTimestamp<
::core::primitive::u32,
::core::primitive::u64,
>,
},
#[codec(index = 7)]
#[doc = "Set a retry configuration for a named task so that, in case its scheduled run fails, it"]
#[doc = "will be retried after `period` blocks, for a total amount of `retries` retries or until"]
#[doc = "it succeeds."]
#[doc = ""]
#[doc = "Tasks which need to be scheduled for a retry are still subject to weight metering and"]
#[doc = "agenda space, same as a regular task."]
#[doc = ""]
#[doc = "Tasks scheduled as a result of a retry are unnamed"]
#[doc = "clones of the original task. Their retry configuration will be derived from the"]
#[doc = "original task's configuration, but will have a lower value for `remaining` than the"]
#[doc = "original `total_retries`."]
#[doc = ""]
#[doc = "The `period` type must match the task's scheduling type: block-scheduled tasks"]
#[doc = "require a block-number period, and timestamp-scheduled tasks require a timestamp"]
#[doc = "period. Mismatched types will return [`Error::RetryPeriodMismatch`]."]
set_retry_named {
id: [::core::primitive::u8; 32usize],
retries: ::core::primitive::u8,
period: runtime_types::qp_scheduler::BlockNumberOrTimestamp<
::core::primitive::u32,
::core::primitive::u64,
>,
},
#[codec(index = 8)]
#[doc = "Removes the retry configuration of a task."]
cancel_retry {
task: (
runtime_types::qp_scheduler::BlockNumberOrTimestamp<
::core::primitive::u32,
::core::primitive::u64,
>,
::core::primitive::u32,
),
},
#[codec(index = 9)]
#[doc = "Cancel the retry configuration of a named task."]
cancel_retry_named { id: [::core::primitive::u8; 32usize] },
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode"
)]
#[doc = "The `Error` enum of this pallet."]
pub enum Error {
#[codec(index = 0)]
#[doc = "Failed to schedule a call"]
FailedToSchedule,
#[codec(index = 1)]
#[doc = "Cannot find the scheduled call."]
NotFound,
#[codec(index = 2)]
#[doc = "Given target block number is in the past."]
TargetBlockNumberInPast,
#[codec(index = 3)]
#[doc = "Given target timestamp is in the past."]
TargetTimestampInPast,
#[codec(index = 4)]
#[doc = "Reschedule failed because it does not change scheduled time."]
RescheduleNoChange,
#[codec(index = 5)]
#[doc = "Attempt to use a non-named function on a named task."]
Named,
#[codec(index = 6)]
#[doc = "Periodic scheduling is not supported."]
PeriodicNotSupported,
#[codec(index = 7)]
#[doc = "Retry period type does not match task scheduling type."]
#[doc = ""]
#[doc = "Block-scheduled tasks require a block-number retry period,"]
#[doc = "and timestamp-scheduled tasks require a timestamp retry period."]
RetryPeriodMismatch,
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode"
)]
#[doc = "Events type."]
pub enum Event {
#[codec(index = 0)]
#[doc = "Scheduled some task."]
Scheduled {
when: runtime_types::qp_scheduler::BlockNumberOrTimestamp<
::core::primitive::u32,
::core::primitive::u64,
>,
index: ::core::primitive::u32,
},
#[codec(index = 1)]
#[doc = "Canceled some task."]
Canceled {
when: runtime_types::qp_scheduler::BlockNumberOrTimestamp<
::core::primitive::u32,
::core::primitive::u64,
>,
index: ::core::primitive::u32,
},
#[codec(index = 2)]
#[doc = "Dispatched some task."]
Dispatched {
task: (
runtime_types::qp_scheduler::BlockNumberOrTimestamp<
::core::primitive::u32,
::core::primitive::u64,
>,
::core::primitive::u32,
),
id: ::core::option::Option<[::core::primitive::u8; 32usize]>,
result:
::core::result::Result<(), runtime_types::sp_runtime::DispatchError>,
},
#[codec(index = 3)]
#[doc = "Set a retry configuration for some task."]
RetrySet {
task: (
runtime_types::qp_scheduler::BlockNumberOrTimestamp<
::core::primitive::u32,
::core::primitive::u64,
>,
::core::primitive::u32,
),
id: ::core::option::Option<[::core::primitive::u8; 32usize]>,
period: runtime_types::qp_scheduler::BlockNumberOrTimestamp<
::core::primitive::u32,
::core::primitive::u64,
>,
retries: ::core::primitive::u8,
},
#[codec(index = 4)]
#[doc = "Cancel a retry configuration for some task."]
RetryCancelled {
task: (
runtime_types::qp_scheduler::BlockNumberOrTimestamp<
::core::primitive::u32,
::core::primitive::u64,
>,
::core::primitive::u32,
),
id: ::core::option::Option<[::core::primitive::u8; 32usize]>,
},
#[codec(index = 5)]
#[doc = "The call for the provided hash was not found so the task has been aborted."]
CallUnavailable {
task: (
runtime_types::qp_scheduler::BlockNumberOrTimestamp<
::core::primitive::u32,
::core::primitive::u64,
>,
::core::primitive::u32,
),
id: ::core::option::Option<[::core::primitive::u8; 32usize]>,
},
#[codec(index = 6)]
#[doc = "The given task was unable to be retried since the agenda is full at that block or there"]
#[doc = "was not enough weight to reschedule it."]
RetryFailed {
task: (
runtime_types::qp_scheduler::BlockNumberOrTimestamp<
::core::primitive::u32,
::core::primitive::u64,
>,
::core::primitive::u32,
),
id: ::core::option::Option<[::core::primitive::u8; 32usize]>,
},
#[codec(index = 7)]
#[doc = "The given task can never be executed since it is overweight."]
PermanentlyOverweight {
task: (
runtime_types::qp_scheduler::BlockNumberOrTimestamp<
::core::primitive::u32,
::core::primitive::u64,
>,
::core::primitive::u32,
),
id: ::core::option::Option<[::core::primitive::u8; 32usize]>,
},
}
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")]
pub struct RetryConfig<_0> {
pub total_retries: ::core::primitive::u8,
pub remaining: ::core::primitive::u8,
pub period: _0,
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")]
pub struct Scheduled<_0, _1, _2, _3, _4, _5> {
pub maybe_id: ::core::option::Option<_0>,
pub priority: ::core::primitive::u8,
pub call: _1,
pub origin: _3,
#[codec(skip)]
pub __ignore: ::core::marker::PhantomData<(_4, _5, _2)>,
}
}
pub mod pallet_timestamp {
use super::runtime_types;
pub mod pallet {
use super::runtime_types;
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode"
)]
#[doc = "Contains a variant per dispatchable extrinsic that this pallet has."]
pub enum Call {
#[codec(index = 0)]
#[doc = "Set the current time."]
#[doc = ""]
#[doc = "This call should be invoked exactly once per block. It will panic at the finalization"]
#[doc = "phase, if this call hasn't been invoked by that time."]
#[doc = ""]
#[doc = "The timestamp should be greater than the previous one by the amount specified by"]
#[doc = "[`Config::MinimumPeriod`]."]
#[doc = ""]
#[doc = "The dispatch origin for this call must be _None_."]
#[doc = ""]
#[doc = "This dispatch class is _Mandatory_ to ensure it gets executed in the block. Be aware"]
#[doc = "that changing the complexity of this call could result exhausting the resources in a"]
#[doc = "block to execute any other calls."]
#[doc = ""]
#[doc = "## Complexity"]
#[doc = "- `O(1)` (Note that implementations of `OnTimestampSet` must also be `O(1)`)"]
#[doc = "- 1 storage read and 1 storage mutation (codec `O(1)` because of `DidUpdate::take` in"]
#[doc = " `on_finalize`)"]
#[doc = "- 1 event handler `on_timestamp_set`. Must be `O(1)`."]
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 :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: 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::ext::subxt_core::utils::AccountId32,
actual_fee: ::core::primitive::u128,
tip: ::core::primitive::u128,
},
}
}
pub mod types {
use super::runtime_types;
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: 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 :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode"
)]
pub struct InclusionFee<_0> {
pub base_fee: _0,
pub len_fee: _0,
pub adjusted_weight_fee: _0,
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: 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 :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")]
pub struct ChargeTransactionPayment(#[codec(compact)] pub ::core::primitive::u128);
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")]
pub enum Releases {
#[codec(index = 0)]
V1Ancient,
#[codec(index = 1)]
V2,
}
}
pub mod pallet_treasury {
use super::runtime_types;
pub mod pallet {
use super::runtime_types;
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode"
)]
#[doc = "Contains a variant per dispatchable extrinsic that this pallet has."]
pub enum Call {
#[codec(index = 0)]
#[doc = "Set the treasury account. Root only. Zero address is rejected (funds would be locked)."]
#[doc = ""]
#[doc = "**Important**: This only changes where *future* mining rewards are sent. Any balance"]
#[doc = "that has already accumulated in the current treasury account is NOT automatically"]
#[doc = "migrated to the new account. If you need to move existing funds, perform a separate"]
#[doc = "balance transfer (e.g., via governance proposal) after updating the account."]
set_treasury_account { account: ::subxt::ext::subxt_core::utils::AccountId32 },
#[codec(index = 1)]
#[doc = "Set the treasury portion (Permill, 0–100%). Root only."]
set_treasury_portion {
portion: runtime_types::sp_arithmetic::per_things::Permill,
},
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode"
)]
#[doc = "The `Error` enum of this pallet."]
pub enum Error {
#[codec(index = 0)]
InvalidPortion,
#[codec(index = 1)]
#[doc = "Treasury account cannot be zero address (funds would be permanently locked)."]
InvalidTreasuryAccount,
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode"
)]
#[doc = "The `Event` enum of this pallet"]
pub enum Event {
#[codec(index = 0)]
#[doc = "The treasury account was updated."]
#[doc = ""]
#[doc = "Note: This only redirects where future mining rewards are sent. Any balance"]
#[doc = "accumulated in the old account remains there and is NOT automatically migrated."]
#[doc = "Use a separate balance transfer if funds need to be moved."]
TreasuryAccountUpdated {
old_account:
::core::option::Option<::subxt::ext::subxt_core::utils::AccountId32>,
new_account: ::subxt::ext::subxt_core::utils::AccountId32,
},
#[codec(index = 1)]
#[doc = "The treasury portion (share of mining rewards) was updated."]
TreasuryPortionUpdated {
new_portion: runtime_types::sp_arithmetic::per_things::Permill,
},
}
}
}
pub mod pallet_utility {
use super::runtime_types;
pub mod pallet {
use super::runtime_types;
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode"
)]
#[doc = "Contains a variant per dispatchable extrinsic that this pallet has."]
pub enum Call {
#[codec(index = 0)]
#[doc = "Send a batch of dispatch calls."]
#[doc = ""]
#[doc = "May be called from any origin except `None`."]
#[doc = ""]
#[doc = "- `calls`: The calls to be dispatched from the same origin. The number of call must not"]
#[doc = " exceed the constant: `batched_calls_limit` (available in constant metadata)."]
#[doc = ""]
#[doc = "If origin is root then the calls are dispatched without checking origin filter. (This"]
#[doc = "includes bypassing `frame_system::Config::BaseCallFilter`)."]
#[doc = ""]
#[doc = "## Complexity"]
#[doc = "- O(C) where C is the number of calls to be batched."]
#[doc = ""]
#[doc = "This will return `Ok` in all circumstances. To determine the success of the batch, an"]
#[doc = "event is deposited. If a call failed and the batch was interrupted, then the"]
#[doc = "`BatchInterrupted` event is deposited, along with the number of successful calls made"]
#[doc = "and the error of the failed call. If all were successful, then the `BatchCompleted`"]
#[doc = "event is deposited."]
batch {
calls: ::subxt::ext::subxt_core::alloc::vec::Vec<
runtime_types::quantus_runtime::RuntimeCall,
>,
},
#[codec(index = 1)]
#[doc = "Send a call through an indexed pseudonym of the sender."]
#[doc = ""]
#[doc = "Filter from origin are passed along. The call will be dispatched with an origin which"]
#[doc = "use the same filter as the origin of this call."]
#[doc = ""]
#[doc = "NOTE: If you need to ensure that any account-based filtering is not honored (i.e."]
#[doc = "because you expect `proxy` to have been used prior in the call stack and you do not want"]
#[doc = "the call restrictions to apply to any sub-accounts), then use `as_multi_threshold_1`"]
#[doc = "in the Multisig pallet instead."]
#[doc = ""]
#[doc = "NOTE: Prior to version *12, this was called `as_limited_sub`."]
#[doc = ""]
#[doc = "The dispatch origin for this call must be _Signed_."]
as_derivative {
index: ::core::primitive::u16,
call: ::subxt::ext::subxt_core::alloc::boxed::Box<
runtime_types::quantus_runtime::RuntimeCall,
>,
},
#[codec(index = 2)]
#[doc = "Send a batch of dispatch calls and atomically execute them."]
#[doc = "The whole transaction will rollback and fail if any of the calls failed."]
#[doc = ""]
#[doc = "May be called from any origin except `None`."]
#[doc = ""]
#[doc = "- `calls`: The calls to be dispatched from the same origin. The number of call must not"]
#[doc = " exceed the constant: `batched_calls_limit` (available in constant metadata)."]
#[doc = ""]
#[doc = "If origin is root then the calls are dispatched without checking origin filter. (This"]
#[doc = "includes bypassing `frame_system::Config::BaseCallFilter`)."]
#[doc = ""]
#[doc = "## Complexity"]
#[doc = "- O(C) where C is the number of calls to be batched."]
batch_all {
calls: ::subxt::ext::subxt_core::alloc::vec::Vec<
runtime_types::quantus_runtime::RuntimeCall,
>,
},
#[codec(index = 3)]
#[doc = "Dispatches a function call with a provided origin."]
#[doc = ""]
#[doc = "The dispatch origin for this call must be _Root_."]
#[doc = ""]
#[doc = "## Complexity"]
#[doc = "- O(1)."]
dispatch_as {
as_origin: ::subxt::ext::subxt_core::alloc::boxed::Box<
runtime_types::quantus_runtime::OriginCaller,
>,
call: ::subxt::ext::subxt_core::alloc::boxed::Box<
runtime_types::quantus_runtime::RuntimeCall,
>,
},
#[codec(index = 4)]
#[doc = "Send a batch of dispatch calls."]
#[doc = "Unlike `batch`, it allows errors and won't interrupt."]
#[doc = ""]
#[doc = "May be called from any origin except `None`."]
#[doc = ""]
#[doc = "- `calls`: The calls to be dispatched from the same origin. The number of call must not"]
#[doc = " exceed the constant: `batched_calls_limit` (available in constant metadata)."]
#[doc = ""]
#[doc = "If origin is root then the calls are dispatch without checking origin filter. (This"]
#[doc = "includes bypassing `frame_system::Config::BaseCallFilter`)."]
#[doc = ""]
#[doc = "## Complexity"]
#[doc = "- O(C) where C is the number of calls to be batched."]
force_batch {
calls: ::subxt::ext::subxt_core::alloc::vec::Vec<
runtime_types::quantus_runtime::RuntimeCall,
>,
},
#[codec(index = 5)]
#[doc = "Dispatch a function call with a specified weight."]
#[doc = ""]
#[doc = "This function does not check the weight of the call, and instead allows the"]
#[doc = "Root origin to specify the weight of the call."]
#[doc = ""]
#[doc = "The dispatch origin for this call must be _Root_."]
with_weight {
call: ::subxt::ext::subxt_core::alloc::boxed::Box<
runtime_types::quantus_runtime::RuntimeCall,
>,
weight: runtime_types::sp_weights::weight_v2::Weight,
},
#[codec(index = 6)]
#[doc = "Dispatch a fallback call in the event the main call fails to execute."]
#[doc = "May be called from any origin except `None`."]
#[doc = ""]
#[doc = "This function first attempts to dispatch the `main` call."]
#[doc = "If the `main` call fails, the `fallback` is attemted."]
#[doc = "if the fallback is successfully dispatched, the weights of both calls"]
#[doc = "are accumulated and an event containing the main call error is deposited."]
#[doc = ""]
#[doc = "In the event of a fallback failure the whole call fails"]
#[doc = "with the weights returned."]
#[doc = ""]
#[doc = "- `main`: The main call to be dispatched. This is the primary action to execute."]
#[doc = "- `fallback`: The fallback call to be dispatched in case the `main` call fails."]
#[doc = ""]
#[doc = "## Dispatch Logic"]
#[doc = "- If the origin is `root`, both the main and fallback calls are executed without"]
#[doc = " applying any origin filters."]
#[doc = "- If the origin is not `root`, the origin filter is applied to both the `main` and"]
#[doc = " `fallback` calls."]
#[doc = ""]
#[doc = "## Use Case"]
#[doc = "- Some use cases might involve submitting a `batch` type call in either main, fallback"]
#[doc = " or both."]
if_else {
main: ::subxt::ext::subxt_core::alloc::boxed::Box<
runtime_types::quantus_runtime::RuntimeCall,
>,
fallback: ::subxt::ext::subxt_core::alloc::boxed::Box<
runtime_types::quantus_runtime::RuntimeCall,
>,
},
#[codec(index = 7)]
#[doc = "Dispatches a function call with a provided origin."]
#[doc = ""]
#[doc = "Almost the same as [`Pallet::dispatch_as`] but forwards any error of the inner call."]
#[doc = ""]
#[doc = "The dispatch origin for this call must be _Root_."]
dispatch_as_fallible {
as_origin: ::subxt::ext::subxt_core::alloc::boxed::Box<
runtime_types::quantus_runtime::OriginCaller,
>,
call: ::subxt::ext::subxt_core::alloc::boxed::Box<
runtime_types::quantus_runtime::RuntimeCall,
>,
},
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode"
)]
#[doc = "The `Error` enum of this pallet."]
pub enum Error {
#[codec(index = 0)]
#[doc = "Too many calls batched."]
TooManyCalls,
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode"
)]
#[doc = "The `Event` enum of this pallet"]
pub enum Event {
#[codec(index = 0)]
#[doc = "Batch of dispatches did not complete fully. Index of first failing dispatch given, as"]
#[doc = "well as the error."]
BatchInterrupted {
index: ::core::primitive::u32,
error: runtime_types::sp_runtime::DispatchError,
},
#[codec(index = 1)]
#[doc = "Batch of dispatches completed fully with no error."]
BatchCompleted,
#[codec(index = 2)]
#[doc = "Batch of dispatches completed but has errors."]
BatchCompletedWithErrors,
#[codec(index = 3)]
#[doc = "A single item within a Batch of dispatches has completed with no error."]
ItemCompleted,
#[codec(index = 4)]
#[doc = "A single item within a Batch of dispatches has completed with error."]
ItemFailed { error: runtime_types::sp_runtime::DispatchError },
#[codec(index = 5)]
#[doc = "A call was dispatched."]
DispatchedAs {
result:
::core::result::Result<(), runtime_types::sp_runtime::DispatchError>,
},
#[codec(index = 6)]
#[doc = "Main call was dispatched."]
IfElseMainSuccess,
#[codec(index = 7)]
#[doc = "The fallback call was dispatched."]
IfElseFallbackCalled { main_error: runtime_types::sp_runtime::DispatchError },
}
}
}
pub mod pallet_wormhole {
use super::runtime_types;
pub mod pallet {
use super::runtime_types;
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode"
)]
#[doc = "Contains a variant per dispatchable extrinsic that this pallet has."]
pub enum Call {
#[codec(index = 2)]
#[doc = "Verify an aggregated wormhole proof and process all transfers in the batch."]
#[doc = ""]
#[doc = "Returns `DispatchResultWithPostInfo` to allow weight correction on early failures."]
#[doc = "If validation fails before ZK verification, we return minimal weight."]
#[doc = "If ZK verification fails, we return full weight since the work was done."]
verify_aggregated_proof {
proof_bytes:
::subxt::ext::subxt_core::alloc::vec::Vec<::core::primitive::u8>,
},
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode"
)]
#[doc = "The `Error` enum of this pallet."]
pub enum Error {
#[codec(index = 0)]
InvalidPublicInputs,
#[codec(index = 1)]
NullifierAlreadyUsed,
#[codec(index = 2)]
BlockNotFound,
#[codec(index = 3)]
AggregatedVerifierNotAvailable,
#[codec(index = 4)]
AggregatedProofDeserializationFailed,
#[codec(index = 5)]
AggregatedVerificationFailed,
#[codec(index = 6)]
InvalidAggregatedPublicInputs,
#[codec(index = 7)]
#[doc = "The volume fee rate in the proof doesn't match the configured rate"]
InvalidVolumeFeeRate,
#[codec(index = 8)]
#[doc = "Transfer amount is below the minimum required"]
TransferAmountBelowMinimum,
#[codec(index = 9)]
#[doc = "Only native asset (asset_id = 0) is supported in this version"]
NonNativeAssetNotSupported,
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode"
)]
#[doc = "The `Event` enum of this pallet"]
pub enum Event {
#[codec(index = 0)]
#[doc = "A native token transfer was recorded."]
#[doc = ""]
#[doc = "The `leaf_index` can be used to fetch Merkle proofs via the"]
#[doc = "`zkTrie_getMerkleProof` RPC for ZK circuit verification."]
NativeTransferred {
from: ::subxt::ext::subxt_core::utils::AccountId32,
to: ::subxt::ext::subxt_core::utils::AccountId32,
amount: ::core::primitive::u128,
transfer_count: ::core::primitive::u64,
leaf_index: ::core::primitive::u64,
},
#[codec(index = 1)]
#[doc = "A non-native asset transfer was recorded."]
#[doc = ""]
#[doc = "The `leaf_index` can be used to fetch Merkle proofs via the"]
#[doc = "`zkTrie_getMerkleProof` RPC for ZK circuit verification."]
AssetTransferred {
asset_id: ::core::primitive::u32,
from: ::subxt::ext::subxt_core::utils::AccountId32,
to: ::subxt::ext::subxt_core::utils::AccountId32,
amount: ::core::primitive::u128,
transfer_count: ::core::primitive::u64,
leaf_index: ::core::primitive::u64,
},
#[codec(index = 2)]
ProofVerified {
exit_amount: ::core::primitive::u128,
nullifiers: ::subxt::ext::subxt_core::alloc::vec::Vec<
[::core::primitive::u8; 32usize],
>,
},
}
}
}
pub mod pallet_zk_tree {
use super::runtime_types;
pub mod pallet {
use super::runtime_types;
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode"
)]
#[doc = "The `Error` enum of this pallet."]
pub enum Error {
#[codec(index = 0)]
#[doc = "Leaf index out of bounds."]
LeafIndexOutOfBounds,
#[codec(index = 1)]
#[doc = "Leaf not found."]
LeafNotFound,
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode"
)]
#[doc = "The `Event` enum of this pallet"]
pub enum Event {
#[codec(index = 0)]
#[doc = "A new leaf was inserted into the tree."]
LeafInserted {
index: ::core::primitive::u64,
leaf_hash: [::core::primitive::u8; 32usize],
new_root: [::core::primitive::u8; 32usize],
},
#[codec(index = 1)]
#[doc = "Tree depth increased."]
TreeGrew { new_depth: ::core::primitive::u8 },
}
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")]
pub struct ZkLeaf<_0, _1, _2> {
pub to: _0,
pub transfer_count: ::core::primitive::u64,
pub asset_id: _1,
pub amount: _2,
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")]
pub struct ZkMerkleProofRpc {
pub leaf_index: ::core::primitive::u64,
pub leaf_data: ::subxt::ext::subxt_core::alloc::vec::Vec<::core::primitive::u8>,
pub leaf_hash: [::core::primitive::u8; 32usize],
pub siblings: ::subxt::ext::subxt_core::alloc::vec::Vec<
[[::core::primitive::u8; 32usize]; 3usize],
>,
pub root: [::core::primitive::u8; 32usize],
pub depth: ::core::primitive::u8,
}
}
pub mod primitive_types {
use super::runtime_types;
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")]
pub struct U512(pub [::core::primitive::u64; 8usize]);
}
pub mod qp_dilithium_crypto {
use super::runtime_types;
pub mod types {
use super::runtime_types;
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode"
)]
pub enum DilithiumSignatureScheme {
#[codec(index = 0)]
Dilithium(
runtime_types::qp_dilithium_crypto::types::DilithiumSignatureWithPublic,
),
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode"
)]
pub struct DilithiumSignatureWithPublic {
pub bytes: [::core::primitive::u8; 7219usize],
}
}
}
pub mod qp_header {
use super::runtime_types;
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")]
pub struct Header<_0> {
pub parent_hash: ::subxt::ext::subxt_core::utils::H256,
pub number: _0,
pub state_root: ::subxt::ext::subxt_core::utils::H256,
pub extrinsics_root: ::subxt::ext::subxt_core::utils::H256,
pub zk_tree_root: ::subxt::ext::subxt_core::utils::H256,
pub digest: runtime_types::sp_runtime::generic::digest::Digest,
}
}
pub mod qp_scheduler {
use super::runtime_types;
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")]
pub enum BlockNumberOrTimestamp<_0, _1> {
#[codec(index = 0)]
BlockNumber(_0),
#[codec(index = 1)]
Timestamp(_1),
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")]
pub enum DispatchTime<_0, _1> {
#[codec(index = 0)]
At(_0),
#[codec(index = 1)]
After(runtime_types::qp_scheduler::BlockNumberOrTimestamp<_0, _1>),
}
}
pub mod quantus_runtime {
use super::runtime_types;
pub mod governance {
use super::runtime_types;
pub mod definitions {
use super::runtime_types;
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode"
)]
pub struct PreimageDeposit {
pub amount: ::core::primitive::u128,
}
}
}
pub mod transaction_extensions {
use super::runtime_types;
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode"
)]
pub struct ReversibleTransactionExtension;
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode"
)]
pub struct WormholeProofRecorderExtension;
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")]
pub enum OriginCaller {
#[codec(index = 0)]
system(
runtime_types::frame_support::dispatch::RawOrigin<
::subxt::ext::subxt_core::utils::AccountId32,
>,
),
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")]
pub struct Runtime;
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: 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 = 2)]
Balances(runtime_types::pallet_balances::pallet::Call),
#[codec(index = 7)]
Preimage(runtime_types::pallet_preimage::pallet::Call),
#[codec(index = 8)]
Scheduler(runtime_types::pallet_scheduler::pallet::Call),
#[codec(index = 9)]
Utility(runtime_types::pallet_utility::pallet::Call),
#[codec(index = 10)]
Referenda(runtime_types::pallet_referenda::pallet::Call),
#[codec(index = 11)]
ReversibleTransfers(runtime_types::pallet_reversible_transfers::pallet::Call),
#[codec(index = 12)]
ConvictionVoting(runtime_types::pallet_conviction_voting::pallet::Call),
#[codec(index = 13)]
TechCollective(runtime_types::pallet_ranked_collective::pallet::Call),
#[codec(index = 14)]
TechReferenda(runtime_types::pallet_referenda::pallet::Call),
#[codec(index = 15)]
TreasuryPallet(runtime_types::pallet_treasury::pallet::Call),
#[codec(index = 16)]
Recovery(runtime_types::pallet_recovery::pallet::Call),
#[codec(index = 17)]
Assets(runtime_types::pallet_assets::pallet::Call),
#[codec(index = 19)]
Multisig(runtime_types::pallet_multisig::pallet::Call),
#[codec(index = 20)]
Wormhole(runtime_types::pallet_wormhole::pallet::Call),
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")]
pub enum RuntimeError {
#[codec(index = 0)]
System(runtime_types::frame_system::pallet::Error),
#[codec(index = 2)]
Balances(runtime_types::pallet_balances::pallet::Error),
#[codec(index = 7)]
Preimage(runtime_types::pallet_preimage::pallet::Error),
#[codec(index = 8)]
Scheduler(runtime_types::pallet_scheduler::pallet::Error),
#[codec(index = 9)]
Utility(runtime_types::pallet_utility::pallet::Error),
#[codec(index = 10)]
Referenda(runtime_types::pallet_referenda::pallet::Error),
#[codec(index = 11)]
ReversibleTransfers(runtime_types::pallet_reversible_transfers::pallet::Error),
#[codec(index = 12)]
ConvictionVoting(runtime_types::pallet_conviction_voting::pallet::Error),
#[codec(index = 13)]
TechCollective(runtime_types::pallet_ranked_collective::pallet::Error),
#[codec(index = 14)]
TechReferenda(runtime_types::pallet_referenda::pallet::Error),
#[codec(index = 15)]
TreasuryPallet(runtime_types::pallet_treasury::pallet::Error),
#[codec(index = 16)]
Recovery(runtime_types::pallet_recovery::pallet::Error),
#[codec(index = 17)]
Assets(runtime_types::pallet_assets::pallet::Error),
#[codec(index = 18)]
AssetsHolder(runtime_types::pallet_assets_holder::pallet::Error),
#[codec(index = 19)]
Multisig(runtime_types::pallet_multisig::pallet::Error),
#[codec(index = 20)]
Wormhole(runtime_types::pallet_wormhole::pallet::Error),
#[codec(index = 21)]
ZkTree(runtime_types::pallet_zk_tree::pallet::Error),
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")]
pub enum RuntimeEvent {
#[codec(index = 0)]
System(runtime_types::frame_system::pallet::Event),
#[codec(index = 2)]
Balances(runtime_types::pallet_balances::pallet::Event),
#[codec(index = 3)]
TransactionPayment(runtime_types::pallet_transaction_payment::pallet::Event),
#[codec(index = 5)]
QPoW(runtime_types::pallet_qpow::pallet::Event),
#[codec(index = 6)]
MiningRewards(runtime_types::pallet_mining_rewards::pallet::Event),
#[codec(index = 7)]
Preimage(runtime_types::pallet_preimage::pallet::Event),
#[codec(index = 8)]
Scheduler(runtime_types::pallet_scheduler::pallet::Event),
#[codec(index = 9)]
Utility(runtime_types::pallet_utility::pallet::Event),
#[codec(index = 10)]
Referenda(runtime_types::pallet_referenda::pallet::Event1),
#[codec(index = 11)]
ReversibleTransfers(runtime_types::pallet_reversible_transfers::pallet::Event),
#[codec(index = 12)]
ConvictionVoting(runtime_types::pallet_conviction_voting::pallet::Event),
#[codec(index = 13)]
TechCollective(runtime_types::pallet_ranked_collective::pallet::Event),
#[codec(index = 14)]
TechReferenda(runtime_types::pallet_referenda::pallet::Event2),
#[codec(index = 15)]
TreasuryPallet(runtime_types::pallet_treasury::pallet::Event),
#[codec(index = 16)]
Recovery(runtime_types::pallet_recovery::pallet::Event),
#[codec(index = 17)]
Assets(runtime_types::pallet_assets::pallet::Event),
#[codec(index = 18)]
AssetsHolder(runtime_types::pallet_assets_holder::pallet::Event),
#[codec(index = 19)]
Multisig(runtime_types::pallet_multisig::pallet::Event),
#[codec(index = 20)]
Wormhole(runtime_types::pallet_wormhole::pallet::Event),
#[codec(index = 21)]
ZkTree(runtime_types::pallet_zk_tree::pallet::Event),
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")]
pub enum RuntimeFreezeReason {}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")]
pub enum RuntimeHoldReason {
#[codec(index = 7)]
Preimage(runtime_types::pallet_preimage::pallet::HoldReason),
#[codec(index = 11)]
ReversibleTransfers(runtime_types::pallet_reversible_transfers::pallet::HoldReason),
}
}
pub mod sp_arithmetic {
use super::runtime_types;
pub mod fixed_point {
use super::runtime_types;
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode"
)]
pub struct FixedI64(pub ::core::primitive::i64);
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode"
)]
pub struct FixedU128(pub ::core::primitive::u128);
}
pub mod per_things {
use super::runtime_types;
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode"
)]
pub struct Perbill(pub ::core::primitive::u32);
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode"
)]
pub struct Permill(pub ::core::primitive::u32);
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")]
pub enum ArithmeticError {
#[codec(index = 0)]
Underflow,
#[codec(index = 1)]
Overflow,
#[codec(index = 2)]
DivisionByZero,
}
}
pub mod sp_core {
use super::runtime_types;
pub mod crypto {
use super::runtime_types;
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode"
)]
pub struct KeyTypeId(pub [::core::primitive::u8; 4usize]);
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")]
pub struct OpaqueMetadata(
pub ::subxt::ext::subxt_core::alloc::vec::Vec<::core::primitive::u8>,
);
}
pub mod sp_inherents {
use super::runtime_types;
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: 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 :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")]
pub struct InherentData {
pub data: ::subxt::ext::subxt_core::utils::KeyedVec<
[::core::primitive::u8; 8usize],
::subxt::ext::subxt_core::alloc::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 :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode"
)]
pub struct Block<_0, _1> {
pub header: _0,
pub extrinsics: ::subxt::ext::subxt_core::alloc::vec::Vec<_1>,
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode"
)]
pub struct LazyBlock<_0, _1> {
pub header: _0,
pub extrinsics: ::subxt::ext::subxt_core::alloc::vec::Vec<
runtime_types::sp_runtime::OpaqueExtrinsic,
>,
#[codec(skip)]
pub __ignore: ::core::marker::PhantomData<_1>,
}
}
pub mod digest {
use super::runtime_types;
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode"
)]
pub struct Digest {
pub logs: ::subxt::ext::subxt_core::alloc::vec::Vec<
runtime_types::sp_runtime::generic::digest::DigestItem,
>,
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode"
)]
pub enum DigestItem {
#[codec(index = 6)]
PreRuntime(
[::core::primitive::u8; 4usize],
::subxt::ext::subxt_core::alloc::vec::Vec<::core::primitive::u8>,
),
#[codec(index = 4)]
Consensus(
[::core::primitive::u8; 4usize],
::subxt::ext::subxt_core::alloc::vec::Vec<::core::primitive::u8>,
),
#[codec(index = 5)]
Seal(
[::core::primitive::u8; 4usize],
::subxt::ext::subxt_core::alloc::vec::Vec<::core::primitive::u8>,
),
#[codec(index = 0)]
Other(::subxt::ext::subxt_core::alloc::vec::Vec<::core::primitive::u8>),
#[codec(index = 8)]
RuntimeEnvironmentUpdated,
}
}
pub mod era {
use super::runtime_types;
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: 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 proving_trie {
use super::runtime_types;
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode"
)]
pub enum TrieError {
#[codec(index = 0)]
InvalidStateRoot,
#[codec(index = 1)]
IncompleteDatabase,
#[codec(index = 2)]
ValueAtIncompleteKey,
#[codec(index = 3)]
DecoderError,
#[codec(index = 4)]
InvalidHash,
#[codec(index = 5)]
DuplicateKey,
#[codec(index = 6)]
ExtraneousNode,
#[codec(index = 7)]
ExtraneousValue,
#[codec(index = 8)]
ExtraneousHashReference,
#[codec(index = 9)]
InvalidChildReference,
#[codec(index = 10)]
ValueMismatch,
#[codec(index = 11)]
IncompleteProof,
#[codec(index = 12)]
RootMismatch,
#[codec(index = 13)]
DecodeError,
}
}
pub mod traits {
use super::runtime_types;
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode"
)]
pub struct BlakeTwo256;
}
pub mod transaction_validity {
use super::runtime_types;
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: 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,
#[codec(index = 11)]
IndeterminateImplicit,
#[codec(index = 12)]
UnknownOrigin,
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode"
)]
pub enum TransactionSource {
#[codec(index = 0)]
InBlock,
#[codec(index = 1)]
Local,
#[codec(index = 2)]
External,
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: 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 :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode"
)]
pub enum UnknownTransaction {
#[codec(index = 0)]
CannotLookup,
#[codec(index = 1)]
NoUnsignedValidator,
#[codec(index = 2)]
Custom(::core::primitive::u8),
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode"
)]
pub struct ValidTransaction {
pub priority: ::core::primitive::u64,
pub requires: ::subxt::ext::subxt_core::alloc::vec::Vec<
::subxt::ext::subxt_core::alloc::vec::Vec<::core::primitive::u8>,
>,
pub provides: ::subxt::ext::subxt_core::alloc::vec::Vec<
::subxt::ext::subxt_core::alloc::vec::Vec<::core::primitive::u8>,
>,
pub longevity: ::core::primitive::u64,
pub propagate: ::core::primitive::bool,
}
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: 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,
#[codec(index = 14)]
Trie(runtime_types::sp_runtime::proving_trie::TrieError),
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")]
pub struct DispatchErrorWithPostInfo<_0> {
pub post_info: _0,
pub error: runtime_types::sp_runtime::DispatchError,
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")]
pub enum ExtrinsicInclusionMode {
#[codec(index = 0)]
AllExtrinsics,
#[codec(index = 1)]
OnlyInherents,
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")]
pub struct ModuleError {
pub index: ::core::primitive::u8,
pub error: [::core::primitive::u8; 4usize],
}
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")]
pub struct OpaqueExtrinsic(
pub ::subxt::ext::subxt_core::alloc::vec::Vec<::core::primitive::u8>,
);
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: 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 :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: 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 :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")]
pub struct RuntimeVersion {
pub spec_name: ::subxt::ext::subxt_core::alloc::string::String,
pub impl_name: ::subxt::ext::subxt_core::alloc::string::String,
pub authoring_version: ::core::primitive::u32,
pub spec_version: ::core::primitive::u32,
pub impl_version: ::core::primitive::u32,
pub apis: ::subxt::ext::subxt_core::alloc::vec::Vec<(
[::core::primitive::u8; 8usize],
::core::primitive::u32,
)>,
pub transaction_version: ::core::primitive::u32,
pub system_version: ::core::primitive::u8,
}
}
pub mod sp_weights {
use super::runtime_types;
pub mod weight_v2 {
use super::runtime_types;
#[derive(
:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode"
)]
#[encode_as_type(
crate_path = ":: subxt :: ext :: subxt_core :: 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 :: subxt_core :: ext :: scale_decode :: DecodeAsType,
:: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType,
Debug,
)]
#[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")]
#[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")]
pub struct RuntimeDbWeight {
pub read: ::core::primitive::u64,
pub write: ::core::primitive::u64,
}
}
}
}