{
- /// Create a slot-claim from the given author public key, slot, and timestamp.
- ///
- /// This does not check whether the author actually owns the slot or the timestamp
- /// falls within the slot.
- pub fn unchecked(author_pub: Pub, slot: Slot, timestamp: Timestamp) -> Self
- where
- P: Pair,
- P::Public: Codec,
- P::Signature: Codec,
- {
- SlotClaim { author_pub, timestamp, pre_digest: aura_internal::pre_digest::(slot) }
- }
-
- /// Get the author's public key.
- pub fn author_pub(&self) -> &Pub {
- &self.author_pub
- }
-
- /// Get the Aura pre-digest for this slot.
- pub fn pre_digest(&self) -> &DigestItem {
- &self.pre_digest
- }
-
- /// Get the timestamp corresponding to the relay-chain slot this claim was
- /// generated against.
- pub fn timestamp(&self) -> Timestamp {
- self.timestamp
- }
-}
-
-/// Attempt to claim a slot derived from the given relay-parent header's slot.
-pub async fn claim_slot(
- client: &C,
- parent_hash: B::Hash,
- relay_parent_header: &PHeader,
- slot_duration: SlotDuration,
- relay_chain_slot_duration: Duration,
- keystore: &KeystorePtr,
-) -> Result>, Box>
-where
- B: BlockT,
- C: ProvideRuntimeApi + Send + Sync + 'static,
- C::Api: AuraApi,
- P: Pair,
- P::Public: Codec,
- P::Signature: Codec,
-{
- // load authorities
- let authorities = client.runtime_api().authorities(parent_hash).map_err(Box::new)?;
-
- // Determine the current slot and timestamp based on the relay-parent's.
- let (slot_now, timestamp) = match consensus_common::relay_slot_and_timestamp(
- relay_parent_header,
- relay_chain_slot_duration,
- ) {
- Some((r_s, t)) => {
- let our_slot = Slot::from_timestamp(t, slot_duration);
- tracing::debug!(
- target: crate::LOG_TARGET,
- relay_slot = ?r_s,
- para_slot = ?our_slot,
- timestamp = ?t,
- ?slot_duration,
- ?relay_chain_slot_duration,
- "Adjusted relay-chain slot to parachain slot"
- );
- (our_slot, t)
- },
- None => return Ok(None),
- };
-
- // Try to claim the slot locally.
- let author_pub = {
- let res = aura_internal::claim_slot:: (slot_now, &authorities, keystore).await;
- match res {
- Some(p) => p,
- None => return Ok(None),
- }
- };
-
- Ok(Some(SlotClaim::unchecked::
(author_pub, slot_now, timestamp)))
-}
diff --git a/client/consensus/aura/src/collators/mod.rs b/client/consensus/aura/src/collators/mod.rs
deleted file mode 100644
index 716ae56..0000000
--- a/client/consensus/aura/src/collators/mod.rs
+++ /dev/null
@@ -1,17 +0,0 @@
-// Copyright (C) Magnet.
-// This file is part of Magnet.
-
-// Magnet is free software: you can redistribute it and/or modify
-// it under the terms of the GNU General Public License as published by
-// the Free Software Foundation, either version 3 of the License, or
-// (at your option) any later version.
-
-// Magnet is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License
-// along with Magnet. If not, see .
-
-pub mod on_demand;
diff --git a/client/consensus/aura/src/collators/on_demand.rs b/client/consensus/aura/src/collators/on_demand.rs
deleted file mode 100644
index c284653..0000000
--- a/client/consensus/aura/src/collators/on_demand.rs
+++ /dev/null
@@ -1,232 +0,0 @@
-// Copyright (C) Magnet.
-// This file is part of Magnet.
-
-// Magnet is free software: you can redistribute it and/or modify
-// it under the terms of the GNU General Public License as published by
-// the Free Software Foundation, either version 3 of the License, or
-// (at your option) any later version.
-
-// Magnet is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License
-// along with Magnet. If not, see .
-
-use codec::{Codec, Decode};
-use cumulus_client_collator::{
- relay_chain_driven::CollationRequest, service::ServiceInterface as CollatorServiceInterface,
-};
-use cumulus_client_consensus_common::ParachainBlockImportMarker;
-use cumulus_client_consensus_proposer::ProposerInterface;
-use cumulus_primitives_core::{
- relay_chain::BlockId as RBlockId, relay_chain::Hash as PHash, CollectCollationInfo,
-};
-use cumulus_relay_chain_interface::RelayChainInterface;
-
-use polkadot_node_primitives::CollationResult;
-use polkadot_overseer::Handle as OverseerHandle;
-use polkadot_primitives::{CollatorPair, Id as ParaId};
-
-use cumulus_primitives_core::PersistedValidationData;
-use futures::lock::Mutex;
-use futures::prelude::*;
-use futures::{channel::mpsc::Receiver, prelude::*};
-use magnet_primitives_order::OrderRecord;
-use sc_client_api::{backend::AuxStore, BlockBackend, BlockOf};
-use sc_consensus::BlockImport;
-use sp_api::ProvideRuntimeApi;
-use sp_application_crypto::AppPublic;
-use sp_blockchain::HeaderBackend;
-use sp_consensus::SyncOracle;
-use sp_consensus_aura::{AuraApi, SlotDuration};
-use sp_core::crypto::Pair;
-use sp_inherents::CreateInherentDataProviders;
-use sp_keystore::KeystorePtr;
-use sp_runtime::traits::{Block as BlockT, Header as HeaderT, Member};
-use std::{convert::TryFrom, sync::Arc, time::Duration};
-/// Parameters for [`run`].
-pub struct Params {
- /// Inherent data providers. Only non-consensus inherent data should be provided, i.e.
- /// the timestamp, slot, and paras inherents should be omitted, as they are set by this
- /// collator.
- pub create_inherent_data_providers: CIDP,
- /// Used to actually import blocks.
- pub block_import: BI,
- /// The underlying para client.
- pub para_client: Arc,
- /// A handle to the relay-chain client.
- pub relay_client: RClient,
- /// A chain synchronization oracle.
- pub sync_oracle: SO,
- /// The underlying keystore, which should contain Aura consensus keys.
- pub keystore: KeystorePtr,
- /// The collator key used to sign collations before submitting to validators.
- pub collator_key: CollatorPair,
- /// The para's ID.
- pub para_id: ParaId,
- /// A handle to the relay-chain client's "Overseer" or task orchestrator.
- pub overseer_handle: OverseerHandle,
- /// The length of slots in this chain.
- pub slot_duration: SlotDuration,
- /// The length of slots in the relay chain.
- pub relay_chain_slot_duration: Duration,
- /// The underlying block proposer this should call into.
- pub proposer: Proposer,
- /// The generic collator service used to plug into this consensus engine.
- pub collator_service: CS,
- /// The amount of time to spend authoring each block.
- pub authoring_duration: Duration,
- /// Receiver for collation requests. If `None`, Aura consensus will establish a new receiver.
- /// Should be used when a chain migrates from a different consensus algorithm and was already
- /// processing collation requests before initializing Aura.
- pub collation_request_receiver: Option>,
-}
-
-/// Run bare Aura consensus as a relay-chain-driven collator.
-pub fn run(
- params: Params,
- order_record: Arc>>,
-) -> impl Future + Send + 'static
-where
- Block: BlockT + Send,
- Client: ProvideRuntimeApi
- + BlockOf
- + AuxStore
- + HeaderBackend
- + BlockBackend
- + Send
- + Sync
- + 'static,
- Client::Api: AuraApi + CollectCollationInfo,
- RClient: RelayChainInterface + Send + Clone + 'static,
- CIDP: CreateInherentDataProviders<
- Block,
- (PHash, Option, ParaId, u64, Option),
- > + Send
- + 'static,
- CIDP::InherentDataProviders: Send,
- BI: BlockImport + ParachainBlockImportMarker + Send + Sync + 'static,
- SO: SyncOracle + Send + Sync + Clone + 'static,
- Proposer: ProposerInterface + Send + Sync + 'static,
- CS: CollatorServiceInterface + Send + Sync + 'static,
- P: Pair,
- P::Public: AppPublic + Member + Codec,
- P::Signature: TryFrom> + Member + Codec,
-{
- async move {
- let mut collation_requests = match params.collation_request_receiver {
- Some(receiver) => receiver,
- None => {
- cumulus_client_collator::relay_chain_driven::init(
- params.collator_key,
- params.para_id,
- params.overseer_handle,
- )
- .await
- },
- };
-
- let mut collator = {
- let params = crate::collator::Params {
- create_inherent_data_providers: params.create_inherent_data_providers,
- block_import: params.block_import,
- relay_client: params.relay_client.clone(),
- keystore: params.keystore.clone(),
- para_id: params.para_id,
- proposer: params.proposer,
- collator_service: params.collator_service,
- };
-
- crate::collator::Collator::::new(params)
- };
-
- while let Some(request) = collation_requests.next().await {
- macro_rules! reject_with_error {
- ($err:expr) => {{
- request.complete(None);
- tracing::error!(target: crate::LOG_TARGET, err = ?{ $err });
- continue;
- }};
- }
-
- macro_rules! try_request {
- ($x:expr) => {{
- match $x {
- Ok(x) => x,
- Err(e) => reject_with_error!(e),
- }
- }};
- }
-
- let validation_data = request.persisted_validation_data();
-
- let parent_header =
- try_request!(Block::Header::decode(&mut &validation_data.parent_head.0[..]));
-
- let parent_hash = parent_header.hash();
-
- if !collator.collator_service().check_block_status(parent_hash, &parent_header) {
- continue;
- }
-
- let relay_parent_header =
- match params.relay_client.header(RBlockId::hash(*request.relay_parent())).await {
- Err(e) => reject_with_error!(e),
- Ok(None) => continue, // sanity: would be inconsistent to get `None` here
- Ok(Some(h)) => h,
- };
- let claim = match crate::collator::claim_slot::<_, _, P>(
- &*params.para_client,
- parent_hash,
- &relay_parent_header,
- params.slot_duration,
- params.relay_chain_slot_duration,
- ¶ms.keystore,
- )
- .await
- {
- Ok(None) => continue,
- Ok(Some(c)) => c,
- Err(e) => reject_with_error!(e),
- };
- let (parachain_inherent_data, other_inherent_data) = try_request!(
- collator
- .create_inherent_data(
- *request.relay_parent(),
- &validation_data,
- parent_hash,
- claim.timestamp(),
- order_record.clone(),
- )
- .await
- );
- let maybe_collation = try_request!(
- collator
- .collate(
- &parent_header,
- &claim,
- None,
- (parachain_inherent_data, other_inherent_data),
- params.authoring_duration,
- // Set the block limit to 50% of the maximum PoV size.
- //
- // TODO: If we got benchmarking that includes the proof size,
- // we should be able to use the maximum pov size.
- (validation_data.max_pov_size / 2) as usize,
- )
- .await
- );
-
- if let Some((collation, _, post_hash)) = maybe_collation {
- let result_sender =
- Some(collator.collator_service().announce_with_barrier(post_hash));
- request.complete(Some(CollationResult { collation, result_sender }));
- } else {
- request.complete(None);
- tracing::debug!(target: crate::LOG_TARGET, "No block proposal");
- }
- }
- }
-}
diff --git a/client/consensus/aura/src/lib.rs b/client/consensus/aura/src/lib.rs
index e806a80..e71099a 100644
--- a/client/consensus/aura/src/lib.rs
+++ b/client/consensus/aura/src/lib.rs
@@ -14,9 +14,6 @@
// You should have received a copy of the GNU General Public License
// along with Magnet. If not, see .
-pub mod collator;
-pub mod collators;
-
const LOG_TARGET: &str = "on_demand_aura::magnet";
use sp_core::crypto::{ByteArray, Pair};
diff --git a/node/src/service.rs b/node/src/service.rs
index 9f7d483..41340a7 100644
--- a/node/src/service.rs
+++ b/node/src/service.rs
@@ -550,12 +550,12 @@ fn start_consensus(
announce_block: Arc>) + Send + Sync>,
order_record: Arc>>,
) -> Result<(), sc_service::Error> {
- // use cumulus_client_consensus_aura::collators::basic::{
- // self as basic_aura, Params as BasicAuraParams,
- // };
- use magnet_client_consensus_aura::collators::on_demand::{
- self as on_demand_aura, Params as BasicAuraParams,
+ use cumulus_client_consensus_aura::collators::basic::{
+ self as basic_aura, Params as BasicAuraParams,
};
+ // use magnet_client_consensus_aura::collators::on_demand::{
+ // self as on_demand_aura, Params as BasicAuraParams,
+ // };
// NOTE: because we use Aura here explicitly, we can use `CollatorSybilResistance::Resistant`
// when starting the network.
@@ -580,16 +580,25 @@ fn start_consensus(
);
let relay_chain_interface_clone = relay_chain_interface.clone();
let params = BasicAuraParams {
- create_inherent_data_providers: move |_block_hash,
- (
- relay_parent,
- validation_data,
- para_id,
- sequence_number,
- author_pub,
- )| {
+ // create_inherent_data_providers: move |_, ()| async move { Ok(()) },
+ create_inherent_data_providers: move |_, ()| {
let relay_chain_interface = relay_chain_interface.clone();
+ let order_record_clone = order_record.clone();
async move {
+ let parent_hash = relay_chain_interface.best_block_hash().await?;
+ let (relay_parent, validation_data, sequence_number, author_pub) = {
+ let order_record_local = order_record_clone.lock().await;
+ if order_record_local.validation_data.is_none() {
+ (parent_hash, None, order_record_local.sequence_number, None)
+ } else {
+ (
+ order_record_local.relay_parent.expect("can not get relay_parent hash"),
+ order_record_local.validation_data.clone(),
+ order_record_local.sequence_number,
+ order_record_local.author_pub.clone(),
+ )
+ }
+ };
let order_inherent = magnet_primitives_order::OrderInherentData::create_at(
relay_parent,
&relay_chain_interface,
@@ -624,18 +633,11 @@ fn start_consensus(
collation_request_receiver: None,
};
- let fut = on_demand_aura::run::<
- Block,
- sp_consensus_aura::sr25519::AuthorityPair,
- _,
- _,
- _,
- _,
- _,
- _,
- _,
- >(params, order_record);
- task_manager.spawn_essential_handle().spawn("on_demand_aura", None, fut);
+ let fut =
+ basic_aura::run::(
+ params,
+ );
+ task_manager.spawn_essential_handle().spawn("aura", None, fut);
Ok(())
}
From adc92d7f15f7e76eb7670a7d8f59a009ed703bc9 Mon Sep 17 00:00:00 2001
From: sulijia <984115358@qq.com>
Date: Mon, 17 Jun 2024 22:59:13 +0800
Subject: [PATCH 02/44] add client code of bulk mode
---
Cargo.lock | 114 +-
client/coretime/bulk/Cargo.toml | 56 +
client/coretime/bulk/src/lib.rs | 66 +
client/coretime/bulk/src/metadata.rs | 19308 +++++++++++++++++++++++++
node/Cargo.toml | 1 +
node/src/service.rs | 2 +
6 files changed, 19513 insertions(+), 34 deletions(-)
create mode 100644 client/coretime/bulk/Cargo.toml
create mode 100644 client/coretime/bulk/src/lib.rs
create mode 100644 client/coretime/bulk/src/metadata.rs
diff --git a/Cargo.lock b/Cargo.lock
index b5f817e..a2a128e 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -2979,7 +2979,7 @@ checksum = "7d9ce6874da5d4415896cd45ffbc4d1cfc0c4f9c079427bd870742c30f2f65a9"
dependencies = [
"curve25519-dalek 4.1.2",
"ed25519",
- "hashbrown 0.14.3",
+ "hashbrown 0.14.5",
"hex",
"rand_core 0.6.4",
"sha2 0.10.8",
@@ -2988,9 +2988,9 @@ dependencies = [
[[package]]
name = "either"
-version = "1.11.0"
+version = "1.12.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "a47c1c47d2f5964e29c61246e81db715514cd532db6b5116a25ea3c03d6780a2"
+checksum = "3dca9240753cf90908d7e4aac30f630662b02aebaa1b58a3cadabdb23385b58b"
dependencies = [
"serde",
]
@@ -4500,9 +4500,9 @@ dependencies = [
[[package]]
name = "hashbrown"
-version = "0.14.3"
+version = "0.14.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "290f1a1d9242c78d09ce40a5e87e7554ee637af1351968159f4952f028f75604"
+checksum = "e5274423e17b7c9fc20b6e7e208532f9b19825d82dfd615708b70edd83df41f1"
dependencies = [
"ahash 0.8.11",
"allocator-api2",
@@ -4515,7 +4515,7 @@ version = "0.8.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e8094feaf31ff591f651a2664fb9cfd92bba7a60ce3197265e9482ebe753c8f7"
dependencies = [
- "hashbrown 0.14.3",
+ "hashbrown 0.14.5",
]
[[package]]
@@ -4860,7 +4860,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "168fb715dda47215e360912c096649d23d58bf392ac62f73919e831745e40f26"
dependencies = [
"equivalent",
- "hashbrown 0.14.3",
+ "hashbrown 0.14.5",
]
[[package]]
@@ -4893,9 +4893,9 @@ dependencies = [
[[package]]
name = "instant"
-version = "0.1.12"
+version = "0.1.13"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "7a5bbe824c507c5da5956355e86a746d82e0e1464f65d862cc5e71da70e94b2c"
+checksum = "e0242819d153cba4b4b05a5a8f2a7e9bbf97b6055b2a002b395c96b5ff3c0222"
dependencies = [
"cfg-if",
]
@@ -5860,7 +5860,7 @@ version = "0.12.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d3262e75e648fce39813cb56ac41f3c3e3f65217ebf3844d818d1f9398cfb0dc"
dependencies = [
- "hashbrown 0.14.3",
+ "hashbrown 0.14.5",
]
[[package]]
@@ -5994,6 +5994,52 @@ dependencies = [
"tracing",
]
+[[package]]
+name = "magnet-client-coretime-bulk"
+version = "0.1.0"
+dependencies = [
+ "async-trait",
+ "cumulus-client-collator",
+ "cumulus-client-consensus-aura",
+ "cumulus-client-consensus-common",
+ "cumulus-client-consensus-proposer",
+ "cumulus-client-parachain-inherent",
+ "cumulus-primitives-aura",
+ "cumulus-primitives-core",
+ "cumulus-primitives-parachain-inherent",
+ "cumulus-relay-chain-interface",
+ "futures",
+ "log",
+ "parity-scale-codec",
+ "polkadot-node-primitives",
+ "polkadot-node-subsystem",
+ "polkadot-overseer",
+ "polkadot-primitives",
+ "sc-client-api",
+ "sc-consensus",
+ "sc-consensus-aura",
+ "sc-consensus-babe",
+ "sc-consensus-slots",
+ "sc-service",
+ "sc-telemetry",
+ "schnellru",
+ "sp-api",
+ "sp-application-crypto 30.0.0",
+ "sp-block-builder",
+ "sp-blockchain",
+ "sp-consensus",
+ "sp-consensus-aura",
+ "sp-core 28.0.0",
+ "sp-inherents",
+ "sp-keystore 0.34.0",
+ "sp-runtime 31.0.1",
+ "sp-state-machine 0.35.0",
+ "sp-timestamp",
+ "substrate-prometheus-endpoint",
+ "subxt",
+ "tracing",
+]
+
[[package]]
name = "magnet-primitives-order"
version = "0.2.0"
@@ -8460,6 +8506,7 @@ dependencies = [
"jsonrpsee",
"log",
"magnet-client-consensus-aura",
+ "magnet-client-coretime-bulk",
"magnet-primitives-order",
"mp-system",
"pallet-balances",
@@ -10339,9 +10386,9 @@ dependencies = [
[[package]]
name = "proc-macro2"
-version = "1.0.81"
+version = "1.0.85"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "3d1597b0c024618f09a9c3b8655b7e430397a36d23fdafec26d6965e9eec3eba"
+checksum = "22244ce15aa966053a896d1accb3a6e68469b97c7f33f284b99f0d576879fc23"
dependencies = [
"unicode-ident",
]
@@ -12510,9 +12557,9 @@ dependencies = [
[[package]]
name = "scale-info"
-version = "2.11.2"
+version = "2.11.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "7c453e59a955f81fb62ee5d596b450383d699f152d350e9d23a0db2adb78e4c0"
+checksum = "eca070c12893629e2cc820a9761bedf6ce1dcddc9852984d1dc734b8bd9bd024"
dependencies = [
"bitvec",
"cfg-if",
@@ -12524,11 +12571,11 @@ dependencies = [
[[package]]
name = "scale-info-derive"
-version = "2.11.2"
+version = "2.11.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "18cf6c6447f813ef19eb450e985bcce6705f9ce7660db221b59093d15c79c4b7"
+checksum = "2d35494501194174bda522a32605929eefc9ecf7e0a326c26db1fdd85881eb62"
dependencies = [
- "proc-macro-crate 1.3.1",
+ "proc-macro-crate 3.1.0",
"proc-macro2",
"quote",
"syn 1.0.109",
@@ -12775,9 +12822,9 @@ checksum = "388a1df253eca08550bef6c72392cfe7c30914bf41df5269b68cbd6ff8f570a3"
[[package]]
name = "serde"
-version = "1.0.198"
+version = "1.0.203"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "9846a40c979031340571da2545a4e5b7c4163bdae79b301d5f86d03979451fcc"
+checksum = "7253ab4de971e72fb7be983802300c30b5a7f0c2e56fab8abfc6a214307c0094"
dependencies = [
"serde_derive",
]
@@ -12793,9 +12840,9 @@ dependencies = [
[[package]]
name = "serde_derive"
-version = "1.0.198"
+version = "1.0.203"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "e88edab869b01783ba905e7d0153f9fc1a6505a96e4ad3018011eedb838566d9"
+checksum = "500cbc0ebeb6f46627f50f3f5811ccf6bf00643be300b4c3eabc0ef55dc5b5ba"
dependencies = [
"proc-macro2",
"quote",
@@ -12804,9 +12851,9 @@ dependencies = [
[[package]]
name = "serde_json"
-version = "1.0.116"
+version = "1.0.117"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "3e17db7126d17feb94eb3fad46bf1a96b034e8aacbc2e775fe81505f8b0b2813"
+checksum = "455182ea6142b14f93f4bc5320a2b31c1f266b66a4a5c858b013302a5d8cbfc3"
dependencies = [
"itoa",
"ryu",
@@ -13037,7 +13084,7 @@ dependencies = [
"fnv",
"futures-lite 1.13.0",
"futures-util",
- "hashbrown 0.14.3",
+ "hashbrown 0.14.5",
"hex",
"hmac 0.12.1",
"itertools 0.11.0",
@@ -13091,7 +13138,7 @@ dependencies = [
"fnv",
"futures-lite 2.3.0",
"futures-util",
- "hashbrown 0.14.3",
+ "hashbrown 0.14.5",
"hex",
"hmac 0.12.1",
"itertools 0.11.0",
@@ -13141,7 +13188,7 @@ dependencies = [
"futures-channel",
"futures-lite 1.13.0",
"futures-util",
- "hashbrown 0.14.3",
+ "hashbrown 0.14.5",
"hex",
"itertools 0.11.0",
"log",
@@ -13177,7 +13224,7 @@ dependencies = [
"futures-channel",
"futures-lite 2.3.0",
"futures-util",
- "hashbrown 0.14.3",
+ "hashbrown 0.14.5",
"hex",
"itertools 0.11.0",
"log",
@@ -15161,9 +15208,9 @@ checksum = "3369f5ac52d5eb6ab48c6b4ffdc8efbcad6b89c765749064ba298f2c68a16a76"
[[package]]
name = "thiserror"
-version = "1.0.58"
+version = "1.0.61"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "03468839009160513471e86a034bb2c5c0e4baae3b43f79ffc55c4a5427b3297"
+checksum = "c546c80d6be4bc6a00c0f01730c08df82eaa7a7a61f11d656526506112cc1709"
dependencies = [
"thiserror-impl",
]
@@ -15190,9 +15237,9 @@ dependencies = [
[[package]]
name = "thiserror-impl"
-version = "1.0.58"
+version = "1.0.61"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "c61f3ba182994efc43764a46c018c347bc492c79f024e705f46567b418f6d4f7"
+checksum = "46c3384250002a6d5af4d114f2845d37b57521033f30d5c3f46c4d70e1197533"
dependencies = [
"proc-macro2",
"quote",
@@ -15378,9 +15425,9 @@ dependencies = [
[[package]]
name = "tokio-util"
-version = "0.7.10"
+version = "0.7.11"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "5419f34732d9eb6ee4c3578b7989078579b7f039cbbb9ca2c4da015749371e15"
+checksum = "9cf6b47b3771c49ac75ad09a6162f53ad4b8088b76ac60e8ec1455b31a189fe1"
dependencies = [
"bytes",
"futures-core",
@@ -15388,7 +15435,6 @@ dependencies = [
"futures-sink",
"pin-project-lite 0.2.14",
"tokio",
- "tracing",
]
[[package]]
diff --git a/client/coretime/bulk/Cargo.toml b/client/coretime/bulk/Cargo.toml
new file mode 100644
index 0000000..bc5a7c1
--- /dev/null
+++ b/client/coretime/bulk/Cargo.toml
@@ -0,0 +1,56 @@
+[package]
+name = "magnet-client-coretime-bulk"
+authors = ["Anonymous"]
+description = "magnet-coretime"
+license = "Apache License 2.0"
+homepage = "https://magnet.magport.io/"
+repository.workspace = true
+edition.workspace = true
+version = "0.1.0"
+
+[dependencies]
+async-trait = { workspace = true }
+codec = { package = "parity-scale-codec", workspace = true, features = [ "derive" ] }
+futures = { workspace = true }
+tracing = { workspace = true }
+schnellru = { workspace = true }
+log = { workspace = true }
+subxt = { workspace = true, features = ["substrate-compat"]}
+
+# Substrate
+sc-client-api = { workspace = true }
+sc-consensus = { workspace = true }
+sc-consensus-aura = { workspace = true }
+sc-consensus-babe = { workspace = true }
+sc-consensus-slots = { workspace = true }
+sc-telemetry = { workspace = true }
+sp-api = { workspace = true }
+sp-application-crypto = { workspace = true }
+sp-block-builder = { workspace = true }
+sp-blockchain = { workspace = true }
+sp-consensus = { workspace = true }
+sp-consensus-aura = { workspace = true }
+sp-core = { workspace = true }
+sp-inherents = { workspace = true }
+sp-keystore = { workspace = true }
+sp-runtime = { workspace = true }
+sp-timestamp = { workspace = true }
+sp-state-machine = { workspace = true }
+substrate-prometheus-endpoint = { workspace = true }
+sc-service = { workspace = true }
+
+# Cumulus
+cumulus-client-consensus-common = { workspace = true }
+cumulus-client-parachain-inherent = { workspace = true }
+cumulus-relay-chain-interface = { workspace = true }
+cumulus-client-consensus-proposer = { workspace = true }
+cumulus-primitives-aura = { workspace = true }
+cumulus-primitives-core = { workspace = true }
+cumulus-primitives-parachain-inherent = { workspace = true }
+cumulus-client-collator = { workspace = true }
+cumulus-client-consensus-aura= { workspace = true }
+# Polkadot
+polkadot-primitives = { workspace = true }
+polkadot-node-primitives = { workspace = true }
+polkadot-node-subsystem = { workspace = true }
+polkadot-overseer = { workspace = true }
diff --git a/client/coretime/bulk/src/lib.rs b/client/coretime/bulk/src/lib.rs
new file mode 100644
index 0000000..7de61d0
--- /dev/null
+++ b/client/coretime/bulk/src/lib.rs
@@ -0,0 +1,66 @@
+// Copyright (C) Magnet.
+// This file is part of Magnet.
+
+// Magnet is free software: you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation, either version 3 of the License, or
+// (at your option) any later version.
+
+// Magnet is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+
+// You should have received a copy of the GNU General Public License
+// along with Magnet. If not, see .
+use cumulus_primitives_core::BlockT;
+use cumulus_primitives_core::ParaId;
+use cumulus_relay_chain_interface::RelayChainInterface;
+use sc_client_api::UsageProvider;
+use sc_service::TaskManager;
+use sp_api::ProvideRuntimeApi;
+use std::error::Error;
+use std::sync::Arc;
+mod metadata;
+use subxt::client::OfflineClientT;
+use subxt::{
+ config::polkadot::PolkadotExtrinsicParamsBuilder as Params, tx::Signer, utils::MultiSignature,
+ Config, OnlineClient, PolkadotConfig,
+};
+
+pub fn spawn_bulk_task(
+ parachain: Arc,
+ para_id: ParaId,
+ relay_chain: R,
+ task_manager: &TaskManager,
+) -> sc_service::error::Result<()>
+where
+ Block: BlockT,
+ R: RelayChainInterface + Clone + 'static,
+ T: Send + Sync + 'static + ProvideRuntimeApi + UsageProvider,
+{
+ task_manager.spawn_essential_handle().spawn("bulk task", "magport", {
+ let parachain = parachain.clone();
+
+ async move {
+ let api = OnlineClient::::from_url("127.0.0.1:8855").await.unwrap();
+
+ loop {
+ let events = api.events().at_latest().await.unwrap();
+
+ // We can dynamically decode events:
+ println!("Dynamic event details:");
+ for event in events.iter() {
+ let event = event.unwrap();
+
+ let pallet = event.pallet_name();
+ let variant = event.variant_name();
+ let field_values = event.field_values().unwrap();
+
+ println!("{pallet}::{variant}: {field_values}");
+ }
+ }
+ }
+ });
+ Ok(())
+}
diff --git a/client/coretime/bulk/src/metadata.rs b/client/coretime/bulk/src/metadata.rs
new file mode 100644
index 0000000..5805941
--- /dev/null
+++ b/client/coretime/bulk/src/metadata.rs
@@ -0,0 +1,19308 @@
+#[allow(dead_code, unused_imports, non_camel_case_types)]
+#[allow(clippy::all)]
+#[allow(rustdoc::broken_intra_doc_links)]
+pub mod api {
+ #[allow(unused_imports)]
+ mod root_mod {
+ pub use super::*;
+ }
+ pub static PALLETS: [&str; 19usize] = [
+ "System",
+ "ParachainSystem",
+ "Timestamp",
+ "ParachainInfo",
+ "Balances",
+ "TransactionPayment",
+ "Authorship",
+ "CollatorSelection",
+ "Session",
+ "Aura",
+ "AuraExt",
+ "XcmpQueue",
+ "PolkadotXcm",
+ "CumulusXcm",
+ "MessageQueue",
+ "Utility",
+ "Multisig",
+ "Broker",
+ "Sudo",
+ ];
+ pub static RUNTIME_APIS: [&str; 12usize] = [
+ "AuraApi",
+ "Core",
+ "Metadata",
+ "BlockBuilder",
+ "TaggedTransactionQueue",
+ "OffchainWorkerApi",
+ "SessionKeys",
+ "AccountNonceApi",
+ "TransactionPaymentApi",
+ "TransactionPaymentCallApi",
+ "CollectCollationInfo",
+ "GenesisBuilder",
+ ];
+ #[doc = r" The error type returned when there is a runtime issue."]
+ pub type DispatchError = runtime_types::sp_runtime::DispatchError;
+ #[doc = r" The outer event enum."]
+ pub type Event = runtime_types::coretime_rococo_runtime::RuntimeEvent;
+ #[doc = r" The outer extrinsic enum."]
+ pub type Call = runtime_types::coretime_rococo_runtime::RuntimeCall;
+ #[doc = r" The outer error enum representing the DispatchError's Module variant."]
+ pub type Error = runtime_types::coretime_rococo_runtime::RuntimeError;
+ pub fn constants() -> ConstantsApi {
+ ConstantsApi
+ }
+ pub fn storage() -> StorageApi {
+ StorageApi
+ }
+ pub fn tx() -> TransactionApi {
+ TransactionApi
+ }
+ pub fn apis() -> runtime_apis::RuntimeApi {
+ runtime_apis::RuntimeApi
+ }
+ pub mod runtime_apis {
+ use super::root_mod;
+ use super::runtime_types;
+ use subxt::ext::codec::Encode;
+ pub struct RuntimeApi;
+ impl RuntimeApi {
+ pub fn aura_api(&self) -> aura_api::AuraApi {
+ aura_api::AuraApi
+ }
+ 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 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 collect_collation_info(&self) -> collect_collation_info::CollectCollationInfo {
+ collect_collation_info::CollectCollationInfo
+ }
+ pub fn genesis_builder(&self) -> genesis_builder::GenesisBuilder {
+ genesis_builder::GenesisBuilder
+ }
+ }
+ pub mod aura_api {
+ use super::root_mod;
+ use super::runtime_types;
+ #[doc = " API necessary for block authorship with aura."]
+ pub struct AuraApi;
+ impl AuraApi {
+ #[doc = " Returns the slot duration for Aura."]
+ #[doc = ""]
+ #[doc = " Currently, only the value provided by this type at genesis will be used."]
+ pub fn slot_duration(
+ &self,
+ ) -> ::subxt::runtime_api::Payload<
+ types::SlotDuration,
+ runtime_types::sp_consensus_slots::SlotDuration,
+ > {
+ ::subxt::runtime_api::Payload::new_static(
+ "AuraApi",
+ "slot_duration",
+ types::SlotDuration {},
+ [
+ 233u8, 210u8, 132u8, 172u8, 100u8, 125u8, 239u8, 92u8, 114u8, 82u8,
+ 7u8, 110u8, 179u8, 196u8, 10u8, 19u8, 211u8, 15u8, 174u8, 2u8, 91u8,
+ 73u8, 133u8, 100u8, 205u8, 201u8, 191u8, 60u8, 163u8, 122u8, 215u8,
+ 10u8,
+ ],
+ )
+ }
+ #[doc = " Return the current set of authorities."]
+ pub fn authorities(
+ &self,
+ ) -> ::subxt::runtime_api::Payload<
+ types::Authorities,
+ ::std::vec::Vec,
+ > {
+ ::subxt::runtime_api::Payload::new_static(
+ "AuraApi",
+ "authorities",
+ types::Authorities {},
+ [
+ 96u8, 136u8, 226u8, 244u8, 105u8, 189u8, 8u8, 250u8, 71u8, 230u8, 37u8,
+ 123u8, 218u8, 47u8, 179u8, 16u8, 170u8, 181u8, 165u8, 77u8, 102u8,
+ 51u8, 43u8, 51u8, 186u8, 84u8, 49u8, 15u8, 208u8, 226u8, 129u8, 230u8,
+ ],
+ )
+ }
+ }
+ pub mod types {
+ use super::runtime_types;
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ pub struct SlotDuration {}
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ pub struct Authorities {}
+ }
+ }
+ pub mod core {
+ use super::root_mod;
+ use super::runtime_types;
+ #[doc = " The `Core` runtime api that every Substrate runtime needs to implement."]
+ pub struct Core;
+ impl Core {
+ #[doc = " Returns the version of the runtime."]
+ pub fn version(
+ &self,
+ ) -> ::subxt::runtime_api::Payload<
+ types::Version,
+ runtime_types::sp_version::RuntimeVersion,
+ > {
+ ::subxt::runtime_api::Payload::new_static(
+ "Core",
+ "version",
+ types::Version {},
+ [
+ 76u8, 202u8, 17u8, 117u8, 189u8, 237u8, 239u8, 237u8, 151u8, 17u8,
+ 125u8, 159u8, 218u8, 92u8, 57u8, 238u8, 64u8, 147u8, 40u8, 72u8, 157u8,
+ 116u8, 37u8, 195u8, 156u8, 27u8, 123u8, 173u8, 178u8, 102u8, 136u8,
+ 6u8,
+ ],
+ )
+ }
+ #[doc = " Execute the given block."]
+ pub fn execute_block(
+ &self,
+ block : runtime_types :: sp_runtime :: generic :: block :: Block < runtime_types :: sp_runtime :: generic :: header :: Header < :: core :: primitive :: u32 > , :: subxt :: utils :: UncheckedExtrinsic < :: subxt :: utils :: MultiAddress < :: subxt :: utils :: AccountId32 , () > , runtime_types :: coretime_rococo_runtime :: RuntimeCall , runtime_types :: sp_runtime :: MultiSignature , (runtime_types :: frame_system :: extensions :: check_non_zero_sender :: CheckNonZeroSender , runtime_types :: frame_system :: extensions :: check_spec_version :: CheckSpecVersion , runtime_types :: frame_system :: extensions :: check_tx_version :: CheckTxVersion , runtime_types :: frame_system :: extensions :: check_genesis :: CheckGenesis , runtime_types :: frame_system :: extensions :: check_mortality :: CheckMortality , runtime_types :: frame_system :: extensions :: check_nonce :: CheckNonce , runtime_types :: frame_system :: extensions :: check_weight :: CheckWeight , runtime_types :: pallet_transaction_payment :: ChargeTransactionPayment ,) > >,
+ ) -> ::subxt::runtime_api::Payload {
+ ::subxt::runtime_api::Payload::new_static(
+ "Core",
+ "execute_block",
+ types::ExecuteBlock { block },
+ [
+ 133u8, 135u8, 228u8, 65u8, 106u8, 27u8, 85u8, 158u8, 112u8, 254u8,
+ 93u8, 26u8, 102u8, 201u8, 118u8, 216u8, 249u8, 247u8, 91u8, 74u8, 56u8,
+ 208u8, 231u8, 115u8, 131u8, 29u8, 209u8, 6u8, 65u8, 57u8, 214u8, 125u8,
+ ],
+ )
+ }
+ #[doc = " Initialize a block with the given header."]
+ pub fn initialize_block(
+ &self,
+ header: runtime_types::sp_runtime::generic::header::Header<
+ ::core::primitive::u32,
+ >,
+ ) -> ::subxt::runtime_api::Payload {
+ ::subxt::runtime_api::Payload::new_static(
+ "Core",
+ "initialize_block",
+ types::InitializeBlock { header },
+ [
+ 146u8, 138u8, 72u8, 240u8, 63u8, 96u8, 110u8, 189u8, 77u8, 92u8, 96u8,
+ 232u8, 41u8, 217u8, 105u8, 148u8, 83u8, 190u8, 152u8, 219u8, 19u8,
+ 87u8, 163u8, 1u8, 232u8, 25u8, 221u8, 74u8, 224u8, 67u8, 223u8, 34u8,
+ ],
+ )
+ }
+ }
+ pub mod types {
+ use super::runtime_types;
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ pub struct Version {}
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ pub struct ExecuteBlock { pub block : runtime_types :: sp_runtime :: generic :: block :: Block < runtime_types :: sp_runtime :: generic :: header :: Header < :: core :: primitive :: u32 > , :: subxt :: utils :: UncheckedExtrinsic < :: subxt :: utils :: MultiAddress < :: subxt :: utils :: AccountId32 , () > , runtime_types :: coretime_rococo_runtime :: RuntimeCall , runtime_types :: sp_runtime :: MultiSignature , (runtime_types :: frame_system :: extensions :: check_non_zero_sender :: CheckNonZeroSender , runtime_types :: frame_system :: extensions :: check_spec_version :: CheckSpecVersion , runtime_types :: frame_system :: extensions :: check_tx_version :: CheckTxVersion , runtime_types :: frame_system :: extensions :: check_genesis :: CheckGenesis , runtime_types :: frame_system :: extensions :: check_mortality :: CheckMortality , runtime_types :: frame_system :: extensions :: check_nonce :: CheckNonce , runtime_types :: frame_system :: extensions :: check_weight :: CheckWeight , runtime_types :: pallet_transaction_payment :: ChargeTransactionPayment ,) > > , }
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ pub struct InitializeBlock {
+ pub header:
+ runtime_types::sp_runtime::generic::header::Header<::core::primitive::u32>,
+ }
+ }
+ }
+ pub mod metadata {
+ use super::root_mod;
+ use super::runtime_types;
+ #[doc = " The `Metadata` api trait that returns metadata for the runtime."]
+ pub struct Metadata;
+ impl Metadata {
+ #[doc = " Returns the metadata of a runtime."]
+ pub fn metadata(
+ &self,
+ ) -> ::subxt::runtime_api::Payload<
+ types::Metadata,
+ runtime_types::sp_core::OpaqueMetadata,
+ > {
+ ::subxt::runtime_api::Payload::new_static(
+ "Metadata",
+ "metadata",
+ types::Metadata {},
+ [
+ 231u8, 24u8, 67u8, 152u8, 23u8, 26u8, 188u8, 82u8, 229u8, 6u8, 185u8,
+ 27u8, 175u8, 68u8, 83u8, 122u8, 69u8, 89u8, 185u8, 74u8, 248u8, 87u8,
+ 217u8, 124u8, 193u8, 252u8, 199u8, 186u8, 196u8, 179u8, 179u8, 96u8,
+ ],
+ )
+ }
+ #[doc = " Returns the metadata at a given version."]
+ #[doc = ""]
+ #[doc = " If the given `version` isn't supported, this will return `None`."]
+ #[doc = " Use [`Self::metadata_versions`] to find out about supported metadata version of the runtime."]
+ pub fn metadata_at_version(
+ &self,
+ version: ::core::primitive::u32,
+ ) -> ::subxt::runtime_api::Payload<
+ types::MetadataAtVersion,
+ ::core::option::Option,
+ > {
+ ::subxt::runtime_api::Payload::new_static(
+ "Metadata",
+ "metadata_at_version",
+ types::MetadataAtVersion { version },
+ [
+ 131u8, 53u8, 212u8, 234u8, 16u8, 25u8, 120u8, 252u8, 153u8, 153u8,
+ 216u8, 28u8, 54u8, 113u8, 52u8, 236u8, 146u8, 68u8, 142u8, 8u8, 10u8,
+ 169u8, 131u8, 142u8, 204u8, 38u8, 48u8, 108u8, 134u8, 86u8, 226u8,
+ 61u8,
+ ],
+ )
+ }
+ #[doc = " Returns the supported metadata versions."]
+ #[doc = ""]
+ #[doc = " This can be used to call `metadata_at_version`."]
+ pub fn metadata_versions(
+ &self,
+ ) -> ::subxt::runtime_api::Payload<
+ types::MetadataVersions,
+ ::std::vec::Vec<::core::primitive::u32>,
+ > {
+ ::subxt::runtime_api::Payload::new_static(
+ "Metadata",
+ "metadata_versions",
+ types::MetadataVersions {},
+ [
+ 23u8, 144u8, 137u8, 91u8, 188u8, 39u8, 231u8, 208u8, 252u8, 218u8,
+ 224u8, 176u8, 77u8, 32u8, 130u8, 212u8, 223u8, 76u8, 100u8, 190u8,
+ 82u8, 94u8, 190u8, 8u8, 82u8, 244u8, 225u8, 179u8, 85u8, 176u8, 56u8,
+ 16u8,
+ ],
+ )
+ }
+ }
+ pub mod types {
+ use super::runtime_types;
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ pub struct Metadata {}
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ pub struct MetadataAtVersion {
+ pub version: ::core::primitive::u32,
+ }
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ pub struct MetadataVersions {}
+ }
+ }
+ pub mod block_builder {
+ use super::root_mod;
+ use super::runtime_types;
+ #[doc = " The `BlockBuilder` api trait that provides the required functionality for building a block."]
+ pub struct BlockBuilder;
+ impl BlockBuilder {
+ #[doc = " Apply the given extrinsic."]
+ #[doc = ""]
+ #[doc = " Returns an inclusion outcome which specifies if this extrinsic is included in"]
+ #[doc = " this block or not."]
+ pub fn apply_extrinsic(
+ &self,
+ extrinsic : :: subxt :: utils :: UncheckedExtrinsic < :: subxt :: utils :: MultiAddress < :: subxt :: utils :: AccountId32 , () > , runtime_types :: coretime_rococo_runtime :: RuntimeCall , runtime_types :: sp_runtime :: MultiSignature , (runtime_types :: frame_system :: extensions :: check_non_zero_sender :: CheckNonZeroSender , runtime_types :: frame_system :: extensions :: check_spec_version :: CheckSpecVersion , runtime_types :: frame_system :: extensions :: check_tx_version :: CheckTxVersion , runtime_types :: frame_system :: extensions :: check_genesis :: CheckGenesis , runtime_types :: frame_system :: extensions :: check_mortality :: CheckMortality , runtime_types :: frame_system :: extensions :: check_nonce :: CheckNonce , runtime_types :: frame_system :: extensions :: check_weight :: CheckWeight , runtime_types :: pallet_transaction_payment :: ChargeTransactionPayment ,) >,
+ ) -> ::subxt::runtime_api::Payload<
+ types::ApplyExtrinsic,
+ ::core::result::Result<
+ ::core::result::Result<(), runtime_types::sp_runtime::DispatchError>,
+ runtime_types::sp_runtime::transaction_validity::TransactionValidityError,
+ >,
+ > {
+ ::subxt::runtime_api::Payload::new_static(
+ "BlockBuilder",
+ "apply_extrinsic",
+ types::ApplyExtrinsic { extrinsic },
+ [
+ 72u8, 54u8, 139u8, 3u8, 118u8, 136u8, 65u8, 47u8, 6u8, 105u8, 125u8,
+ 223u8, 160u8, 29u8, 103u8, 74u8, 79u8, 149u8, 48u8, 90u8, 237u8, 2u8,
+ 97u8, 201u8, 123u8, 34u8, 167u8, 37u8, 187u8, 35u8, 176u8, 97u8,
+ ],
+ )
+ }
+ #[doc = " Finish the current block."]
+ pub fn finalize_block(
+ &self,
+ ) -> ::subxt::runtime_api::Payload<
+ types::FinalizeBlock,
+ runtime_types::sp_runtime::generic::header::Header<::core::primitive::u32>,
+ > {
+ ::subxt::runtime_api::Payload::new_static(
+ "BlockBuilder",
+ "finalize_block",
+ types::FinalizeBlock {},
+ [
+ 244u8, 207u8, 24u8, 33u8, 13u8, 69u8, 9u8, 249u8, 145u8, 143u8, 122u8,
+ 96u8, 197u8, 55u8, 64u8, 111u8, 238u8, 224u8, 34u8, 201u8, 27u8, 146u8,
+ 232u8, 99u8, 191u8, 30u8, 114u8, 16u8, 32u8, 220u8, 58u8, 62u8,
+ ],
+ )
+ }
+ #[doc = " Generate inherent extrinsics. The inherent data will vary from chain to chain."] pub fn inherent_extrinsics (& self , inherent : runtime_types :: sp_inherents :: InherentData ,) -> :: subxt :: runtime_api :: Payload < types :: InherentExtrinsics , :: std :: vec :: Vec < :: subxt :: utils :: UncheckedExtrinsic < :: subxt :: utils :: MultiAddress < :: subxt :: utils :: AccountId32 , () > , runtime_types :: coretime_rococo_runtime :: RuntimeCall , runtime_types :: sp_runtime :: MultiSignature , (runtime_types :: frame_system :: extensions :: check_non_zero_sender :: CheckNonZeroSender , runtime_types :: frame_system :: extensions :: check_spec_version :: CheckSpecVersion , runtime_types :: frame_system :: extensions :: check_tx_version :: CheckTxVersion , runtime_types :: frame_system :: extensions :: check_genesis :: CheckGenesis , runtime_types :: frame_system :: extensions :: check_mortality :: CheckMortality , runtime_types :: frame_system :: extensions :: check_nonce :: CheckNonce , runtime_types :: frame_system :: extensions :: check_weight :: CheckWeight , runtime_types :: pallet_transaction_payment :: ChargeTransactionPayment ,) > > >{
+ ::subxt::runtime_api::Payload::new_static(
+ "BlockBuilder",
+ "inherent_extrinsics",
+ types::InherentExtrinsics { inherent },
+ [
+ 254u8, 110u8, 245u8, 201u8, 250u8, 192u8, 27u8, 228u8, 151u8, 213u8,
+ 166u8, 89u8, 94u8, 81u8, 189u8, 234u8, 64u8, 18u8, 245u8, 80u8, 29u8,
+ 18u8, 140u8, 129u8, 113u8, 236u8, 135u8, 55u8, 79u8, 159u8, 175u8,
+ 183u8,
+ ],
+ )
+ }
+ #[doc = " Check that the inherents are valid. The inherent data will vary from chain to chain."]
+ pub fn check_inherents(
+ &self,
+ block : runtime_types :: sp_runtime :: generic :: block :: Block < runtime_types :: sp_runtime :: generic :: header :: Header < :: core :: primitive :: u32 > , :: subxt :: utils :: UncheckedExtrinsic < :: subxt :: utils :: MultiAddress < :: subxt :: utils :: AccountId32 , () > , runtime_types :: coretime_rococo_runtime :: RuntimeCall , runtime_types :: sp_runtime :: MultiSignature , (runtime_types :: frame_system :: extensions :: check_non_zero_sender :: CheckNonZeroSender , runtime_types :: frame_system :: extensions :: check_spec_version :: CheckSpecVersion , runtime_types :: frame_system :: extensions :: check_tx_version :: CheckTxVersion , runtime_types :: frame_system :: extensions :: check_genesis :: CheckGenesis , runtime_types :: frame_system :: extensions :: check_mortality :: CheckMortality , runtime_types :: frame_system :: extensions :: check_nonce :: CheckNonce , runtime_types :: frame_system :: extensions :: check_weight :: CheckWeight , runtime_types :: pallet_transaction_payment :: ChargeTransactionPayment ,) > >,
+ data: runtime_types::sp_inherents::InherentData,
+ ) -> ::subxt::runtime_api::Payload<
+ types::CheckInherents,
+ runtime_types::sp_inherents::CheckInherentsResult,
+ > {
+ ::subxt::runtime_api::Payload::new_static(
+ "BlockBuilder",
+ "check_inherents",
+ types::CheckInherents { block, data },
+ [
+ 153u8, 134u8, 1u8, 215u8, 139u8, 11u8, 53u8, 51u8, 210u8, 175u8, 197u8,
+ 28u8, 38u8, 209u8, 175u8, 247u8, 142u8, 157u8, 50u8, 151u8, 164u8,
+ 191u8, 181u8, 118u8, 80u8, 97u8, 160u8, 248u8, 110u8, 217u8, 181u8,
+ 234u8,
+ ],
+ )
+ }
+ }
+ pub mod types {
+ use super::runtime_types;
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ pub struct ApplyExtrinsic { pub extrinsic : :: subxt :: utils :: UncheckedExtrinsic < :: subxt :: utils :: MultiAddress < :: subxt :: utils :: AccountId32 , () > , runtime_types :: coretime_rococo_runtime :: RuntimeCall , runtime_types :: sp_runtime :: MultiSignature , (runtime_types :: frame_system :: extensions :: check_non_zero_sender :: CheckNonZeroSender , runtime_types :: frame_system :: extensions :: check_spec_version :: CheckSpecVersion , runtime_types :: frame_system :: extensions :: check_tx_version :: CheckTxVersion , runtime_types :: frame_system :: extensions :: check_genesis :: CheckGenesis , runtime_types :: frame_system :: extensions :: check_mortality :: CheckMortality , runtime_types :: frame_system :: extensions :: check_nonce :: CheckNonce , runtime_types :: frame_system :: extensions :: check_weight :: CheckWeight , runtime_types :: pallet_transaction_payment :: ChargeTransactionPayment ,) > , }
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ pub struct FinalizeBlock {}
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ pub struct InherentExtrinsics {
+ pub inherent: runtime_types::sp_inherents::InherentData,
+ }
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ pub struct CheckInherents { pub block : runtime_types :: sp_runtime :: generic :: block :: Block < runtime_types :: sp_runtime :: generic :: header :: Header < :: core :: primitive :: u32 > , :: subxt :: utils :: UncheckedExtrinsic < :: subxt :: utils :: MultiAddress < :: subxt :: utils :: AccountId32 , () > , runtime_types :: coretime_rococo_runtime :: RuntimeCall , runtime_types :: sp_runtime :: MultiSignature , (runtime_types :: frame_system :: extensions :: check_non_zero_sender :: CheckNonZeroSender , runtime_types :: frame_system :: extensions :: check_spec_version :: CheckSpecVersion , runtime_types :: frame_system :: extensions :: check_tx_version :: CheckTxVersion , runtime_types :: frame_system :: extensions :: check_genesis :: CheckGenesis , runtime_types :: frame_system :: extensions :: check_mortality :: CheckMortality , runtime_types :: frame_system :: extensions :: check_nonce :: CheckNonce , runtime_types :: frame_system :: extensions :: check_weight :: CheckWeight , runtime_types :: pallet_transaction_payment :: ChargeTransactionPayment ,) > > , pub data : runtime_types :: sp_inherents :: InherentData , }
+ }
+ }
+ pub mod tagged_transaction_queue {
+ use super::root_mod;
+ use super::runtime_types;
+ #[doc = " The `TaggedTransactionQueue` api trait for interfering with the transaction queue."]
+ pub struct TaggedTransactionQueue;
+ impl TaggedTransactionQueue {
+ #[doc = " Validate the transaction."]
+ #[doc = ""]
+ #[doc = " This method is invoked by the transaction pool to learn details about given transaction."]
+ #[doc = " The implementation should make sure to verify the correctness of the transaction"]
+ #[doc = " against current state. The given `block_hash` corresponds to the hash of the block"]
+ #[doc = " that is used as current state."]
+ #[doc = ""]
+ #[doc = " Note that this call may be performed by the pool multiple times and transactions"]
+ #[doc = " might be verified in any possible order."]
+ pub fn validate_transaction(
+ &self,
+ source: runtime_types::sp_runtime::transaction_validity::TransactionSource,
+ tx : :: subxt :: utils :: UncheckedExtrinsic < :: subxt :: utils :: MultiAddress < :: subxt :: utils :: AccountId32 , () > , runtime_types :: coretime_rococo_runtime :: RuntimeCall , runtime_types :: sp_runtime :: MultiSignature , (runtime_types :: frame_system :: extensions :: check_non_zero_sender :: CheckNonZeroSender , runtime_types :: frame_system :: extensions :: check_spec_version :: CheckSpecVersion , runtime_types :: frame_system :: extensions :: check_tx_version :: CheckTxVersion , runtime_types :: frame_system :: extensions :: check_genesis :: CheckGenesis , runtime_types :: frame_system :: extensions :: check_mortality :: CheckMortality , runtime_types :: frame_system :: extensions :: check_nonce :: CheckNonce , runtime_types :: frame_system :: extensions :: check_weight :: CheckWeight , runtime_types :: pallet_transaction_payment :: ChargeTransactionPayment ,) >,
+ block_hash: ::subxt::utils::H256,
+ ) -> ::subxt::runtime_api::Payload<
+ types::ValidateTransaction,
+ ::core::result::Result<
+ runtime_types::sp_runtime::transaction_validity::ValidTransaction,
+ runtime_types::sp_runtime::transaction_validity::TransactionValidityError,
+ >,
+ > {
+ ::subxt::runtime_api::Payload::new_static(
+ "TaggedTransactionQueue",
+ "validate_transaction",
+ types::ValidateTransaction { source, tx, block_hash },
+ [
+ 196u8, 50u8, 90u8, 49u8, 109u8, 251u8, 200u8, 35u8, 23u8, 150u8, 140u8,
+ 143u8, 232u8, 164u8, 133u8, 89u8, 32u8, 240u8, 115u8, 39u8, 95u8, 70u8,
+ 162u8, 76u8, 122u8, 73u8, 151u8, 144u8, 234u8, 120u8, 100u8, 29u8,
+ ],
+ )
+ }
+ }
+ pub mod types {
+ use super::runtime_types;
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ pub struct ValidateTransaction { pub source : runtime_types :: sp_runtime :: transaction_validity :: TransactionSource , pub tx : :: subxt :: utils :: UncheckedExtrinsic < :: subxt :: utils :: MultiAddress < :: subxt :: utils :: AccountId32 , () > , runtime_types :: coretime_rococo_runtime :: RuntimeCall , runtime_types :: sp_runtime :: MultiSignature , (runtime_types :: frame_system :: extensions :: check_non_zero_sender :: CheckNonZeroSender , runtime_types :: frame_system :: extensions :: check_spec_version :: CheckSpecVersion , runtime_types :: frame_system :: extensions :: check_tx_version :: CheckTxVersion , runtime_types :: frame_system :: extensions :: check_genesis :: CheckGenesis , runtime_types :: frame_system :: extensions :: check_mortality :: CheckMortality , runtime_types :: frame_system :: extensions :: check_nonce :: CheckNonce , runtime_types :: frame_system :: extensions :: check_weight :: CheckWeight , runtime_types :: pallet_transaction_payment :: ChargeTransactionPayment ,) > , pub block_hash : :: subxt :: utils :: H256 , }
+ }
+ }
+ pub mod offchain_worker_api {
+ use super::root_mod;
+ use super::runtime_types;
+ #[doc = " The offchain worker api."]
+ pub struct OffchainWorkerApi;
+ impl OffchainWorkerApi {
+ #[doc = " Starts the off-chain task for given block header."]
+ pub fn offchain_worker(
+ &self,
+ header: runtime_types::sp_runtime::generic::header::Header<
+ ::core::primitive::u32,
+ >,
+ ) -> ::subxt::runtime_api::Payload {
+ ::subxt::runtime_api::Payload::new_static(
+ "OffchainWorkerApi",
+ "offchain_worker",
+ types::OffchainWorker { header },
+ [
+ 10u8, 135u8, 19u8, 153u8, 33u8, 216u8, 18u8, 242u8, 33u8, 140u8, 4u8,
+ 223u8, 200u8, 130u8, 103u8, 118u8, 137u8, 24u8, 19u8, 127u8, 161u8,
+ 29u8, 184u8, 111u8, 222u8, 111u8, 253u8, 73u8, 45u8, 31u8, 79u8, 60u8,
+ ],
+ )
+ }
+ }
+ pub mod types {
+ use super::runtime_types;
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ pub struct OffchainWorker {
+ pub header:
+ runtime_types::sp_runtime::generic::header::Header<::core::primitive::u32>,
+ }
+ }
+ }
+ pub mod session_keys {
+ use super::root_mod;
+ use super::runtime_types;
+ #[doc = " Session keys runtime api."]
+ pub struct SessionKeys;
+ impl SessionKeys {
+ #[doc = " Generate a set of session keys with optionally using the given seed."]
+ #[doc = " The keys should be stored within the keystore exposed via runtime"]
+ #[doc = " externalities."]
+ #[doc = ""]
+ #[doc = " The seed needs to be a valid `utf8` string."]
+ #[doc = ""]
+ #[doc = " Returns the concatenated SCALE encoded public keys."]
+ pub fn generate_session_keys(
+ &self,
+ seed: ::core::option::Option<::std::vec::Vec<::core::primitive::u8>>,
+ ) -> ::subxt::runtime_api::Payload<
+ types::GenerateSessionKeys,
+ ::std::vec::Vec<::core::primitive::u8>,
+ > {
+ ::subxt::runtime_api::Payload::new_static(
+ "SessionKeys",
+ "generate_session_keys",
+ types::GenerateSessionKeys { seed },
+ [
+ 96u8, 171u8, 164u8, 166u8, 175u8, 102u8, 101u8, 47u8, 133u8, 95u8,
+ 102u8, 202u8, 83u8, 26u8, 238u8, 47u8, 126u8, 132u8, 22u8, 11u8, 33u8,
+ 190u8, 175u8, 94u8, 58u8, 245u8, 46u8, 80u8, 195u8, 184u8, 107u8, 65u8,
+ ],
+ )
+ }
+ #[doc = " Decode the given public session keys."]
+ #[doc = ""]
+ #[doc = " Returns the list of public raw public keys + key type."]
+ pub fn decode_session_keys(
+ &self,
+ encoded: ::std::vec::Vec<::core::primitive::u8>,
+ ) -> ::subxt::runtime_api::Payload<
+ types::DecodeSessionKeys,
+ ::core::option::Option<
+ ::std::vec::Vec<(
+ ::std::vec::Vec<::core::primitive::u8>,
+ runtime_types::sp_core::crypto::KeyTypeId,
+ )>,
+ >,
+ > {
+ ::subxt::runtime_api::Payload::new_static(
+ "SessionKeys",
+ "decode_session_keys",
+ types::DecodeSessionKeys { encoded },
+ [
+ 57u8, 242u8, 18u8, 51u8, 132u8, 110u8, 238u8, 255u8, 39u8, 194u8, 8u8,
+ 54u8, 198u8, 178u8, 75u8, 151u8, 148u8, 176u8, 144u8, 197u8, 87u8,
+ 29u8, 179u8, 235u8, 176u8, 78u8, 252u8, 103u8, 72u8, 203u8, 151u8,
+ 248u8,
+ ],
+ )
+ }
+ }
+ pub mod types {
+ use super::runtime_types;
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ pub struct GenerateSessionKeys {
+ pub seed: ::core::option::Option<::std::vec::Vec<::core::primitive::u8>>,
+ }
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ pub struct DecodeSessionKeys {
+ pub encoded: ::std::vec::Vec<::core::primitive::u8>,
+ }
+ }
+ }
+ pub mod account_nonce_api {
+ use super::root_mod;
+ use super::runtime_types;
+ #[doc = " The API to query account nonce."]
+ pub struct AccountNonceApi;
+ impl AccountNonceApi {
+ #[doc = " Get current account nonce of given `AccountId`."]
+ pub fn account_nonce(
+ &self,
+ account: ::subxt::utils::AccountId32,
+ ) -> ::subxt::runtime_api::Payload {
+ ::subxt::runtime_api::Payload::new_static(
+ "AccountNonceApi",
+ "account_nonce",
+ types::AccountNonce { account },
+ [
+ 231u8, 82u8, 7u8, 227u8, 131u8, 2u8, 215u8, 252u8, 173u8, 82u8, 11u8,
+ 103u8, 200u8, 25u8, 114u8, 116u8, 79u8, 229u8, 152u8, 150u8, 236u8,
+ 37u8, 101u8, 26u8, 220u8, 146u8, 182u8, 101u8, 73u8, 55u8, 191u8,
+ 171u8,
+ ],
+ )
+ }
+ }
+ pub mod types {
+ use super::runtime_types;
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ pub struct AccountNonce {
+ pub account: ::subxt::utils::AccountId32,
+ }
+ }
+ }
+ pub mod transaction_payment_api {
+ use super::root_mod;
+ use super::runtime_types;
+ pub struct TransactionPaymentApi;
+ impl TransactionPaymentApi {
+ pub fn query_info(
+ &self,
+ uxt : :: subxt :: utils :: UncheckedExtrinsic < :: subxt :: utils :: MultiAddress < :: subxt :: utils :: AccountId32 , () > , runtime_types :: coretime_rococo_runtime :: RuntimeCall , runtime_types :: sp_runtime :: MultiSignature , (runtime_types :: frame_system :: extensions :: check_non_zero_sender :: CheckNonZeroSender , runtime_types :: frame_system :: extensions :: check_spec_version :: CheckSpecVersion , runtime_types :: frame_system :: extensions :: check_tx_version :: CheckTxVersion , runtime_types :: frame_system :: extensions :: check_genesis :: CheckGenesis , runtime_types :: frame_system :: extensions :: check_mortality :: CheckMortality , runtime_types :: frame_system :: extensions :: check_nonce :: CheckNonce , runtime_types :: frame_system :: extensions :: check_weight :: CheckWeight , runtime_types :: pallet_transaction_payment :: ChargeTransactionPayment ,) >,
+ len: ::core::primitive::u32,
+ ) -> ::subxt::runtime_api::Payload<
+ types::QueryInfo,
+ runtime_types::pallet_transaction_payment::types::RuntimeDispatchInfo<
+ ::core::primitive::u128,
+ runtime_types::sp_weights::weight_v2::Weight,
+ >,
+ > {
+ ::subxt::runtime_api::Payload::new_static(
+ "TransactionPaymentApi",
+ "query_info",
+ types::QueryInfo { uxt, len },
+ [
+ 56u8, 30u8, 174u8, 34u8, 202u8, 24u8, 177u8, 189u8, 145u8, 36u8, 1u8,
+ 156u8, 98u8, 209u8, 178u8, 49u8, 198u8, 23u8, 150u8, 173u8, 35u8,
+ 205u8, 147u8, 129u8, 42u8, 22u8, 69u8, 3u8, 129u8, 8u8, 196u8, 139u8,
+ ],
+ )
+ }
+ pub fn query_fee_details(
+ &self,
+ uxt : :: subxt :: utils :: UncheckedExtrinsic < :: subxt :: utils :: MultiAddress < :: subxt :: utils :: AccountId32 , () > , runtime_types :: coretime_rococo_runtime :: RuntimeCall , runtime_types :: sp_runtime :: MultiSignature , (runtime_types :: frame_system :: extensions :: check_non_zero_sender :: CheckNonZeroSender , runtime_types :: frame_system :: extensions :: check_spec_version :: CheckSpecVersion , runtime_types :: frame_system :: extensions :: check_tx_version :: CheckTxVersion , runtime_types :: frame_system :: extensions :: check_genesis :: CheckGenesis , runtime_types :: frame_system :: extensions :: check_mortality :: CheckMortality , runtime_types :: frame_system :: extensions :: check_nonce :: CheckNonce , runtime_types :: frame_system :: extensions :: check_weight :: CheckWeight , runtime_types :: pallet_transaction_payment :: ChargeTransactionPayment ,) >,
+ len: ::core::primitive::u32,
+ ) -> ::subxt::runtime_api::Payload<
+ types::QueryFeeDetails,
+ runtime_types::pallet_transaction_payment::types::FeeDetails<
+ ::core::primitive::u128,
+ >,
+ > {
+ ::subxt::runtime_api::Payload::new_static(
+ "TransactionPaymentApi",
+ "query_fee_details",
+ types::QueryFeeDetails { uxt, len },
+ [
+ 117u8, 60u8, 137u8, 159u8, 237u8, 252u8, 216u8, 238u8, 232u8, 1u8,
+ 100u8, 152u8, 26u8, 185u8, 145u8, 125u8, 68u8, 189u8, 4u8, 30u8, 125u8,
+ 7u8, 196u8, 153u8, 235u8, 51u8, 219u8, 108u8, 185u8, 254u8, 100u8,
+ 201u8,
+ ],
+ )
+ }
+ pub fn query_weight_to_fee(
+ &self,
+ weight: runtime_types::sp_weights::weight_v2::Weight,
+ ) -> ::subxt::runtime_api::Payload
+ {
+ ::subxt::runtime_api::Payload::new_static(
+ "TransactionPaymentApi",
+ "query_weight_to_fee",
+ types::QueryWeightToFee { weight },
+ [
+ 206u8, 243u8, 189u8, 83u8, 231u8, 244u8, 247u8, 52u8, 126u8, 208u8,
+ 224u8, 5u8, 163u8, 108u8, 254u8, 114u8, 214u8, 156u8, 227u8, 217u8,
+ 211u8, 198u8, 121u8, 164u8, 110u8, 54u8, 181u8, 146u8, 50u8, 146u8,
+ 146u8, 23u8,
+ ],
+ )
+ }
+ pub fn query_length_to_fee(
+ &self,
+ length: ::core::primitive::u32,
+ ) -> ::subxt::runtime_api::Payload
+ {
+ ::subxt::runtime_api::Payload::new_static(
+ "TransactionPaymentApi",
+ "query_length_to_fee",
+ types::QueryLengthToFee { length },
+ [
+ 92u8, 132u8, 29u8, 119u8, 66u8, 11u8, 196u8, 224u8, 129u8, 23u8, 249u8,
+ 12u8, 32u8, 28u8, 92u8, 50u8, 188u8, 101u8, 203u8, 229u8, 248u8, 216u8,
+ 130u8, 150u8, 212u8, 161u8, 81u8, 254u8, 116u8, 89u8, 162u8, 48u8,
+ ],
+ )
+ }
+ }
+ pub mod types {
+ use super::runtime_types;
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ pub struct QueryInfo { pub uxt : :: subxt :: utils :: UncheckedExtrinsic < :: subxt :: utils :: MultiAddress < :: subxt :: utils :: AccountId32 , () > , runtime_types :: coretime_rococo_runtime :: RuntimeCall , runtime_types :: sp_runtime :: MultiSignature , (runtime_types :: frame_system :: extensions :: check_non_zero_sender :: CheckNonZeroSender , runtime_types :: frame_system :: extensions :: check_spec_version :: CheckSpecVersion , runtime_types :: frame_system :: extensions :: check_tx_version :: CheckTxVersion , runtime_types :: frame_system :: extensions :: check_genesis :: CheckGenesis , runtime_types :: frame_system :: extensions :: check_mortality :: CheckMortality , runtime_types :: frame_system :: extensions :: check_nonce :: CheckNonce , runtime_types :: frame_system :: extensions :: check_weight :: CheckWeight , runtime_types :: pallet_transaction_payment :: ChargeTransactionPayment ,) > , pub len : :: core :: primitive :: u32 , }
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ pub struct QueryFeeDetails { pub uxt : :: subxt :: utils :: UncheckedExtrinsic < :: subxt :: utils :: MultiAddress < :: subxt :: utils :: AccountId32 , () > , runtime_types :: coretime_rococo_runtime :: RuntimeCall , runtime_types :: sp_runtime :: MultiSignature , (runtime_types :: frame_system :: extensions :: check_non_zero_sender :: CheckNonZeroSender , runtime_types :: frame_system :: extensions :: check_spec_version :: CheckSpecVersion , runtime_types :: frame_system :: extensions :: check_tx_version :: CheckTxVersion , runtime_types :: frame_system :: extensions :: check_genesis :: CheckGenesis , runtime_types :: frame_system :: extensions :: check_mortality :: CheckMortality , runtime_types :: frame_system :: extensions :: check_nonce :: CheckNonce , runtime_types :: frame_system :: extensions :: check_weight :: CheckWeight , runtime_types :: pallet_transaction_payment :: ChargeTransactionPayment ,) > , pub len : :: core :: primitive :: u32 , }
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ pub struct QueryWeightToFee {
+ pub weight: runtime_types::sp_weights::weight_v2::Weight,
+ }
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ pub struct QueryLengthToFee {
+ pub length: ::core::primitive::u32,
+ }
+ }
+ }
+ pub mod transaction_payment_call_api {
+ use super::root_mod;
+ use super::runtime_types;
+ pub struct TransactionPaymentCallApi;
+ impl TransactionPaymentCallApi {
+ #[doc = " Query information of a dispatch class, weight, and fee of a given encoded `Call`."]
+ pub fn query_call_info(
+ &self,
+ call: runtime_types::coretime_rococo_runtime::RuntimeCall,
+ len: ::core::primitive::u32,
+ ) -> ::subxt::runtime_api::Payload<
+ types::QueryCallInfo,
+ runtime_types::pallet_transaction_payment::types::RuntimeDispatchInfo<
+ ::core::primitive::u128,
+ runtime_types::sp_weights::weight_v2::Weight,
+ >,
+ > {
+ ::subxt::runtime_api::Payload::new_static(
+ "TransactionPaymentCallApi",
+ "query_call_info",
+ types::QueryCallInfo { call, len },
+ [
+ 144u8, 172u8, 193u8, 149u8, 28u8, 82u8, 208u8, 226u8, 171u8, 59u8,
+ 10u8, 77u8, 230u8, 162u8, 177u8, 49u8, 193u8, 102u8, 128u8, 112u8,
+ 235u8, 183u8, 35u8, 97u8, 139u8, 157u8, 177u8, 173u8, 205u8, 6u8,
+ 255u8, 26u8,
+ ],
+ )
+ }
+ #[doc = " Query fee details of a given encoded `Call`."]
+ pub fn query_call_fee_details(
+ &self,
+ call: runtime_types::coretime_rococo_runtime::RuntimeCall,
+ len: ::core::primitive::u32,
+ ) -> ::subxt::runtime_api::Payload<
+ types::QueryCallFeeDetails,
+ runtime_types::pallet_transaction_payment::types::FeeDetails<
+ ::core::primitive::u128,
+ >,
+ > {
+ ::subxt::runtime_api::Payload::new_static(
+ "TransactionPaymentCallApi",
+ "query_call_fee_details",
+ types::QueryCallFeeDetails { call, len },
+ [
+ 53u8, 126u8, 3u8, 45u8, 40u8, 132u8, 229u8, 63u8, 8u8, 241u8, 124u8,
+ 160u8, 30u8, 139u8, 140u8, 97u8, 78u8, 59u8, 151u8, 84u8, 29u8, 36u8,
+ 232u8, 93u8, 116u8, 66u8, 35u8, 191u8, 43u8, 172u8, 29u8, 8u8,
+ ],
+ )
+ }
+ #[doc = " Query the output of the current `WeightToFee` given some input."]
+ pub fn query_weight_to_fee(
+ &self,
+ weight: runtime_types::sp_weights::weight_v2::Weight,
+ ) -> ::subxt::runtime_api::Payload
+ {
+ ::subxt::runtime_api::Payload::new_static(
+ "TransactionPaymentCallApi",
+ "query_weight_to_fee",
+ types::QueryWeightToFee { weight },
+ [
+ 117u8, 91u8, 94u8, 22u8, 248u8, 212u8, 15u8, 23u8, 97u8, 116u8, 64u8,
+ 228u8, 83u8, 123u8, 87u8, 77u8, 97u8, 7u8, 98u8, 181u8, 6u8, 165u8,
+ 114u8, 141u8, 164u8, 113u8, 126u8, 88u8, 174u8, 171u8, 224u8, 35u8,
+ ],
+ )
+ }
+ #[doc = " Query the output of the current `LengthToFee` given some input."]
+ pub fn query_length_to_fee(
+ &self,
+ length: ::core::primitive::u32,
+ ) -> ::subxt::runtime_api::Payload
+ {
+ ::subxt::runtime_api::Payload::new_static(
+ "TransactionPaymentCallApi",
+ "query_length_to_fee",
+ types::QueryLengthToFee { length },
+ [
+ 246u8, 40u8, 4u8, 160u8, 152u8, 94u8, 170u8, 53u8, 205u8, 122u8, 5u8,
+ 69u8, 70u8, 25u8, 128u8, 156u8, 119u8, 134u8, 116u8, 147u8, 14u8,
+ 164u8, 65u8, 140u8, 86u8, 13u8, 250u8, 218u8, 89u8, 95u8, 234u8, 228u8,
+ ],
+ )
+ }
+ }
+ pub mod types {
+ use super::runtime_types;
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ pub struct QueryCallInfo {
+ pub call: runtime_types::coretime_rococo_runtime::RuntimeCall,
+ pub len: ::core::primitive::u32,
+ }
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ pub struct QueryCallFeeDetails {
+ pub call: runtime_types::coretime_rococo_runtime::RuntimeCall,
+ pub len: ::core::primitive::u32,
+ }
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ pub struct QueryWeightToFee {
+ pub weight: runtime_types::sp_weights::weight_v2::Weight,
+ }
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ pub struct QueryLengthToFee {
+ pub length: ::core::primitive::u32,
+ }
+ }
+ }
+ pub mod collect_collation_info {
+ use super::root_mod;
+ use super::runtime_types;
+ #[doc = " Runtime api to collect information about a collation."]
+ pub struct CollectCollationInfo;
+ impl CollectCollationInfo {
+ #[doc = " Collect information about a collation."]
+ #[doc = ""]
+ #[doc = " The given `header` is the header of the built block for that"]
+ #[doc = " we are collecting the collation info for."]
+ pub fn collect_collation_info(
+ &self,
+ header: runtime_types::sp_runtime::generic::header::Header<
+ ::core::primitive::u32,
+ >,
+ ) -> ::subxt::runtime_api::Payload<
+ types::CollectCollationInfo,
+ runtime_types::cumulus_primitives_core::CollationInfo,
+ > {
+ ::subxt::runtime_api::Payload::new_static(
+ "CollectCollationInfo",
+ "collect_collation_info",
+ types::CollectCollationInfo { header },
+ [
+ 56u8, 138u8, 105u8, 91u8, 216u8, 40u8, 255u8, 98u8, 86u8, 138u8, 185u8,
+ 155u8, 80u8, 141u8, 85u8, 48u8, 252u8, 235u8, 178u8, 231u8, 111u8,
+ 216u8, 71u8, 20u8, 33u8, 202u8, 24u8, 215u8, 214u8, 132u8, 51u8, 166u8,
+ ],
+ )
+ }
+ }
+ pub mod types {
+ use super::runtime_types;
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ pub struct CollectCollationInfo {
+ pub header:
+ runtime_types::sp_runtime::generic::header::Header<::core::primitive::u32>,
+ }
+ }
+ }
+ pub mod genesis_builder {
+ use super::root_mod;
+ use super::runtime_types;
+ #[doc = " API to interact with GenesisConfig for the runtime"]
+ pub struct GenesisBuilder;
+ impl GenesisBuilder {
+ #[doc = " Creates the default `GenesisConfig` and returns it as a JSON blob."]
+ #[doc = ""]
+ #[doc = " This function instantiates the default `GenesisConfig` struct for the runtime and serializes it into a JSON"]
+ #[doc = " blob. It returns a `Vec` containing the JSON representation of the default `GenesisConfig`."]
+ pub fn create_default_config(
+ &self,
+ ) -> ::subxt::runtime_api::Payload<
+ types::CreateDefaultConfig,
+ ::std::vec::Vec<::core::primitive::u8>,
+ > {
+ ::subxt::runtime_api::Payload::new_static(
+ "GenesisBuilder",
+ "create_default_config",
+ types::CreateDefaultConfig {},
+ [
+ 238u8, 5u8, 139u8, 81u8, 184u8, 155u8, 221u8, 118u8, 190u8, 76u8,
+ 229u8, 67u8, 132u8, 89u8, 83u8, 80u8, 56u8, 171u8, 169u8, 64u8, 123u8,
+ 20u8, 129u8, 159u8, 28u8, 135u8, 84u8, 52u8, 192u8, 98u8, 104u8, 214u8,
+ ],
+ )
+ }
+ #[doc = " Build `GenesisConfig` from a JSON blob not using any defaults and store it in the storage."]
+ #[doc = ""]
+ #[doc = " This function deserializes the full `GenesisConfig` from the given JSON blob and puts it into the storage."]
+ #[doc = " If the provided JSON blob is incorrect or incomplete or the deserialization fails, an error is returned."]
+ #[doc = " It is recommended to log any errors encountered during the process."]
+ #[doc = ""]
+ #[doc = " Please note that provided json blob must contain all `GenesisConfig` fields, no defaults will be used."]
+ pub fn build_config(
+ &self,
+ json: ::std::vec::Vec<::core::primitive::u8>,
+ ) -> ::subxt::runtime_api::Payload<
+ types::BuildConfig,
+ ::core::result::Result<(), ::std::string::String>,
+ > {
+ ::subxt::runtime_api::Payload::new_static(
+ "GenesisBuilder",
+ "build_config",
+ types::BuildConfig { json },
+ [
+ 6u8, 98u8, 68u8, 125u8, 157u8, 26u8, 107u8, 86u8, 213u8, 227u8, 26u8,
+ 229u8, 122u8, 161u8, 229u8, 114u8, 123u8, 192u8, 66u8, 231u8, 148u8,
+ 175u8, 5u8, 185u8, 248u8, 88u8, 40u8, 122u8, 230u8, 209u8, 170u8,
+ 254u8,
+ ],
+ )
+ }
+ }
+ pub mod types {
+ use super::runtime_types;
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ pub struct CreateDefaultConfig {}
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ pub struct BuildConfig {
+ pub json: ::std::vec::Vec<::core::primitive::u8>,
+ }
+ }
+ }
+ }
+ 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 xcmp_queue(&self) -> xcmp_queue::constants::ConstantsApi {
+ xcmp_queue::constants::ConstantsApi
+ }
+ pub fn message_queue(&self) -> message_queue::constants::ConstantsApi {
+ message_queue::constants::ConstantsApi
+ }
+ pub fn utility(&self) -> utility::constants::ConstantsApi {
+ utility::constants::ConstantsApi
+ }
+ pub fn multisig(&self) -> multisig::constants::ConstantsApi {
+ multisig::constants::ConstantsApi
+ }
+ pub fn broker(&self) -> broker::constants::ConstantsApi {
+ broker::constants::ConstantsApi
+ }
+ }
+ pub struct StorageApi;
+ impl StorageApi {
+ pub fn system(&self) -> system::storage::StorageApi {
+ system::storage::StorageApi
+ }
+ pub fn parachain_system(&self) -> parachain_system::storage::StorageApi {
+ parachain_system::storage::StorageApi
+ }
+ pub fn timestamp(&self) -> timestamp::storage::StorageApi {
+ timestamp::storage::StorageApi
+ }
+ pub fn parachain_info(&self) -> parachain_info::storage::StorageApi {
+ parachain_info::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 authorship(&self) -> authorship::storage::StorageApi {
+ authorship::storage::StorageApi
+ }
+ pub fn collator_selection(&self) -> collator_selection::storage::StorageApi {
+ collator_selection::storage::StorageApi
+ }
+ pub fn session(&self) -> session::storage::StorageApi {
+ session::storage::StorageApi
+ }
+ pub fn aura(&self) -> aura::storage::StorageApi {
+ aura::storage::StorageApi
+ }
+ pub fn aura_ext(&self) -> aura_ext::storage::StorageApi {
+ aura_ext::storage::StorageApi
+ }
+ pub fn xcmp_queue(&self) -> xcmp_queue::storage::StorageApi {
+ xcmp_queue::storage::StorageApi
+ }
+ pub fn polkadot_xcm(&self) -> polkadot_xcm::storage::StorageApi {
+ polkadot_xcm::storage::StorageApi
+ }
+ pub fn message_queue(&self) -> message_queue::storage::StorageApi {
+ message_queue::storage::StorageApi
+ }
+ pub fn multisig(&self) -> multisig::storage::StorageApi {
+ multisig::storage::StorageApi
+ }
+ pub fn broker(&self) -> broker::storage::StorageApi {
+ broker::storage::StorageApi
+ }
+ pub fn sudo(&self) -> sudo::storage::StorageApi {
+ sudo::storage::StorageApi
+ }
+ }
+ pub struct TransactionApi;
+ impl TransactionApi {
+ pub fn system(&self) -> system::calls::TransactionApi {
+ system::calls::TransactionApi
+ }
+ pub fn parachain_system(&self) -> parachain_system::calls::TransactionApi {
+ parachain_system::calls::TransactionApi
+ }
+ pub fn timestamp(&self) -> timestamp::calls::TransactionApi {
+ timestamp::calls::TransactionApi
+ }
+ pub fn parachain_info(&self) -> parachain_info::calls::TransactionApi {
+ parachain_info::calls::TransactionApi
+ }
+ pub fn balances(&self) -> balances::calls::TransactionApi {
+ balances::calls::TransactionApi
+ }
+ pub fn collator_selection(&self) -> collator_selection::calls::TransactionApi {
+ collator_selection::calls::TransactionApi
+ }
+ pub fn session(&self) -> session::calls::TransactionApi {
+ session::calls::TransactionApi
+ }
+ pub fn xcmp_queue(&self) -> xcmp_queue::calls::TransactionApi {
+ xcmp_queue::calls::TransactionApi
+ }
+ pub fn polkadot_xcm(&self) -> polkadot_xcm::calls::TransactionApi {
+ polkadot_xcm::calls::TransactionApi
+ }
+ pub fn cumulus_xcm(&self) -> cumulus_xcm::calls::TransactionApi {
+ cumulus_xcm::calls::TransactionApi
+ }
+ pub fn message_queue(&self) -> message_queue::calls::TransactionApi {
+ message_queue::calls::TransactionApi
+ }
+ pub fn utility(&self) -> utility::calls::TransactionApi {
+ utility::calls::TransactionApi
+ }
+ pub fn multisig(&self) -> multisig::calls::TransactionApi {
+ multisig::calls::TransactionApi
+ }
+ pub fn broker(&self) -> broker::calls::TransactionApi {
+ broker::calls::TransactionApi
+ }
+ pub fn sudo(&self) -> sudo::calls::TransactionApi {
+ sudo::calls::TransactionApi
+ }
+ }
+ #[doc = r" check whether the metadata provided is aligned with this statically generated code."]
+ pub fn is_codegen_valid_for(metadata: &::subxt::Metadata) -> bool {
+ let runtime_metadata_hash = metadata
+ .hasher()
+ .only_these_pallets(&PALLETS)
+ .only_these_runtime_apis(&RUNTIME_APIS)
+ .hash();
+ runtime_metadata_hash
+ == [
+ 242u8, 249u8, 231u8, 131u8, 221u8, 227u8, 243u8, 80u8, 94u8, 43u8, 167u8, 107u8,
+ 160u8, 189u8, 68u8, 67u8, 246u8, 202u8, 187u8, 14u8, 58u8, 172u8, 27u8, 33u8,
+ 232u8, 78u8, 146u8, 148u8, 181u8, 89u8, 134u8, 221u8,
+ ]
+ }
+ pub mod system {
+ use super::root_mod;
+ use super::runtime_types;
+ #[doc = "Error for the System pallet"]
+ pub type Error = runtime_types::frame_system::pallet::Error;
+ #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."]
+ pub type Call = runtime_types::frame_system::pallet::Call;
+ pub mod calls {
+ use super::root_mod;
+ use super::runtime_types;
+ type DispatchError = runtime_types::sp_runtime::DispatchError;
+ pub mod types {
+ use super::runtime_types;
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ pub struct Remark {
+ pub remark: ::std::vec::Vec<::core::primitive::u8>,
+ }
+ impl ::subxt::blocks::StaticExtrinsic for Remark {
+ const PALLET: &'static str = "System";
+ const CALL: &'static str = "remark";
+ }
+ #[derive(
+ :: subxt :: ext :: codec :: CompactAs,
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ pub struct SetHeapPages {
+ pub pages: ::core::primitive::u64,
+ }
+ impl ::subxt::blocks::StaticExtrinsic for SetHeapPages {
+ const PALLET: &'static str = "System";
+ const CALL: &'static str = "set_heap_pages";
+ }
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ pub struct SetCode {
+ pub code: ::std::vec::Vec<::core::primitive::u8>,
+ }
+ impl ::subxt::blocks::StaticExtrinsic for SetCode {
+ const PALLET: &'static str = "System";
+ const CALL: &'static str = "set_code";
+ }
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ pub struct SetCodeWithoutChecks {
+ pub code: ::std::vec::Vec<::core::primitive::u8>,
+ }
+ impl ::subxt::blocks::StaticExtrinsic for SetCodeWithoutChecks {
+ const PALLET: &'static str = "System";
+ const CALL: &'static str = "set_code_without_checks";
+ }
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ pub struct SetStorage {
+ pub items: ::std::vec::Vec<(
+ ::std::vec::Vec<::core::primitive::u8>,
+ ::std::vec::Vec<::core::primitive::u8>,
+ )>,
+ }
+ impl ::subxt::blocks::StaticExtrinsic for SetStorage {
+ const PALLET: &'static str = "System";
+ const CALL: &'static str = "set_storage";
+ }
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ pub struct KillStorage {
+ pub keys: ::std::vec::Vec<::std::vec::Vec<::core::primitive::u8>>,
+ }
+ impl ::subxt::blocks::StaticExtrinsic for KillStorage {
+ const PALLET: &'static str = "System";
+ const CALL: &'static str = "kill_storage";
+ }
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ pub struct KillPrefix {
+ pub prefix: ::std::vec::Vec<::core::primitive::u8>,
+ pub subkeys: ::core::primitive::u32,
+ }
+ impl ::subxt::blocks::StaticExtrinsic for KillPrefix {
+ const PALLET: &'static str = "System";
+ const CALL: &'static str = "kill_prefix";
+ }
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ pub struct RemarkWithEvent {
+ pub remark: ::std::vec::Vec<::core::primitive::u8>,
+ }
+ impl ::subxt::blocks::StaticExtrinsic for RemarkWithEvent {
+ const PALLET: &'static str = "System";
+ const CALL: &'static str = "remark_with_event";
+ }
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ pub struct AuthorizeUpgrade {
+ pub code_hash: ::subxt::utils::H256,
+ }
+ impl ::subxt::blocks::StaticExtrinsic for AuthorizeUpgrade {
+ const PALLET: &'static str = "System";
+ const CALL: &'static str = "authorize_upgrade";
+ }
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ pub struct AuthorizeUpgradeWithoutChecks {
+ pub code_hash: ::subxt::utils::H256,
+ }
+ impl ::subxt::blocks::StaticExtrinsic for AuthorizeUpgradeWithoutChecks {
+ const PALLET: &'static str = "System";
+ const CALL: &'static str = "authorize_upgrade_without_checks";
+ }
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ pub struct ApplyAuthorizedUpgrade {
+ pub code: ::std::vec::Vec<::core::primitive::u8>,
+ }
+ impl ::subxt::blocks::StaticExtrinsic for ApplyAuthorizedUpgrade {
+ const PALLET: &'static str = "System";
+ const CALL: &'static str = "apply_authorized_upgrade";
+ }
+ }
+ pub struct TransactionApi;
+ impl TransactionApi {
+ #[doc = "See [`Pallet::remark`]."]
+ pub fn remark(
+ &self,
+ remark: ::std::vec::Vec<::core::primitive::u8>,
+ ) -> ::subxt::tx::Payload {
+ ::subxt::tx::Payload::new_static(
+ "System",
+ "remark",
+ types::Remark { remark },
+ [
+ 43u8, 126u8, 180u8, 174u8, 141u8, 48u8, 52u8, 125u8, 166u8, 212u8,
+ 216u8, 98u8, 100u8, 24u8, 132u8, 71u8, 101u8, 64u8, 246u8, 169u8, 33u8,
+ 250u8, 147u8, 208u8, 2u8, 40u8, 129u8, 209u8, 232u8, 207u8, 207u8,
+ 13u8,
+ ],
+ )
+ }
+ #[doc = "See [`Pallet::set_heap_pages`]."]
+ pub fn set_heap_pages(
+ &self,
+ pages: ::core::primitive::u64,
+ ) -> ::subxt::tx::Payload {
+ ::subxt::tx::Payload::new_static(
+ "System",
+ "set_heap_pages",
+ types::SetHeapPages { pages },
+ [
+ 188u8, 191u8, 99u8, 216u8, 219u8, 109u8, 141u8, 50u8, 78u8, 235u8,
+ 215u8, 242u8, 195u8, 24u8, 111u8, 76u8, 229u8, 64u8, 99u8, 225u8,
+ 134u8, 121u8, 81u8, 209u8, 127u8, 223u8, 98u8, 215u8, 150u8, 70u8,
+ 57u8, 147u8,
+ ],
+ )
+ }
+ #[doc = "See [`Pallet::set_code`]."]
+ pub fn set_code(
+ &self,
+ code: ::std::vec::Vec<::core::primitive::u8>,
+ ) -> ::subxt::tx::Payload {
+ ::subxt::tx::Payload::new_static(
+ "System",
+ "set_code",
+ types::SetCode { code },
+ [
+ 233u8, 248u8, 88u8, 245u8, 28u8, 65u8, 25u8, 169u8, 35u8, 237u8, 19u8,
+ 203u8, 136u8, 160u8, 18u8, 3u8, 20u8, 197u8, 81u8, 169u8, 244u8, 188u8,
+ 27u8, 147u8, 147u8, 236u8, 65u8, 25u8, 3u8, 143u8, 182u8, 22u8,
+ ],
+ )
+ }
+ #[doc = "See [`Pallet::set_code_without_checks`]."]
+ pub fn set_code_without_checks(
+ &self,
+ code: ::std::vec::Vec<::core::primitive::u8>,
+ ) -> ::subxt::tx::Payload {
+ ::subxt::tx::Payload::new_static(
+ "System",
+ "set_code_without_checks",
+ types::SetCodeWithoutChecks { code },
+ [
+ 82u8, 212u8, 157u8, 44u8, 70u8, 0u8, 143u8, 15u8, 109u8, 109u8, 107u8,
+ 157u8, 141u8, 42u8, 169u8, 11u8, 15u8, 186u8, 252u8, 138u8, 10u8,
+ 147u8, 15u8, 178u8, 247u8, 229u8, 213u8, 98u8, 207u8, 231u8, 119u8,
+ 115u8,
+ ],
+ )
+ }
+ #[doc = "See [`Pallet::set_storage`]."]
+ pub fn set_storage(
+ &self,
+ items: ::std::vec::Vec<(
+ ::std::vec::Vec<::core::primitive::u8>,
+ ::std::vec::Vec<::core::primitive::u8>,
+ )>,
+ ) -> ::subxt::tx::Payload {
+ ::subxt::tx::Payload::new_static(
+ "System",
+ "set_storage",
+ types::SetStorage { items },
+ [
+ 141u8, 216u8, 52u8, 222u8, 223u8, 136u8, 123u8, 181u8, 19u8, 75u8,
+ 163u8, 102u8, 229u8, 189u8, 158u8, 142u8, 95u8, 235u8, 240u8, 49u8,
+ 150u8, 76u8, 78u8, 137u8, 126u8, 88u8, 183u8, 88u8, 231u8, 146u8,
+ 234u8, 43u8,
+ ],
+ )
+ }
+ #[doc = "See [`Pallet::kill_storage`]."]
+ pub fn kill_storage(
+ &self,
+ keys: ::std::vec::Vec<::std::vec::Vec<::core::primitive::u8>>,
+ ) -> ::subxt::tx::Payload {
+ ::subxt::tx::Payload::new_static(
+ "System",
+ "kill_storage",
+ types::KillStorage { keys },
+ [
+ 73u8, 63u8, 196u8, 36u8, 144u8, 114u8, 34u8, 213u8, 108u8, 93u8, 209u8,
+ 234u8, 153u8, 185u8, 33u8, 91u8, 187u8, 195u8, 223u8, 130u8, 58u8,
+ 156u8, 63u8, 47u8, 228u8, 249u8, 216u8, 139u8, 143u8, 177u8, 41u8,
+ 35u8,
+ ],
+ )
+ }
+ #[doc = "See [`Pallet::kill_prefix`]."]
+ pub fn kill_prefix(
+ &self,
+ prefix: ::std::vec::Vec<::core::primitive::u8>,
+ subkeys: ::core::primitive::u32,
+ ) -> ::subxt::tx::Payload {
+ ::subxt::tx::Payload::new_static(
+ "System",
+ "kill_prefix",
+ types::KillPrefix { prefix, subkeys },
+ [
+ 184u8, 57u8, 139u8, 24u8, 208u8, 87u8, 108u8, 215u8, 198u8, 189u8,
+ 175u8, 242u8, 167u8, 215u8, 97u8, 63u8, 110u8, 166u8, 238u8, 98u8,
+ 67u8, 236u8, 111u8, 110u8, 234u8, 81u8, 102u8, 5u8, 182u8, 5u8, 214u8,
+ 85u8,
+ ],
+ )
+ }
+ #[doc = "See [`Pallet::remark_with_event`]."]
+ pub fn remark_with_event(
+ &self,
+ remark: ::std::vec::Vec<::core::primitive::u8>,
+ ) -> ::subxt::tx::Payload {
+ ::subxt::tx::Payload::new_static(
+ "System",
+ "remark_with_event",
+ types::RemarkWithEvent { remark },
+ [
+ 120u8, 120u8, 153u8, 92u8, 184u8, 85u8, 34u8, 2u8, 174u8, 206u8, 105u8,
+ 228u8, 233u8, 130u8, 80u8, 246u8, 228u8, 59u8, 234u8, 240u8, 4u8, 49u8,
+ 147u8, 170u8, 115u8, 91u8, 149u8, 200u8, 228u8, 181u8, 8u8, 154u8,
+ ],
+ )
+ }
+ #[doc = "See [`Pallet::authorize_upgrade`]."]
+ pub fn authorize_upgrade(
+ &self,
+ code_hash: ::subxt::utils::H256,
+ ) -> ::subxt::tx::Payload {
+ ::subxt::tx::Payload::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 = "See [`Pallet::authorize_upgrade_without_checks`]."]
+ pub fn authorize_upgrade_without_checks(
+ &self,
+ code_hash: ::subxt::utils::H256,
+ ) -> ::subxt::tx::Payload {
+ ::subxt::tx::Payload::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 = "See [`Pallet::apply_authorized_upgrade`]."]
+ pub fn apply_authorized_upgrade(
+ &self,
+ code: ::std::vec::Vec<::core::primitive::u8>,
+ ) -> ::subxt::tx::Payload {
+ ::subxt::tx::Payload::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 :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ #[doc = "An extrinsic completed successfully."]
+ pub struct ExtrinsicSuccess {
+ pub dispatch_info: runtime_types::frame_support::dispatch::DispatchInfo,
+ }
+ impl ::subxt::events::StaticEvent for ExtrinsicSuccess {
+ const PALLET: &'static str = "System";
+ const EVENT: &'static str = "ExtrinsicSuccess";
+ }
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ #[doc = "An extrinsic failed."]
+ pub struct ExtrinsicFailed {
+ pub dispatch_error: runtime_types::sp_runtime::DispatchError,
+ pub dispatch_info: runtime_types::frame_support::dispatch::DispatchInfo,
+ }
+ impl ::subxt::events::StaticEvent for ExtrinsicFailed {
+ const PALLET: &'static str = "System";
+ const EVENT: &'static str = "ExtrinsicFailed";
+ }
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ #[doc = "`:code` was updated."]
+ pub struct CodeUpdated;
+ impl ::subxt::events::StaticEvent for CodeUpdated {
+ const PALLET: &'static str = "System";
+ const EVENT: &'static str = "CodeUpdated";
+ }
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ #[doc = "A new account was created."]
+ pub struct NewAccount {
+ pub account: ::subxt::utils::AccountId32,
+ }
+ impl ::subxt::events::StaticEvent for NewAccount {
+ const PALLET: &'static str = "System";
+ const EVENT: &'static str = "NewAccount";
+ }
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ #[doc = "An account was reaped."]
+ pub struct KilledAccount {
+ pub account: ::subxt::utils::AccountId32,
+ }
+ impl ::subxt::events::StaticEvent for KilledAccount {
+ const PALLET: &'static str = "System";
+ const EVENT: &'static str = "KilledAccount";
+ }
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ #[doc = "On on-chain remark happened."]
+ pub struct Remarked {
+ pub sender: ::subxt::utils::AccountId32,
+ pub hash: ::subxt::utils::H256,
+ }
+ impl ::subxt::events::StaticEvent for Remarked {
+ const PALLET: &'static str = "System";
+ const EVENT: &'static str = "Remarked";
+ }
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ #[doc = "An upgrade was authorized."]
+ pub struct UpgradeAuthorized {
+ pub code_hash: ::subxt::utils::H256,
+ pub check_version: ::core::primitive::bool,
+ }
+ impl ::subxt::events::StaticEvent for UpgradeAuthorized {
+ const PALLET: &'static str = "System";
+ const EVENT: &'static str = "UpgradeAuthorized";
+ }
+ }
+ pub mod storage {
+ use super::runtime_types;
+ pub struct StorageApi;
+ impl StorageApi {
+ #[doc = " The full account information for a particular account ID."]
+ pub fn account_iter(
+ &self,
+ ) -> ::subxt::storage::address::Address<
+ ::subxt::storage::address::StaticStorageMapKey,
+ runtime_types::frame_system::AccountInfo<
+ ::core::primitive::u32,
+ runtime_types::pallet_balances::types::AccountData<::core::primitive::u128>,
+ >,
+ (),
+ ::subxt::storage::address::Yes,
+ ::subxt::storage::address::Yes,
+ > {
+ ::subxt::storage::address::Address::new_static(
+ "System",
+ "Account",
+ vec![],
+ [
+ 14u8, 233u8, 115u8, 214u8, 0u8, 109u8, 222u8, 121u8, 162u8, 65u8, 60u8,
+ 175u8, 209u8, 79u8, 222u8, 124u8, 22u8, 235u8, 138u8, 176u8, 133u8,
+ 124u8, 90u8, 158u8, 85u8, 45u8, 37u8, 174u8, 47u8, 79u8, 47u8, 166u8,
+ ],
+ )
+ }
+ #[doc = " The full account information for a particular account ID."]
+ pub fn account(
+ &self,
+ _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>,
+ ) -> ::subxt::storage::address::Address<
+ ::subxt::storage::address::StaticStorageMapKey,
+ runtime_types::frame_system::AccountInfo<
+ ::core::primitive::u32,
+ runtime_types::pallet_balances::types::AccountData<::core::primitive::u128>,
+ >,
+ ::subxt::storage::address::Yes,
+ ::subxt::storage::address::Yes,
+ (),
+ > {
+ ::subxt::storage::address::Address::new_static(
+ "System",
+ "Account",
+ vec![::subxt::storage::address::make_static_storage_map_key(_0.borrow())],
+ [
+ 14u8, 233u8, 115u8, 214u8, 0u8, 109u8, 222u8, 121u8, 162u8, 65u8, 60u8,
+ 175u8, 209u8, 79u8, 222u8, 124u8, 22u8, 235u8, 138u8, 176u8, 133u8,
+ 124u8, 90u8, 158u8, 85u8, 45u8, 37u8, 174u8, 47u8, 79u8, 47u8, 166u8,
+ ],
+ )
+ }
+ #[doc = " Total extrinsics count for the current block."]
+ pub fn extrinsic_count(
+ &self,
+ ) -> ::subxt::storage::address::Address<
+ ::subxt::storage::address::StaticStorageMapKey,
+ ::core::primitive::u32,
+ ::subxt::storage::address::Yes,
+ (),
+ (),
+ > {
+ ::subxt::storage::address::Address::new_static(
+ "System",
+ "ExtrinsicCount",
+ vec![],
+ [
+ 102u8, 76u8, 236u8, 42u8, 40u8, 231u8, 33u8, 222u8, 123u8, 147u8,
+ 153u8, 148u8, 234u8, 203u8, 181u8, 119u8, 6u8, 187u8, 177u8, 199u8,
+ 120u8, 47u8, 137u8, 254u8, 96u8, 100u8, 165u8, 182u8, 249u8, 230u8,
+ 159u8, 79u8,
+ ],
+ )
+ }
+ #[doc = " The current weight for the block."]
+ pub fn block_weight(
+ &self,
+ ) -> ::subxt::storage::address::Address<
+ ::subxt::storage::address::StaticStorageMapKey,
+ runtime_types::frame_support::dispatch::PerDispatchClass<
+ runtime_types::sp_weights::weight_v2::Weight,
+ >,
+ ::subxt::storage::address::Yes,
+ ::subxt::storage::address::Yes,
+ (),
+ > {
+ ::subxt::storage::address::Address::new_static(
+ "System",
+ "BlockWeight",
+ vec![],
+ [
+ 158u8, 46u8, 228u8, 89u8, 210u8, 214u8, 84u8, 154u8, 50u8, 68u8, 63u8,
+ 62u8, 43u8, 42u8, 99u8, 27u8, 54u8, 42u8, 146u8, 44u8, 241u8, 216u8,
+ 229u8, 30u8, 216u8, 255u8, 165u8, 238u8, 181u8, 130u8, 36u8, 102u8,
+ ],
+ )
+ }
+ #[doc = " Total length (in bytes) for all extrinsics put together, for the current block."]
+ pub fn all_extrinsics_len(
+ &self,
+ ) -> ::subxt::storage::address::Address<
+ ::subxt::storage::address::StaticStorageMapKey,
+ ::core::primitive::u32,
+ ::subxt::storage::address::Yes,
+ (),
+ (),
+ > {
+ ::subxt::storage::address::Address::new_static(
+ "System",
+ "AllExtrinsicsLen",
+ vec![],
+ [
+ 117u8, 86u8, 61u8, 243u8, 41u8, 51u8, 102u8, 214u8, 137u8, 100u8,
+ 243u8, 185u8, 122u8, 174u8, 187u8, 117u8, 86u8, 189u8, 63u8, 135u8,
+ 101u8, 218u8, 203u8, 201u8, 237u8, 254u8, 128u8, 183u8, 169u8, 221u8,
+ 242u8, 65u8,
+ ],
+ )
+ }
+ #[doc = " Map of block numbers to block hashes."]
+ pub fn block_hash_iter(
+ &self,
+ ) -> ::subxt::storage::address::Address<
+ ::subxt::storage::address::StaticStorageMapKey,
+ ::subxt::utils::H256,
+ (),
+ ::subxt::storage::address::Yes,
+ ::subxt::storage::address::Yes,
+ > {
+ ::subxt::storage::address::Address::new_static(
+ "System",
+ "BlockHash",
+ vec![],
+ [
+ 217u8, 32u8, 215u8, 253u8, 24u8, 182u8, 207u8, 178u8, 157u8, 24u8,
+ 103u8, 100u8, 195u8, 165u8, 69u8, 152u8, 112u8, 181u8, 56u8, 192u8,
+ 164u8, 16u8, 20u8, 222u8, 28u8, 214u8, 144u8, 142u8, 146u8, 69u8,
+ 202u8, 118u8,
+ ],
+ )
+ }
+ #[doc = " Map of block numbers to block hashes."]
+ pub fn block_hash(
+ &self,
+ _0: impl ::std::borrow::Borrow<::core::primitive::u32>,
+ ) -> ::subxt::storage::address::Address<
+ ::subxt::storage::address::StaticStorageMapKey,
+ ::subxt::utils::H256,
+ ::subxt::storage::address::Yes,
+ ::subxt::storage::address::Yes,
+ (),
+ > {
+ ::subxt::storage::address::Address::new_static(
+ "System",
+ "BlockHash",
+ vec![::subxt::storage::address::make_static_storage_map_key(_0.borrow())],
+ [
+ 217u8, 32u8, 215u8, 253u8, 24u8, 182u8, 207u8, 178u8, 157u8, 24u8,
+ 103u8, 100u8, 195u8, 165u8, 69u8, 152u8, 112u8, 181u8, 56u8, 192u8,
+ 164u8, 16u8, 20u8, 222u8, 28u8, 214u8, 144u8, 142u8, 146u8, 69u8,
+ 202u8, 118u8,
+ ],
+ )
+ }
+ #[doc = " Extrinsics data for the current block (maps an extrinsic's index to its data)."]
+ pub fn extrinsic_data_iter(
+ &self,
+ ) -> ::subxt::storage::address::Address<
+ ::subxt::storage::address::StaticStorageMapKey,
+ ::std::vec::Vec<::core::primitive::u8>,
+ (),
+ ::subxt::storage::address::Yes,
+ ::subxt::storage::address::Yes,
+ > {
+ ::subxt::storage::address::Address::new_static(
+ "System",
+ "ExtrinsicData",
+ vec![],
+ [
+ 160u8, 180u8, 122u8, 18u8, 196u8, 26u8, 2u8, 37u8, 115u8, 232u8, 133u8,
+ 220u8, 106u8, 245u8, 4u8, 129u8, 42u8, 84u8, 241u8, 45u8, 199u8, 179u8,
+ 128u8, 61u8, 170u8, 137u8, 231u8, 156u8, 247u8, 57u8, 47u8, 38u8,
+ ],
+ )
+ }
+ #[doc = " Extrinsics data for the current block (maps an extrinsic's index to its data)."]
+ pub fn extrinsic_data(
+ &self,
+ _0: impl ::std::borrow::Borrow<::core::primitive::u32>,
+ ) -> ::subxt::storage::address::Address<
+ ::subxt::storage::address::StaticStorageMapKey,
+ ::std::vec::Vec<::core::primitive::u8>,
+ ::subxt::storage::address::Yes,
+ ::subxt::storage::address::Yes,
+ (),
+ > {
+ ::subxt::storage::address::Address::new_static(
+ "System",
+ "ExtrinsicData",
+ vec![::subxt::storage::address::make_static_storage_map_key(_0.borrow())],
+ [
+ 160u8, 180u8, 122u8, 18u8, 196u8, 26u8, 2u8, 37u8, 115u8, 232u8, 133u8,
+ 220u8, 106u8, 245u8, 4u8, 129u8, 42u8, 84u8, 241u8, 45u8, 199u8, 179u8,
+ 128u8, 61u8, 170u8, 137u8, 231u8, 156u8, 247u8, 57u8, 47u8, 38u8,
+ ],
+ )
+ }
+ #[doc = " The current block number being processed. Set by `execute_block`."]
+ pub fn number(
+ &self,
+ ) -> ::subxt::storage::address::Address<
+ ::subxt::storage::address::StaticStorageMapKey,
+ ::core::primitive::u32,
+ ::subxt::storage::address::Yes,
+ ::subxt::storage::address::Yes,
+ (),
+ > {
+ ::subxt::storage::address::Address::new_static(
+ "System",
+ "Number",
+ vec![],
+ [
+ 30u8, 194u8, 177u8, 90u8, 194u8, 232u8, 46u8, 180u8, 85u8, 129u8, 14u8,
+ 9u8, 8u8, 8u8, 23u8, 95u8, 230u8, 5u8, 13u8, 105u8, 125u8, 2u8, 22u8,
+ 200u8, 78u8, 93u8, 115u8, 28u8, 150u8, 113u8, 48u8, 53u8,
+ ],
+ )
+ }
+ #[doc = " Hash of the previous block."]
+ pub fn parent_hash(
+ &self,
+ ) -> ::subxt::storage::address::Address<
+ ::subxt::storage::address::StaticStorageMapKey,
+ ::subxt::utils::H256,
+ ::subxt::storage::address::Yes,
+ ::subxt::storage::address::Yes,
+ (),
+ > {
+ ::subxt::storage::address::Address::new_static(
+ "System",
+ "ParentHash",
+ vec![],
+ [
+ 26u8, 130u8, 11u8, 216u8, 155u8, 71u8, 128u8, 170u8, 30u8, 153u8, 21u8,
+ 192u8, 62u8, 93u8, 137u8, 80u8, 120u8, 81u8, 202u8, 94u8, 248u8, 125u8,
+ 71u8, 82u8, 141u8, 229u8, 32u8, 56u8, 73u8, 50u8, 101u8, 78u8,
+ ],
+ )
+ }
+ #[doc = " Digest of the current block, also part of the block header."]
+ pub fn digest(
+ &self,
+ ) -> ::subxt::storage::address::Address<
+ ::subxt::storage::address::StaticStorageMapKey,
+ runtime_types::sp_runtime::generic::digest::Digest,
+ ::subxt::storage::address::Yes,
+ ::subxt::storage::address::Yes,
+ (),
+ > {
+ ::subxt::storage::address::Address::new_static(
+ "System",
+ "Digest",
+ vec![],
+ [
+ 61u8, 64u8, 237u8, 91u8, 145u8, 232u8, 17u8, 254u8, 181u8, 16u8, 234u8,
+ 91u8, 51u8, 140u8, 254u8, 131u8, 98u8, 135u8, 21u8, 37u8, 251u8, 20u8,
+ 58u8, 92u8, 123u8, 141u8, 14u8, 227u8, 146u8, 46u8, 222u8, 117u8,
+ ],
+ )
+ }
+ #[doc = " Events deposited for the current block."]
+ #[doc = ""]
+ #[doc = " NOTE: The item is unbound and should therefore never be read on chain."]
+ #[doc = " It could otherwise inflate the PoV size of a block."]
+ #[doc = ""]
+ #[doc = " Events have a large in-memory size. Box the events to not go out-of-memory"]
+ #[doc = " just in case someone still reads them from within the runtime."]
+ pub fn events(
+ &self,
+ ) -> ::subxt::storage::address::Address<
+ ::subxt::storage::address::StaticStorageMapKey,
+ ::std::vec::Vec<
+ runtime_types::frame_system::EventRecord<
+ runtime_types::coretime_rococo_runtime::RuntimeEvent,
+ ::subxt::utils::H256,
+ >,
+ >,
+ ::subxt::storage::address::Yes,
+ ::subxt::storage::address::Yes,
+ (),
+ > {
+ ::subxt::storage::address::Address::new_static(
+ "System",
+ "Events",
+ vec![],
+ [
+ 116u8, 34u8, 143u8, 0u8, 100u8, 96u8, 191u8, 144u8, 117u8, 233u8,
+ 245u8, 65u8, 232u8, 97u8, 101u8, 184u8, 150u8, 152u8, 218u8, 179u8,
+ 195u8, 142u8, 170u8, 211u8, 191u8, 58u8, 100u8, 54u8, 248u8, 57u8,
+ 227u8, 165u8,
+ ],
+ )
+ }
+ #[doc = " The number of events in the `Events` list."]
+ pub fn event_count(
+ &self,
+ ) -> ::subxt::storage::address::Address<
+ ::subxt::storage::address::StaticStorageMapKey,
+ ::core::primitive::u32,
+ ::subxt::storage::address::Yes,
+ ::subxt::storage::address::Yes,
+ (),
+ > {
+ ::subxt::storage::address::Address::new_static(
+ "System",
+ "EventCount",
+ vec![],
+ [
+ 175u8, 24u8, 252u8, 184u8, 210u8, 167u8, 146u8, 143u8, 164u8, 80u8,
+ 151u8, 205u8, 189u8, 189u8, 55u8, 220u8, 47u8, 101u8, 181u8, 33u8,
+ 254u8, 131u8, 13u8, 143u8, 3u8, 244u8, 245u8, 45u8, 2u8, 210u8, 79u8,
+ 133u8,
+ ],
+ )
+ }
+ #[doc = " Mapping between a topic (represented by T::Hash) and a vector of indexes"]
+ #[doc = " of events in the `>` 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, EventIndex)` because if we used only just"]
+ #[doc = " the `EventIndex` then in case if the topic has the same contents on the next block"]
+ #[doc = " no notification will be triggered thus the event might be lost."]
+ pub fn event_topics_iter(
+ &self,
+ ) -> ::subxt::storage::address::Address<
+ ::subxt::storage::address::StaticStorageMapKey,
+ ::std::vec::Vec<(::core::primitive::u32, ::core::primitive::u32)>,
+ (),
+ ::subxt::storage::address::Yes,
+ ::subxt::storage::address::Yes,
+ > {
+ ::subxt::storage::address::Address::new_static(
+ "System",
+ "EventTopics",
+ vec![],
+ [
+ 40u8, 225u8, 14u8, 75u8, 44u8, 176u8, 76u8, 34u8, 143u8, 107u8, 69u8,
+ 133u8, 114u8, 13u8, 172u8, 250u8, 141u8, 73u8, 12u8, 65u8, 217u8, 63u8,
+ 120u8, 241u8, 48u8, 106u8, 143u8, 161u8, 128u8, 100u8, 166u8, 59u8,
+ ],
+ )
+ }
+ #[doc = " Mapping between a topic (represented by T::Hash) and a vector of indexes"]
+ #[doc = " of events in the `>` 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, EventIndex)` because if we used only just"]
+ #[doc = " the `EventIndex` then in case if the topic has the same contents on the next block"]
+ #[doc = " no notification will be triggered thus the event might be lost."]
+ pub fn event_topics(
+ &self,
+ _0: impl ::std::borrow::Borrow<::subxt::utils::H256>,
+ ) -> ::subxt::storage::address::Address<
+ ::subxt::storage::address::StaticStorageMapKey,
+ ::std::vec::Vec<(::core::primitive::u32, ::core::primitive::u32)>,
+ ::subxt::storage::address::Yes,
+ ::subxt::storage::address::Yes,
+ (),
+ > {
+ ::subxt::storage::address::Address::new_static(
+ "System",
+ "EventTopics",
+ vec![::subxt::storage::address::make_static_storage_map_key(_0.borrow())],
+ [
+ 40u8, 225u8, 14u8, 75u8, 44u8, 176u8, 76u8, 34u8, 143u8, 107u8, 69u8,
+ 133u8, 114u8, 13u8, 172u8, 250u8, 141u8, 73u8, 12u8, 65u8, 217u8, 63u8,
+ 120u8, 241u8, 48u8, 106u8, 143u8, 161u8, 128u8, 100u8, 166u8, 59u8,
+ ],
+ )
+ }
+ #[doc = " Stores the `spec_version` and `spec_name` of when the last runtime upgrade happened."]
+ pub fn last_runtime_upgrade(
+ &self,
+ ) -> ::subxt::storage::address::Address<
+ ::subxt::storage::address::StaticStorageMapKey,
+ runtime_types::frame_system::LastRuntimeUpgradeInfo,
+ ::subxt::storage::address::Yes,
+ (),
+ (),
+ > {
+ ::subxt::storage::address::Address::new_static(
+ "System",
+ "LastRuntimeUpgrade",
+ vec![],
+ [
+ 137u8, 29u8, 175u8, 75u8, 197u8, 208u8, 91u8, 207u8, 156u8, 87u8,
+ 148u8, 68u8, 91u8, 140u8, 22u8, 233u8, 1u8, 229u8, 56u8, 34u8, 40u8,
+ 194u8, 253u8, 30u8, 163u8, 39u8, 54u8, 209u8, 13u8, 27u8, 139u8, 184u8,
+ ],
+ )
+ }
+ #[doc = " True if we have upgraded so that `type RefCount` is `u32`. False (default) if not."]
+ pub fn upgraded_to_u32_ref_count(
+ &self,
+ ) -> ::subxt::storage::address::Address<
+ ::subxt::storage::address::StaticStorageMapKey,
+ ::core::primitive::bool,
+ ::subxt::storage::address::Yes,
+ ::subxt::storage::address::Yes,
+ (),
+ > {
+ ::subxt::storage::address::Address::new_static(
+ "System",
+ "UpgradedToU32RefCount",
+ vec![],
+ [
+ 229u8, 73u8, 9u8, 132u8, 186u8, 116u8, 151u8, 171u8, 145u8, 29u8, 34u8,
+ 130u8, 52u8, 146u8, 124u8, 175u8, 79u8, 189u8, 147u8, 230u8, 234u8,
+ 107u8, 124u8, 31u8, 2u8, 22u8, 86u8, 190u8, 4u8, 147u8, 50u8, 245u8,
+ ],
+ )
+ }
+ #[doc = " True if we have upgraded so that AccountInfo contains three types of `RefCount`. False"]
+ #[doc = " (default) if not."]
+ pub fn upgraded_to_triple_ref_count(
+ &self,
+ ) -> ::subxt::storage::address::Address<
+ ::subxt::storage::address::StaticStorageMapKey,
+ ::core::primitive::bool,
+ ::subxt::storage::address::Yes,
+ ::subxt::storage::address::Yes,
+ (),
+ > {
+ ::subxt::storage::address::Address::new_static(
+ "System",
+ "UpgradedToTripleRefCount",
+ vec![],
+ [
+ 97u8, 66u8, 124u8, 243u8, 27u8, 167u8, 147u8, 81u8, 254u8, 201u8,
+ 101u8, 24u8, 40u8, 231u8, 14u8, 179u8, 154u8, 163u8, 71u8, 81u8, 185u8,
+ 167u8, 82u8, 254u8, 189u8, 3u8, 101u8, 207u8, 206u8, 194u8, 155u8,
+ 151u8,
+ ],
+ )
+ }
+ #[doc = " The execution phase of the block."]
+ pub fn execution_phase(
+ &self,
+ ) -> ::subxt::storage::address::Address<
+ ::subxt::storage::address::StaticStorageMapKey,
+ runtime_types::frame_system::Phase,
+ ::subxt::storage::address::Yes,
+ (),
+ (),
+ > {
+ ::subxt::storage::address::Address::new_static(
+ "System",
+ "ExecutionPhase",
+ vec![],
+ [
+ 191u8, 129u8, 100u8, 134u8, 126u8, 116u8, 154u8, 203u8, 220u8, 200u8,
+ 0u8, 26u8, 161u8, 250u8, 133u8, 205u8, 146u8, 24u8, 5u8, 156u8, 158u8,
+ 35u8, 36u8, 253u8, 52u8, 235u8, 86u8, 167u8, 35u8, 100u8, 119u8, 27u8,
+ ],
+ )
+ }
+ #[doc = " `Some` if a code upgrade has been authorized."]
+ pub fn authorized_upgrade(
+ &self,
+ ) -> ::subxt::storage::address::Address<
+ ::subxt::storage::address::StaticStorageMapKey,
+ runtime_types::frame_system::CodeUpgradeAuthorization,
+ ::subxt::storage::address::Yes,
+ (),
+ (),
+ > {
+ ::subxt::storage::address::Address::new_static(
+ "System",
+ "AuthorizedUpgrade",
+ vec![],
+ [
+ 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,
+ ],
+ )
+ }
+ }
+ }
+ pub mod constants {
+ use super::runtime_types;
+ pub struct ConstantsApi;
+ impl ConstantsApi {
+ #[doc = " Block & extrinsics weights: base values and limits."]
+ pub fn block_weights(
+ &self,
+ ) -> ::subxt::constants::Address
+ {
+ ::subxt::constants::Address::new_static(
+ "System",
+ "BlockWeights",
+ [
+ 176u8, 124u8, 225u8, 136u8, 25u8, 73u8, 247u8, 33u8, 82u8, 206u8, 85u8,
+ 190u8, 127u8, 102u8, 71u8, 11u8, 185u8, 8u8, 58u8, 0u8, 94u8, 55u8,
+ 163u8, 177u8, 104u8, 59u8, 60u8, 136u8, 246u8, 116u8, 0u8, 239u8,
+ ],
+ )
+ }
+ #[doc = " The maximum length of a block (in bytes)."]
+ pub fn block_length(
+ &self,
+ ) -> ::subxt::constants::Address {
+ ::subxt::constants::Address::new_static(
+ "System",
+ "BlockLength",
+ [
+ 23u8, 242u8, 225u8, 39u8, 225u8, 67u8, 152u8, 41u8, 155u8, 104u8, 68u8,
+ 229u8, 185u8, 133u8, 10u8, 143u8, 184u8, 152u8, 234u8, 44u8, 140u8,
+ 96u8, 166u8, 235u8, 162u8, 160u8, 72u8, 7u8, 35u8, 194u8, 3u8, 37u8,
+ ],
+ )
+ }
+ #[doc = " Maximum number of block number to block hash mappings to keep (oldest pruned first)."]
+ pub fn block_hash_count(
+ &self,
+ ) -> ::subxt::constants::Address<::core::primitive::u32> {
+ ::subxt::constants::Address::new_static(
+ "System",
+ "BlockHashCount",
+ [
+ 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8,
+ 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8,
+ 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8,
+ 145u8,
+ ],
+ )
+ }
+ #[doc = " The weight of runtime database operations the runtime can invoke."]
+ pub fn db_weight(
+ &self,
+ ) -> ::subxt::constants::Address {
+ ::subxt::constants::Address::new_static(
+ "System",
+ "DbWeight",
+ [
+ 42u8, 43u8, 178u8, 142u8, 243u8, 203u8, 60u8, 173u8, 118u8, 111u8,
+ 200u8, 170u8, 102u8, 70u8, 237u8, 187u8, 198u8, 120u8, 153u8, 232u8,
+ 183u8, 76u8, 74u8, 10u8, 70u8, 243u8, 14u8, 218u8, 213u8, 126u8, 29u8,
+ 177u8,
+ ],
+ )
+ }
+ #[doc = " Get the chain's current version."]
+ pub fn version(
+ &self,
+ ) -> ::subxt::constants::Address {
+ ::subxt::constants::Address::new_static(
+ "System",
+ "Version",
+ [
+ 219u8, 45u8, 162u8, 245u8, 177u8, 246u8, 48u8, 126u8, 191u8, 157u8,
+ 228u8, 83u8, 111u8, 133u8, 183u8, 13u8, 148u8, 108u8, 92u8, 102u8,
+ 72u8, 205u8, 74u8, 242u8, 233u8, 79u8, 20u8, 170u8, 72u8, 202u8, 158u8,
+ 165u8,
+ ],
+ )
+ }
+ #[doc = " The designated SS58 prefix of this chain."]
+ #[doc = ""]
+ #[doc = " This replaces the \"ss58Format\" property declared in the chain spec. Reason is"]
+ #[doc = " that the runtime should know about the prefix in order to make use of it as"]
+ #[doc = " an identifier of the chain."]
+ pub fn ss58_prefix(&self) -> ::subxt::constants::Address<::core::primitive::u16> {
+ ::subxt::constants::Address::new_static(
+ "System",
+ "SS58Prefix",
+ [
+ 116u8, 33u8, 2u8, 170u8, 181u8, 147u8, 171u8, 169u8, 167u8, 227u8,
+ 41u8, 144u8, 11u8, 236u8, 82u8, 100u8, 74u8, 60u8, 184u8, 72u8, 169u8,
+ 90u8, 208u8, 135u8, 15u8, 117u8, 10u8, 123u8, 128u8, 193u8, 29u8, 70u8,
+ ],
+ )
+ }
+ }
+ }
+ }
+ pub mod parachain_system {
+ use super::root_mod;
+ use super::runtime_types;
+ #[doc = "The `Error` enum of this pallet."]
+ pub type Error = runtime_types::cumulus_pallet_parachain_system::pallet::Error;
+ #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."]
+ pub type Call = runtime_types::cumulus_pallet_parachain_system::pallet::Call;
+ pub mod calls {
+ use super::root_mod;
+ use super::runtime_types;
+ type DispatchError = runtime_types::sp_runtime::DispatchError;
+ pub mod types {
+ use super::runtime_types;
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ pub struct SetValidationData {
+ pub data:
+ runtime_types::cumulus_primitives_parachain_inherent::ParachainInherentData,
+ }
+ impl ::subxt::blocks::StaticExtrinsic for SetValidationData {
+ const PALLET: &'static str = "ParachainSystem";
+ const CALL: &'static str = "set_validation_data";
+ }
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ pub struct SudoSendUpwardMessage {
+ pub message: ::std::vec::Vec<::core::primitive::u8>,
+ }
+ impl ::subxt::blocks::StaticExtrinsic for SudoSendUpwardMessage {
+ const PALLET: &'static str = "ParachainSystem";
+ const CALL: &'static str = "sudo_send_upward_message";
+ }
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ pub struct AuthorizeUpgrade {
+ pub code_hash: ::subxt::utils::H256,
+ pub check_version: ::core::primitive::bool,
+ }
+ impl ::subxt::blocks::StaticExtrinsic for AuthorizeUpgrade {
+ const PALLET: &'static str = "ParachainSystem";
+ const CALL: &'static str = "authorize_upgrade";
+ }
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ pub struct EnactAuthorizedUpgrade {
+ pub code: ::std::vec::Vec<::core::primitive::u8>,
+ }
+ impl ::subxt::blocks::StaticExtrinsic for EnactAuthorizedUpgrade {
+ const PALLET: &'static str = "ParachainSystem";
+ const CALL: &'static str = "enact_authorized_upgrade";
+ }
+ }
+ pub struct TransactionApi;
+ impl TransactionApi {
+ #[doc = "See [`Pallet::set_validation_data`]."]
+ pub fn set_validation_data(
+ &self,
+ data : runtime_types :: cumulus_primitives_parachain_inherent :: ParachainInherentData,
+ ) -> ::subxt::tx::Payload {
+ ::subxt::tx::Payload::new_static(
+ "ParachainSystem",
+ "set_validation_data",
+ types::SetValidationData { data },
+ [
+ 167u8, 126u8, 75u8, 137u8, 220u8, 60u8, 106u8, 214u8, 92u8, 170u8,
+ 136u8, 176u8, 98u8, 0u8, 234u8, 217u8, 146u8, 113u8, 149u8, 88u8,
+ 114u8, 141u8, 228u8, 105u8, 136u8, 71u8, 233u8, 18u8, 70u8, 36u8, 24u8,
+ 249u8,
+ ],
+ )
+ }
+ #[doc = "See [`Pallet::sudo_send_upward_message`]."]
+ pub fn sudo_send_upward_message(
+ &self,
+ message: ::std::vec::Vec<::core::primitive::u8>,
+ ) -> ::subxt::tx::Payload {
+ ::subxt::tx::Payload::new_static(
+ "ParachainSystem",
+ "sudo_send_upward_message",
+ types::SudoSendUpwardMessage { message },
+ [
+ 1u8, 231u8, 11u8, 78u8, 127u8, 117u8, 248u8, 67u8, 230u8, 199u8, 126u8,
+ 47u8, 20u8, 62u8, 252u8, 138u8, 199u8, 48u8, 41u8, 21u8, 28u8, 157u8,
+ 218u8, 143u8, 4u8, 253u8, 62u8, 192u8, 94u8, 252u8, 92u8, 180u8,
+ ],
+ )
+ }
+ #[doc = "See [`Pallet::authorize_upgrade`]."]
+ pub fn authorize_upgrade(
+ &self,
+ code_hash: ::subxt::utils::H256,
+ check_version: ::core::primitive::bool,
+ ) -> ::subxt::tx::Payload {
+ ::subxt::tx::Payload::new_static(
+ "ParachainSystem",
+ "authorize_upgrade",
+ types::AuthorizeUpgrade { code_hash, check_version },
+ [
+ 213u8, 114u8, 107u8, 169u8, 223u8, 147u8, 205u8, 204u8, 3u8, 81u8,
+ 228u8, 0u8, 82u8, 57u8, 43u8, 95u8, 12u8, 59u8, 241u8, 176u8, 143u8,
+ 131u8, 253u8, 166u8, 98u8, 187u8, 94u8, 235u8, 177u8, 110u8, 162u8,
+ 218u8,
+ ],
+ )
+ }
+ #[doc = "See [`Pallet::enact_authorized_upgrade`]."]
+ pub fn enact_authorized_upgrade(
+ &self,
+ code: ::std::vec::Vec<::core::primitive::u8>,
+ ) -> ::subxt::tx::Payload {
+ ::subxt::tx::Payload::new_static(
+ "ParachainSystem",
+ "enact_authorized_upgrade",
+ types::EnactAuthorizedUpgrade { code },
+ [
+ 232u8, 135u8, 114u8, 87u8, 196u8, 146u8, 244u8, 19u8, 106u8, 73u8,
+ 88u8, 193u8, 48u8, 14u8, 72u8, 133u8, 247u8, 147u8, 50u8, 95u8, 252u8,
+ 213u8, 192u8, 47u8, 244u8, 102u8, 195u8, 120u8, 179u8, 87u8, 94u8, 8u8,
+ ],
+ )
+ }
+ }
+ }
+ #[doc = "The `Event` enum of this pallet"]
+ pub type Event = runtime_types::cumulus_pallet_parachain_system::pallet::Event;
+ pub mod events {
+ use super::runtime_types;
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ #[doc = "The validation function has been scheduled to apply."]
+ pub struct ValidationFunctionStored;
+ impl ::subxt::events::StaticEvent for ValidationFunctionStored {
+ const PALLET: &'static str = "ParachainSystem";
+ const EVENT: &'static str = "ValidationFunctionStored";
+ }
+ #[derive(
+ :: subxt :: ext :: codec :: CompactAs,
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ #[doc = "The validation function was applied as of the contained relay chain block number."]
+ pub struct ValidationFunctionApplied {
+ pub relay_chain_block_num: ::core::primitive::u32,
+ }
+ impl ::subxt::events::StaticEvent for ValidationFunctionApplied {
+ const PALLET: &'static str = "ParachainSystem";
+ const EVENT: &'static str = "ValidationFunctionApplied";
+ }
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ #[doc = "The relay-chain aborted the upgrade process."]
+ pub struct ValidationFunctionDiscarded;
+ impl ::subxt::events::StaticEvent for ValidationFunctionDiscarded {
+ const PALLET: &'static str = "ParachainSystem";
+ const EVENT: &'static str = "ValidationFunctionDiscarded";
+ }
+ #[derive(
+ :: subxt :: ext :: codec :: CompactAs,
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ #[doc = "Some downward messages have been received and will be processed."]
+ pub struct DownwardMessagesReceived {
+ pub count: ::core::primitive::u32,
+ }
+ impl ::subxt::events::StaticEvent for DownwardMessagesReceived {
+ const PALLET: &'static str = "ParachainSystem";
+ const EVENT: &'static str = "DownwardMessagesReceived";
+ }
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ #[doc = "Downward messages were processed using the given weight."]
+ pub struct DownwardMessagesProcessed {
+ pub weight_used: runtime_types::sp_weights::weight_v2::Weight,
+ pub dmq_head: ::subxt::utils::H256,
+ }
+ impl ::subxt::events::StaticEvent for DownwardMessagesProcessed {
+ const PALLET: &'static str = "ParachainSystem";
+ const EVENT: &'static str = "DownwardMessagesProcessed";
+ }
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ #[doc = "An upward message was sent to the relay chain."]
+ pub struct UpwardMessageSent {
+ pub message_hash: ::core::option::Option<[::core::primitive::u8; 32usize]>,
+ }
+ impl ::subxt::events::StaticEvent for UpwardMessageSent {
+ const PALLET: &'static str = "ParachainSystem";
+ const EVENT: &'static str = "UpwardMessageSent";
+ }
+ }
+ pub mod storage {
+ use super::runtime_types;
+ pub struct StorageApi;
+ impl StorageApi {
+ #[doc = " Latest included block descendants the runtime accepted. In other words, these are"]
+ #[doc = " ancestors of the currently executing block which have not been included in the observed"]
+ #[doc = " relay-chain state."]
+ #[doc = ""]
+ #[doc = " The segment length is limited by the capacity returned from the [`ConsensusHook`] configured"]
+ #[doc = " in the pallet."] pub fn unincluded_segment (& self ,) -> :: subxt :: storage :: address :: Address :: < :: subxt :: storage :: address :: StaticStorageMapKey , :: std :: vec :: Vec < runtime_types :: cumulus_pallet_parachain_system :: unincluded_segment :: Ancestor < :: subxt :: utils :: H256 > > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{
+ ::subxt::storage::address::Address::new_static(
+ "ParachainSystem",
+ "UnincludedSegment",
+ vec![],
+ [
+ 73u8, 83u8, 226u8, 16u8, 203u8, 233u8, 221u8, 109u8, 23u8, 114u8, 56u8,
+ 154u8, 100u8, 116u8, 253u8, 10u8, 164u8, 22u8, 110u8, 73u8, 245u8,
+ 226u8, 54u8, 146u8, 67u8, 109u8, 149u8, 142u8, 154u8, 218u8, 55u8,
+ 178u8,
+ ],
+ )
+ }
+ #[doc = " Storage field that keeps track of bandwidth used by the unincluded segment along with the"]
+ #[doc = " latest HRMP watermark. Used for limiting the acceptance of new blocks with"]
+ #[doc = " respect to relay chain constraints."] pub fn aggregated_unincluded_segment (& self ,) -> :: subxt :: storage :: address :: Address :: < :: subxt :: storage :: address :: StaticStorageMapKey , runtime_types :: cumulus_pallet_parachain_system :: unincluded_segment :: SegmentTracker < :: subxt :: utils :: H256 > , :: subxt :: storage :: address :: Yes , () , () >{
+ ::subxt::storage::address::Address::new_static(
+ "ParachainSystem",
+ "AggregatedUnincludedSegment",
+ vec![],
+ [
+ 165u8, 51u8, 182u8, 156u8, 65u8, 114u8, 167u8, 133u8, 245u8, 52u8,
+ 32u8, 119u8, 159u8, 65u8, 201u8, 108u8, 99u8, 43u8, 84u8, 63u8, 95u8,
+ 182u8, 134u8, 163u8, 51u8, 202u8, 243u8, 82u8, 225u8, 192u8, 186u8,
+ 2u8,
+ ],
+ )
+ }
+ #[doc = " In case of a scheduled upgrade, this storage field contains the validation code to be"]
+ #[doc = " applied."]
+ #[doc = ""]
+ #[doc = " As soon as the relay chain gives us the go-ahead signal, we will overwrite the"]
+ #[doc = " [`:code`][sp_core::storage::well_known_keys::CODE] which will result the next block process"]
+ #[doc = " with the new validation code. This concludes the upgrade process."]
+ pub fn pending_validation_code(
+ &self,
+ ) -> ::subxt::storage::address::Address<
+ ::subxt::storage::address::StaticStorageMapKey,
+ ::std::vec::Vec<::core::primitive::u8>,
+ ::subxt::storage::address::Yes,
+ ::subxt::storage::address::Yes,
+ (),
+ > {
+ ::subxt::storage::address::Address::new_static(
+ "ParachainSystem",
+ "PendingValidationCode",
+ vec![],
+ [
+ 78u8, 159u8, 219u8, 211u8, 177u8, 80u8, 102u8, 93u8, 83u8, 146u8, 90u8,
+ 233u8, 232u8, 11u8, 104u8, 172u8, 93u8, 68u8, 44u8, 228u8, 99u8, 197u8,
+ 254u8, 28u8, 181u8, 215u8, 247u8, 238u8, 49u8, 49u8, 195u8, 249u8,
+ ],
+ )
+ }
+ #[doc = " Validation code that is set by the parachain and is to be communicated to collator and"]
+ #[doc = " consequently the relay-chain."]
+ #[doc = ""]
+ #[doc = " This will be cleared in `on_initialize` of each new block if no other pallet already set"]
+ #[doc = " the value."]
+ pub fn new_validation_code(
+ &self,
+ ) -> ::subxt::storage::address::Address<
+ ::subxt::storage::address::StaticStorageMapKey,
+ ::std::vec::Vec<::core::primitive::u8>,
+ ::subxt::storage::address::Yes,
+ (),
+ (),
+ > {
+ ::subxt::storage::address::Address::new_static(
+ "ParachainSystem",
+ "NewValidationCode",
+ vec![],
+ [
+ 185u8, 123u8, 152u8, 122u8, 230u8, 136u8, 79u8, 73u8, 206u8, 19u8,
+ 59u8, 57u8, 75u8, 250u8, 83u8, 185u8, 29u8, 76u8, 89u8, 137u8, 77u8,
+ 163u8, 25u8, 125u8, 182u8, 67u8, 2u8, 180u8, 48u8, 237u8, 49u8, 171u8,
+ ],
+ )
+ }
+ #[doc = " The [`PersistedValidationData`] set for this block."]
+ #[doc = " This value is expected to be set only once per block and it's never stored"]
+ #[doc = " in the trie."]
+ pub fn validation_data(
+ &self,
+ ) -> ::subxt::storage::address::Address<
+ ::subxt::storage::address::StaticStorageMapKey,
+ runtime_types::polkadot_primitives::v6::PersistedValidationData<
+ ::subxt::utils::H256,
+ ::core::primitive::u32,
+ >,
+ ::subxt::storage::address::Yes,
+ (),
+ (),
+ > {
+ ::subxt::storage::address::Address::new_static(
+ "ParachainSystem",
+ "ValidationData",
+ vec![],
+ [
+ 193u8, 240u8, 25u8, 56u8, 103u8, 173u8, 56u8, 56u8, 229u8, 243u8, 91u8,
+ 25u8, 249u8, 95u8, 122u8, 93u8, 37u8, 181u8, 54u8, 244u8, 217u8, 200u8,
+ 62u8, 136u8, 80u8, 148u8, 16u8, 177u8, 124u8, 211u8, 95u8, 24u8,
+ ],
+ )
+ }
+ #[doc = " Were the validation data set to notify the relay chain?"]
+ pub fn did_set_validation_code(
+ &self,
+ ) -> ::subxt::storage::address::Address<
+ ::subxt::storage::address::StaticStorageMapKey,
+ ::core::primitive::bool,
+ ::subxt::storage::address::Yes,
+ ::subxt::storage::address::Yes,
+ (),
+ > {
+ ::subxt::storage::address::Address::new_static(
+ "ParachainSystem",
+ "DidSetValidationCode",
+ vec![],
+ [
+ 233u8, 228u8, 48u8, 111u8, 200u8, 35u8, 30u8, 139u8, 251u8, 77u8,
+ 196u8, 252u8, 35u8, 222u8, 129u8, 235u8, 7u8, 19u8, 156u8, 82u8, 126u8,
+ 173u8, 29u8, 62u8, 20u8, 67u8, 166u8, 116u8, 108u8, 182u8, 57u8, 246u8,
+ ],
+ )
+ }
+ #[doc = " The relay chain block number associated with the last parachain block."]
+ #[doc = ""]
+ #[doc = " This is updated in `on_finalize`."]
+ pub fn last_relay_chain_block_number(
+ &self,
+ ) -> ::subxt::storage::address::Address<
+ ::subxt::storage::address::StaticStorageMapKey,
+ ::core::primitive::u32,
+ ::subxt::storage::address::Yes,
+ ::subxt::storage::address::Yes,
+ (),
+ > {
+ ::subxt::storage::address::Address::new_static(
+ "ParachainSystem",
+ "LastRelayChainBlockNumber",
+ vec![],
+ [
+ 17u8, 65u8, 131u8, 169u8, 195u8, 243u8, 195u8, 93u8, 220u8, 174u8,
+ 75u8, 216u8, 214u8, 227u8, 96u8, 40u8, 8u8, 153u8, 116u8, 160u8, 79u8,
+ 255u8, 35u8, 232u8, 242u8, 42u8, 100u8, 150u8, 208u8, 210u8, 142u8,
+ 186u8,
+ ],
+ )
+ }
+ #[doc = " An option which indicates if the relay-chain restricts signalling a validation code upgrade."]
+ #[doc = " In other words, if this is `Some` and [`NewValidationCode`] is `Some` then the produced"]
+ #[doc = " candidate will be invalid."]
+ #[doc = ""]
+ #[doc = " This storage item is a mirror of the corresponding value for the current parachain from the"]
+ #[doc = " relay-chain. This value is ephemeral which means it doesn't hit the storage. This value is"]
+ #[doc = " set after the inherent."]
+ pub fn upgrade_restriction_signal(
+ &self,
+ ) -> ::subxt::storage::address::Address<
+ ::subxt::storage::address::StaticStorageMapKey,
+ ::core::option::Option<
+ runtime_types::polkadot_primitives::v6::UpgradeRestriction,
+ >,
+ ::subxt::storage::address::Yes,
+ ::subxt::storage::address::Yes,
+ (),
+ > {
+ ::subxt::storage::address::Address::new_static(
+ "ParachainSystem",
+ "UpgradeRestrictionSignal",
+ vec![],
+ [
+ 235u8, 240u8, 37u8, 44u8, 181u8, 52u8, 7u8, 216u8, 20u8, 139u8, 69u8,
+ 124u8, 21u8, 173u8, 237u8, 64u8, 105u8, 88u8, 49u8, 69u8, 123u8, 55u8,
+ 181u8, 167u8, 112u8, 183u8, 190u8, 231u8, 231u8, 127u8, 77u8, 148u8,
+ ],
+ )
+ }
+ #[doc = " Optional upgrade go-ahead signal from the relay-chain."]
+ #[doc = ""]
+ #[doc = " This storage item is a mirror of the corresponding value for the current parachain from the"]
+ #[doc = " relay-chain. This value is ephemeral which means it doesn't hit the storage. This value is"]
+ #[doc = " set after the inherent."]
+ pub fn upgrade_go_ahead(
+ &self,
+ ) -> ::subxt::storage::address::Address<
+ ::subxt::storage::address::StaticStorageMapKey,
+ ::core::option::Option,
+ ::subxt::storage::address::Yes,
+ ::subxt::storage::address::Yes,
+ (),
+ > {
+ ::subxt::storage::address::Address::new_static(
+ "ParachainSystem",
+ "UpgradeGoAhead",
+ vec![],
+ [
+ 149u8, 144u8, 186u8, 88u8, 180u8, 34u8, 82u8, 226u8, 100u8, 148u8,
+ 246u8, 55u8, 233u8, 97u8, 43u8, 0u8, 48u8, 31u8, 69u8, 154u8, 29u8,
+ 147u8, 241u8, 91u8, 81u8, 126u8, 206u8, 117u8, 14u8, 149u8, 87u8, 88u8,
+ ],
+ )
+ }
+ #[doc = " The state proof for the last relay parent block."]
+ #[doc = ""]
+ #[doc = " This field is meant to be updated each block with the validation data inherent. Therefore,"]
+ #[doc = " before processing of the inherent, e.g. in `on_initialize` this data may be stale."]
+ #[doc = ""]
+ #[doc = " This data is also absent from the genesis."]
+ pub fn relay_state_proof(
+ &self,
+ ) -> ::subxt::storage::address::Address<
+ ::subxt::storage::address::StaticStorageMapKey,
+ runtime_types::sp_trie::storage_proof::StorageProof,
+ ::subxt::storage::address::Yes,
+ (),
+ (),
+ > {
+ ::subxt::storage::address::Address::new_static(
+ "ParachainSystem",
+ "RelayStateProof",
+ vec![],
+ [
+ 46u8, 115u8, 163u8, 190u8, 246u8, 47u8, 200u8, 159u8, 206u8, 204u8,
+ 94u8, 250u8, 127u8, 112u8, 109u8, 111u8, 210u8, 195u8, 244u8, 41u8,
+ 36u8, 187u8, 71u8, 150u8, 149u8, 253u8, 143u8, 33u8, 83u8, 189u8,
+ 182u8, 238u8,
+ ],
+ )
+ }
+ #[doc = " The snapshot of some state related to messaging relevant to the current parachain as per"]
+ #[doc = " the relay parent."]
+ #[doc = ""]
+ #[doc = " This field is meant to be updated each block with the validation data inherent. Therefore,"]
+ #[doc = " before processing of the inherent, e.g. in `on_initialize` this data may be stale."]
+ #[doc = ""]
+ #[doc = " This data is also absent from the genesis."] pub fn relevant_messaging_state (& self ,) -> :: subxt :: storage :: address :: Address :: < :: subxt :: storage :: address :: StaticStorageMapKey , runtime_types :: cumulus_pallet_parachain_system :: relay_state_snapshot :: MessagingStateSnapshot , :: subxt :: storage :: address :: Yes , () , () >{
+ ::subxt::storage::address::Address::new_static(
+ "ParachainSystem",
+ "RelevantMessagingState",
+ vec![],
+ [
+ 117u8, 166u8, 186u8, 126u8, 21u8, 174u8, 86u8, 253u8, 163u8, 90u8,
+ 54u8, 226u8, 186u8, 253u8, 126u8, 168u8, 145u8, 45u8, 155u8, 32u8,
+ 97u8, 110u8, 208u8, 125u8, 47u8, 113u8, 165u8, 199u8, 210u8, 118u8,
+ 217u8, 73u8,
+ ],
+ )
+ }
+ #[doc = " The parachain host configuration that was obtained from the relay parent."]
+ #[doc = ""]
+ #[doc = " This field is meant to be updated each block with the validation data inherent. Therefore,"]
+ #[doc = " before processing of the inherent, e.g. in `on_initialize` this data may be stale."]
+ #[doc = ""]
+ #[doc = " This data is also absent from the genesis."]
+ pub fn host_configuration(
+ &self,
+ ) -> ::subxt::storage::address::Address<
+ ::subxt::storage::address::StaticStorageMapKey,
+ runtime_types::polkadot_primitives::v6::AbridgedHostConfiguration,
+ ::subxt::storage::address::Yes,
+ (),
+ (),
+ > {
+ ::subxt::storage::address::Address::new_static(
+ "ParachainSystem",
+ "HostConfiguration",
+ vec![],
+ [
+ 252u8, 23u8, 111u8, 189u8, 120u8, 204u8, 129u8, 223u8, 248u8, 179u8,
+ 239u8, 173u8, 133u8, 61u8, 140u8, 2u8, 75u8, 32u8, 204u8, 178u8, 69u8,
+ 21u8, 44u8, 227u8, 178u8, 179u8, 33u8, 26u8, 131u8, 156u8, 78u8, 85u8,
+ ],
+ )
+ }
+ #[doc = " The last downward message queue chain head we have observed."]
+ #[doc = ""]
+ #[doc = " This value is loaded before and saved after processing inbound downward messages carried"]
+ #[doc = " by the system inherent."]
+ pub fn last_dmq_mqc_head(
+ &self,
+ ) -> ::subxt::storage::address::Address<
+ ::subxt::storage::address::StaticStorageMapKey,
+ runtime_types::cumulus_primitives_parachain_inherent::MessageQueueChain,
+ ::subxt::storage::address::Yes,
+ ::subxt::storage::address::Yes,
+ (),
+ > {
+ ::subxt::storage::address::Address::new_static(
+ "ParachainSystem",
+ "LastDmqMqcHead",
+ vec![],
+ [
+ 1u8, 70u8, 140u8, 40u8, 51u8, 127u8, 75u8, 80u8, 5u8, 49u8, 196u8,
+ 31u8, 30u8, 61u8, 54u8, 252u8, 0u8, 0u8, 100u8, 115u8, 177u8, 250u8,
+ 138u8, 48u8, 107u8, 41u8, 93u8, 87u8, 195u8, 107u8, 206u8, 227u8,
+ ],
+ )
+ }
+ #[doc = " The message queue chain heads we have observed per each channel incoming channel."]
+ #[doc = ""]
+ #[doc = " This value is loaded before and saved after processing inbound downward messages carried"]
+ #[doc = " by the system inherent."]
+ pub fn last_hrmp_mqc_heads(
+ &self,
+ ) -> ::subxt::storage::address::Address<
+ ::subxt::storage::address::StaticStorageMapKey,
+ ::subxt::utils::KeyedVec<
+ runtime_types::polkadot_parachain_primitives::primitives::Id,
+ runtime_types::cumulus_primitives_parachain_inherent::MessageQueueChain,
+ >,
+ ::subxt::storage::address::Yes,
+ ::subxt::storage::address::Yes,
+ (),
+ > {
+ ::subxt::storage::address::Address::new_static(
+ "ParachainSystem",
+ "LastHrmpMqcHeads",
+ vec![],
+ [
+ 131u8, 170u8, 142u8, 30u8, 101u8, 113u8, 131u8, 81u8, 38u8, 168u8,
+ 98u8, 3u8, 9u8, 109u8, 96u8, 179u8, 115u8, 177u8, 128u8, 11u8, 238u8,
+ 54u8, 81u8, 60u8, 97u8, 112u8, 224u8, 175u8, 86u8, 133u8, 182u8, 76u8,
+ ],
+ )
+ }
+ #[doc = " Number of downward messages processed in a block."]
+ #[doc = ""]
+ #[doc = " This will be cleared in `on_initialize` of each new block."]
+ pub fn processed_downward_messages(
+ &self,
+ ) -> ::subxt::storage::address::Address<
+ ::subxt::storage::address::StaticStorageMapKey,
+ ::core::primitive::u32,
+ ::subxt::storage::address::Yes,
+ ::subxt::storage::address::Yes,
+ (),
+ > {
+ ::subxt::storage::address::Address::new_static(
+ "ParachainSystem",
+ "ProcessedDownwardMessages",
+ vec![],
+ [
+ 151u8, 234u8, 196u8, 87u8, 130u8, 79u8, 4u8, 102u8, 47u8, 10u8, 33u8,
+ 132u8, 149u8, 118u8, 61u8, 141u8, 5u8, 1u8, 30u8, 120u8, 220u8, 156u8,
+ 16u8, 11u8, 14u8, 52u8, 126u8, 151u8, 244u8, 149u8, 197u8, 51u8,
+ ],
+ )
+ }
+ #[doc = " HRMP watermark that was set in a block."]
+ #[doc = ""]
+ #[doc = " This will be cleared in `on_initialize` of each new block."]
+ pub fn hrmp_watermark(
+ &self,
+ ) -> ::subxt::storage::address::Address<
+ ::subxt::storage::address::StaticStorageMapKey,
+ ::core::primitive::u32,
+ ::subxt::storage::address::Yes,
+ ::subxt::storage::address::Yes,
+ (),
+ > {
+ ::subxt::storage::address::Address::new_static(
+ "ParachainSystem",
+ "HrmpWatermark",
+ vec![],
+ [
+ 77u8, 62u8, 59u8, 220u8, 7u8, 125u8, 98u8, 249u8, 108u8, 212u8, 223u8,
+ 99u8, 152u8, 13u8, 29u8, 80u8, 166u8, 65u8, 232u8, 113u8, 145u8, 128u8,
+ 123u8, 35u8, 238u8, 31u8, 113u8, 156u8, 220u8, 104u8, 217u8, 165u8,
+ ],
+ )
+ }
+ #[doc = " HRMP messages that were sent in a block."]
+ #[doc = ""]
+ #[doc = " This will be cleared in `on_initialize` of each new block."]
+ pub fn hrmp_outbound_messages(
+ &self,
+ ) -> ::subxt::storage::address::Address<
+ ::subxt::storage::address::StaticStorageMapKey,
+ ::std::vec::Vec<
+ runtime_types::polkadot_core_primitives::OutboundHrmpMessage<
+ runtime_types::polkadot_parachain_primitives::primitives::Id,
+ >,
+ >,
+ ::subxt::storage::address::Yes,
+ ::subxt::storage::address::Yes,
+ (),
+ > {
+ ::subxt::storage::address::Address::new_static(
+ "ParachainSystem",
+ "HrmpOutboundMessages",
+ vec![],
+ [
+ 42u8, 9u8, 96u8, 217u8, 25u8, 101u8, 129u8, 147u8, 150u8, 20u8, 164u8,
+ 186u8, 217u8, 178u8, 15u8, 201u8, 233u8, 104u8, 92u8, 120u8, 29u8,
+ 245u8, 196u8, 13u8, 141u8, 210u8, 102u8, 62u8, 216u8, 80u8, 246u8,
+ 145u8,
+ ],
+ )
+ }
+ #[doc = " Upward messages that were sent in a block."]
+ #[doc = ""]
+ #[doc = " This will be cleared in `on_initialize` of each new block."]
+ pub fn upward_messages(
+ &self,
+ ) -> ::subxt::storage::address::Address<
+ ::subxt::storage::address::StaticStorageMapKey,
+ ::std::vec::Vec<::std::vec::Vec<::core::primitive::u8>>,
+ ::subxt::storage::address::Yes,
+ ::subxt::storage::address::Yes,
+ (),
+ > {
+ ::subxt::storage::address::Address::new_static(
+ "ParachainSystem",
+ "UpwardMessages",
+ vec![],
+ [
+ 179u8, 127u8, 8u8, 94u8, 194u8, 246u8, 53u8, 79u8, 80u8, 22u8, 18u8,
+ 75u8, 116u8, 163u8, 90u8, 161u8, 30u8, 140u8, 57u8, 126u8, 60u8, 91u8,
+ 23u8, 30u8, 120u8, 245u8, 125u8, 96u8, 152u8, 25u8, 248u8, 85u8,
+ ],
+ )
+ }
+ #[doc = " Upward messages that are still pending and not yet send to the relay chain."]
+ pub fn pending_upward_messages(
+ &self,
+ ) -> ::subxt::storage::address::Address<
+ ::subxt::storage::address::StaticStorageMapKey,
+ ::std::vec::Vec<::std::vec::Vec<::core::primitive::u8>>,
+ ::subxt::storage::address::Yes,
+ ::subxt::storage::address::Yes,
+ (),
+ > {
+ ::subxt::storage::address::Address::new_static(
+ "ParachainSystem",
+ "PendingUpwardMessages",
+ vec![],
+ [
+ 239u8, 45u8, 18u8, 173u8, 148u8, 150u8, 55u8, 176u8, 173u8, 156u8,
+ 246u8, 226u8, 198u8, 214u8, 104u8, 187u8, 186u8, 13u8, 83u8, 194u8,
+ 153u8, 29u8, 228u8, 109u8, 26u8, 18u8, 212u8, 151u8, 246u8, 24u8,
+ 133u8, 216u8,
+ ],
+ )
+ }
+ #[doc = " The factor to multiply the base delivery fee by for UMP."]
+ pub fn upward_delivery_fee_factor(
+ &self,
+ ) -> ::subxt::storage::address::Address<
+ ::subxt::storage::address::StaticStorageMapKey,
+ runtime_types::sp_arithmetic::fixed_point::FixedU128,
+ ::subxt::storage::address::Yes,
+ ::subxt::storage::address::Yes,
+ (),
+ > {
+ ::subxt::storage::address::Address::new_static(
+ "ParachainSystem",
+ "UpwardDeliveryFeeFactor",
+ vec![],
+ [
+ 40u8, 217u8, 164u8, 111u8, 151u8, 132u8, 69u8, 226u8, 163u8, 175u8,
+ 43u8, 239u8, 179u8, 217u8, 136u8, 161u8, 13u8, 251u8, 163u8, 102u8,
+ 24u8, 27u8, 168u8, 89u8, 221u8, 83u8, 93u8, 64u8, 96u8, 117u8, 146u8,
+ 71u8,
+ ],
+ )
+ }
+ #[doc = " The number of HRMP messages we observed in `on_initialize` and thus used that number for"]
+ #[doc = " announcing the weight of `on_initialize` and `on_finalize`."]
+ pub fn announced_hrmp_messages_per_candidate(
+ &self,
+ ) -> ::subxt::storage::address::Address<
+ ::subxt::storage::address::StaticStorageMapKey,
+ ::core::primitive::u32,
+ ::subxt::storage::address::Yes,
+ ::subxt::storage::address::Yes,
+ (),
+ > {
+ ::subxt::storage::address::Address::new_static(
+ "ParachainSystem",
+ "AnnouncedHrmpMessagesPerCandidate",
+ vec![],
+ [
+ 93u8, 11u8, 229u8, 172u8, 73u8, 87u8, 13u8, 149u8, 15u8, 94u8, 163u8,
+ 107u8, 156u8, 22u8, 131u8, 177u8, 96u8, 247u8, 213u8, 224u8, 41u8,
+ 126u8, 157u8, 33u8, 154u8, 194u8, 95u8, 234u8, 65u8, 19u8, 58u8, 161u8,
+ ],
+ )
+ }
+ #[doc = " The weight we reserve at the beginning of the block for processing XCMP messages. This"]
+ #[doc = " overrides the amount set in the Config trait."]
+ pub fn reserved_xcmp_weight_override(
+ &self,
+ ) -> ::subxt::storage::address::Address<
+ ::subxt::storage::address::StaticStorageMapKey,
+ runtime_types::sp_weights::weight_v2::Weight,
+ ::subxt::storage::address::Yes,
+ (),
+ (),
+ > {
+ ::subxt::storage::address::Address::new_static(
+ "ParachainSystem",
+ "ReservedXcmpWeightOverride",
+ vec![],
+ [
+ 176u8, 93u8, 203u8, 74u8, 18u8, 170u8, 246u8, 203u8, 109u8, 89u8, 86u8,
+ 77u8, 96u8, 66u8, 189u8, 79u8, 184u8, 253u8, 11u8, 230u8, 87u8, 120u8,
+ 1u8, 254u8, 215u8, 41u8, 210u8, 86u8, 239u8, 206u8, 60u8, 2u8,
+ ],
+ )
+ }
+ #[doc = " The weight we reserve at the beginning of the block for processing DMP messages. This"]
+ #[doc = " overrides the amount set in the Config trait."]
+ pub fn reserved_dmp_weight_override(
+ &self,
+ ) -> ::subxt::storage::address::Address<
+ ::subxt::storage::address::StaticStorageMapKey,
+ runtime_types::sp_weights::weight_v2::Weight,
+ ::subxt::storage::address::Yes,
+ (),
+ (),
+ > {
+ ::subxt::storage::address::Address::new_static(
+ "ParachainSystem",
+ "ReservedDmpWeightOverride",
+ vec![],
+ [
+ 205u8, 124u8, 9u8, 156u8, 255u8, 207u8, 208u8, 23u8, 179u8, 132u8,
+ 254u8, 157u8, 237u8, 240u8, 167u8, 203u8, 253u8, 111u8, 136u8, 32u8,
+ 100u8, 152u8, 16u8, 19u8, 175u8, 14u8, 108u8, 61u8, 59u8, 231u8, 70u8,
+ 112u8,
+ ],
+ )
+ }
+ #[doc = " A custom head data that should be returned as result of `validate_block`."]
+ #[doc = ""]
+ #[doc = " See `Pallet::set_custom_validation_head_data` for more information."]
+ pub fn custom_validation_head_data(
+ &self,
+ ) -> ::subxt::storage::address::Address<
+ ::subxt::storage::address::StaticStorageMapKey,
+ ::std::vec::Vec<::core::primitive::u8>,
+ ::subxt::storage::address::Yes,
+ (),
+ (),
+ > {
+ ::subxt::storage::address::Address::new_static(
+ "ParachainSystem",
+ "CustomValidationHeadData",
+ vec![],
+ [
+ 52u8, 186u8, 187u8, 57u8, 245u8, 171u8, 202u8, 23u8, 92u8, 80u8, 118u8,
+ 66u8, 251u8, 156u8, 175u8, 254u8, 141u8, 185u8, 115u8, 209u8, 170u8,
+ 165u8, 1u8, 242u8, 120u8, 234u8, 162u8, 24u8, 135u8, 105u8, 8u8, 177u8,
+ ],
+ )
+ }
+ }
+ }
+ }
+ pub mod timestamp {
+ use super::root_mod;
+ use super::runtime_types;
+ #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."]
+ pub type Call = runtime_types::pallet_timestamp::pallet::Call;
+ pub mod calls {
+ use super::root_mod;
+ use super::runtime_types;
+ type DispatchError = runtime_types::sp_runtime::DispatchError;
+ pub mod types {
+ use super::runtime_types;
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ pub struct Set {
+ #[codec(compact)]
+ pub now: ::core::primitive::u64,
+ }
+ impl ::subxt::blocks::StaticExtrinsic for Set {
+ const PALLET: &'static str = "Timestamp";
+ const CALL: &'static str = "set";
+ }
+ }
+ pub struct TransactionApi;
+ impl TransactionApi {
+ #[doc = "See [`Pallet::set`]."]
+ pub fn set(&self, now: ::core::primitive::u64) -> ::subxt::tx::Payload {
+ ::subxt::tx::Payload::new_static(
+ "Timestamp",
+ "set",
+ types::Set { now },
+ [
+ 37u8, 95u8, 49u8, 218u8, 24u8, 22u8, 0u8, 95u8, 72u8, 35u8, 155u8,
+ 199u8, 213u8, 54u8, 207u8, 22u8, 185u8, 193u8, 221u8, 70u8, 18u8,
+ 200u8, 4u8, 231u8, 195u8, 173u8, 6u8, 122u8, 11u8, 203u8, 231u8, 227u8,
+ ],
+ )
+ }
+ }
+ }
+ pub mod storage {
+ use super::runtime_types;
+ pub struct StorageApi;
+ impl StorageApi {
+ #[doc = " The current time for the current block."]
+ pub fn now(
+ &self,
+ ) -> ::subxt::storage::address::Address<
+ ::subxt::storage::address::StaticStorageMapKey,
+ ::core::primitive::u64,
+ ::subxt::storage::address::Yes,
+ ::subxt::storage::address::Yes,
+ (),
+ > {
+ ::subxt::storage::address::Address::new_static(
+ "Timestamp",
+ "Now",
+ vec![],
+ [
+ 44u8, 50u8, 80u8, 30u8, 195u8, 146u8, 123u8, 238u8, 8u8, 163u8, 187u8,
+ 92u8, 61u8, 39u8, 51u8, 29u8, 173u8, 169u8, 217u8, 158u8, 85u8, 187u8,
+ 141u8, 26u8, 12u8, 115u8, 51u8, 11u8, 200u8, 244u8, 138u8, 152u8,
+ ],
+ )
+ }
+ #[doc = " 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::storage::address::Address<
+ ::subxt::storage::address::StaticStorageMapKey,
+ ::core::primitive::bool,
+ ::subxt::storage::address::Yes,
+ ::subxt::storage::address::Yes,
+ (),
+ > {
+ ::subxt::storage::address::Address::new_static(
+ "Timestamp",
+ "DidUpdate",
+ vec![],
+ [
+ 229u8, 175u8, 246u8, 102u8, 237u8, 158u8, 212u8, 229u8, 238u8, 214u8,
+ 205u8, 160u8, 164u8, 252u8, 195u8, 75u8, 139u8, 110u8, 22u8, 34u8,
+ 248u8, 204u8, 107u8, 46u8, 20u8, 200u8, 238u8, 167u8, 71u8, 41u8,
+ 214u8, 140u8,
+ ],
+ )
+ }
+ }
+ }
+ pub mod constants {
+ use super::runtime_types;
+ pub struct ConstantsApi;
+ impl ConstantsApi {
+ #[doc = " The minimum period between blocks."]
+ #[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::constants::Address<::core::primitive::u64> {
+ ::subxt::constants::Address::new_static(
+ "Timestamp",
+ "MinimumPeriod",
+ [
+ 128u8, 214u8, 205u8, 242u8, 181u8, 142u8, 124u8, 231u8, 190u8, 146u8,
+ 59u8, 226u8, 157u8, 101u8, 103u8, 117u8, 249u8, 65u8, 18u8, 191u8,
+ 103u8, 119u8, 53u8, 85u8, 81u8, 96u8, 220u8, 42u8, 184u8, 239u8, 42u8,
+ 246u8,
+ ],
+ )
+ }
+ }
+ }
+ }
+ pub mod parachain_info {
+ use super::root_mod;
+ use super::runtime_types;
+ #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."]
+ pub type Call = runtime_types::staging_parachain_info::pallet::Call;
+ pub mod calls {
+ use super::root_mod;
+ use super::runtime_types;
+ type DispatchError = runtime_types::sp_runtime::DispatchError;
+ pub mod types {
+ use super::runtime_types;
+ }
+ pub struct TransactionApi;
+ impl TransactionApi {}
+ }
+ pub mod storage {
+ use super::runtime_types;
+ pub struct StorageApi;
+ impl StorageApi {
+ pub fn parachain_id(
+ &self,
+ ) -> ::subxt::storage::address::Address<
+ ::subxt::storage::address::StaticStorageMapKey,
+ runtime_types::polkadot_parachain_primitives::primitives::Id,
+ ::subxt::storage::address::Yes,
+ ::subxt::storage::address::Yes,
+ (),
+ > {
+ ::subxt::storage::address::Address::new_static(
+ "ParachainInfo",
+ "ParachainId",
+ vec![],
+ [
+ 160u8, 130u8, 74u8, 181u8, 231u8, 180u8, 246u8, 152u8, 204u8, 44u8,
+ 245u8, 91u8, 113u8, 246u8, 218u8, 50u8, 254u8, 248u8, 35u8, 219u8,
+ 83u8, 144u8, 228u8, 245u8, 122u8, 53u8, 194u8, 172u8, 222u8, 118u8,
+ 202u8, 91u8,
+ ],
+ )
+ }
+ }
+ }
+ }
+ pub mod balances {
+ use super::root_mod;
+ use super::runtime_types;
+ #[doc = "The `Error` enum of this pallet."]
+ pub type Error = runtime_types::pallet_balances::pallet::Error;
+ #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."]
+ pub type Call = runtime_types::pallet_balances::pallet::Call;
+ pub mod calls {
+ use super::root_mod;
+ use super::runtime_types;
+ type DispatchError = runtime_types::sp_runtime::DispatchError;
+ pub mod types {
+ use super::runtime_types;
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ pub struct TransferAllowDeath {
+ pub dest: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>,
+ #[codec(compact)]
+ pub value: ::core::primitive::u128,
+ }
+ impl ::subxt::blocks::StaticExtrinsic for TransferAllowDeath {
+ const PALLET: &'static str = "Balances";
+ const CALL: &'static str = "transfer_allow_death";
+ }
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ pub struct ForceTransfer {
+ pub source: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>,
+ pub dest: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>,
+ #[codec(compact)]
+ pub value: ::core::primitive::u128,
+ }
+ impl ::subxt::blocks::StaticExtrinsic for ForceTransfer {
+ const PALLET: &'static str = "Balances";
+ const CALL: &'static str = "force_transfer";
+ }
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ pub struct TransferKeepAlive {
+ pub dest: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>,
+ #[codec(compact)]
+ pub value: ::core::primitive::u128,
+ }
+ impl ::subxt::blocks::StaticExtrinsic for TransferKeepAlive {
+ const PALLET: &'static str = "Balances";
+ const CALL: &'static str = "transfer_keep_alive";
+ }
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ pub struct TransferAll {
+ pub dest: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>,
+ pub keep_alive: ::core::primitive::bool,
+ }
+ impl ::subxt::blocks::StaticExtrinsic for TransferAll {
+ const PALLET: &'static str = "Balances";
+ const CALL: &'static str = "transfer_all";
+ }
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ pub struct ForceUnreserve {
+ pub who: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>,
+ pub amount: ::core::primitive::u128,
+ }
+ impl ::subxt::blocks::StaticExtrinsic for ForceUnreserve {
+ const PALLET: &'static str = "Balances";
+ const CALL: &'static str = "force_unreserve";
+ }
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ pub struct UpgradeAccounts {
+ pub who: ::std::vec::Vec<::subxt::utils::AccountId32>,
+ }
+ impl ::subxt::blocks::StaticExtrinsic for UpgradeAccounts {
+ const PALLET: &'static str = "Balances";
+ const CALL: &'static str = "upgrade_accounts";
+ }
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ pub struct ForceSetBalance {
+ pub who: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>,
+ #[codec(compact)]
+ pub new_free: ::core::primitive::u128,
+ }
+ impl ::subxt::blocks::StaticExtrinsic for ForceSetBalance {
+ const PALLET: &'static str = "Balances";
+ const CALL: &'static str = "force_set_balance";
+ }
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ pub struct ForceAdjustTotalIssuance {
+ pub direction: runtime_types::pallet_balances::types::AdjustmentDirection,
+ #[codec(compact)]
+ pub delta: ::core::primitive::u128,
+ }
+ impl ::subxt::blocks::StaticExtrinsic for ForceAdjustTotalIssuance {
+ const PALLET: &'static str = "Balances";
+ const CALL: &'static str = "force_adjust_total_issuance";
+ }
+ }
+ pub struct TransactionApi;
+ impl TransactionApi {
+ #[doc = "See [`Pallet::transfer_allow_death`]."]
+ pub fn transfer_allow_death(
+ &self,
+ dest: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>,
+ value: ::core::primitive::u128,
+ ) -> ::subxt::tx::Payload {
+ ::subxt::tx::Payload::new_static(
+ "Balances",
+ "transfer_allow_death",
+ types::TransferAllowDeath { dest, value },
+ [
+ 51u8, 166u8, 195u8, 10u8, 139u8, 218u8, 55u8, 130u8, 6u8, 194u8, 35u8,
+ 140u8, 27u8, 205u8, 214u8, 222u8, 102u8, 43u8, 143u8, 145u8, 86u8,
+ 219u8, 210u8, 147u8, 13u8, 39u8, 51u8, 21u8, 237u8, 179u8, 132u8,
+ 130u8,
+ ],
+ )
+ }
+ #[doc = "See [`Pallet::force_transfer`]."]
+ pub fn force_transfer(
+ &self,
+ source: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>,
+ dest: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>,
+ value: ::core::primitive::u128,
+ ) -> ::subxt::tx::Payload {
+ ::subxt::tx::Payload::new_static(
+ "Balances",
+ "force_transfer",
+ types::ForceTransfer { source, dest, value },
+ [
+ 154u8, 93u8, 222u8, 27u8, 12u8, 248u8, 63u8, 213u8, 224u8, 86u8, 250u8,
+ 153u8, 249u8, 102u8, 83u8, 160u8, 79u8, 125u8, 105u8, 222u8, 77u8,
+ 180u8, 90u8, 105u8, 81u8, 217u8, 60u8, 25u8, 213u8, 51u8, 185u8, 96u8,
+ ],
+ )
+ }
+ #[doc = "See [`Pallet::transfer_keep_alive`]."]
+ pub fn transfer_keep_alive(
+ &self,
+ dest: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>,
+ value: ::core::primitive::u128,
+ ) -> ::subxt::tx::Payload {
+ ::subxt::tx::Payload::new_static(
+ "Balances",
+ "transfer_keep_alive",
+ types::TransferKeepAlive { dest, value },
+ [
+ 245u8, 14u8, 190u8, 193u8, 32u8, 210u8, 74u8, 92u8, 25u8, 182u8, 76u8,
+ 55u8, 247u8, 83u8, 114u8, 75u8, 143u8, 236u8, 117u8, 25u8, 54u8, 157u8,
+ 208u8, 207u8, 233u8, 89u8, 70u8, 161u8, 235u8, 242u8, 222u8, 59u8,
+ ],
+ )
+ }
+ #[doc = "See [`Pallet::transfer_all`]."]
+ pub fn transfer_all(
+ &self,
+ dest: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>,
+ keep_alive: ::core::primitive::bool,
+ ) -> ::subxt::tx::Payload {
+ ::subxt::tx::Payload::new_static(
+ "Balances",
+ "transfer_all",
+ types::TransferAll { dest, keep_alive },
+ [
+ 105u8, 132u8, 49u8, 144u8, 195u8, 250u8, 34u8, 46u8, 213u8, 248u8,
+ 112u8, 188u8, 81u8, 228u8, 136u8, 18u8, 67u8, 172u8, 37u8, 38u8, 238u8,
+ 9u8, 34u8, 15u8, 67u8, 34u8, 148u8, 195u8, 223u8, 29u8, 154u8, 6u8,
+ ],
+ )
+ }
+ #[doc = "See [`Pallet::force_unreserve`]."]
+ pub fn force_unreserve(
+ &self,
+ who: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>,
+ amount: ::core::primitive::u128,
+ ) -> ::subxt::tx::Payload {
+ ::subxt::tx::Payload::new_static(
+ "Balances",
+ "force_unreserve",
+ types::ForceUnreserve { who, amount },
+ [
+ 142u8, 151u8, 64u8, 205u8, 46u8, 64u8, 62u8, 122u8, 108u8, 49u8, 223u8,
+ 140u8, 120u8, 153u8, 35u8, 165u8, 187u8, 38u8, 157u8, 200u8, 123u8,
+ 199u8, 198u8, 168u8, 208u8, 159u8, 39u8, 134u8, 92u8, 103u8, 84u8,
+ 171u8,
+ ],
+ )
+ }
+ #[doc = "See [`Pallet::upgrade_accounts`]."]
+ pub fn upgrade_accounts(
+ &self,
+ who: ::std::vec::Vec<::subxt::utils::AccountId32>,
+ ) -> ::subxt::tx::Payload {
+ ::subxt::tx::Payload::new_static(
+ "Balances",
+ "upgrade_accounts",
+ types::UpgradeAccounts { who },
+ [
+ 66u8, 200u8, 179u8, 104u8, 65u8, 2u8, 101u8, 56u8, 130u8, 161u8, 224u8,
+ 233u8, 255u8, 124u8, 70u8, 122u8, 8u8, 49u8, 103u8, 178u8, 68u8, 47u8,
+ 214u8, 166u8, 217u8, 116u8, 178u8, 50u8, 212u8, 164u8, 98u8, 226u8,
+ ],
+ )
+ }
+ #[doc = "See [`Pallet::force_set_balance`]."]
+ pub fn force_set_balance(
+ &self,
+ who: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>,
+ new_free: ::core::primitive::u128,
+ ) -> ::subxt::tx::Payload {
+ ::subxt::tx::Payload::new_static(
+ "Balances",
+ "force_set_balance",
+ types::ForceSetBalance { who, new_free },
+ [
+ 114u8, 229u8, 59u8, 204u8, 180u8, 83u8, 17u8, 4u8, 59u8, 4u8, 55u8,
+ 39u8, 151u8, 196u8, 124u8, 60u8, 209u8, 65u8, 193u8, 11u8, 44u8, 164u8,
+ 116u8, 93u8, 169u8, 30u8, 199u8, 165u8, 55u8, 231u8, 223u8, 43u8,
+ ],
+ )
+ }
+ #[doc = "See [`Pallet::force_adjust_total_issuance`]."]
+ pub fn force_adjust_total_issuance(
+ &self,
+ direction: runtime_types::pallet_balances::types::AdjustmentDirection,
+ delta: ::core::primitive::u128,
+ ) -> ::subxt::tx::Payload {
+ ::subxt::tx::Payload::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 = "The `Event` enum of this pallet"]
+ pub type Event = runtime_types::pallet_balances::pallet::Event;
+ pub mod events {
+ use super::runtime_types;
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ #[doc = "An account was created with some free balance."]
+ pub struct Endowed {
+ pub account: ::subxt::utils::AccountId32,
+ pub free_balance: ::core::primitive::u128,
+ }
+ impl ::subxt::events::StaticEvent for Endowed {
+ const PALLET: &'static str = "Balances";
+ const EVENT: &'static str = "Endowed";
+ }
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ #[doc = "An account was removed whose balance was non-zero but below ExistentialDeposit,"]
+ #[doc = "resulting in an outright loss."]
+ pub struct DustLost {
+ pub account: ::subxt::utils::AccountId32,
+ pub amount: ::core::primitive::u128,
+ }
+ impl ::subxt::events::StaticEvent for DustLost {
+ const PALLET: &'static str = "Balances";
+ const EVENT: &'static str = "DustLost";
+ }
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ #[doc = "Transfer succeeded."]
+ pub struct Transfer {
+ pub from: ::subxt::utils::AccountId32,
+ pub to: ::subxt::utils::AccountId32,
+ pub amount: ::core::primitive::u128,
+ }
+ impl ::subxt::events::StaticEvent for Transfer {
+ const PALLET: &'static str = "Balances";
+ const EVENT: &'static str = "Transfer";
+ }
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ #[doc = "A balance was set by root."]
+ pub struct BalanceSet {
+ pub who: ::subxt::utils::AccountId32,
+ pub free: ::core::primitive::u128,
+ }
+ impl ::subxt::events::StaticEvent for BalanceSet {
+ const PALLET: &'static str = "Balances";
+ const EVENT: &'static str = "BalanceSet";
+ }
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ #[doc = "Some balance was reserved (moved from free to reserved)."]
+ pub struct Reserved {
+ pub who: ::subxt::utils::AccountId32,
+ pub amount: ::core::primitive::u128,
+ }
+ impl ::subxt::events::StaticEvent for Reserved {
+ const PALLET: &'static str = "Balances";
+ const EVENT: &'static str = "Reserved";
+ }
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ #[doc = "Some balance was unreserved (moved from reserved to free)."]
+ pub struct Unreserved {
+ pub who: ::subxt::utils::AccountId32,
+ pub amount: ::core::primitive::u128,
+ }
+ impl ::subxt::events::StaticEvent for Unreserved {
+ const PALLET: &'static str = "Balances";
+ const EVENT: &'static str = "Unreserved";
+ }
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ #[doc = "Some balance was moved from the reserve of the first account to the second account."]
+ #[doc = "Final argument indicates the destination balance type."]
+ pub struct ReserveRepatriated {
+ pub from: ::subxt::utils::AccountId32,
+ pub to: ::subxt::utils::AccountId32,
+ pub amount: ::core::primitive::u128,
+ pub destination_status:
+ runtime_types::frame_support::traits::tokens::misc::BalanceStatus,
+ }
+ impl ::subxt::events::StaticEvent for ReserveRepatriated {
+ const PALLET: &'static str = "Balances";
+ const EVENT: &'static str = "ReserveRepatriated";
+ }
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ #[doc = "Some amount was deposited (e.g. for transaction fees)."]
+ pub struct Deposit {
+ pub who: ::subxt::utils::AccountId32,
+ pub amount: ::core::primitive::u128,
+ }
+ impl ::subxt::events::StaticEvent for Deposit {
+ const PALLET: &'static str = "Balances";
+ const EVENT: &'static str = "Deposit";
+ }
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ #[doc = "Some amount was withdrawn from the account (e.g. for transaction fees)."]
+ pub struct Withdraw {
+ pub who: ::subxt::utils::AccountId32,
+ pub amount: ::core::primitive::u128,
+ }
+ impl ::subxt::events::StaticEvent for Withdraw {
+ const PALLET: &'static str = "Balances";
+ const EVENT: &'static str = "Withdraw";
+ }
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ #[doc = "Some amount was removed from the account (e.g. for misbehavior)."]
+ pub struct Slashed {
+ pub who: ::subxt::utils::AccountId32,
+ pub amount: ::core::primitive::u128,
+ }
+ impl ::subxt::events::StaticEvent for Slashed {
+ const PALLET: &'static str = "Balances";
+ const EVENT: &'static str = "Slashed";
+ }
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ #[doc = "Some amount was minted into an account."]
+ pub struct Minted {
+ pub who: ::subxt::utils::AccountId32,
+ pub amount: ::core::primitive::u128,
+ }
+ impl ::subxt::events::StaticEvent for Minted {
+ const PALLET: &'static str = "Balances";
+ const EVENT: &'static str = "Minted";
+ }
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ #[doc = "Some amount was burned from an account."]
+ pub struct Burned {
+ pub who: ::subxt::utils::AccountId32,
+ pub amount: ::core::primitive::u128,
+ }
+ impl ::subxt::events::StaticEvent for Burned {
+ const PALLET: &'static str = "Balances";
+ const EVENT: &'static str = "Burned";
+ }
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ #[doc = "Some amount was suspended from an account (it can be restored later)."]
+ pub struct Suspended {
+ pub who: ::subxt::utils::AccountId32,
+ pub amount: ::core::primitive::u128,
+ }
+ impl ::subxt::events::StaticEvent for Suspended {
+ const PALLET: &'static str = "Balances";
+ const EVENT: &'static str = "Suspended";
+ }
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ #[doc = "Some amount was restored into an account."]
+ pub struct Restored {
+ pub who: ::subxt::utils::AccountId32,
+ pub amount: ::core::primitive::u128,
+ }
+ impl ::subxt::events::StaticEvent for Restored {
+ const PALLET: &'static str = "Balances";
+ const EVENT: &'static str = "Restored";
+ }
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ #[doc = "An account was upgraded."]
+ pub struct Upgraded {
+ pub who: ::subxt::utils::AccountId32,
+ }
+ impl ::subxt::events::StaticEvent for Upgraded {
+ const PALLET: &'static str = "Balances";
+ const EVENT: &'static str = "Upgraded";
+ }
+ #[derive(
+ :: subxt :: ext :: codec :: CompactAs,
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ #[doc = "Total issuance was increased by `amount`, creating a credit to be balanced."]
+ pub struct Issued {
+ pub amount: ::core::primitive::u128,
+ }
+ impl ::subxt::events::StaticEvent for Issued {
+ const PALLET: &'static str = "Balances";
+ const EVENT: &'static str = "Issued";
+ }
+ #[derive(
+ :: subxt :: ext :: codec :: CompactAs,
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ #[doc = "Total issuance was decreased by `amount`, creating a debt to be balanced."]
+ pub struct Rescinded {
+ pub amount: ::core::primitive::u128,
+ }
+ impl ::subxt::events::StaticEvent for Rescinded {
+ const PALLET: &'static str = "Balances";
+ const EVENT: &'static str = "Rescinded";
+ }
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ #[doc = "Some balance was locked."]
+ pub struct Locked {
+ pub who: ::subxt::utils::AccountId32,
+ pub amount: ::core::primitive::u128,
+ }
+ impl ::subxt::events::StaticEvent for Locked {
+ const PALLET: &'static str = "Balances";
+ const EVENT: &'static str = "Locked";
+ }
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ #[doc = "Some balance was unlocked."]
+ pub struct Unlocked {
+ pub who: ::subxt::utils::AccountId32,
+ pub amount: ::core::primitive::u128,
+ }
+ impl ::subxt::events::StaticEvent for Unlocked {
+ const PALLET: &'static str = "Balances";
+ const EVENT: &'static str = "Unlocked";
+ }
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ #[doc = "Some balance was frozen."]
+ pub struct Frozen {
+ pub who: ::subxt::utils::AccountId32,
+ pub amount: ::core::primitive::u128,
+ }
+ impl ::subxt::events::StaticEvent for Frozen {
+ const PALLET: &'static str = "Balances";
+ const EVENT: &'static str = "Frozen";
+ }
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ #[doc = "Some balance was thawed."]
+ pub struct Thawed {
+ pub who: ::subxt::utils::AccountId32,
+ pub amount: ::core::primitive::u128,
+ }
+ impl ::subxt::events::StaticEvent for Thawed {
+ const PALLET: &'static str = "Balances";
+ const EVENT: &'static str = "Thawed";
+ }
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ #[doc = "The `TotalIssuance` was forcefully changed."]
+ pub struct TotalIssuanceForced {
+ pub old: ::core::primitive::u128,
+ pub new: ::core::primitive::u128,
+ }
+ impl ::subxt::events::StaticEvent for TotalIssuanceForced {
+ const PALLET: &'static str = "Balances";
+ const EVENT: &'static str = "TotalIssuanceForced";
+ }
+ }
+ pub mod storage {
+ use super::runtime_types;
+ pub struct StorageApi;
+ impl StorageApi {
+ #[doc = " The total units issued in the system."]
+ pub fn total_issuance(
+ &self,
+ ) -> ::subxt::storage::address::Address<
+ ::subxt::storage::address::StaticStorageMapKey,
+ ::core::primitive::u128,
+ ::subxt::storage::address::Yes,
+ ::subxt::storage::address::Yes,
+ (),
+ > {
+ ::subxt::storage::address::Address::new_static(
+ "Balances",
+ "TotalIssuance",
+ vec![],
+ [
+ 116u8, 70u8, 119u8, 194u8, 69u8, 37u8, 116u8, 206u8, 171u8, 70u8,
+ 171u8, 210u8, 226u8, 111u8, 184u8, 204u8, 206u8, 11u8, 68u8, 72u8,
+ 255u8, 19u8, 194u8, 11u8, 27u8, 194u8, 81u8, 204u8, 59u8, 224u8, 202u8,
+ 185u8,
+ ],
+ )
+ }
+ #[doc = " The total units of outstanding deactivated balance in the system."]
+ pub fn inactive_issuance(
+ &self,
+ ) -> ::subxt::storage::address::Address<
+ ::subxt::storage::address::StaticStorageMapKey,
+ ::core::primitive::u128,
+ ::subxt::storage::address::Yes,
+ ::subxt::storage::address::Yes,
+ (),
+ > {
+ ::subxt::storage::address::Address::new_static(
+ "Balances",
+ "InactiveIssuance",
+ vec![],
+ [
+ 212u8, 185u8, 19u8, 50u8, 250u8, 72u8, 173u8, 50u8, 4u8, 104u8, 161u8,
+ 249u8, 77u8, 247u8, 204u8, 248u8, 11u8, 18u8, 57u8, 4u8, 82u8, 110u8,
+ 30u8, 216u8, 16u8, 37u8, 87u8, 67u8, 189u8, 235u8, 214u8, 155u8,
+ ],
+ )
+ }
+ #[doc = " The Balances pallet example of storing the balance of an account."]
+ #[doc = ""]
+ #[doc = " # Example"]
+ #[doc = ""]
+ #[doc = " ```nocompile"]
+ #[doc = " impl pallet_balances::Config for Runtime {"]
+ #[doc = " type AccountStore = StorageMapShim, frame_system::Provider, AccountId, Self::AccountData>"]
+ #[doc = " }"]
+ #[doc = " ```"]
+ #[doc = ""]
+ #[doc = " You can also store the balance of an account in the `System` pallet."]
+ #[doc = ""]
+ #[doc = " # Example"]
+ #[doc = ""]
+ #[doc = " ```nocompile"]
+ #[doc = " impl pallet_balances::Config for Runtime {"]
+ #[doc = " type AccountStore = System"]
+ #[doc = " }"]
+ #[doc = " ```"]
+ #[doc = ""]
+ #[doc = " But this comes with tradeoffs, storing account balances in the system pallet stores"]
+ #[doc = " `frame_system` data alongside the account data contrary to storing account balances in the"]
+ #[doc = " `Balances` pallet, which uses a `StorageMap` to store balances data only."]
+ #[doc = " NOTE: This is only used in the case that this pallet is used to store balances."]
+ pub fn account_iter(
+ &self,
+ ) -> ::subxt::storage::address::Address<
+ ::subxt::storage::address::StaticStorageMapKey,
+ runtime_types::pallet_balances::types::AccountData<::core::primitive::u128>,
+ (),
+ ::subxt::storage::address::Yes,
+ ::subxt::storage::address::Yes,
+ > {
+ ::subxt::storage::address::Address::new_static(
+ "Balances",
+ "Account",
+ vec![],
+ [
+ 213u8, 38u8, 200u8, 69u8, 218u8, 0u8, 112u8, 181u8, 160u8, 23u8, 96u8,
+ 90u8, 3u8, 88u8, 126u8, 22u8, 103u8, 74u8, 64u8, 69u8, 29u8, 247u8,
+ 18u8, 17u8, 234u8, 143u8, 189u8, 22u8, 247u8, 194u8, 154u8, 249u8,
+ ],
+ )
+ }
+ #[doc = " The Balances pallet example of storing the balance of an account."]
+ #[doc = ""]
+ #[doc = " # Example"]
+ #[doc = ""]
+ #[doc = " ```nocompile"]
+ #[doc = " impl pallet_balances::Config for Runtime {"]
+ #[doc = " type AccountStore = StorageMapShim, frame_system::Provider, AccountId, Self::AccountData>"]
+ #[doc = " }"]
+ #[doc = " ```"]
+ #[doc = ""]
+ #[doc = " You can also store the balance of an account in the `System` pallet."]
+ #[doc = ""]
+ #[doc = " # Example"]
+ #[doc = ""]
+ #[doc = " ```nocompile"]
+ #[doc = " impl pallet_balances::Config for Runtime {"]
+ #[doc = " type AccountStore = System"]
+ #[doc = " }"]
+ #[doc = " ```"]
+ #[doc = ""]
+ #[doc = " But this comes with tradeoffs, storing account balances in the system pallet stores"]
+ #[doc = " `frame_system` data alongside the account data contrary to storing account balances in the"]
+ #[doc = " `Balances` pallet, which uses a `StorageMap` to store balances data only."]
+ #[doc = " NOTE: This is only used in the case that this pallet is used to store balances."]
+ pub fn account(
+ &self,
+ _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>,
+ ) -> ::subxt::storage::address::Address<
+ ::subxt::storage::address::StaticStorageMapKey,
+ runtime_types::pallet_balances::types::AccountData<::core::primitive::u128>,
+ ::subxt::storage::address::Yes,
+ ::subxt::storage::address::Yes,
+ (),
+ > {
+ ::subxt::storage::address::Address::new_static(
+ "Balances",
+ "Account",
+ vec![::subxt::storage::address::make_static_storage_map_key(_0.borrow())],
+ [
+ 213u8, 38u8, 200u8, 69u8, 218u8, 0u8, 112u8, 181u8, 160u8, 23u8, 96u8,
+ 90u8, 3u8, 88u8, 126u8, 22u8, 103u8, 74u8, 64u8, 69u8, 29u8, 247u8,
+ 18u8, 17u8, 234u8, 143u8, 189u8, 22u8, 247u8, 194u8, 154u8, 249u8,
+ ],
+ )
+ }
+ #[doc = " Any liquidity locks on some account balances."]
+ #[doc = " NOTE: Should only be accessed when setting, changing and freeing a lock."]
+ pub fn locks_iter(
+ &self,
+ ) -> ::subxt::storage::address::Address<
+ ::subxt::storage::address::StaticStorageMapKey,
+ runtime_types::bounded_collections::weak_bounded_vec::WeakBoundedVec<
+ runtime_types::pallet_balances::types::BalanceLock<::core::primitive::u128>,
+ >,
+ (),
+ ::subxt::storage::address::Yes,
+ ::subxt::storage::address::Yes,
+ > {
+ ::subxt::storage::address::Address::new_static(
+ "Balances",
+ "Locks",
+ vec![],
+ [
+ 10u8, 223u8, 55u8, 0u8, 249u8, 69u8, 168u8, 41u8, 75u8, 35u8, 120u8,
+ 167u8, 18u8, 132u8, 9u8, 20u8, 91u8, 51u8, 27u8, 69u8, 136u8, 187u8,
+ 13u8, 220u8, 163u8, 122u8, 26u8, 141u8, 174u8, 249u8, 85u8, 37u8,
+ ],
+ )
+ }
+ #[doc = " Any liquidity locks on some account balances."]
+ #[doc = " NOTE: Should only be accessed when setting, changing and freeing a lock."]
+ pub fn locks(
+ &self,
+ _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>,
+ ) -> ::subxt::storage::address::Address<
+ ::subxt::storage::address::StaticStorageMapKey,
+ runtime_types::bounded_collections::weak_bounded_vec::WeakBoundedVec<
+ runtime_types::pallet_balances::types::BalanceLock<::core::primitive::u128>,
+ >,
+ ::subxt::storage::address::Yes,
+ ::subxt::storage::address::Yes,
+ (),
+ > {
+ ::subxt::storage::address::Address::new_static(
+ "Balances",
+ "Locks",
+ vec![::subxt::storage::address::make_static_storage_map_key(_0.borrow())],
+ [
+ 10u8, 223u8, 55u8, 0u8, 249u8, 69u8, 168u8, 41u8, 75u8, 35u8, 120u8,
+ 167u8, 18u8, 132u8, 9u8, 20u8, 91u8, 51u8, 27u8, 69u8, 136u8, 187u8,
+ 13u8, 220u8, 163u8, 122u8, 26u8, 141u8, 174u8, 249u8, 85u8, 37u8,
+ ],
+ )
+ }
+ #[doc = " Named reserves on some account balances."]
+ pub fn reserves_iter(
+ &self,
+ ) -> ::subxt::storage::address::Address<
+ ::subxt::storage::address::StaticStorageMapKey,
+ runtime_types::bounded_collections::bounded_vec::BoundedVec<
+ runtime_types::pallet_balances::types::ReserveData<
+ [::core::primitive::u8; 8usize],
+ ::core::primitive::u128,
+ >,
+ >,
+ (),
+ ::subxt::storage::address::Yes,
+ ::subxt::storage::address::Yes,
+ > {
+ ::subxt::storage::address::Address::new_static(
+ "Balances",
+ "Reserves",
+ vec![],
+ [
+ 112u8, 10u8, 241u8, 77u8, 64u8, 187u8, 106u8, 159u8, 13u8, 153u8,
+ 140u8, 178u8, 182u8, 50u8, 1u8, 55u8, 149u8, 92u8, 196u8, 229u8, 170u8,
+ 106u8, 193u8, 88u8, 255u8, 244u8, 2u8, 193u8, 62u8, 235u8, 204u8, 91u8,
+ ],
+ )
+ }
+ #[doc = " Named reserves on some account balances."]
+ pub fn reserves(
+ &self,
+ _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>,
+ ) -> ::subxt::storage::address::Address<
+ ::subxt::storage::address::StaticStorageMapKey,
+ runtime_types::bounded_collections::bounded_vec::BoundedVec<
+ runtime_types::pallet_balances::types::ReserveData<
+ [::core::primitive::u8; 8usize],
+ ::core::primitive::u128,
+ >,
+ >,
+ ::subxt::storage::address::Yes,
+ ::subxt::storage::address::Yes,
+ (),
+ > {
+ ::subxt::storage::address::Address::new_static(
+ "Balances",
+ "Reserves",
+ vec![::subxt::storage::address::make_static_storage_map_key(_0.borrow())],
+ [
+ 112u8, 10u8, 241u8, 77u8, 64u8, 187u8, 106u8, 159u8, 13u8, 153u8,
+ 140u8, 178u8, 182u8, 50u8, 1u8, 55u8, 149u8, 92u8, 196u8, 229u8, 170u8,
+ 106u8, 193u8, 88u8, 255u8, 244u8, 2u8, 193u8, 62u8, 235u8, 204u8, 91u8,
+ ],
+ )
+ }
+ #[doc = " Holds on account balances."]
+ pub fn holds_iter(
+ &self,
+ ) -> ::subxt::storage::address::Address<
+ ::subxt::storage::address::StaticStorageMapKey,
+ runtime_types::bounded_collections::bounded_vec::BoundedVec<
+ runtime_types::pallet_balances::types::IdAmount<
+ runtime_types::coretime_rococo_runtime::RuntimeHoldReason,
+ ::core::primitive::u128,
+ >,
+ >,
+ (),
+ ::subxt::storage::address::Yes,
+ ::subxt::storage::address::Yes,
+ > {
+ ::subxt::storage::address::Address::new_static(
+ "Balances",
+ "Holds",
+ vec![],
+ [
+ 37u8, 176u8, 2u8, 18u8, 109u8, 26u8, 66u8, 81u8, 28u8, 104u8, 149u8,
+ 117u8, 119u8, 114u8, 196u8, 35u8, 172u8, 155u8, 66u8, 195u8, 98u8,
+ 37u8, 134u8, 22u8, 106u8, 221u8, 215u8, 97u8, 25u8, 28u8, 21u8, 206u8,
+ ],
+ )
+ }
+ #[doc = " Holds on account balances."]
+ pub fn holds(
+ &self,
+ _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>,
+ ) -> ::subxt::storage::address::Address<
+ ::subxt::storage::address::StaticStorageMapKey,
+ runtime_types::bounded_collections::bounded_vec::BoundedVec<
+ runtime_types::pallet_balances::types::IdAmount<
+ runtime_types::coretime_rococo_runtime::RuntimeHoldReason,
+ ::core::primitive::u128,
+ >,
+ >,
+ ::subxt::storage::address::Yes,
+ ::subxt::storage::address::Yes,
+ (),
+ > {
+ ::subxt::storage::address::Address::new_static(
+ "Balances",
+ "Holds",
+ vec![::subxt::storage::address::make_static_storage_map_key(_0.borrow())],
+ [
+ 37u8, 176u8, 2u8, 18u8, 109u8, 26u8, 66u8, 81u8, 28u8, 104u8, 149u8,
+ 117u8, 119u8, 114u8, 196u8, 35u8, 172u8, 155u8, 66u8, 195u8, 98u8,
+ 37u8, 134u8, 22u8, 106u8, 221u8, 215u8, 97u8, 25u8, 28u8, 21u8, 206u8,
+ ],
+ )
+ }
+ #[doc = " Freeze locks on account balances."]
+ pub fn freezes_iter(
+ &self,
+ ) -> ::subxt::storage::address::Address<
+ ::subxt::storage::address::StaticStorageMapKey,
+ runtime_types::bounded_collections::bounded_vec::BoundedVec<
+ runtime_types::pallet_balances::types::IdAmount<
+ (),
+ ::core::primitive::u128,
+ >,
+ >,
+ (),
+ ::subxt::storage::address::Yes,
+ ::subxt::storage::address::Yes,
+ > {
+ ::subxt::storage::address::Address::new_static(
+ "Balances",
+ "Freezes",
+ vec![],
+ [
+ 69u8, 49u8, 165u8, 76u8, 135u8, 142u8, 179u8, 118u8, 50u8, 109u8, 53u8,
+ 112u8, 110u8, 94u8, 30u8, 93u8, 173u8, 38u8, 27u8, 142u8, 19u8, 5u8,
+ 163u8, 4u8, 68u8, 218u8, 179u8, 224u8, 118u8, 218u8, 115u8, 64u8,
+ ],
+ )
+ }
+ #[doc = " Freeze locks on account balances."]
+ pub fn freezes(
+ &self,
+ _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>,
+ ) -> ::subxt::storage::address::Address<
+ ::subxt::storage::address::StaticStorageMapKey,
+ runtime_types::bounded_collections::bounded_vec::BoundedVec<
+ runtime_types::pallet_balances::types::IdAmount<
+ (),
+ ::core::primitive::u128,
+ >,
+ >,
+ ::subxt::storage::address::Yes,
+ ::subxt::storage::address::Yes,
+ (),
+ > {
+ ::subxt::storage::address::Address::new_static(
+ "Balances",
+ "Freezes",
+ vec![::subxt::storage::address::make_static_storage_map_key(_0.borrow())],
+ [
+ 69u8, 49u8, 165u8, 76u8, 135u8, 142u8, 179u8, 118u8, 50u8, 109u8, 53u8,
+ 112u8, 110u8, 94u8, 30u8, 93u8, 173u8, 38u8, 27u8, 142u8, 19u8, 5u8,
+ 163u8, 4u8, 68u8, 218u8, 179u8, 224u8, 118u8, 218u8, 115u8, 64u8,
+ ],
+ )
+ }
+ }
+ }
+ pub mod constants {
+ use super::runtime_types;
+ pub struct ConstantsApi;
+ impl ConstantsApi {
+ #[doc = " The minimum amount required to keep an account open. MUST BE GREATER THAN ZERO!"]
+ #[doc = ""]
+ #[doc = " If you *really* need it to be zero, you can enable the feature `insecure_zero_ed` for"]
+ #[doc = " this pallet. However, you do so at your own risk: this will open up a major DoS vector."]
+ #[doc = " In case you have multiple sources of provider references, you may also get unexpected"]
+ #[doc = " behaviour if you set this to zero."]
+ #[doc = ""]
+ #[doc = " Bottom line: Do yourself a favour and make it at least one!"]
+ pub fn existential_deposit(
+ &self,
+ ) -> ::subxt::constants::Address<::core::primitive::u128> {
+ ::subxt::constants::Address::new_static(
+ "Balances",
+ "ExistentialDeposit",
+ [
+ 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8,
+ 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8,
+ 136u8, 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, 148u8, 156u8,
+ ],
+ )
+ }
+ #[doc = " The maximum number of locks that should exist on an account."]
+ #[doc = " Not strictly enforced, but used for weight estimation."]
+ pub fn max_locks(&self) -> ::subxt::constants::Address<::core::primitive::u32> {
+ ::subxt::constants::Address::new_static(
+ "Balances",
+ "MaxLocks",
+ [
+ 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8,
+ 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8,
+ 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8,
+ 145u8,
+ ],
+ )
+ }
+ #[doc = " The maximum number of named reserves that can exist on an account."]
+ pub fn max_reserves(&self) -> ::subxt::constants::Address<::core::primitive::u32> {
+ ::subxt::constants::Address::new_static(
+ "Balances",
+ "MaxReserves",
+ [
+ 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8,
+ 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8,
+ 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8,
+ 145u8,
+ ],
+ )
+ }
+ #[doc = " The maximum number of individual freeze locks that can exist on an account at any time."]
+ pub fn max_freezes(&self) -> ::subxt::constants::Address<::core::primitive::u32> {
+ ::subxt::constants::Address::new_static(
+ "Balances",
+ "MaxFreezes",
+ [
+ 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8,
+ 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8,
+ 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8,
+ 145u8,
+ ],
+ )
+ }
+ }
+ }
+ }
+ pub mod transaction_payment {
+ use super::root_mod;
+ use super::runtime_types;
+ #[doc = "The `Event` enum of this pallet"]
+ pub type Event = runtime_types::pallet_transaction_payment::pallet::Event;
+ pub mod events {
+ use super::runtime_types;
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ #[doc = "A transaction fee `actual_fee`, of which `tip` was added to the minimum inclusion fee,"]
+ #[doc = "has been paid by `who`."]
+ pub struct TransactionFeePaid {
+ pub who: ::subxt::utils::AccountId32,
+ pub actual_fee: ::core::primitive::u128,
+ pub tip: ::core::primitive::u128,
+ }
+ impl ::subxt::events::StaticEvent for TransactionFeePaid {
+ const PALLET: &'static str = "TransactionPayment";
+ const EVENT: &'static str = "TransactionFeePaid";
+ }
+ }
+ pub mod storage {
+ use super::runtime_types;
+ pub struct StorageApi;
+ impl StorageApi {
+ pub fn next_fee_multiplier(
+ &self,
+ ) -> ::subxt::storage::address::Address<
+ ::subxt::storage::address::StaticStorageMapKey,
+ runtime_types::sp_arithmetic::fixed_point::FixedU128,
+ ::subxt::storage::address::Yes,
+ ::subxt::storage::address::Yes,
+ (),
+ > {
+ ::subxt::storage::address::Address::new_static(
+ "TransactionPayment",
+ "NextFeeMultiplier",
+ vec![],
+ [
+ 247u8, 39u8, 81u8, 170u8, 225u8, 226u8, 82u8, 147u8, 34u8, 113u8,
+ 147u8, 213u8, 59u8, 80u8, 139u8, 35u8, 36u8, 196u8, 152u8, 19u8, 9u8,
+ 159u8, 176u8, 79u8, 249u8, 201u8, 170u8, 1u8, 129u8, 79u8, 146u8,
+ 197u8,
+ ],
+ )
+ }
+ pub fn storage_version(
+ &self,
+ ) -> ::subxt::storage::address::Address<
+ ::subxt::storage::address::StaticStorageMapKey,
+ runtime_types::pallet_transaction_payment::Releases,
+ ::subxt::storage::address::Yes,
+ ::subxt::storage::address::Yes,
+ (),
+ > {
+ ::subxt::storage::address::Address::new_static(
+ "TransactionPayment",
+ "StorageVersion",
+ vec![],
+ [
+ 105u8, 243u8, 158u8, 241u8, 159u8, 231u8, 253u8, 6u8, 4u8, 32u8, 85u8,
+ 178u8, 126u8, 31u8, 203u8, 134u8, 154u8, 38u8, 122u8, 155u8, 150u8,
+ 251u8, 174u8, 15u8, 74u8, 134u8, 216u8, 244u8, 168u8, 175u8, 158u8,
+ 144u8,
+ ],
+ )
+ }
+ }
+ }
+ pub mod constants {
+ use super::runtime_types;
+ pub struct ConstantsApi;
+ impl ConstantsApi {
+ #[doc = " A fee 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::constants::Address<::core::primitive::u8> {
+ ::subxt::constants::Address::new_static(
+ "TransactionPayment",
+ "OperationalFeeMultiplier",
+ [
+ 141u8, 130u8, 11u8, 35u8, 226u8, 114u8, 92u8, 179u8, 168u8, 110u8,
+ 28u8, 91u8, 221u8, 64u8, 4u8, 148u8, 201u8, 193u8, 185u8, 66u8, 226u8,
+ 114u8, 97u8, 79u8, 62u8, 212u8, 202u8, 114u8, 237u8, 228u8, 183u8,
+ 165u8,
+ ],
+ )
+ }
+ }
+ }
+ }
+ pub mod authorship {
+ use super::root_mod;
+ use super::runtime_types;
+ pub mod storage {
+ use super::runtime_types;
+ pub struct StorageApi;
+ impl StorageApi {
+ #[doc = " Author of current block."]
+ pub fn author(
+ &self,
+ ) -> ::subxt::storage::address::Address<
+ ::subxt::storage::address::StaticStorageMapKey,
+ ::subxt::utils::AccountId32,
+ ::subxt::storage::address::Yes,
+ (),
+ (),
+ > {
+ ::subxt::storage::address::Address::new_static(
+ "Authorship",
+ "Author",
+ vec![],
+ [
+ 247u8, 192u8, 118u8, 227u8, 47u8, 20u8, 203u8, 199u8, 216u8, 87u8,
+ 220u8, 50u8, 166u8, 61u8, 168u8, 213u8, 253u8, 62u8, 202u8, 199u8,
+ 61u8, 192u8, 237u8, 53u8, 22u8, 148u8, 164u8, 245u8, 99u8, 24u8, 146u8,
+ 18u8,
+ ],
+ )
+ }
+ }
+ }
+ }
+ pub mod collator_selection {
+ use super::root_mod;
+ use super::runtime_types;
+ #[doc = "The `Error` enum of this pallet."]
+ pub type Error = runtime_types::pallet_collator_selection::pallet::Error;
+ #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."]
+ pub type Call = runtime_types::pallet_collator_selection::pallet::Call;
+ pub mod calls {
+ use super::root_mod;
+ use super::runtime_types;
+ type DispatchError = runtime_types::sp_runtime::DispatchError;
+ pub mod types {
+ use super::runtime_types;
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ pub struct SetInvulnerables {
+ pub new: ::std::vec::Vec<::subxt::utils::AccountId32>,
+ }
+ impl ::subxt::blocks::StaticExtrinsic for SetInvulnerables {
+ const PALLET: &'static str = "CollatorSelection";
+ const CALL: &'static str = "set_invulnerables";
+ }
+ #[derive(
+ :: subxt :: ext :: codec :: CompactAs,
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ pub struct SetDesiredCandidates {
+ pub max: ::core::primitive::u32,
+ }
+ impl ::subxt::blocks::StaticExtrinsic for SetDesiredCandidates {
+ const PALLET: &'static str = "CollatorSelection";
+ const CALL: &'static str = "set_desired_candidates";
+ }
+ #[derive(
+ :: subxt :: ext :: codec :: CompactAs,
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ pub struct SetCandidacyBond {
+ pub bond: ::core::primitive::u128,
+ }
+ impl ::subxt::blocks::StaticExtrinsic for SetCandidacyBond {
+ const PALLET: &'static str = "CollatorSelection";
+ const CALL: &'static str = "set_candidacy_bond";
+ }
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ pub struct RegisterAsCandidate;
+ impl ::subxt::blocks::StaticExtrinsic for RegisterAsCandidate {
+ const PALLET: &'static str = "CollatorSelection";
+ const CALL: &'static str = "register_as_candidate";
+ }
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ pub struct LeaveIntent;
+ impl ::subxt::blocks::StaticExtrinsic for LeaveIntent {
+ const PALLET: &'static str = "CollatorSelection";
+ const CALL: &'static str = "leave_intent";
+ }
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ pub struct AddInvulnerable {
+ pub who: ::subxt::utils::AccountId32,
+ }
+ impl ::subxt::blocks::StaticExtrinsic for AddInvulnerable {
+ const PALLET: &'static str = "CollatorSelection";
+ const CALL: &'static str = "add_invulnerable";
+ }
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ pub struct RemoveInvulnerable {
+ pub who: ::subxt::utils::AccountId32,
+ }
+ impl ::subxt::blocks::StaticExtrinsic for RemoveInvulnerable {
+ const PALLET: &'static str = "CollatorSelection";
+ const CALL: &'static str = "remove_invulnerable";
+ }
+ #[derive(
+ :: subxt :: ext :: codec :: CompactAs,
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ pub struct UpdateBond {
+ pub new_deposit: ::core::primitive::u128,
+ }
+ impl ::subxt::blocks::StaticExtrinsic for UpdateBond {
+ const PALLET: &'static str = "CollatorSelection";
+ const CALL: &'static str = "update_bond";
+ }
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ pub struct TakeCandidateSlot {
+ pub deposit: ::core::primitive::u128,
+ pub target: ::subxt::utils::AccountId32,
+ }
+ impl ::subxt::blocks::StaticExtrinsic for TakeCandidateSlot {
+ const PALLET: &'static str = "CollatorSelection";
+ const CALL: &'static str = "take_candidate_slot";
+ }
+ }
+ pub struct TransactionApi;
+ impl TransactionApi {
+ #[doc = "See [`Pallet::set_invulnerables`]."]
+ pub fn set_invulnerables(
+ &self,
+ new: ::std::vec::Vec<::subxt::utils::AccountId32>,
+ ) -> ::subxt::tx::Payload {
+ ::subxt::tx::Payload::new_static(
+ "CollatorSelection",
+ "set_invulnerables",
+ types::SetInvulnerables { new },
+ [
+ 113u8, 217u8, 14u8, 48u8, 6u8, 198u8, 8u8, 170u8, 8u8, 237u8, 230u8,
+ 184u8, 17u8, 181u8, 15u8, 126u8, 117u8, 3u8, 208u8, 215u8, 40u8, 16u8,
+ 150u8, 162u8, 37u8, 196u8, 235u8, 36u8, 247u8, 24u8, 187u8, 17u8,
+ ],
+ )
+ }
+ #[doc = "See [`Pallet::set_desired_candidates`]."]
+ pub fn set_desired_candidates(
+ &self,
+ max: ::core::primitive::u32,
+ ) -> ::subxt::tx::Payload {
+ ::subxt::tx::Payload::new_static(
+ "CollatorSelection",
+ "set_desired_candidates",
+ types::SetDesiredCandidates { max },
+ [
+ 174u8, 44u8, 232u8, 155u8, 228u8, 219u8, 239u8, 75u8, 86u8, 150u8,
+ 135u8, 214u8, 58u8, 9u8, 25u8, 133u8, 245u8, 101u8, 85u8, 246u8, 15u8,
+ 248u8, 165u8, 87u8, 88u8, 28u8, 10u8, 196u8, 86u8, 89u8, 28u8, 165u8,
+ ],
+ )
+ }
+ #[doc = "See [`Pallet::set_candidacy_bond`]."]
+ pub fn set_candidacy_bond(
+ &self,
+ bond: ::core::primitive::u128,
+ ) -> ::subxt::tx::Payload {
+ ::subxt::tx::Payload::new_static(
+ "CollatorSelection",
+ "set_candidacy_bond",
+ types::SetCandidacyBond { bond },
+ [
+ 250u8, 4u8, 185u8, 228u8, 101u8, 223u8, 49u8, 44u8, 172u8, 148u8,
+ 216u8, 242u8, 192u8, 88u8, 228u8, 59u8, 225u8, 222u8, 171u8, 40u8,
+ 23u8, 1u8, 46u8, 183u8, 189u8, 191u8, 156u8, 12u8, 218u8, 116u8, 76u8,
+ 59u8,
+ ],
+ )
+ }
+ #[doc = "See [`Pallet::register_as_candidate`]."]
+ pub fn register_as_candidate(
+ &self,
+ ) -> ::subxt::tx::Payload {
+ ::subxt::tx::Payload::new_static(
+ "CollatorSelection",
+ "register_as_candidate",
+ types::RegisterAsCandidate {},
+ [
+ 69u8, 222u8, 214u8, 106u8, 105u8, 168u8, 82u8, 239u8, 158u8, 117u8,
+ 224u8, 89u8, 228u8, 51u8, 221u8, 244u8, 88u8, 63u8, 72u8, 119u8, 224u8,
+ 111u8, 93u8, 39u8, 18u8, 66u8, 72u8, 105u8, 70u8, 66u8, 178u8, 173u8,
+ ],
+ )
+ }
+ #[doc = "See [`Pallet::leave_intent`]."]
+ pub fn leave_intent(&self) -> ::subxt::tx::Payload {
+ ::subxt::tx::Payload::new_static(
+ "CollatorSelection",
+ "leave_intent",
+ types::LeaveIntent {},
+ [
+ 126u8, 57u8, 10u8, 67u8, 120u8, 229u8, 70u8, 23u8, 154u8, 215u8, 226u8,
+ 178u8, 203u8, 152u8, 195u8, 177u8, 157u8, 158u8, 40u8, 17u8, 93u8,
+ 225u8, 253u8, 217u8, 48u8, 165u8, 55u8, 79u8, 43u8, 123u8, 193u8,
+ 147u8,
+ ],
+ )
+ }
+ #[doc = "See [`Pallet::add_invulnerable`]."]
+ pub fn add_invulnerable(
+ &self,
+ who: ::subxt::utils::AccountId32,
+ ) -> ::subxt::tx::Payload {
+ ::subxt::tx::Payload::new_static(
+ "CollatorSelection",
+ "add_invulnerable",
+ types::AddInvulnerable { who },
+ [
+ 115u8, 109u8, 38u8, 19u8, 81u8, 194u8, 124u8, 140u8, 239u8, 23u8, 85u8,
+ 62u8, 241u8, 83u8, 11u8, 241u8, 14u8, 34u8, 206u8, 63u8, 104u8, 78u8,
+ 96u8, 182u8, 173u8, 198u8, 230u8, 107u8, 102u8, 6u8, 164u8, 75u8,
+ ],
+ )
+ }
+ #[doc = "See [`Pallet::remove_invulnerable`]."]
+ pub fn remove_invulnerable(
+ &self,
+ who: ::subxt::utils::AccountId32,
+ ) -> ::subxt::tx::Payload {
+ ::subxt::tx::Payload::new_static(
+ "CollatorSelection",
+ "remove_invulnerable",
+ types::RemoveInvulnerable { who },
+ [
+ 103u8, 146u8, 23u8, 136u8, 61u8, 65u8, 172u8, 157u8, 216u8, 200u8,
+ 119u8, 28u8, 189u8, 215u8, 13u8, 100u8, 102u8, 13u8, 94u8, 12u8, 78u8,
+ 156u8, 149u8, 74u8, 126u8, 118u8, 127u8, 49u8, 129u8, 2u8, 12u8, 118u8,
+ ],
+ )
+ }
+ #[doc = "See [`Pallet::update_bond`]."]
+ pub fn update_bond(
+ &self,
+ new_deposit: ::core::primitive::u128,
+ ) -> ::subxt::tx::Payload {
+ ::subxt::tx::Payload::new_static(
+ "CollatorSelection",
+ "update_bond",
+ types::UpdateBond { new_deposit },
+ [
+ 47u8, 184u8, 193u8, 220u8, 160u8, 1u8, 253u8, 203u8, 8u8, 142u8, 43u8,
+ 151u8, 190u8, 138u8, 201u8, 174u8, 233u8, 112u8, 200u8, 247u8, 251u8,
+ 94u8, 23u8, 224u8, 150u8, 179u8, 190u8, 140u8, 199u8, 50u8, 2u8, 249u8,
+ ],
+ )
+ }
+ #[doc = "See [`Pallet::take_candidate_slot`]."]
+ pub fn take_candidate_slot(
+ &self,
+ deposit: ::core::primitive::u128,
+ target: ::subxt::utils::AccountId32,
+ ) -> ::subxt::tx::Payload {
+ ::subxt::tx::Payload::new_static(
+ "CollatorSelection",
+ "take_candidate_slot",
+ types::TakeCandidateSlot { deposit, target },
+ [
+ 48u8, 150u8, 189u8, 206u8, 199u8, 196u8, 173u8, 3u8, 206u8, 10u8, 50u8,
+ 160u8, 15u8, 53u8, 189u8, 126u8, 154u8, 36u8, 90u8, 66u8, 235u8, 12u8,
+ 107u8, 44u8, 117u8, 33u8, 207u8, 194u8, 251u8, 194u8, 224u8, 80u8,
+ ],
+ )
+ }
+ }
+ }
+ #[doc = "The `Event` enum of this pallet"]
+ pub type Event = runtime_types::pallet_collator_selection::pallet::Event;
+ pub mod events {
+ use super::runtime_types;
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ #[doc = "New Invulnerables were set."]
+ pub struct NewInvulnerables {
+ pub invulnerables: ::std::vec::Vec<::subxt::utils::AccountId32>,
+ }
+ impl ::subxt::events::StaticEvent for NewInvulnerables {
+ const PALLET: &'static str = "CollatorSelection";
+ const EVENT: &'static str = "NewInvulnerables";
+ }
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ #[doc = "A new Invulnerable was added."]
+ pub struct InvulnerableAdded {
+ pub account_id: ::subxt::utils::AccountId32,
+ }
+ impl ::subxt::events::StaticEvent for InvulnerableAdded {
+ const PALLET: &'static str = "CollatorSelection";
+ const EVENT: &'static str = "InvulnerableAdded";
+ }
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ #[doc = "An Invulnerable was removed."]
+ pub struct InvulnerableRemoved {
+ pub account_id: ::subxt::utils::AccountId32,
+ }
+ impl ::subxt::events::StaticEvent for InvulnerableRemoved {
+ const PALLET: &'static str = "CollatorSelection";
+ const EVENT: &'static str = "InvulnerableRemoved";
+ }
+ #[derive(
+ :: subxt :: ext :: codec :: CompactAs,
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ #[doc = "The number of desired candidates was set."]
+ pub struct NewDesiredCandidates {
+ pub desired_candidates: ::core::primitive::u32,
+ }
+ impl ::subxt::events::StaticEvent for NewDesiredCandidates {
+ const PALLET: &'static str = "CollatorSelection";
+ const EVENT: &'static str = "NewDesiredCandidates";
+ }
+ #[derive(
+ :: subxt :: ext :: codec :: CompactAs,
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ #[doc = "The candidacy bond was set."]
+ pub struct NewCandidacyBond {
+ pub bond_amount: ::core::primitive::u128,
+ }
+ impl ::subxt::events::StaticEvent for NewCandidacyBond {
+ const PALLET: &'static str = "CollatorSelection";
+ const EVENT: &'static str = "NewCandidacyBond";
+ }
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ #[doc = "A new candidate joined."]
+ pub struct CandidateAdded {
+ pub account_id: ::subxt::utils::AccountId32,
+ pub deposit: ::core::primitive::u128,
+ }
+ impl ::subxt::events::StaticEvent for CandidateAdded {
+ const PALLET: &'static str = "CollatorSelection";
+ const EVENT: &'static str = "CandidateAdded";
+ }
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ #[doc = "Bond of a candidate updated."]
+ pub struct CandidateBondUpdated {
+ pub account_id: ::subxt::utils::AccountId32,
+ pub deposit: ::core::primitive::u128,
+ }
+ impl ::subxt::events::StaticEvent for CandidateBondUpdated {
+ const PALLET: &'static str = "CollatorSelection";
+ const EVENT: &'static str = "CandidateBondUpdated";
+ }
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ #[doc = "A candidate was removed."]
+ pub struct CandidateRemoved {
+ pub account_id: ::subxt::utils::AccountId32,
+ }
+ impl ::subxt::events::StaticEvent for CandidateRemoved {
+ const PALLET: &'static str = "CollatorSelection";
+ const EVENT: &'static str = "CandidateRemoved";
+ }
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ #[doc = "An account was replaced in the candidate list by another one."]
+ pub struct CandidateReplaced {
+ pub old: ::subxt::utils::AccountId32,
+ pub new: ::subxt::utils::AccountId32,
+ pub deposit: ::core::primitive::u128,
+ }
+ impl ::subxt::events::StaticEvent for CandidateReplaced {
+ const PALLET: &'static str = "CollatorSelection";
+ const EVENT: &'static str = "CandidateReplaced";
+ }
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ #[doc = "An account was unable to be added to the Invulnerables because they did not have keys"]
+ #[doc = "registered. Other Invulnerables may have been set."]
+ pub struct InvalidInvulnerableSkipped {
+ pub account_id: ::subxt::utils::AccountId32,
+ }
+ impl ::subxt::events::StaticEvent for InvalidInvulnerableSkipped {
+ const PALLET: &'static str = "CollatorSelection";
+ const EVENT: &'static str = "InvalidInvulnerableSkipped";
+ }
+ }
+ pub mod storage {
+ use super::runtime_types;
+ pub struct StorageApi;
+ impl StorageApi {
+ #[doc = " The invulnerable, permissioned collators. This list must be sorted."]
+ pub fn invulnerables(
+ &self,
+ ) -> ::subxt::storage::address::Address<
+ ::subxt::storage::address::StaticStorageMapKey,
+ runtime_types::bounded_collections::bounded_vec::BoundedVec<
+ ::subxt::utils::AccountId32,
+ >,
+ ::subxt::storage::address::Yes,
+ ::subxt::storage::address::Yes,
+ (),
+ > {
+ ::subxt::storage::address::Address::new_static(
+ "CollatorSelection",
+ "Invulnerables",
+ vec![],
+ [
+ 109u8, 180u8, 25u8, 41u8, 152u8, 158u8, 186u8, 214u8, 89u8, 222u8,
+ 103u8, 14u8, 91u8, 3u8, 65u8, 6u8, 255u8, 62u8, 47u8, 255u8, 132u8,
+ 164u8, 217u8, 200u8, 130u8, 29u8, 168u8, 23u8, 81u8, 217u8, 35u8,
+ 123u8,
+ ],
+ )
+ }
+ #[doc = " The (community, limited) collation candidates. `Candidates` and `Invulnerables` should be"]
+ #[doc = " mutually exclusive."]
+ #[doc = ""]
+ #[doc = " This list is sorted in ascending order by deposit and when the deposits are equal, the least"]
+ #[doc = " recently updated is considered greater."]
+ pub fn candidate_list(
+ &self,
+ ) -> ::subxt::storage::address::Address<
+ ::subxt::storage::address::StaticStorageMapKey,
+ runtime_types::bounded_collections::bounded_vec::BoundedVec<
+ runtime_types::pallet_collator_selection::pallet::CandidateInfo<
+ ::subxt::utils::AccountId32,
+ ::core::primitive::u128,
+ >,
+ >,
+ ::subxt::storage::address::Yes,
+ ::subxt::storage::address::Yes,
+ (),
+ > {
+ ::subxt::storage::address::Address::new_static(
+ "CollatorSelection",
+ "CandidateList",
+ vec![],
+ [
+ 77u8, 195u8, 89u8, 139u8, 79u8, 111u8, 151u8, 215u8, 19u8, 152u8, 67u8,
+ 49u8, 74u8, 76u8, 3u8, 60u8, 51u8, 140u8, 6u8, 134u8, 159u8, 55u8,
+ 196u8, 57u8, 189u8, 31u8, 219u8, 218u8, 164u8, 189u8, 196u8, 60u8,
+ ],
+ )
+ }
+ #[doc = " Last block authored by collator."]
+ pub fn last_authored_block_iter(
+ &self,
+ ) -> ::subxt::storage::address::Address<
+ ::subxt::storage::address::StaticStorageMapKey,
+ ::core::primitive::u32,
+ (),
+ ::subxt::storage::address::Yes,
+ ::subxt::storage::address::Yes,
+ > {
+ ::subxt::storage::address::Address::new_static(
+ "CollatorSelection",
+ "LastAuthoredBlock",
+ vec![],
+ [
+ 176u8, 170u8, 165u8, 244u8, 101u8, 126u8, 24u8, 132u8, 228u8, 138u8,
+ 72u8, 241u8, 144u8, 100u8, 79u8, 112u8, 9u8, 46u8, 210u8, 80u8, 12u8,
+ 126u8, 32u8, 214u8, 26u8, 171u8, 155u8, 3u8, 233u8, 22u8, 164u8, 25u8,
+ ],
+ )
+ }
+ #[doc = " Last block authored by collator."]
+ pub fn last_authored_block(
+ &self,
+ _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>,
+ ) -> ::subxt::storage::address::Address<
+ ::subxt::storage::address::StaticStorageMapKey,
+ ::core::primitive::u32,
+ ::subxt::storage::address::Yes,
+ ::subxt::storage::address::Yes,
+ (),
+ > {
+ ::subxt::storage::address::Address::new_static(
+ "CollatorSelection",
+ "LastAuthoredBlock",
+ vec![::subxt::storage::address::make_static_storage_map_key(_0.borrow())],
+ [
+ 176u8, 170u8, 165u8, 244u8, 101u8, 126u8, 24u8, 132u8, 228u8, 138u8,
+ 72u8, 241u8, 144u8, 100u8, 79u8, 112u8, 9u8, 46u8, 210u8, 80u8, 12u8,
+ 126u8, 32u8, 214u8, 26u8, 171u8, 155u8, 3u8, 233u8, 22u8, 164u8, 25u8,
+ ],
+ )
+ }
+ #[doc = " Desired number of candidates."]
+ #[doc = ""]
+ #[doc = " This should ideally always be less than [`Config::MaxCandidates`] for weights to be correct."]
+ pub fn desired_candidates(
+ &self,
+ ) -> ::subxt::storage::address::Address<
+ ::subxt::storage::address::StaticStorageMapKey,
+ ::core::primitive::u32,
+ ::subxt::storage::address::Yes,
+ ::subxt::storage::address::Yes,
+ (),
+ > {
+ ::subxt::storage::address::Address::new_static(
+ "CollatorSelection",
+ "DesiredCandidates",
+ vec![],
+ [
+ 69u8, 199u8, 130u8, 132u8, 10u8, 127u8, 204u8, 220u8, 59u8, 107u8,
+ 96u8, 180u8, 42u8, 235u8, 14u8, 126u8, 231u8, 242u8, 162u8, 126u8,
+ 63u8, 223u8, 15u8, 250u8, 22u8, 210u8, 54u8, 34u8, 235u8, 191u8, 250u8,
+ 21u8,
+ ],
+ )
+ }
+ #[doc = " Fixed amount to deposit to become a collator."]
+ #[doc = ""]
+ #[doc = " When a collator calls `leave_intent` they immediately receive the deposit back."]
+ pub fn candidacy_bond(
+ &self,
+ ) -> ::subxt::storage::address::Address<
+ ::subxt::storage::address::StaticStorageMapKey,
+ ::core::primitive::u128,
+ ::subxt::storage::address::Yes,
+ ::subxt::storage::address::Yes,
+ (),
+ > {
+ ::subxt::storage::address::Address::new_static(
+ "CollatorSelection",
+ "CandidacyBond",
+ vec![],
+ [
+ 71u8, 134u8, 156u8, 102u8, 201u8, 83u8, 240u8, 251u8, 189u8, 213u8,
+ 211u8, 182u8, 126u8, 122u8, 41u8, 174u8, 105u8, 29u8, 216u8, 23u8,
+ 255u8, 55u8, 245u8, 187u8, 234u8, 234u8, 178u8, 155u8, 145u8, 49u8,
+ 196u8, 214u8,
+ ],
+ )
+ }
+ }
+ }
+ }
+ pub mod session {
+ use super::root_mod;
+ use super::runtime_types;
+ #[doc = "Error for the session pallet."]
+ pub type Error = runtime_types::pallet_session::pallet::Error;
+ #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."]
+ pub type Call = runtime_types::pallet_session::pallet::Call;
+ pub mod calls {
+ use super::root_mod;
+ use super::runtime_types;
+ type DispatchError = runtime_types::sp_runtime::DispatchError;
+ pub mod types {
+ use super::runtime_types;
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ pub struct SetKeys {
+ pub keys: runtime_types::coretime_rococo_runtime::SessionKeys,
+ pub proof: ::std::vec::Vec<::core::primitive::u8>,
+ }
+ impl ::subxt::blocks::StaticExtrinsic for SetKeys {
+ const PALLET: &'static str = "Session";
+ const CALL: &'static str = "set_keys";
+ }
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ pub struct PurgeKeys;
+ impl ::subxt::blocks::StaticExtrinsic for PurgeKeys {
+ const PALLET: &'static str = "Session";
+ const CALL: &'static str = "purge_keys";
+ }
+ }
+ pub struct TransactionApi;
+ impl TransactionApi {
+ #[doc = "See [`Pallet::set_keys`]."]
+ pub fn set_keys(
+ &self,
+ keys: runtime_types::coretime_rococo_runtime::SessionKeys,
+ proof: ::std::vec::Vec<::core::primitive::u8>,
+ ) -> ::subxt::tx::Payload {
+ ::subxt::tx::Payload::new_static(
+ "Session",
+ "set_keys",
+ types::SetKeys { keys, proof },
+ [
+ 10u8, 183u8, 202u8, 82u8, 236u8, 202u8, 212u8, 220u8, 51u8, 217u8,
+ 229u8, 169u8, 238u8, 141u8, 129u8, 231u8, 203u8, 176u8, 97u8, 148u8,
+ 240u8, 87u8, 177u8, 245u8, 33u8, 109u8, 243u8, 52u8, 46u8, 118u8,
+ 164u8, 35u8,
+ ],
+ )
+ }
+ #[doc = "See [`Pallet::purge_keys`]."]
+ pub fn purge_keys(&self) -> ::subxt::tx::Payload {
+ ::subxt::tx::Payload::new_static(
+ "Session",
+ "purge_keys",
+ types::PurgeKeys {},
+ [
+ 215u8, 204u8, 146u8, 236u8, 32u8, 78u8, 198u8, 79u8, 85u8, 214u8, 15u8,
+ 151u8, 158u8, 31u8, 146u8, 119u8, 119u8, 204u8, 151u8, 169u8, 226u8,
+ 67u8, 217u8, 39u8, 241u8, 245u8, 203u8, 240u8, 203u8, 172u8, 16u8,
+ 209u8,
+ ],
+ )
+ }
+ }
+ }
+ #[doc = "The `Event` enum of this pallet"]
+ pub type Event = runtime_types::pallet_session::pallet::Event;
+ pub mod events {
+ use super::runtime_types;
+ #[derive(
+ :: subxt :: ext :: codec :: CompactAs,
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ #[doc = "New session has happened. Note that the argument is the session index, not the"]
+ #[doc = "block number as the type might suggest."]
+ pub struct NewSession {
+ pub session_index: ::core::primitive::u32,
+ }
+ impl ::subxt::events::StaticEvent for NewSession {
+ const PALLET: &'static str = "Session";
+ const EVENT: &'static str = "NewSession";
+ }
+ }
+ pub mod storage {
+ use super::runtime_types;
+ pub struct StorageApi;
+ impl StorageApi {
+ #[doc = " The current set of validators."]
+ pub fn validators(
+ &self,
+ ) -> ::subxt::storage::address::Address<
+ ::subxt::storage::address::StaticStorageMapKey,
+ ::std::vec::Vec<::subxt::utils::AccountId32>,
+ ::subxt::storage::address::Yes,
+ ::subxt::storage::address::Yes,
+ (),
+ > {
+ ::subxt::storage::address::Address::new_static(
+ "Session",
+ "Validators",
+ vec![],
+ [
+ 50u8, 86u8, 154u8, 222u8, 249u8, 209u8, 156u8, 22u8, 155u8, 25u8,
+ 133u8, 194u8, 210u8, 50u8, 38u8, 28u8, 139u8, 201u8, 90u8, 139u8,
+ 115u8, 12u8, 12u8, 141u8, 4u8, 178u8, 201u8, 241u8, 223u8, 234u8, 6u8,
+ 86u8,
+ ],
+ )
+ }
+ #[doc = " Current index of the session."]
+ pub fn current_index(
+ &self,
+ ) -> ::subxt::storage::address::Address<
+ ::subxt::storage::address::StaticStorageMapKey,
+ ::core::primitive::u32,
+ ::subxt::storage::address::Yes,
+ ::subxt::storage::address::Yes,
+ (),
+ > {
+ ::subxt::storage::address::Address::new_static(
+ "Session",
+ "CurrentIndex",
+ vec![],
+ [
+ 167u8, 151u8, 125u8, 150u8, 159u8, 21u8, 78u8, 217u8, 237u8, 183u8,
+ 135u8, 65u8, 187u8, 114u8, 188u8, 206u8, 16u8, 32u8, 69u8, 208u8,
+ 134u8, 159u8, 232u8, 224u8, 243u8, 27u8, 31u8, 166u8, 145u8, 44u8,
+ 221u8, 230u8,
+ ],
+ )
+ }
+ #[doc = " True if the underlying economic identities or weighting behind the validators"]
+ #[doc = " has changed in the queued validator set."]
+ pub fn queued_changed(
+ &self,
+ ) -> ::subxt::storage::address::Address<
+ ::subxt::storage::address::StaticStorageMapKey,
+ ::core::primitive::bool,
+ ::subxt::storage::address::Yes,
+ ::subxt::storage::address::Yes,
+ (),
+ > {
+ ::subxt::storage::address::Address::new_static(
+ "Session",
+ "QueuedChanged",
+ vec![],
+ [
+ 184u8, 137u8, 224u8, 137u8, 31u8, 236u8, 95u8, 164u8, 102u8, 225u8,
+ 198u8, 227u8, 140u8, 37u8, 113u8, 57u8, 59u8, 4u8, 202u8, 102u8, 117u8,
+ 36u8, 226u8, 64u8, 113u8, 141u8, 199u8, 111u8, 99u8, 144u8, 198u8,
+ 153u8,
+ ],
+ )
+ }
+ #[doc = " The queued keys for the next session. When the next session begins, these keys"]
+ #[doc = " will be used to determine the validator's session keys."]
+ pub fn queued_keys(
+ &self,
+ ) -> ::subxt::storage::address::Address<
+ ::subxt::storage::address::StaticStorageMapKey,
+ ::std::vec::Vec<(
+ ::subxt::utils::AccountId32,
+ runtime_types::coretime_rococo_runtime::SessionKeys,
+ )>,
+ ::subxt::storage::address::Yes,
+ ::subxt::storage::address::Yes,
+ (),
+ > {
+ ::subxt::storage::address::Address::new_static(
+ "Session",
+ "QueuedKeys",
+ vec![],
+ [
+ 3u8, 214u8, 191u8, 168u8, 90u8, 94u8, 107u8, 111u8, 170u8, 31u8, 78u8,
+ 61u8, 240u8, 184u8, 170u8, 104u8, 178u8, 229u8, 159u8, 89u8, 207u8,
+ 37u8, 49u8, 209u8, 131u8, 165u8, 14u8, 169u8, 13u8, 68u8, 151u8, 144u8,
+ ],
+ )
+ }
+ #[doc = " Indices of disabled validators."]
+ #[doc = ""]
+ #[doc = " The vec is always kept sorted so that we can find whether a given validator is"]
+ #[doc = " disabled using binary search. It gets cleared when `on_session_ending` returns"]
+ #[doc = " a new set of identities."]
+ pub fn disabled_validators(
+ &self,
+ ) -> ::subxt::storage::address::Address<
+ ::subxt::storage::address::StaticStorageMapKey,
+ ::std::vec::Vec<::core::primitive::u32>,
+ ::subxt::storage::address::Yes,
+ ::subxt::storage::address::Yes,
+ (),
+ > {
+ ::subxt::storage::address::Address::new_static(
+ "Session",
+ "DisabledValidators",
+ vec![],
+ [
+ 213u8, 19u8, 168u8, 234u8, 187u8, 200u8, 180u8, 97u8, 234u8, 189u8,
+ 36u8, 233u8, 158u8, 184u8, 45u8, 35u8, 129u8, 213u8, 133u8, 8u8, 104u8,
+ 183u8, 46u8, 68u8, 154u8, 240u8, 132u8, 22u8, 247u8, 11u8, 54u8, 221u8,
+ ],
+ )
+ }
+ #[doc = " The next session keys for a validator."]
+ pub fn next_keys_iter(
+ &self,
+ ) -> ::subxt::storage::address::Address<
+ ::subxt::storage::address::StaticStorageMapKey,
+ runtime_types::coretime_rococo_runtime::SessionKeys,
+ (),
+ (),
+ ::subxt::storage::address::Yes,
+ > {
+ ::subxt::storage::address::Address::new_static(
+ "Session",
+ "NextKeys",
+ vec![],
+ [
+ 193u8, 216u8, 53u8, 103u8, 143u8, 241u8, 201u8, 54u8, 108u8, 149u8,
+ 241u8, 42u8, 3u8, 151u8, 223u8, 246u8, 30u8, 6u8, 239u8, 206u8, 27u8,
+ 172u8, 43u8, 226u8, 177u8, 111u8, 203u8, 78u8, 49u8, 34u8, 200u8, 6u8,
+ ],
+ )
+ }
+ #[doc = " The next session keys for a validator."]
+ pub fn next_keys(
+ &self,
+ _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>,
+ ) -> ::subxt::storage::address::Address<
+ ::subxt::storage::address::StaticStorageMapKey,
+ runtime_types::coretime_rococo_runtime::SessionKeys,
+ ::subxt::storage::address::Yes,
+ (),
+ (),
+ > {
+ ::subxt::storage::address::Address::new_static(
+ "Session",
+ "NextKeys",
+ vec![::subxt::storage::address::make_static_storage_map_key(_0.borrow())],
+ [
+ 193u8, 216u8, 53u8, 103u8, 143u8, 241u8, 201u8, 54u8, 108u8, 149u8,
+ 241u8, 42u8, 3u8, 151u8, 223u8, 246u8, 30u8, 6u8, 239u8, 206u8, 27u8,
+ 172u8, 43u8, 226u8, 177u8, 111u8, 203u8, 78u8, 49u8, 34u8, 200u8, 6u8,
+ ],
+ )
+ }
+ #[doc = " The owner of a key. The key is the `KeyTypeId` + the encoded key."]
+ pub fn key_owner_iter(
+ &self,
+ ) -> ::subxt::storage::address::Address<
+ ::subxt::storage::address::StaticStorageMapKey,
+ ::subxt::utils::AccountId32,
+ (),
+ (),
+ ::subxt::storage::address::Yes,
+ > {
+ ::subxt::storage::address::Address::new_static(
+ "Session",
+ "KeyOwner",
+ vec![],
+ [
+ 217u8, 204u8, 21u8, 114u8, 247u8, 129u8, 32u8, 242u8, 93u8, 91u8,
+ 253u8, 253u8, 248u8, 90u8, 12u8, 202u8, 195u8, 25u8, 18u8, 100u8,
+ 253u8, 109u8, 88u8, 77u8, 217u8, 140u8, 51u8, 40u8, 118u8, 35u8, 107u8,
+ 206u8,
+ ],
+ )
+ }
+ #[doc = " The owner of a key. The key is the `KeyTypeId` + the encoded key."]
+ pub fn key_owner_iter1(
+ &self,
+ _0: impl ::std::borrow::Borrow,
+ ) -> ::subxt::storage::address::Address<
+ ::subxt::storage::address::StaticStorageMapKey,
+ ::subxt::utils::AccountId32,
+ (),
+ (),
+ ::subxt::storage::address::Yes,
+ > {
+ ::subxt::storage::address::Address::new_static(
+ "Session",
+ "KeyOwner",
+ vec![::subxt::storage::address::make_static_storage_map_key(_0.borrow())],
+ [
+ 217u8, 204u8, 21u8, 114u8, 247u8, 129u8, 32u8, 242u8, 93u8, 91u8,
+ 253u8, 253u8, 248u8, 90u8, 12u8, 202u8, 195u8, 25u8, 18u8, 100u8,
+ 253u8, 109u8, 88u8, 77u8, 217u8, 140u8, 51u8, 40u8, 118u8, 35u8, 107u8,
+ 206u8,
+ ],
+ )
+ }
+ #[doc = " The owner of a key. The key is the `KeyTypeId` + the encoded key."]
+ pub fn key_owner(
+ &self,
+ _0: impl ::std::borrow::Borrow,
+ _1: impl ::std::borrow::Borrow<[::core::primitive::u8]>,
+ ) -> ::subxt::storage::address::Address<
+ ::subxt::storage::address::StaticStorageMapKey,
+ ::subxt::utils::AccountId32,
+ ::subxt::storage::address::Yes,
+ (),
+ (),
+ > {
+ ::subxt::storage::address::Address::new_static(
+ "Session",
+ "KeyOwner",
+ vec![
+ ::subxt::storage::address::make_static_storage_map_key(_0.borrow()),
+ ::subxt::storage::address::make_static_storage_map_key(_1.borrow()),
+ ],
+ [
+ 217u8, 204u8, 21u8, 114u8, 247u8, 129u8, 32u8, 242u8, 93u8, 91u8,
+ 253u8, 253u8, 248u8, 90u8, 12u8, 202u8, 195u8, 25u8, 18u8, 100u8,
+ 253u8, 109u8, 88u8, 77u8, 217u8, 140u8, 51u8, 40u8, 118u8, 35u8, 107u8,
+ 206u8,
+ ],
+ )
+ }
+ }
+ }
+ }
+ pub mod aura {
+ use super::root_mod;
+ use super::runtime_types;
+ pub mod storage {
+ use super::runtime_types;
+ pub struct StorageApi;
+ impl StorageApi {
+ #[doc = " The current authority set."]
+ pub fn authorities(
+ &self,
+ ) -> ::subxt::storage::address::Address<
+ ::subxt::storage::address::StaticStorageMapKey,
+ runtime_types::bounded_collections::bounded_vec::BoundedVec<
+ runtime_types::sp_consensus_aura::sr25519::app_sr25519::Public,
+ >,
+ ::subxt::storage::address::Yes,
+ ::subxt::storage::address::Yes,
+ (),
+ > {
+ ::subxt::storage::address::Address::new_static(
+ "Aura",
+ "Authorities",
+ vec![],
+ [
+ 232u8, 129u8, 167u8, 104u8, 47u8, 188u8, 238u8, 164u8, 6u8, 29u8,
+ 129u8, 45u8, 64u8, 182u8, 194u8, 47u8, 0u8, 73u8, 63u8, 102u8, 204u8,
+ 94u8, 111u8, 96u8, 137u8, 7u8, 141u8, 110u8, 180u8, 80u8, 228u8, 16u8,
+ ],
+ )
+ }
+ #[doc = " The current slot of this block."]
+ #[doc = ""]
+ #[doc = " This will be set in `on_initialize`."]
+ pub fn current_slot(
+ &self,
+ ) -> ::subxt::storage::address::Address<
+ ::subxt::storage::address::StaticStorageMapKey,
+ runtime_types::sp_consensus_slots::Slot,
+ ::subxt::storage::address::Yes,
+ ::subxt::storage::address::Yes,
+ (),
+ > {
+ ::subxt::storage::address::Address::new_static(
+ "Aura",
+ "CurrentSlot",
+ vec![],
+ [
+ 112u8, 199u8, 115u8, 248u8, 217u8, 242u8, 45u8, 231u8, 178u8, 53u8,
+ 236u8, 167u8, 219u8, 238u8, 81u8, 243u8, 39u8, 140u8, 68u8, 19u8,
+ 201u8, 169u8, 211u8, 133u8, 135u8, 213u8, 150u8, 105u8, 60u8, 252u8,
+ 43u8, 57u8,
+ ],
+ )
+ }
+ }
+ }
+ }
+ pub mod aura_ext {
+ use super::root_mod;
+ use super::runtime_types;
+ pub mod storage {
+ use super::runtime_types;
+ pub struct StorageApi;
+ impl StorageApi {
+ #[doc = " Serves as cache for the authorities."]
+ #[doc = ""]
+ #[doc = " The authorities in AuRa are overwritten in `on_initialize` when we switch to a new session,"]
+ #[doc = " but we require the old authorities to verify the seal when validating a PoV. This will"]
+ #[doc = " always be updated to the latest AuRa authorities in `on_finalize`."]
+ pub fn authorities(
+ &self,
+ ) -> ::subxt::storage::address::Address<
+ ::subxt::storage::address::StaticStorageMapKey,
+ runtime_types::bounded_collections::bounded_vec::BoundedVec<
+ runtime_types::sp_consensus_aura::sr25519::app_sr25519::Public,
+ >,
+ ::subxt::storage::address::Yes,
+ ::subxt::storage::address::Yes,
+ (),
+ > {
+ ::subxt::storage::address::Address::new_static(
+ "AuraExt",
+ "Authorities",
+ vec![],
+ [
+ 232u8, 129u8, 167u8, 104u8, 47u8, 188u8, 238u8, 164u8, 6u8, 29u8,
+ 129u8, 45u8, 64u8, 182u8, 194u8, 47u8, 0u8, 73u8, 63u8, 102u8, 204u8,
+ 94u8, 111u8, 96u8, 137u8, 7u8, 141u8, 110u8, 180u8, 80u8, 228u8, 16u8,
+ ],
+ )
+ }
+ #[doc = " Current slot paired with a number of authored blocks."]
+ #[doc = ""]
+ #[doc = " Updated on each block initialization."]
+ pub fn slot_info(
+ &self,
+ ) -> ::subxt::storage::address::Address<
+ ::subxt::storage::address::StaticStorageMapKey,
+ (runtime_types::sp_consensus_slots::Slot, ::core::primitive::u32),
+ ::subxt::storage::address::Yes,
+ (),
+ (),
+ > {
+ ::subxt::storage::address::Address::new_static(
+ "AuraExt",
+ "SlotInfo",
+ vec![],
+ [
+ 135u8, 135u8, 71u8, 123u8, 102u8, 223u8, 215u8, 76u8, 183u8, 169u8,
+ 108u8, 60u8, 122u8, 5u8, 24u8, 201u8, 96u8, 59u8, 132u8, 95u8, 253u8,
+ 100u8, 148u8, 184u8, 133u8, 146u8, 101u8, 201u8, 91u8, 30u8, 76u8,
+ 169u8,
+ ],
+ )
+ }
+ }
+ }
+ }
+ pub mod xcmp_queue {
+ use super::root_mod;
+ use super::runtime_types;
+ #[doc = "The `Error` enum of this pallet."]
+ pub type Error = runtime_types::cumulus_pallet_xcmp_queue::pallet::Error;
+ #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."]
+ pub type Call = runtime_types::cumulus_pallet_xcmp_queue::pallet::Call;
+ pub mod calls {
+ use super::root_mod;
+ use super::runtime_types;
+ type DispatchError = runtime_types::sp_runtime::DispatchError;
+ pub mod types {
+ use super::runtime_types;
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ pub struct SuspendXcmExecution;
+ impl ::subxt::blocks::StaticExtrinsic for SuspendXcmExecution {
+ const PALLET: &'static str = "XcmpQueue";
+ const CALL: &'static str = "suspend_xcm_execution";
+ }
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ pub struct ResumeXcmExecution;
+ impl ::subxt::blocks::StaticExtrinsic for ResumeXcmExecution {
+ const PALLET: &'static str = "XcmpQueue";
+ const CALL: &'static str = "resume_xcm_execution";
+ }
+ #[derive(
+ :: subxt :: ext :: codec :: CompactAs,
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ pub struct UpdateSuspendThreshold {
+ pub new: ::core::primitive::u32,
+ }
+ impl ::subxt::blocks::StaticExtrinsic for UpdateSuspendThreshold {
+ const PALLET: &'static str = "XcmpQueue";
+ const CALL: &'static str = "update_suspend_threshold";
+ }
+ #[derive(
+ :: subxt :: ext :: codec :: CompactAs,
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ pub struct UpdateDropThreshold {
+ pub new: ::core::primitive::u32,
+ }
+ impl ::subxt::blocks::StaticExtrinsic for UpdateDropThreshold {
+ const PALLET: &'static str = "XcmpQueue";
+ const CALL: &'static str = "update_drop_threshold";
+ }
+ #[derive(
+ :: subxt :: ext :: codec :: CompactAs,
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ pub struct UpdateResumeThreshold {
+ pub new: ::core::primitive::u32,
+ }
+ impl ::subxt::blocks::StaticExtrinsic for UpdateResumeThreshold {
+ const PALLET: &'static str = "XcmpQueue";
+ const CALL: &'static str = "update_resume_threshold";
+ }
+ }
+ pub struct TransactionApi;
+ impl TransactionApi {
+ #[doc = "See [`Pallet::suspend_xcm_execution`]."]
+ pub fn suspend_xcm_execution(
+ &self,
+ ) -> ::subxt::tx::Payload {
+ ::subxt::tx::Payload::new_static(
+ "XcmpQueue",
+ "suspend_xcm_execution",
+ types::SuspendXcmExecution {},
+ [
+ 54u8, 120u8, 33u8, 251u8, 74u8, 56u8, 29u8, 76u8, 104u8, 218u8, 115u8,
+ 198u8, 148u8, 237u8, 9u8, 191u8, 241u8, 48u8, 33u8, 24u8, 60u8, 144u8,
+ 22u8, 78u8, 58u8, 50u8, 26u8, 188u8, 231u8, 42u8, 201u8, 76u8,
+ ],
+ )
+ }
+ #[doc = "See [`Pallet::resume_xcm_execution`]."]
+ pub fn resume_xcm_execution(
+ &self,
+ ) -> ::subxt::tx::Payload {
+ ::subxt::tx::Payload::new_static(
+ "XcmpQueue",
+ "resume_xcm_execution",
+ types::ResumeXcmExecution {},
+ [
+ 173u8, 231u8, 78u8, 253u8, 108u8, 234u8, 199u8, 124u8, 184u8, 154u8,
+ 95u8, 194u8, 13u8, 77u8, 175u8, 7u8, 7u8, 112u8, 161u8, 72u8, 133u8,
+ 71u8, 63u8, 218u8, 97u8, 226u8, 133u8, 6u8, 93u8, 177u8, 247u8, 109u8,
+ ],
+ )
+ }
+ #[doc = "See [`Pallet::update_suspend_threshold`]."]
+ pub fn update_suspend_threshold(
+ &self,
+ new: ::core::primitive::u32,
+ ) -> ::subxt::tx::Payload {
+ ::subxt::tx::Payload::new_static(
+ "XcmpQueue",
+ "update_suspend_threshold",
+ types::UpdateSuspendThreshold { new },
+ [
+ 64u8, 91u8, 172u8, 51u8, 220u8, 174u8, 54u8, 47u8, 57u8, 89u8, 75u8,
+ 39u8, 126u8, 198u8, 143u8, 35u8, 70u8, 125u8, 167u8, 14u8, 17u8, 18u8,
+ 146u8, 222u8, 100u8, 92u8, 81u8, 239u8, 173u8, 43u8, 42u8, 174u8,
+ ],
+ )
+ }
+ #[doc = "See [`Pallet::update_drop_threshold`]."]
+ pub fn update_drop_threshold(
+ &self,
+ new: ::core::primitive::u32,
+ ) -> ::subxt::tx::Payload {
+ ::subxt::tx::Payload::new_static(
+ "XcmpQueue",
+ "update_drop_threshold",
+ types::UpdateDropThreshold { new },
+ [
+ 123u8, 54u8, 12u8, 180u8, 165u8, 198u8, 141u8, 200u8, 149u8, 168u8,
+ 186u8, 237u8, 162u8, 91u8, 89u8, 242u8, 229u8, 16u8, 32u8, 254u8, 59u8,
+ 168u8, 31u8, 134u8, 217u8, 251u8, 0u8, 102u8, 113u8, 194u8, 175u8, 9u8,
+ ],
+ )
+ }
+ #[doc = "See [`Pallet::update_resume_threshold`]."]
+ pub fn update_resume_threshold(
+ &self,
+ new: ::core::primitive::u32,
+ ) -> ::subxt::tx::Payload {
+ ::subxt::tx::Payload::new_static(
+ "XcmpQueue",
+ "update_resume_threshold",
+ types::UpdateResumeThreshold { new },
+ [
+ 172u8, 136u8, 11u8, 106u8, 42u8, 157u8, 167u8, 183u8, 87u8, 62u8,
+ 182u8, 17u8, 184u8, 59u8, 215u8, 230u8, 18u8, 243u8, 212u8, 34u8, 54u8,
+ 188u8, 95u8, 119u8, 173u8, 20u8, 91u8, 206u8, 212u8, 57u8, 136u8, 77u8,
+ ],
+ )
+ }
+ }
+ }
+ #[doc = "The `Event` enum of this pallet"]
+ pub type Event = runtime_types::cumulus_pallet_xcmp_queue::pallet::Event;
+ pub mod events {
+ use super::runtime_types;
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ #[doc = "An HRMP message was sent to a sibling parachain."]
+ pub struct XcmpMessageSent {
+ pub message_hash: [::core::primitive::u8; 32usize],
+ }
+ impl ::subxt::events::StaticEvent for XcmpMessageSent {
+ const PALLET: &'static str = "XcmpQueue";
+ const EVENT: &'static str = "XcmpMessageSent";
+ }
+ }
+ pub mod storage {
+ use super::runtime_types;
+ pub struct StorageApi;
+ impl StorageApi {
+ #[doc = " The suspended inbound XCMP channels. All others are not suspended."]
+ #[doc = ""]
+ #[doc = " This is a `StorageValue` instead of a `StorageMap` since we expect multiple reads per block"]
+ #[doc = " to different keys with a one byte payload. The access to `BoundedBTreeSet` will be cached"]
+ #[doc = " within the block and therefore only included once in the proof size."]
+ #[doc = ""]
+ #[doc = " NOTE: The PoV benchmarking cannot know this and will over-estimate, but the actual proof"]
+ #[doc = " will be smaller."]
+ pub fn inbound_xcmp_suspended(
+ &self,
+ ) -> ::subxt::storage::address::Address<
+ ::subxt::storage::address::StaticStorageMapKey,
+ runtime_types::bounded_collections::bounded_btree_set::BoundedBTreeSet<
+ runtime_types::polkadot_parachain_primitives::primitives::Id,
+ >,
+ ::subxt::storage::address::Yes,
+ ::subxt::storage::address::Yes,
+ (),
+ > {
+ ::subxt::storage::address::Address::new_static(
+ "XcmpQueue",
+ "InboundXcmpSuspended",
+ vec![],
+ [
+ 110u8, 23u8, 239u8, 104u8, 136u8, 224u8, 179u8, 180u8, 40u8, 159u8,
+ 54u8, 15u8, 55u8, 111u8, 75u8, 147u8, 131u8, 127u8, 9u8, 57u8, 133u8,
+ 70u8, 175u8, 181u8, 232u8, 49u8, 13u8, 19u8, 59u8, 151u8, 179u8, 215u8,
+ ],
+ )
+ }
+ #[doc = " The non-empty XCMP channels in order of becoming non-empty, and the index of the first"]
+ #[doc = " and last outbound message. If the two indices are equal, then it indicates an empty"]
+ #[doc = " queue and there must be a non-`Ok` `OutboundStatus`. We assume queues grow no greater"]
+ #[doc = " than 65535 items. Queue indices for normal messages begin at one; zero is reserved in"]
+ #[doc = " case of the need to send a high-priority signal message this block."]
+ #[doc = " The bool is true if there is a signal message waiting to be sent."]
+ pub fn outbound_xcmp_status(
+ &self,
+ ) -> ::subxt::storage::address::Address<
+ ::subxt::storage::address::StaticStorageMapKey,
+ ::std::vec::Vec<
+ runtime_types::cumulus_pallet_xcmp_queue::OutboundChannelDetails,
+ >,
+ ::subxt::storage::address::Yes,
+ ::subxt::storage::address::Yes,
+ (),
+ > {
+ ::subxt::storage::address::Address::new_static(
+ "XcmpQueue",
+ "OutboundXcmpStatus",
+ vec![],
+ [
+ 181u8, 5u8, 216u8, 176u8, 154u8, 233u8, 116u8, 14u8, 151u8, 1u8, 114u8,
+ 16u8, 42u8, 20u8, 63u8, 233u8, 79u8, 122u8, 87u8, 255u8, 75u8, 149u8,
+ 176u8, 106u8, 23u8, 101u8, 228u8, 120u8, 217u8, 167u8, 127u8, 117u8,
+ ],
+ )
+ }
+ #[doc = " The messages outbound in a given XCMP channel."]
+ pub fn outbound_xcmp_messages_iter(
+ &self,
+ ) -> ::subxt::storage::address::Address<
+ ::subxt::storage::address::StaticStorageMapKey,
+ ::std::vec::Vec<::core::primitive::u8>,
+ (),
+ ::subxt::storage::address::Yes,
+ ::subxt::storage::address::Yes,
+ > {
+ ::subxt::storage::address::Address::new_static(
+ "XcmpQueue",
+ "OutboundXcmpMessages",
+ vec![],
+ [
+ 156u8, 3u8, 202u8, 175u8, 175u8, 129u8, 38u8, 144u8, 35u8, 59u8, 228u8,
+ 159u8, 142u8, 25u8, 19u8, 73u8, 73u8, 6u8, 115u8, 19u8, 236u8, 235u8,
+ 144u8, 172u8, 31u8, 168u8, 24u8, 65u8, 115u8, 95u8, 77u8, 63u8,
+ ],
+ )
+ }
+ #[doc = " The messages outbound in a given XCMP channel."]
+ pub fn outbound_xcmp_messages_iter1(
+ &self,
+ _0: impl ::std::borrow::Borrow<
+ runtime_types::polkadot_parachain_primitives::primitives::Id,
+ >,
+ ) -> ::subxt::storage::address::Address<
+ ::subxt::storage::address::StaticStorageMapKey,
+ ::std::vec::Vec<::core::primitive::u8>,
+ (),
+ ::subxt::storage::address::Yes,
+ ::subxt::storage::address::Yes,
+ > {
+ ::subxt::storage::address::Address::new_static(
+ "XcmpQueue",
+ "OutboundXcmpMessages",
+ vec![::subxt::storage::address::make_static_storage_map_key(_0.borrow())],
+ [
+ 156u8, 3u8, 202u8, 175u8, 175u8, 129u8, 38u8, 144u8, 35u8, 59u8, 228u8,
+ 159u8, 142u8, 25u8, 19u8, 73u8, 73u8, 6u8, 115u8, 19u8, 236u8, 235u8,
+ 144u8, 172u8, 31u8, 168u8, 24u8, 65u8, 115u8, 95u8, 77u8, 63u8,
+ ],
+ )
+ }
+ #[doc = " The messages outbound in a given XCMP channel."]
+ pub fn outbound_xcmp_messages(
+ &self,
+ _0: impl ::std::borrow::Borrow<
+ runtime_types::polkadot_parachain_primitives::primitives::Id,
+ >,
+ _1: impl ::std::borrow::Borrow<::core::primitive::u16>,
+ ) -> ::subxt::storage::address::Address<
+ ::subxt::storage::address::StaticStorageMapKey,
+ ::std::vec::Vec<::core::primitive::u8>,
+ ::subxt::storage::address::Yes,
+ ::subxt::storage::address::Yes,
+ (),
+ > {
+ ::subxt::storage::address::Address::new_static(
+ "XcmpQueue",
+ "OutboundXcmpMessages",
+ vec![
+ ::subxt::storage::address::make_static_storage_map_key(_0.borrow()),
+ ::subxt::storage::address::make_static_storage_map_key(_1.borrow()),
+ ],
+ [
+ 156u8, 3u8, 202u8, 175u8, 175u8, 129u8, 38u8, 144u8, 35u8, 59u8, 228u8,
+ 159u8, 142u8, 25u8, 19u8, 73u8, 73u8, 6u8, 115u8, 19u8, 236u8, 235u8,
+ 144u8, 172u8, 31u8, 168u8, 24u8, 65u8, 115u8, 95u8, 77u8, 63u8,
+ ],
+ )
+ }
+ #[doc = " Any signal messages waiting to be sent."]
+ pub fn signal_messages_iter(
+ &self,
+ ) -> ::subxt::storage::address::Address<
+ ::subxt::storage::address::StaticStorageMapKey,
+ ::std::vec::Vec<::core::primitive::u8>,
+ (),
+ ::subxt::storage::address::Yes,
+ ::subxt::storage::address::Yes,
+ > {
+ ::subxt::storage::address::Address::new_static(
+ "XcmpQueue",
+ "SignalMessages",
+ vec![],
+ [
+ 182u8, 143u8, 233u8, 233u8, 111u8, 137u8, 174u8, 165u8, 166u8, 7u8,
+ 229u8, 183u8, 99u8, 108u8, 30u8, 162u8, 71u8, 55u8, 122u8, 124u8,
+ 249u8, 203u8, 142u8, 124u8, 158u8, 213u8, 182u8, 159u8, 206u8, 249u8,
+ 180u8, 24u8,
+ ],
+ )
+ }
+ #[doc = " Any signal messages waiting to be sent."]
+ pub fn signal_messages(
+ &self,
+ _0: impl ::std::borrow::Borrow<
+ runtime_types::polkadot_parachain_primitives::primitives::Id,
+ >,
+ ) -> ::subxt::storage::address::Address<
+ ::subxt::storage::address::StaticStorageMapKey,
+ ::std::vec::Vec<::core::primitive::u8>,
+ ::subxt::storage::address::Yes,
+ ::subxt::storage::address::Yes,
+ (),
+ > {
+ ::subxt::storage::address::Address::new_static(
+ "XcmpQueue",
+ "SignalMessages",
+ vec![::subxt::storage::address::make_static_storage_map_key(_0.borrow())],
+ [
+ 182u8, 143u8, 233u8, 233u8, 111u8, 137u8, 174u8, 165u8, 166u8, 7u8,
+ 229u8, 183u8, 99u8, 108u8, 30u8, 162u8, 71u8, 55u8, 122u8, 124u8,
+ 249u8, 203u8, 142u8, 124u8, 158u8, 213u8, 182u8, 159u8, 206u8, 249u8,
+ 180u8, 24u8,
+ ],
+ )
+ }
+ #[doc = " The configuration which controls the dynamics of the outbound queue."]
+ pub fn queue_config(
+ &self,
+ ) -> ::subxt::storage::address::Address<
+ ::subxt::storage::address::StaticStorageMapKey,
+ runtime_types::cumulus_pallet_xcmp_queue::QueueConfigData,
+ ::subxt::storage::address::Yes,
+ ::subxt::storage::address::Yes,
+ (),
+ > {
+ ::subxt::storage::address::Address::new_static(
+ "XcmpQueue",
+ "QueueConfig",
+ vec![],
+ [
+ 185u8, 67u8, 247u8, 243u8, 211u8, 232u8, 57u8, 240u8, 237u8, 181u8,
+ 23u8, 114u8, 215u8, 128u8, 193u8, 1u8, 176u8, 53u8, 110u8, 195u8,
+ 148u8, 80u8, 187u8, 143u8, 62u8, 30u8, 143u8, 34u8, 248u8, 109u8, 3u8,
+ 141u8,
+ ],
+ )
+ }
+ #[doc = " Whether or not the XCMP queue is suspended from executing incoming XCMs or not."]
+ pub fn queue_suspended(
+ &self,
+ ) -> ::subxt::storage::address::Address<
+ ::subxt::storage::address::StaticStorageMapKey,
+ ::core::primitive::bool,
+ ::subxt::storage::address::Yes,
+ ::subxt::storage::address::Yes,
+ (),
+ > {
+ ::subxt::storage::address::Address::new_static(
+ "XcmpQueue",
+ "QueueSuspended",
+ vec![],
+ [
+ 165u8, 66u8, 105u8, 244u8, 113u8, 43u8, 177u8, 252u8, 212u8, 243u8,
+ 143u8, 184u8, 87u8, 51u8, 163u8, 104u8, 29u8, 84u8, 119u8, 74u8, 233u8,
+ 129u8, 203u8, 105u8, 2u8, 101u8, 19u8, 170u8, 69u8, 253u8, 80u8, 132u8,
+ ],
+ )
+ }
+ #[doc = " The factor to multiply the base delivery fee by."]
+ pub fn delivery_fee_factor_iter(
+ &self,
+ ) -> ::subxt::storage::address::Address<
+ ::subxt::storage::address::StaticStorageMapKey,
+ runtime_types::sp_arithmetic::fixed_point::FixedU128,
+ (),
+ ::subxt::storage::address::Yes,
+ ::subxt::storage::address::Yes,
+ > {
+ ::subxt::storage::address::Address::new_static(
+ "XcmpQueue",
+ "DeliveryFeeFactor",
+ vec![],
+ [
+ 43u8, 5u8, 63u8, 235u8, 115u8, 155u8, 130u8, 27u8, 75u8, 216u8, 177u8,
+ 135u8, 203u8, 147u8, 167u8, 95u8, 208u8, 188u8, 25u8, 14u8, 84u8, 63u8,
+ 116u8, 41u8, 148u8, 110u8, 115u8, 215u8, 196u8, 36u8, 75u8, 102u8,
+ ],
+ )
+ }
+ #[doc = " The factor to multiply the base delivery fee by."]
+ pub fn delivery_fee_factor(
+ &self,
+ _0: impl ::std::borrow::Borrow<
+ runtime_types::polkadot_parachain_primitives::primitives::Id,
+ >,
+ ) -> ::subxt::storage::address::Address<
+ ::subxt::storage::address::StaticStorageMapKey,
+ runtime_types::sp_arithmetic::fixed_point::FixedU128,
+ ::subxt::storage::address::Yes,
+ ::subxt::storage::address::Yes,
+ (),
+ > {
+ ::subxt::storage::address::Address::new_static(
+ "XcmpQueue",
+ "DeliveryFeeFactor",
+ vec![::subxt::storage::address::make_static_storage_map_key(_0.borrow())],
+ [
+ 43u8, 5u8, 63u8, 235u8, 115u8, 155u8, 130u8, 27u8, 75u8, 216u8, 177u8,
+ 135u8, 203u8, 147u8, 167u8, 95u8, 208u8, 188u8, 25u8, 14u8, 84u8, 63u8,
+ 116u8, 41u8, 148u8, 110u8, 115u8, 215u8, 196u8, 36u8, 75u8, 102u8,
+ ],
+ )
+ }
+ }
+ }
+ pub mod constants {
+ use super::runtime_types;
+ pub struct ConstantsApi;
+ impl ConstantsApi {
+ #[doc = " The maximum number of inbound XCMP channels that can be suspended simultaneously."]
+ #[doc = ""]
+ #[doc = " Any further channel suspensions will fail and messages may get dropped without further"]
+ #[doc = " notice. Choosing a high value (1000) is okay; the trade-off that is described in"]
+ #[doc = " [`InboundXcmpSuspended`] still applies at that scale."]
+ pub fn max_inbound_suspended(
+ &self,
+ ) -> ::subxt::constants::Address<::core::primitive::u32> {
+ ::subxt::constants::Address::new_static(
+ "XcmpQueue",
+ "MaxInboundSuspended",
+ [
+ 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 polkadot_xcm {
+ use super::root_mod;
+ use super::runtime_types;
+ #[doc = "The `Error` enum of this pallet."]
+ pub type Error = runtime_types::pallet_xcm::pallet::Error;
+ #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."]
+ pub type Call = runtime_types::pallet_xcm::pallet::Call;
+ pub mod calls {
+ use super::root_mod;
+ use super::runtime_types;
+ type DispatchError = runtime_types::sp_runtime::DispatchError;
+ pub mod types {
+ use super::runtime_types;
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ pub struct Send {
+ pub dest: ::std::boxed::Box,
+ pub message: ::std::boxed::Box,
+ }
+ impl ::subxt::blocks::StaticExtrinsic for Send {
+ const PALLET: &'static str = "PolkadotXcm";
+ const CALL: &'static str = "send";
+ }
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ pub struct TeleportAssets {
+ pub dest: ::std::boxed::Box,
+ pub beneficiary: ::std::boxed::Box,
+ pub assets: ::std::boxed::Box,
+ pub fee_asset_item: ::core::primitive::u32,
+ }
+ impl ::subxt::blocks::StaticExtrinsic for TeleportAssets {
+ const PALLET: &'static str = "PolkadotXcm";
+ const CALL: &'static str = "teleport_assets";
+ }
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ pub struct ReserveTransferAssets {
+ pub dest: ::std::boxed::Box,
+ pub beneficiary: ::std::boxed::Box,
+ pub assets: ::std::boxed::Box,
+ pub fee_asset_item: ::core::primitive::u32,
+ }
+ impl ::subxt::blocks::StaticExtrinsic for ReserveTransferAssets {
+ const PALLET: &'static str = "PolkadotXcm";
+ const CALL: &'static str = "reserve_transfer_assets";
+ }
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ pub struct Execute {
+ pub message: ::std::boxed::Box,
+ pub max_weight: runtime_types::sp_weights::weight_v2::Weight,
+ }
+ impl ::subxt::blocks::StaticExtrinsic for Execute {
+ const PALLET: &'static str = "PolkadotXcm";
+ const CALL: &'static str = "execute";
+ }
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ pub struct ForceXcmVersion {
+ pub location:
+ ::std::boxed::Box,
+ pub version: ::core::primitive::u32,
+ }
+ impl ::subxt::blocks::StaticExtrinsic for ForceXcmVersion {
+ const PALLET: &'static str = "PolkadotXcm";
+ const CALL: &'static str = "force_xcm_version";
+ }
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ pub struct ForceDefaultXcmVersion {
+ pub maybe_xcm_version: ::core::option::Option<::core::primitive::u32>,
+ }
+ impl ::subxt::blocks::StaticExtrinsic for ForceDefaultXcmVersion {
+ const PALLET: &'static str = "PolkadotXcm";
+ const CALL: &'static str = "force_default_xcm_version";
+ }
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ pub struct ForceSubscribeVersionNotify {
+ pub location: ::std::boxed::Box,
+ }
+ impl ::subxt::blocks::StaticExtrinsic for ForceSubscribeVersionNotify {
+ const PALLET: &'static str = "PolkadotXcm";
+ const CALL: &'static str = "force_subscribe_version_notify";
+ }
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ pub struct ForceUnsubscribeVersionNotify {
+ pub location: ::std::boxed::Box,
+ }
+ impl ::subxt::blocks::StaticExtrinsic for ForceUnsubscribeVersionNotify {
+ const PALLET: &'static str = "PolkadotXcm";
+ const CALL: &'static str = "force_unsubscribe_version_notify";
+ }
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ pub struct LimitedReserveTransferAssets {
+ pub dest: ::std::boxed::Box,
+ pub beneficiary: ::std::boxed::Box,
+ pub assets: ::std::boxed::Box,
+ pub fee_asset_item: ::core::primitive::u32,
+ pub weight_limit: runtime_types::xcm::v3::WeightLimit,
+ }
+ impl ::subxt::blocks::StaticExtrinsic for LimitedReserveTransferAssets {
+ const PALLET: &'static str = "PolkadotXcm";
+ const CALL: &'static str = "limited_reserve_transfer_assets";
+ }
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ pub struct LimitedTeleportAssets {
+ pub dest: ::std::boxed::Box,
+ pub beneficiary: ::std::boxed::Box,
+ pub assets: ::std::boxed::Box,
+ pub fee_asset_item: ::core::primitive::u32,
+ pub weight_limit: runtime_types::xcm::v3::WeightLimit,
+ }
+ impl ::subxt::blocks::StaticExtrinsic for LimitedTeleportAssets {
+ const PALLET: &'static str = "PolkadotXcm";
+ const CALL: &'static str = "limited_teleport_assets";
+ }
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ pub struct ForceSuspension {
+ pub suspended: ::core::primitive::bool,
+ }
+ impl ::subxt::blocks::StaticExtrinsic for ForceSuspension {
+ const PALLET: &'static str = "PolkadotXcm";
+ const CALL: &'static str = "force_suspension";
+ }
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ pub struct TransferAssets {
+ pub dest: ::std::boxed::Box,
+ pub beneficiary: ::std::boxed::Box,
+ pub assets: ::std::boxed::Box,
+ pub fee_asset_item: ::core::primitive::u32,
+ pub weight_limit: runtime_types::xcm::v3::WeightLimit,
+ }
+ impl ::subxt::blocks::StaticExtrinsic for TransferAssets {
+ const PALLET: &'static str = "PolkadotXcm";
+ const CALL: &'static str = "transfer_assets";
+ }
+ }
+ pub struct TransactionApi;
+ impl TransactionApi {
+ #[doc = "See [`Pallet::send`]."]
+ pub fn send(
+ &self,
+ dest: runtime_types::xcm::VersionedLocation,
+ message: runtime_types::xcm::VersionedXcm,
+ ) -> ::subxt::tx::Payload {
+ ::subxt::tx::Payload::new_static(
+ "PolkadotXcm",
+ "send",
+ types::Send {
+ dest: ::std::boxed::Box::new(dest),
+ message: ::std::boxed::Box::new(message),
+ },
+ [
+ 47u8, 63u8, 128u8, 176u8, 10u8, 137u8, 124u8, 238u8, 155u8, 37u8,
+ 193u8, 160u8, 83u8, 240u8, 21u8, 179u8, 169u8, 131u8, 27u8, 104u8,
+ 195u8, 208u8, 123u8, 14u8, 221u8, 12u8, 45u8, 81u8, 148u8, 76u8, 17u8,
+ 100u8,
+ ],
+ )
+ }
+ #[doc = "See [`Pallet::teleport_assets`]."]
+ pub fn teleport_assets(
+ &self,
+ dest: runtime_types::xcm::VersionedLocation,
+ beneficiary: runtime_types::xcm::VersionedLocation,
+ assets: runtime_types::xcm::VersionedAssets,
+ fee_asset_item: ::core::primitive::u32,
+ ) -> ::subxt::tx::Payload {
+ ::subxt::tx::Payload::new_static(
+ "PolkadotXcm",
+ "teleport_assets",
+ types::TeleportAssets {
+ dest: ::std::boxed::Box::new(dest),
+ beneficiary: ::std::boxed::Box::new(beneficiary),
+ assets: ::std::boxed::Box::new(assets),
+ fee_asset_item,
+ },
+ [
+ 124u8, 191u8, 118u8, 61u8, 45u8, 225u8, 97u8, 83u8, 198u8, 20u8, 139u8,
+ 117u8, 241u8, 1u8, 19u8, 54u8, 79u8, 181u8, 131u8, 112u8, 11u8, 118u8,
+ 147u8, 12u8, 89u8, 156u8, 123u8, 123u8, 195u8, 45u8, 50u8, 107u8,
+ ],
+ )
+ }
+ #[doc = "See [`Pallet::reserve_transfer_assets`]."]
+ pub fn reserve_transfer_assets(
+ &self,
+ dest: runtime_types::xcm::VersionedLocation,
+ beneficiary: runtime_types::xcm::VersionedLocation,
+ assets: runtime_types::xcm::VersionedAssets,
+ fee_asset_item: ::core::primitive::u32,
+ ) -> ::subxt::tx::Payload {
+ ::subxt::tx::Payload::new_static(
+ "PolkadotXcm",
+ "reserve_transfer_assets",
+ types::ReserveTransferAssets {
+ dest: ::std::boxed::Box::new(dest),
+ beneficiary: ::std::boxed::Box::new(beneficiary),
+ assets: ::std::boxed::Box::new(assets),
+ fee_asset_item,
+ },
+ [
+ 97u8, 102u8, 230u8, 44u8, 135u8, 197u8, 43u8, 53u8, 182u8, 125u8,
+ 140u8, 141u8, 229u8, 73u8, 29u8, 55u8, 159u8, 104u8, 197u8, 20u8,
+ 124u8, 234u8, 250u8, 94u8, 133u8, 253u8, 189u8, 6u8, 216u8, 162u8,
+ 218u8, 89u8,
+ ],
+ )
+ }
+ #[doc = "See [`Pallet::execute`]."]
+ pub fn execute(
+ &self,
+ message: runtime_types::xcm::VersionedXcm2,
+ max_weight: runtime_types::sp_weights::weight_v2::Weight,
+ ) -> ::subxt::tx::Payload {
+ ::subxt::tx::Payload::new_static(
+ "PolkadotXcm",
+ "execute",
+ types::Execute { message: ::std::boxed::Box::new(message), max_weight },
+ [
+ 71u8, 109u8, 92u8, 110u8, 198u8, 150u8, 140u8, 125u8, 248u8, 236u8,
+ 177u8, 156u8, 198u8, 223u8, 51u8, 15u8, 52u8, 240u8, 20u8, 200u8, 68u8,
+ 145u8, 36u8, 156u8, 159u8, 153u8, 125u8, 48u8, 181u8, 61u8, 53u8,
+ 208u8,
+ ],
+ )
+ }
+ #[doc = "See [`Pallet::force_xcm_version`]."]
+ pub fn force_xcm_version(
+ &self,
+ location: runtime_types::staging_xcm::v4::location::Location,
+ version: ::core::primitive::u32,
+ ) -> ::subxt::tx::Payload {
+ ::subxt::tx::Payload::new_static(
+ "PolkadotXcm",
+ "force_xcm_version",
+ types::ForceXcmVersion {
+ location: ::std::boxed::Box::new(location),
+ version,
+ },
+ [
+ 69u8, 151u8, 198u8, 154u8, 69u8, 181u8, 41u8, 111u8, 145u8, 230u8,
+ 103u8, 42u8, 237u8, 91u8, 235u8, 6u8, 156u8, 65u8, 187u8, 48u8, 171u8,
+ 200u8, 49u8, 4u8, 9u8, 210u8, 229u8, 152u8, 187u8, 88u8, 80u8, 246u8,
+ ],
+ )
+ }
+ #[doc = "See [`Pallet::force_default_xcm_version`]."]
+ pub fn force_default_xcm_version(
+ &self,
+ maybe_xcm_version: ::core::option::Option<::core::primitive::u32>,
+ ) -> ::subxt::tx::Payload {
+ ::subxt::tx::Payload::new_static(
+ "PolkadotXcm",
+ "force_default_xcm_version",
+ types::ForceDefaultXcmVersion { maybe_xcm_version },
+ [
+ 43u8, 114u8, 102u8, 104u8, 209u8, 234u8, 108u8, 173u8, 109u8, 188u8,
+ 94u8, 214u8, 136u8, 43u8, 153u8, 75u8, 161u8, 192u8, 76u8, 12u8, 221u8,
+ 237u8, 158u8, 247u8, 41u8, 193u8, 35u8, 174u8, 183u8, 207u8, 79u8,
+ 213u8,
+ ],
+ )
+ }
+ #[doc = "See [`Pallet::force_subscribe_version_notify`]."]
+ pub fn force_subscribe_version_notify(
+ &self,
+ location: runtime_types::xcm::VersionedLocation,
+ ) -> ::subxt::tx::Payload {
+ ::subxt::tx::Payload::new_static(
+ "PolkadotXcm",
+ "force_subscribe_version_notify",
+ types::ForceSubscribeVersionNotify {
+ location: ::std::boxed::Box::new(location),
+ },
+ [
+ 203u8, 171u8, 70u8, 130u8, 46u8, 63u8, 76u8, 50u8, 105u8, 23u8, 249u8,
+ 190u8, 115u8, 74u8, 70u8, 125u8, 132u8, 112u8, 138u8, 60u8, 33u8, 35u8,
+ 45u8, 29u8, 95u8, 103u8, 187u8, 182u8, 188u8, 196u8, 248u8, 152u8,
+ ],
+ )
+ }
+ #[doc = "See [`Pallet::force_unsubscribe_version_notify`]."]
+ pub fn force_unsubscribe_version_notify(
+ &self,
+ location: runtime_types::xcm::VersionedLocation,
+ ) -> ::subxt::tx::Payload {
+ ::subxt::tx::Payload::new_static(
+ "PolkadotXcm",
+ "force_unsubscribe_version_notify",
+ types::ForceUnsubscribeVersionNotify {
+ location: ::std::boxed::Box::new(location),
+ },
+ [
+ 6u8, 113u8, 168u8, 215u8, 233u8, 202u8, 249u8, 134u8, 131u8, 8u8,
+ 142u8, 203u8, 142u8, 95u8, 216u8, 70u8, 38u8, 99u8, 166u8, 97u8, 218u8,
+ 132u8, 247u8, 14u8, 42u8, 99u8, 4u8, 115u8, 200u8, 180u8, 213u8, 50u8,
+ ],
+ )
+ }
+ #[doc = "See [`Pallet::limited_reserve_transfer_assets`]."]
+ pub fn limited_reserve_transfer_assets(
+ &self,
+ dest: runtime_types::xcm::VersionedLocation,
+ beneficiary: runtime_types::xcm::VersionedLocation,
+ assets: runtime_types::xcm::VersionedAssets,
+ fee_asset_item: ::core::primitive::u32,
+ weight_limit: runtime_types::xcm::v3::WeightLimit,
+ ) -> ::subxt::tx::Payload {
+ ::subxt::tx::Payload::new_static(
+ "PolkadotXcm",
+ "limited_reserve_transfer_assets",
+ types::LimitedReserveTransferAssets {
+ dest: ::std::boxed::Box::new(dest),
+ beneficiary: ::std::boxed::Box::new(beneficiary),
+ assets: ::std::boxed::Box::new(assets),
+ fee_asset_item,
+ weight_limit,
+ },
+ [
+ 198u8, 66u8, 204u8, 162u8, 222u8, 246u8, 141u8, 165u8, 241u8, 62u8,
+ 43u8, 236u8, 56u8, 200u8, 54u8, 47u8, 174u8, 83u8, 167u8, 220u8, 174u8,
+ 111u8, 123u8, 202u8, 248u8, 232u8, 166u8, 80u8, 152u8, 223u8, 86u8,
+ 141u8,
+ ],
+ )
+ }
+ #[doc = "See [`Pallet::limited_teleport_assets`]."]
+ pub fn limited_teleport_assets(
+ &self,
+ dest: runtime_types::xcm::VersionedLocation,
+ beneficiary: runtime_types::xcm::VersionedLocation,
+ assets: runtime_types::xcm::VersionedAssets,
+ fee_asset_item: ::core::primitive::u32,
+ weight_limit: runtime_types::xcm::v3::WeightLimit,
+ ) -> ::subxt::tx::Payload {
+ ::subxt::tx::Payload::new_static(
+ "PolkadotXcm",
+ "limited_teleport_assets",
+ types::LimitedTeleportAssets {
+ dest: ::std::boxed::Box::new(dest),
+ beneficiary: ::std::boxed::Box::new(beneficiary),
+ assets: ::std::boxed::Box::new(assets),
+ fee_asset_item,
+ weight_limit,
+ },
+ [
+ 70u8, 61u8, 32u8, 43u8, 101u8, 104u8, 251u8, 60u8, 212u8, 124u8, 113u8,
+ 243u8, 241u8, 183u8, 5u8, 231u8, 209u8, 231u8, 136u8, 3u8, 145u8,
+ 242u8, 179u8, 171u8, 185u8, 185u8, 7u8, 34u8, 5u8, 203u8, 21u8, 210u8,
+ ],
+ )
+ }
+ #[doc = "See [`Pallet::force_suspension`]."]
+ pub fn force_suspension(
+ &self,
+ suspended: ::core::primitive::bool,
+ ) -> ::subxt::tx::Payload {
+ ::subxt::tx::Payload::new_static(
+ "PolkadotXcm",
+ "force_suspension",
+ types::ForceSuspension { suspended },
+ [
+ 78u8, 125u8, 93u8, 55u8, 129u8, 44u8, 36u8, 227u8, 75u8, 46u8, 68u8,
+ 202u8, 81u8, 127u8, 111u8, 92u8, 149u8, 38u8, 225u8, 185u8, 183u8,
+ 154u8, 89u8, 159u8, 79u8, 10u8, 229u8, 1u8, 226u8, 243u8, 65u8, 238u8,
+ ],
+ )
+ }
+ #[doc = "See [`Pallet::transfer_assets`]."]
+ pub fn transfer_assets(
+ &self,
+ dest: runtime_types::xcm::VersionedLocation,
+ beneficiary: runtime_types::xcm::VersionedLocation,
+ assets: runtime_types::xcm::VersionedAssets,
+ fee_asset_item: ::core::primitive::u32,
+ weight_limit: runtime_types::xcm::v3::WeightLimit,
+ ) -> ::subxt::tx::Payload {
+ ::subxt::tx::Payload::new_static(
+ "PolkadotXcm",
+ "transfer_assets",
+ types::TransferAssets {
+ dest: ::std::boxed::Box::new(dest),
+ beneficiary: ::std::boxed::Box::new(beneficiary),
+ assets: ::std::boxed::Box::new(assets),
+ fee_asset_item,
+ weight_limit,
+ },
+ [
+ 44u8, 155u8, 182u8, 37u8, 123u8, 148u8, 150u8, 191u8, 117u8, 32u8,
+ 16u8, 238u8, 121u8, 188u8, 217u8, 110u8, 10u8, 236u8, 174u8, 91u8,
+ 100u8, 201u8, 109u8, 109u8, 60u8, 177u8, 233u8, 66u8, 181u8, 191u8,
+ 105u8, 37u8,
+ ],
+ )
+ }
+ }
+ }
+ #[doc = "The `Event` enum of this pallet"]
+ pub type Event = runtime_types::pallet_xcm::pallet::Event;
+ pub mod events {
+ use super::runtime_types;
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ #[doc = "Execution of an XCM message was attempted."]
+ pub struct Attempted {
+ pub outcome: runtime_types::staging_xcm::v4::traits::Outcome,
+ }
+ impl ::subxt::events::StaticEvent for Attempted {
+ const PALLET: &'static str = "PolkadotXcm";
+ const EVENT: &'static str = "Attempted";
+ }
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ #[doc = "A XCM message was sent."]
+ pub struct Sent {
+ pub origin: runtime_types::staging_xcm::v4::location::Location,
+ pub destination: runtime_types::staging_xcm::v4::location::Location,
+ pub message: runtime_types::staging_xcm::v4::Xcm,
+ pub message_id: [::core::primitive::u8; 32usize],
+ }
+ impl ::subxt::events::StaticEvent for Sent {
+ const PALLET: &'static str = "PolkadotXcm";
+ const EVENT: &'static str = "Sent";
+ }
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ #[doc = "Query response received which does not match a registered query. This may be because a"]
+ #[doc = "matching query was never registered, it may be because it is a duplicate response, or"]
+ #[doc = "because the query timed out."]
+ pub struct UnexpectedResponse {
+ pub origin: runtime_types::staging_xcm::v4::location::Location,
+ pub query_id: ::core::primitive::u64,
+ }
+ impl ::subxt::events::StaticEvent for UnexpectedResponse {
+ const PALLET: &'static str = "PolkadotXcm";
+ const EVENT: &'static str = "UnexpectedResponse";
+ }
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ #[doc = "Query response has been received and is ready for taking with `take_response`. There is"]
+ #[doc = "no registered notification call."]
+ pub struct ResponseReady {
+ pub query_id: ::core::primitive::u64,
+ pub response: runtime_types::staging_xcm::v4::Response,
+ }
+ impl ::subxt::events::StaticEvent for ResponseReady {
+ const PALLET: &'static str = "PolkadotXcm";
+ const EVENT: &'static str = "ResponseReady";
+ }
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ #[doc = "Query response has been received and query is removed. The registered notification has"]
+ #[doc = "been dispatched and executed successfully."]
+ pub struct Notified {
+ pub query_id: ::core::primitive::u64,
+ pub pallet_index: ::core::primitive::u8,
+ pub call_index: ::core::primitive::u8,
+ }
+ impl ::subxt::events::StaticEvent for Notified {
+ const PALLET: &'static str = "PolkadotXcm";
+ const EVENT: &'static str = "Notified";
+ }
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ #[doc = "Query response has been received and query is removed. The registered notification"]
+ #[doc = "could not be dispatched because the dispatch weight is greater than the maximum weight"]
+ #[doc = "originally budgeted by this runtime for the query result."]
+ pub struct NotifyOverweight {
+ pub query_id: ::core::primitive::u64,
+ pub pallet_index: ::core::primitive::u8,
+ pub call_index: ::core::primitive::u8,
+ pub actual_weight: runtime_types::sp_weights::weight_v2::Weight,
+ pub max_budgeted_weight: runtime_types::sp_weights::weight_v2::Weight,
+ }
+ impl ::subxt::events::StaticEvent for NotifyOverweight {
+ const PALLET: &'static str = "PolkadotXcm";
+ const EVENT: &'static str = "NotifyOverweight";
+ }
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ #[doc = "Query response has been received and query is removed. There was a general error with"]
+ #[doc = "dispatching the notification call."]
+ pub struct NotifyDispatchError {
+ pub query_id: ::core::primitive::u64,
+ pub pallet_index: ::core::primitive::u8,
+ pub call_index: ::core::primitive::u8,
+ }
+ impl ::subxt::events::StaticEvent for NotifyDispatchError {
+ const PALLET: &'static str = "PolkadotXcm";
+ const EVENT: &'static str = "NotifyDispatchError";
+ }
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ #[doc = "Query response has been received and query is removed. The dispatch was unable to be"]
+ #[doc = "decoded into a `Call`; this might be due to dispatch function having a signature which"]
+ #[doc = "is not `(origin, QueryId, Response)`."]
+ pub struct NotifyDecodeFailed {
+ pub query_id: ::core::primitive::u64,
+ pub pallet_index: ::core::primitive::u8,
+ pub call_index: ::core::primitive::u8,
+ }
+ impl ::subxt::events::StaticEvent for NotifyDecodeFailed {
+ const PALLET: &'static str = "PolkadotXcm";
+ const EVENT: &'static str = "NotifyDecodeFailed";
+ }
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ #[doc = "Expected query response has been received but the origin location of the response does"]
+ #[doc = "not match that expected. The query remains registered for a later, valid, response to"]
+ #[doc = "be received and acted upon."]
+ pub struct InvalidResponder {
+ pub origin: runtime_types::staging_xcm::v4::location::Location,
+ pub query_id: ::core::primitive::u64,
+ pub expected_location:
+ ::core::option::Option,
+ }
+ impl ::subxt::events::StaticEvent for InvalidResponder {
+ const PALLET: &'static str = "PolkadotXcm";
+ const EVENT: &'static str = "InvalidResponder";
+ }
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ #[doc = "Expected query response has been received but the expected origin location placed in"]
+ #[doc = "storage by this runtime previously cannot be decoded. The query remains registered."]
+ #[doc = ""]
+ #[doc = "This is unexpected (since a location placed in storage in a previously executing"]
+ #[doc = "runtime should be readable prior to query timeout) and dangerous since the possibly"]
+ #[doc = "valid response will be dropped. Manual governance intervention is probably going to be"]
+ #[doc = "needed."]
+ pub struct InvalidResponderVersion {
+ pub origin: runtime_types::staging_xcm::v4::location::Location,
+ pub query_id: ::core::primitive::u64,
+ }
+ impl ::subxt::events::StaticEvent for InvalidResponderVersion {
+ const PALLET: &'static str = "PolkadotXcm";
+ const EVENT: &'static str = "InvalidResponderVersion";
+ }
+ #[derive(
+ :: subxt :: ext :: codec :: CompactAs,
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ #[doc = "Received query response has been read and removed."]
+ pub struct ResponseTaken {
+ pub query_id: ::core::primitive::u64,
+ }
+ impl ::subxt::events::StaticEvent for ResponseTaken {
+ const PALLET: &'static str = "PolkadotXcm";
+ const EVENT: &'static str = "ResponseTaken";
+ }
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ #[doc = "Some assets have been placed in an asset trap."]
+ pub struct AssetsTrapped {
+ pub hash: ::subxt::utils::H256,
+ pub origin: runtime_types::staging_xcm::v4::location::Location,
+ pub assets: runtime_types::xcm::VersionedAssets,
+ }
+ impl ::subxt::events::StaticEvent for AssetsTrapped {
+ const PALLET: &'static str = "PolkadotXcm";
+ const EVENT: &'static str = "AssetsTrapped";
+ }
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ #[doc = "An XCM version change notification message has been attempted to be sent."]
+ #[doc = ""]
+ #[doc = "The cost of sending it (borne by the chain) is included."]
+ pub struct VersionChangeNotified {
+ pub destination: runtime_types::staging_xcm::v4::location::Location,
+ pub result: ::core::primitive::u32,
+ pub cost: runtime_types::staging_xcm::v4::asset::Assets,
+ pub message_id: [::core::primitive::u8; 32usize],
+ }
+ impl ::subxt::events::StaticEvent for VersionChangeNotified {
+ const PALLET: &'static str = "PolkadotXcm";
+ const EVENT: &'static str = "VersionChangeNotified";
+ }
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ #[doc = "The supported version of a location has been changed. This might be through an"]
+ #[doc = "automatic notification or a manual intervention."]
+ pub struct SupportedVersionChanged {
+ pub location: runtime_types::staging_xcm::v4::location::Location,
+ pub version: ::core::primitive::u32,
+ }
+ impl ::subxt::events::StaticEvent for SupportedVersionChanged {
+ const PALLET: &'static str = "PolkadotXcm";
+ const EVENT: &'static str = "SupportedVersionChanged";
+ }
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ #[doc = "A given location which had a version change subscription was dropped owing to an error"]
+ #[doc = "sending the notification to it."]
+ pub struct NotifyTargetSendFail {
+ pub location: runtime_types::staging_xcm::v4::location::Location,
+ pub query_id: ::core::primitive::u64,
+ pub error: runtime_types::xcm::v3::traits::Error,
+ }
+ impl ::subxt::events::StaticEvent for NotifyTargetSendFail {
+ const PALLET: &'static str = "PolkadotXcm";
+ const EVENT: &'static str = "NotifyTargetSendFail";
+ }
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ #[doc = "A given location which had a version change subscription was dropped owing to an error"]
+ #[doc = "migrating the location to our new XCM format."]
+ pub struct NotifyTargetMigrationFail {
+ pub location: runtime_types::xcm::VersionedLocation,
+ pub query_id: ::core::primitive::u64,
+ }
+ impl ::subxt::events::StaticEvent for NotifyTargetMigrationFail {
+ const PALLET: &'static str = "PolkadotXcm";
+ const EVENT: &'static str = "NotifyTargetMigrationFail";
+ }
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ #[doc = "Expected query response has been received but the expected querier location placed in"]
+ #[doc = "storage by this runtime previously cannot be decoded. The query remains registered."]
+ #[doc = ""]
+ #[doc = "This is unexpected (since a location placed in storage in a previously executing"]
+ #[doc = "runtime should be readable prior to query timeout) and dangerous since the possibly"]
+ #[doc = "valid response will be dropped. Manual governance intervention is probably going to be"]
+ #[doc = "needed."]
+ pub struct InvalidQuerierVersion {
+ pub origin: runtime_types::staging_xcm::v4::location::Location,
+ pub query_id: ::core::primitive::u64,
+ }
+ impl ::subxt::events::StaticEvent for InvalidQuerierVersion {
+ const PALLET: &'static str = "PolkadotXcm";
+ const EVENT: &'static str = "InvalidQuerierVersion";
+ }
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ #[doc = "Expected query response has been received but the querier location of the response does"]
+ #[doc = "not match the expected. The query remains registered for a later, valid, response to"]
+ #[doc = "be received and acted upon."]
+ pub struct InvalidQuerier {
+ pub origin: runtime_types::staging_xcm::v4::location::Location,
+ pub query_id: ::core::primitive::u64,
+ pub expected_querier: runtime_types::staging_xcm::v4::location::Location,
+ pub maybe_actual_querier:
+ ::core::option::Option,
+ }
+ impl ::subxt::events::StaticEvent for InvalidQuerier {
+ const PALLET: &'static str = "PolkadotXcm";
+ const EVENT: &'static str = "InvalidQuerier";
+ }
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ #[doc = "A remote has requested XCM version change notification from us and we have honored it."]
+ #[doc = "A version information message is sent to them and its cost is included."]
+ pub struct VersionNotifyStarted {
+ pub destination: runtime_types::staging_xcm::v4::location::Location,
+ pub cost: runtime_types::staging_xcm::v4::asset::Assets,
+ pub message_id: [::core::primitive::u8; 32usize],
+ }
+ impl ::subxt::events::StaticEvent for VersionNotifyStarted {
+ const PALLET: &'static str = "PolkadotXcm";
+ const EVENT: &'static str = "VersionNotifyStarted";
+ }
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ #[doc = "We have requested that a remote chain send us XCM version change notifications."]
+ pub struct VersionNotifyRequested {
+ pub destination: runtime_types::staging_xcm::v4::location::Location,
+ pub cost: runtime_types::staging_xcm::v4::asset::Assets,
+ pub message_id: [::core::primitive::u8; 32usize],
+ }
+ impl ::subxt::events::StaticEvent for VersionNotifyRequested {
+ const PALLET: &'static str = "PolkadotXcm";
+ const EVENT: &'static str = "VersionNotifyRequested";
+ }
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ #[doc = "We have requested that a remote chain stops sending us XCM version change"]
+ #[doc = "notifications."]
+ pub struct VersionNotifyUnrequested {
+ pub destination: runtime_types::staging_xcm::v4::location::Location,
+ pub cost: runtime_types::staging_xcm::v4::asset::Assets,
+ pub message_id: [::core::primitive::u8; 32usize],
+ }
+ impl ::subxt::events::StaticEvent for VersionNotifyUnrequested {
+ const PALLET: &'static str = "PolkadotXcm";
+ const EVENT: &'static str = "VersionNotifyUnrequested";
+ }
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ #[doc = "Fees were paid from a location for an operation (often for using `SendXcm`)."]
+ pub struct FeesPaid {
+ pub paying: runtime_types::staging_xcm::v4::location::Location,
+ pub fees: runtime_types::staging_xcm::v4::asset::Assets,
+ }
+ impl ::subxt::events::StaticEvent for FeesPaid {
+ const PALLET: &'static str = "PolkadotXcm";
+ const EVENT: &'static str = "FeesPaid";
+ }
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ #[doc = "Some assets have been claimed from an asset trap"]
+ pub struct AssetsClaimed {
+ pub hash: ::subxt::utils::H256,
+ pub origin: runtime_types::staging_xcm::v4::location::Location,
+ pub assets: runtime_types::xcm::VersionedAssets,
+ }
+ impl ::subxt::events::StaticEvent for AssetsClaimed {
+ const PALLET: &'static str = "PolkadotXcm";
+ const EVENT: &'static str = "AssetsClaimed";
+ }
+ #[derive(
+ :: subxt :: ext :: codec :: CompactAs,
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ #[doc = "A XCM version migration finished."]
+ pub struct VersionMigrationFinished {
+ pub version: ::core::primitive::u32,
+ }
+ impl ::subxt::events::StaticEvent for VersionMigrationFinished {
+ const PALLET: &'static str = "PolkadotXcm";
+ const EVENT: &'static str = "VersionMigrationFinished";
+ }
+ }
+ pub mod storage {
+ use super::runtime_types;
+ pub struct StorageApi;
+ impl StorageApi {
+ #[doc = " The latest available query index."]
+ pub fn query_counter(
+ &self,
+ ) -> ::subxt::storage::address::Address<
+ ::subxt::storage::address::StaticStorageMapKey,
+ ::core::primitive::u64,
+ ::subxt::storage::address::Yes,
+ ::subxt::storage::address::Yes,
+ (),
+ > {
+ ::subxt::storage::address::Address::new_static(
+ "PolkadotXcm",
+ "QueryCounter",
+ vec![],
+ [
+ 216u8, 73u8, 160u8, 232u8, 60u8, 245u8, 218u8, 219u8, 152u8, 68u8,
+ 146u8, 219u8, 255u8, 7u8, 86u8, 112u8, 83u8, 49u8, 94u8, 173u8, 64u8,
+ 203u8, 147u8, 226u8, 236u8, 39u8, 129u8, 106u8, 209u8, 113u8, 150u8,
+ 50u8,
+ ],
+ )
+ }
+ #[doc = " The ongoing queries."]
+ pub fn queries_iter(
+ &self,
+ ) -> ::subxt::storage::address::Address<
+ ::subxt::storage::address::StaticStorageMapKey,
+ runtime_types::pallet_xcm::pallet::QueryStatus<::core::primitive::u32>,
+ (),
+ (),
+ ::subxt::storage::address::Yes,
+ > {
+ ::subxt::storage::address::Address::new_static(
+ "PolkadotXcm",
+ "Queries",
+ vec![],
+ [
+ 246u8, 75u8, 240u8, 129u8, 106u8, 114u8, 99u8, 154u8, 176u8, 188u8,
+ 146u8, 125u8, 244u8, 103u8, 187u8, 171u8, 60u8, 119u8, 4u8, 90u8, 58u8,
+ 180u8, 48u8, 165u8, 145u8, 125u8, 227u8, 233u8, 11u8, 142u8, 122u8,
+ 3u8,
+ ],
+ )
+ }
+ #[doc = " The ongoing queries."]
+ pub fn queries(
+ &self,
+ _0: impl ::std::borrow::Borrow<::core::primitive::u64>,
+ ) -> ::subxt::storage::address::Address<
+ ::subxt::storage::address::StaticStorageMapKey,
+ runtime_types::pallet_xcm::pallet::QueryStatus<::core::primitive::u32>,
+ ::subxt::storage::address::Yes,
+ (),
+ (),
+ > {
+ ::subxt::storage::address::Address::new_static(
+ "PolkadotXcm",
+ "Queries",
+ vec![::subxt::storage::address::make_static_storage_map_key(_0.borrow())],
+ [
+ 246u8, 75u8, 240u8, 129u8, 106u8, 114u8, 99u8, 154u8, 176u8, 188u8,
+ 146u8, 125u8, 244u8, 103u8, 187u8, 171u8, 60u8, 119u8, 4u8, 90u8, 58u8,
+ 180u8, 48u8, 165u8, 145u8, 125u8, 227u8, 233u8, 11u8, 142u8, 122u8,
+ 3u8,
+ ],
+ )
+ }
+ #[doc = " The existing asset traps."]
+ #[doc = ""]
+ #[doc = " Key is the blake2 256 hash of (origin, versioned `Assets`) pair. Value is the number of"]
+ #[doc = " times this pair has been trapped (usually just 1 if it exists at all)."]
+ pub fn asset_traps_iter(
+ &self,
+ ) -> ::subxt::storage::address::Address<
+ ::subxt::storage::address::StaticStorageMapKey,
+ ::core::primitive::u32,
+ (),
+ ::subxt::storage::address::Yes,
+ ::subxt::storage::address::Yes,
+ > {
+ ::subxt::storage::address::Address::new_static(
+ "PolkadotXcm",
+ "AssetTraps",
+ vec![],
+ [
+ 148u8, 41u8, 254u8, 134u8, 61u8, 172u8, 126u8, 146u8, 78u8, 178u8,
+ 50u8, 77u8, 226u8, 8u8, 200u8, 78u8, 77u8, 91u8, 26u8, 133u8, 104u8,
+ 126u8, 28u8, 28u8, 202u8, 62u8, 87u8, 183u8, 231u8, 191u8, 5u8, 181u8,
+ ],
+ )
+ }
+ #[doc = " The existing asset traps."]
+ #[doc = ""]
+ #[doc = " Key is the blake2 256 hash of (origin, versioned `Assets`) pair. Value is the number of"]
+ #[doc = " times this pair has been trapped (usually just 1 if it exists at all)."]
+ pub fn asset_traps(
+ &self,
+ _0: impl ::std::borrow::Borrow<::subxt::utils::H256>,
+ ) -> ::subxt::storage::address::Address<
+ ::subxt::storage::address::StaticStorageMapKey,
+ ::core::primitive::u32,
+ ::subxt::storage::address::Yes,
+ ::subxt::storage::address::Yes,
+ (),
+ > {
+ ::subxt::storage::address::Address::new_static(
+ "PolkadotXcm",
+ "AssetTraps",
+ vec![::subxt::storage::address::make_static_storage_map_key(_0.borrow())],
+ [
+ 148u8, 41u8, 254u8, 134u8, 61u8, 172u8, 126u8, 146u8, 78u8, 178u8,
+ 50u8, 77u8, 226u8, 8u8, 200u8, 78u8, 77u8, 91u8, 26u8, 133u8, 104u8,
+ 126u8, 28u8, 28u8, 202u8, 62u8, 87u8, 183u8, 231u8, 191u8, 5u8, 181u8,
+ ],
+ )
+ }
+ #[doc = " Default version to encode XCM when latest version of destination is unknown. If `None`,"]
+ #[doc = " then the destinations whose XCM version is unknown are considered unreachable."]
+ pub fn safe_xcm_version(
+ &self,
+ ) -> ::subxt::storage::address::Address<
+ ::subxt::storage::address::StaticStorageMapKey,
+ ::core::primitive::u32,
+ ::subxt::storage::address::Yes,
+ (),
+ (),
+ > {
+ ::subxt::storage::address::Address::new_static(
+ "PolkadotXcm",
+ "SafeXcmVersion",
+ vec![],
+ [
+ 187u8, 8u8, 74u8, 126u8, 80u8, 215u8, 177u8, 60u8, 223u8, 123u8, 196u8,
+ 155u8, 166u8, 66u8, 25u8, 164u8, 191u8, 66u8, 116u8, 131u8, 116u8,
+ 188u8, 224u8, 122u8, 75u8, 195u8, 246u8, 188u8, 83u8, 134u8, 49u8,
+ 143u8,
+ ],
+ )
+ }
+ #[doc = " The Latest versions that we know various locations support."]
+ pub fn supported_version_iter(
+ &self,
+ ) -> ::subxt::storage::address::Address<
+ ::subxt::storage::address::StaticStorageMapKey,
+ ::core::primitive::u32,
+ (),
+ (),
+ ::subxt::storage::address::Yes,
+ > {
+ ::subxt::storage::address::Address::new_static(
+ "PolkadotXcm",
+ "SupportedVersion",
+ vec![],
+ [
+ 144u8, 218u8, 177u8, 254u8, 210u8, 8u8, 84u8, 149u8, 163u8, 162u8,
+ 238u8, 37u8, 157u8, 28u8, 140u8, 121u8, 201u8, 173u8, 204u8, 92u8,
+ 133u8, 45u8, 156u8, 38u8, 61u8, 51u8, 153u8, 161u8, 147u8, 146u8,
+ 202u8, 24u8,
+ ],
+ )
+ }
+ #[doc = " The Latest versions that we know various locations support."]
+ pub fn supported_version_iter1(
+ &self,
+ _0: impl ::std::borrow::Borrow<::core::primitive::u32>,
+ ) -> ::subxt::storage::address::Address<
+ ::subxt::storage::address::StaticStorageMapKey,
+ ::core::primitive::u32,
+ (),
+ (),
+ ::subxt::storage::address::Yes,
+ > {
+ ::subxt::storage::address::Address::new_static(
+ "PolkadotXcm",
+ "SupportedVersion",
+ vec![::subxt::storage::address::make_static_storage_map_key(_0.borrow())],
+ [
+ 144u8, 218u8, 177u8, 254u8, 210u8, 8u8, 84u8, 149u8, 163u8, 162u8,
+ 238u8, 37u8, 157u8, 28u8, 140u8, 121u8, 201u8, 173u8, 204u8, 92u8,
+ 133u8, 45u8, 156u8, 38u8, 61u8, 51u8, 153u8, 161u8, 147u8, 146u8,
+ 202u8, 24u8,
+ ],
+ )
+ }
+ #[doc = " The Latest versions that we know various locations support."]
+ pub fn supported_version(
+ &self,
+ _0: impl ::std::borrow::Borrow<::core::primitive::u32>,
+ _1: impl ::std::borrow::Borrow,
+ ) -> ::subxt::storage::address::Address<
+ ::subxt::storage::address::StaticStorageMapKey,
+ ::core::primitive::u32,
+ ::subxt::storage::address::Yes,
+ (),
+ (),
+ > {
+ ::subxt::storage::address::Address::new_static(
+ "PolkadotXcm",
+ "SupportedVersion",
+ vec![
+ ::subxt::storage::address::make_static_storage_map_key(_0.borrow()),
+ ::subxt::storage::address::make_static_storage_map_key(_1.borrow()),
+ ],
+ [
+ 144u8, 218u8, 177u8, 254u8, 210u8, 8u8, 84u8, 149u8, 163u8, 162u8,
+ 238u8, 37u8, 157u8, 28u8, 140u8, 121u8, 201u8, 173u8, 204u8, 92u8,
+ 133u8, 45u8, 156u8, 38u8, 61u8, 51u8, 153u8, 161u8, 147u8, 146u8,
+ 202u8, 24u8,
+ ],
+ )
+ }
+ #[doc = " All locations that we have requested version notifications from."]
+ pub fn version_notifiers_iter(
+ &self,
+ ) -> ::subxt::storage::address::Address<
+ ::subxt::storage::address::StaticStorageMapKey,
+ ::core::primitive::u64,
+ (),
+ (),
+ ::subxt::storage::address::Yes,
+ > {
+ ::subxt::storage::address::Address::new_static(
+ "PolkadotXcm",
+ "VersionNotifiers",
+ vec![],
+ [
+ 175u8, 206u8, 29u8, 14u8, 111u8, 123u8, 211u8, 109u8, 159u8, 131u8,
+ 80u8, 149u8, 216u8, 196u8, 181u8, 105u8, 117u8, 138u8, 80u8, 69u8,
+ 237u8, 116u8, 195u8, 66u8, 209u8, 102u8, 42u8, 126u8, 222u8, 176u8,
+ 201u8, 49u8,
+ ],
+ )
+ }
+ #[doc = " All locations that we have requested version notifications from."]
+ pub fn version_notifiers_iter1(
+ &self,
+ _0: impl ::std::borrow::Borrow<::core::primitive::u32>,
+ ) -> ::subxt::storage::address::Address<
+ ::subxt::storage::address::StaticStorageMapKey,
+ ::core::primitive::u64,
+ (),
+ (),
+ ::subxt::storage::address::Yes,
+ > {
+ ::subxt::storage::address::Address::new_static(
+ "PolkadotXcm",
+ "VersionNotifiers",
+ vec![::subxt::storage::address::make_static_storage_map_key(_0.borrow())],
+ [
+ 175u8, 206u8, 29u8, 14u8, 111u8, 123u8, 211u8, 109u8, 159u8, 131u8,
+ 80u8, 149u8, 216u8, 196u8, 181u8, 105u8, 117u8, 138u8, 80u8, 69u8,
+ 237u8, 116u8, 195u8, 66u8, 209u8, 102u8, 42u8, 126u8, 222u8, 176u8,
+ 201u8, 49u8,
+ ],
+ )
+ }
+ #[doc = " All locations that we have requested version notifications from."]
+ pub fn version_notifiers(
+ &self,
+ _0: impl ::std::borrow::Borrow<::core::primitive::u32>,
+ _1: impl ::std::borrow::Borrow,
+ ) -> ::subxt::storage::address::Address<
+ ::subxt::storage::address::StaticStorageMapKey,
+ ::core::primitive::u64,
+ ::subxt::storage::address::Yes,
+ (),
+ (),
+ > {
+ ::subxt::storage::address::Address::new_static(
+ "PolkadotXcm",
+ "VersionNotifiers",
+ vec![
+ ::subxt::storage::address::make_static_storage_map_key(_0.borrow()),
+ ::subxt::storage::address::make_static_storage_map_key(_1.borrow()),
+ ],
+ [
+ 175u8, 206u8, 29u8, 14u8, 111u8, 123u8, 211u8, 109u8, 159u8, 131u8,
+ 80u8, 149u8, 216u8, 196u8, 181u8, 105u8, 117u8, 138u8, 80u8, 69u8,
+ 237u8, 116u8, 195u8, 66u8, 209u8, 102u8, 42u8, 126u8, 222u8, 176u8,
+ 201u8, 49u8,
+ ],
+ )
+ }
+ #[doc = " The target locations that are subscribed to our version changes, as well as the most recent"]
+ #[doc = " of our versions we informed them of."]
+ pub fn version_notify_targets_iter(
+ &self,
+ ) -> ::subxt::storage::address::Address<
+ ::subxt::storage::address::StaticStorageMapKey,
+ (
+ ::core::primitive::u64,
+ runtime_types::sp_weights::weight_v2::Weight,
+ ::core::primitive::u32,
+ ),
+ (),
+ (),
+ ::subxt::storage::address::Yes,
+ > {
+ ::subxt::storage::address::Address::new_static(
+ "PolkadotXcm",
+ "VersionNotifyTargets",
+ vec![],
+ [
+ 113u8, 77u8, 150u8, 42u8, 82u8, 49u8, 195u8, 120u8, 96u8, 80u8, 152u8,
+ 67u8, 27u8, 142u8, 10u8, 74u8, 66u8, 134u8, 35u8, 202u8, 77u8, 187u8,
+ 174u8, 22u8, 207u8, 199u8, 57u8, 85u8, 53u8, 208u8, 146u8, 81u8,
+ ],
+ )
+ }
+ #[doc = " The target locations that are subscribed to our version changes, as well as the most recent"]
+ #[doc = " of our versions we informed them of."]
+ pub fn version_notify_targets_iter1(
+ &self,
+ _0: impl ::std::borrow::Borrow<::core::primitive::u32>,
+ ) -> ::subxt::storage::address::Address<
+ ::subxt::storage::address::StaticStorageMapKey,
+ (
+ ::core::primitive::u64,
+ runtime_types::sp_weights::weight_v2::Weight,
+ ::core::primitive::u32,
+ ),
+ (),
+ (),
+ ::subxt::storage::address::Yes,
+ > {
+ ::subxt::storage::address::Address::new_static(
+ "PolkadotXcm",
+ "VersionNotifyTargets",
+ vec![::subxt::storage::address::make_static_storage_map_key(_0.borrow())],
+ [
+ 113u8, 77u8, 150u8, 42u8, 82u8, 49u8, 195u8, 120u8, 96u8, 80u8, 152u8,
+ 67u8, 27u8, 142u8, 10u8, 74u8, 66u8, 134u8, 35u8, 202u8, 77u8, 187u8,
+ 174u8, 22u8, 207u8, 199u8, 57u8, 85u8, 53u8, 208u8, 146u8, 81u8,
+ ],
+ )
+ }
+ #[doc = " The target locations that are subscribed to our version changes, as well as the most recent"]
+ #[doc = " of our versions we informed them of."]
+ pub fn version_notify_targets(
+ &self,
+ _0: impl ::std::borrow::Borrow<::core::primitive::u32>,
+ _1: impl ::std::borrow::Borrow,
+ ) -> ::subxt::storage::address::Address<
+ ::subxt::storage::address::StaticStorageMapKey,
+ (
+ ::core::primitive::u64,
+ runtime_types::sp_weights::weight_v2::Weight,
+ ::core::primitive::u32,
+ ),
+ ::subxt::storage::address::Yes,
+ (),
+ (),
+ > {
+ ::subxt::storage::address::Address::new_static(
+ "PolkadotXcm",
+ "VersionNotifyTargets",
+ vec![
+ ::subxt::storage::address::make_static_storage_map_key(_0.borrow()),
+ ::subxt::storage::address::make_static_storage_map_key(_1.borrow()),
+ ],
+ [
+ 113u8, 77u8, 150u8, 42u8, 82u8, 49u8, 195u8, 120u8, 96u8, 80u8, 152u8,
+ 67u8, 27u8, 142u8, 10u8, 74u8, 66u8, 134u8, 35u8, 202u8, 77u8, 187u8,
+ 174u8, 22u8, 207u8, 199u8, 57u8, 85u8, 53u8, 208u8, 146u8, 81u8,
+ ],
+ )
+ }
+ #[doc = " Destinations whose latest XCM version we would like to know. Duplicates not allowed, and"]
+ #[doc = " the `u32` counter is the number of times that a send to the destination has been attempted,"]
+ #[doc = " which is used as a prioritization."]
+ pub fn version_discovery_queue(
+ &self,
+ ) -> ::subxt::storage::address::Address<
+ ::subxt::storage::address::StaticStorageMapKey,
+ runtime_types::bounded_collections::bounded_vec::BoundedVec<(
+ runtime_types::xcm::VersionedLocation,
+ ::core::primitive::u32,
+ )>,
+ ::subxt::storage::address::Yes,
+ ::subxt::storage::address::Yes,
+ (),
+ > {
+ ::subxt::storage::address::Address::new_static(
+ "PolkadotXcm",
+ "VersionDiscoveryQueue",
+ vec![],
+ [
+ 95u8, 74u8, 97u8, 94u8, 40u8, 140u8, 175u8, 176u8, 224u8, 222u8, 83u8,
+ 199u8, 170u8, 102u8, 3u8, 77u8, 127u8, 208u8, 155u8, 122u8, 176u8,
+ 51u8, 15u8, 253u8, 231u8, 245u8, 91u8, 192u8, 60u8, 144u8, 101u8,
+ 168u8,
+ ],
+ )
+ }
+ #[doc = " The current migration's stage, if any."]
+ pub fn current_migration(
+ &self,
+ ) -> ::subxt::storage::address::Address<
+ ::subxt::storage::address::StaticStorageMapKey,
+ runtime_types::pallet_xcm::pallet::VersionMigrationStage,
+ ::subxt::storage::address::Yes,
+ (),
+ (),
+ > {
+ ::subxt::storage::address::Address::new_static(
+ "PolkadotXcm",
+ "CurrentMigration",
+ vec![],
+ [
+ 74u8, 138u8, 181u8, 162u8, 59u8, 251u8, 37u8, 28u8, 232u8, 51u8, 30u8,
+ 152u8, 252u8, 133u8, 95u8, 195u8, 47u8, 127u8, 21u8, 44u8, 62u8, 143u8,
+ 170u8, 234u8, 160u8, 37u8, 131u8, 179u8, 57u8, 241u8, 140u8, 124u8,
+ ],
+ )
+ }
+ #[doc = " Fungible assets which we know are locked on a remote chain."]
+ pub fn remote_locked_fungibles_iter(
+ &self,
+ ) -> ::subxt::storage::address::Address<
+ ::subxt::storage::address::StaticStorageMapKey,
+ runtime_types::pallet_xcm::pallet::RemoteLockedFungibleRecord<()>,
+ (),
+ (),
+ ::subxt::storage::address::Yes,
+ > {
+ ::subxt::storage::address::Address::new_static(
+ "PolkadotXcm",
+ "RemoteLockedFungibles",
+ vec![],
+ [
+ 247u8, 124u8, 77u8, 42u8, 208u8, 183u8, 99u8, 196u8, 50u8, 113u8,
+ 250u8, 221u8, 222u8, 170u8, 10u8, 60u8, 143u8, 172u8, 149u8, 198u8,
+ 125u8, 154u8, 196u8, 196u8, 145u8, 209u8, 68u8, 28u8, 241u8, 241u8,
+ 201u8, 150u8,
+ ],
+ )
+ }
+ #[doc = " Fungible assets which we know are locked on a remote chain."]
+ pub fn remote_locked_fungibles_iter1(
+ &self,
+ _0: impl ::std::borrow::Borrow<::core::primitive::u32>,
+ ) -> ::subxt::storage::address::Address<
+ ::subxt::storage::address::StaticStorageMapKey,
+ runtime_types::pallet_xcm::pallet::RemoteLockedFungibleRecord<()>,
+ (),
+ (),
+ ::subxt::storage::address::Yes,
+ > {
+ ::subxt::storage::address::Address::new_static(
+ "PolkadotXcm",
+ "RemoteLockedFungibles",
+ vec![::subxt::storage::address::make_static_storage_map_key(_0.borrow())],
+ [
+ 247u8, 124u8, 77u8, 42u8, 208u8, 183u8, 99u8, 196u8, 50u8, 113u8,
+ 250u8, 221u8, 222u8, 170u8, 10u8, 60u8, 143u8, 172u8, 149u8, 198u8,
+ 125u8, 154u8, 196u8, 196u8, 145u8, 209u8, 68u8, 28u8, 241u8, 241u8,
+ 201u8, 150u8,
+ ],
+ )
+ }
+ #[doc = " Fungible assets which we know are locked on a remote chain."]
+ pub fn remote_locked_fungibles_iter2(
+ &self,
+ _0: impl ::std::borrow::Borrow<::core::primitive::u32>,
+ _1: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>,
+ ) -> ::subxt::storage::address::Address<
+ ::subxt::storage::address::StaticStorageMapKey,
+ runtime_types::pallet_xcm::pallet::RemoteLockedFungibleRecord<()>,
+ (),
+ (),
+ ::subxt::storage::address::Yes,
+ > {
+ ::subxt::storage::address::Address::new_static(
+ "PolkadotXcm",
+ "RemoteLockedFungibles",
+ vec![
+ ::subxt::storage::address::make_static_storage_map_key(_0.borrow()),
+ ::subxt::storage::address::make_static_storage_map_key(_1.borrow()),
+ ],
+ [
+ 247u8, 124u8, 77u8, 42u8, 208u8, 183u8, 99u8, 196u8, 50u8, 113u8,
+ 250u8, 221u8, 222u8, 170u8, 10u8, 60u8, 143u8, 172u8, 149u8, 198u8,
+ 125u8, 154u8, 196u8, 196u8, 145u8, 209u8, 68u8, 28u8, 241u8, 241u8,
+ 201u8, 150u8,
+ ],
+ )
+ }
+ #[doc = " Fungible assets which we know are locked on a remote chain."]
+ pub fn remote_locked_fungibles(
+ &self,
+ _0: impl ::std::borrow::Borrow<::core::primitive::u32>,
+ _1: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>,
+ _2: impl ::std::borrow::Borrow,
+ ) -> ::subxt::storage::address::Address<
+ ::subxt::storage::address::StaticStorageMapKey,
+ runtime_types::pallet_xcm::pallet::RemoteLockedFungibleRecord<()>,
+ ::subxt::storage::address::Yes,
+ (),
+ (),
+ > {
+ ::subxt::storage::address::Address::new_static(
+ "PolkadotXcm",
+ "RemoteLockedFungibles",
+ vec![
+ ::subxt::storage::address::make_static_storage_map_key(_0.borrow()),
+ ::subxt::storage::address::make_static_storage_map_key(_1.borrow()),
+ ::subxt::storage::address::make_static_storage_map_key(_2.borrow()),
+ ],
+ [
+ 247u8, 124u8, 77u8, 42u8, 208u8, 183u8, 99u8, 196u8, 50u8, 113u8,
+ 250u8, 221u8, 222u8, 170u8, 10u8, 60u8, 143u8, 172u8, 149u8, 198u8,
+ 125u8, 154u8, 196u8, 196u8, 145u8, 209u8, 68u8, 28u8, 241u8, 241u8,
+ 201u8, 150u8,
+ ],
+ )
+ }
+ #[doc = " Fungible assets which we know are locked on this chain."]
+ pub fn locked_fungibles_iter(
+ &self,
+ ) -> ::subxt::storage::address::Address<
+ ::subxt::storage::address::StaticStorageMapKey,
+ runtime_types::bounded_collections::bounded_vec::BoundedVec<(
+ ::core::primitive::u128,
+ runtime_types::xcm::VersionedLocation,
+ )>,
+ (),
+ (),
+ ::subxt::storage::address::Yes,
+ > {
+ ::subxt::storage::address::Address::new_static(
+ "PolkadotXcm",
+ "LockedFungibles",
+ vec![],
+ [
+ 254u8, 234u8, 1u8, 27u8, 27u8, 32u8, 217u8, 24u8, 47u8, 30u8, 62u8,
+ 80u8, 86u8, 125u8, 120u8, 24u8, 143u8, 229u8, 161u8, 153u8, 240u8,
+ 246u8, 80u8, 15u8, 49u8, 189u8, 20u8, 204u8, 239u8, 198u8, 97u8, 174u8,
+ ],
+ )
+ }
+ #[doc = " Fungible assets which we know are locked on this chain."]
+ pub fn locked_fungibles(
+ &self,
+ _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>,
+ ) -> ::subxt::storage::address::Address<
+ ::subxt::storage::address::StaticStorageMapKey,
+ runtime_types::bounded_collections::bounded_vec::BoundedVec<(
+ ::core::primitive::u128,
+ runtime_types::xcm::VersionedLocation,
+ )>,
+ ::subxt::storage::address::Yes,
+ (),
+ (),
+ > {
+ ::subxt::storage::address::Address::new_static(
+ "PolkadotXcm",
+ "LockedFungibles",
+ vec![::subxt::storage::address::make_static_storage_map_key(_0.borrow())],
+ [
+ 254u8, 234u8, 1u8, 27u8, 27u8, 32u8, 217u8, 24u8, 47u8, 30u8, 62u8,
+ 80u8, 86u8, 125u8, 120u8, 24u8, 143u8, 229u8, 161u8, 153u8, 240u8,
+ 246u8, 80u8, 15u8, 49u8, 189u8, 20u8, 204u8, 239u8, 198u8, 97u8, 174u8,
+ ],
+ )
+ }
+ #[doc = " Global suspension state of the XCM executor."]
+ pub fn xcm_execution_suspended(
+ &self,
+ ) -> ::subxt::storage::address::Address<
+ ::subxt::storage::address::StaticStorageMapKey,
+ ::core::primitive::bool,
+ ::subxt::storage::address::Yes,
+ ::subxt::storage::address::Yes,
+ (),
+ > {
+ ::subxt::storage::address::Address::new_static(
+ "PolkadotXcm",
+ "XcmExecutionSuspended",
+ vec![],
+ [
+ 182u8, 54u8, 69u8, 68u8, 78u8, 76u8, 103u8, 79u8, 47u8, 136u8, 99u8,
+ 104u8, 128u8, 129u8, 249u8, 54u8, 214u8, 136u8, 97u8, 48u8, 178u8,
+ 42u8, 26u8, 27u8, 82u8, 24u8, 33u8, 77u8, 33u8, 27u8, 20u8, 127u8,
+ ],
+ )
+ }
+ }
+ }
+ }
+ pub mod cumulus_xcm {
+ use super::root_mod;
+ use super::runtime_types;
+ #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."]
+ pub type Call = runtime_types::cumulus_pallet_xcm::pallet::Call;
+ pub mod calls {
+ use super::root_mod;
+ use super::runtime_types;
+ type DispatchError = runtime_types::sp_runtime::DispatchError;
+ pub mod types {
+ use super::runtime_types;
+ }
+ pub struct TransactionApi;
+ impl TransactionApi {}
+ }
+ #[doc = "The `Event` enum of this pallet"]
+ pub type Event = runtime_types::cumulus_pallet_xcm::pallet::Event;
+ pub mod events {
+ use super::runtime_types;
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ #[doc = "Downward message is invalid XCM."]
+ #[doc = "\\[ id \\]"]
+ pub struct InvalidFormat(pub [::core::primitive::u8; 32usize]);
+ impl ::subxt::events::StaticEvent for InvalidFormat {
+ const PALLET: &'static str = "CumulusXcm";
+ const EVENT: &'static str = "InvalidFormat";
+ }
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ #[doc = "Downward message is unsupported version of XCM."]
+ #[doc = "\\[ id \\]"]
+ pub struct UnsupportedVersion(pub [::core::primitive::u8; 32usize]);
+ impl ::subxt::events::StaticEvent for UnsupportedVersion {
+ const PALLET: &'static str = "CumulusXcm";
+ const EVENT: &'static str = "UnsupportedVersion";
+ }
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ #[doc = "Downward message executed with the given outcome."]
+ #[doc = "\\[ id, outcome \\]"]
+ pub struct ExecutedDownward(
+ pub [::core::primitive::u8; 32usize],
+ pub runtime_types::staging_xcm::v4::traits::Outcome,
+ );
+ impl ::subxt::events::StaticEvent for ExecutedDownward {
+ const PALLET: &'static str = "CumulusXcm";
+ const EVENT: &'static str = "ExecutedDownward";
+ }
+ }
+ }
+ pub mod message_queue {
+ use super::root_mod;
+ use super::runtime_types;
+ #[doc = "The `Error` enum of this pallet."]
+ pub type Error = runtime_types::pallet_message_queue::pallet::Error;
+ #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."]
+ pub type Call = runtime_types::pallet_message_queue::pallet::Call;
+ pub mod calls {
+ use super::root_mod;
+ use super::runtime_types;
+ type DispatchError = runtime_types::sp_runtime::DispatchError;
+ pub mod types {
+ use super::runtime_types;
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ pub struct ReapPage {
+ pub message_origin:
+ runtime_types::cumulus_primitives_core::AggregateMessageOrigin,
+ pub page_index: ::core::primitive::u32,
+ }
+ impl ::subxt::blocks::StaticExtrinsic for ReapPage {
+ const PALLET: &'static str = "MessageQueue";
+ const CALL: &'static str = "reap_page";
+ }
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ pub struct ExecuteOverweight {
+ pub message_origin:
+ runtime_types::cumulus_primitives_core::AggregateMessageOrigin,
+ pub page: ::core::primitive::u32,
+ pub index: ::core::primitive::u32,
+ pub weight_limit: runtime_types::sp_weights::weight_v2::Weight,
+ }
+ impl ::subxt::blocks::StaticExtrinsic for ExecuteOverweight {
+ const PALLET: &'static str = "MessageQueue";
+ const CALL: &'static str = "execute_overweight";
+ }
+ }
+ pub struct TransactionApi;
+ impl TransactionApi {
+ #[doc = "See [`Pallet::reap_page`]."]
+ pub fn reap_page(
+ &self,
+ message_origin: runtime_types::cumulus_primitives_core::AggregateMessageOrigin,
+ page_index: ::core::primitive::u32,
+ ) -> ::subxt::tx::Payload {
+ ::subxt::tx::Payload::new_static(
+ "MessageQueue",
+ "reap_page",
+ types::ReapPage { message_origin, page_index },
+ [
+ 116u8, 17u8, 120u8, 238u8, 117u8, 222u8, 10u8, 166u8, 132u8, 181u8,
+ 114u8, 150u8, 242u8, 202u8, 31u8, 143u8, 212u8, 65u8, 145u8, 249u8,
+ 27u8, 204u8, 137u8, 133u8, 220u8, 187u8, 137u8, 90u8, 112u8, 55u8,
+ 104u8, 163u8,
+ ],
+ )
+ }
+ #[doc = "See [`Pallet::execute_overweight`]."]
+ pub fn execute_overweight(
+ &self,
+ message_origin: runtime_types::cumulus_primitives_core::AggregateMessageOrigin,
+ page: ::core::primitive::u32,
+ index: ::core::primitive::u32,
+ weight_limit: runtime_types::sp_weights::weight_v2::Weight,
+ ) -> ::subxt::tx::Payload {
+ ::subxt::tx::Payload::new_static(
+ "MessageQueue",
+ "execute_overweight",
+ types::ExecuteOverweight { message_origin, page, index, weight_limit },
+ [
+ 177u8, 54u8, 82u8, 58u8, 94u8, 125u8, 241u8, 172u8, 52u8, 7u8, 236u8,
+ 80u8, 66u8, 99u8, 42u8, 199u8, 38u8, 195u8, 65u8, 118u8, 166u8, 246u8,
+ 239u8, 195u8, 144u8, 153u8, 155u8, 8u8, 224u8, 56u8, 106u8, 135u8,
+ ],
+ )
+ }
+ }
+ }
+ #[doc = "The `Event` enum of this pallet"]
+ pub type Event = runtime_types::pallet_message_queue::pallet::Event;
+ pub mod events {
+ use super::runtime_types;
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ #[doc = "Message discarded due to an error in the `MessageProcessor` (usually a format error)."]
+ pub struct ProcessingFailed {
+ pub id: ::subxt::utils::H256,
+ pub origin: runtime_types::cumulus_primitives_core::AggregateMessageOrigin,
+ pub error: runtime_types::frame_support::traits::messages::ProcessMessageError,
+ }
+ impl ::subxt::events::StaticEvent for ProcessingFailed {
+ const PALLET: &'static str = "MessageQueue";
+ const EVENT: &'static str = "ProcessingFailed";
+ }
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ #[doc = "Message is processed."]
+ pub struct Processed {
+ pub id: ::subxt::utils::H256,
+ pub origin: runtime_types::cumulus_primitives_core::AggregateMessageOrigin,
+ pub weight_used: runtime_types::sp_weights::weight_v2::Weight,
+ pub success: ::core::primitive::bool,
+ }
+ impl ::subxt::events::StaticEvent for Processed {
+ const PALLET: &'static str = "MessageQueue";
+ const EVENT: &'static str = "Processed";
+ }
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ #[doc = "Message placed in overweight queue."]
+ pub struct OverweightEnqueued {
+ pub id: [::core::primitive::u8; 32usize],
+ pub origin: runtime_types::cumulus_primitives_core::AggregateMessageOrigin,
+ pub page_index: ::core::primitive::u32,
+ pub message_index: ::core::primitive::u32,
+ }
+ impl ::subxt::events::StaticEvent for OverweightEnqueued {
+ const PALLET: &'static str = "MessageQueue";
+ const EVENT: &'static str = "OverweightEnqueued";
+ }
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ #[doc = "This page was reaped."]
+ pub struct PageReaped {
+ pub origin: runtime_types::cumulus_primitives_core::AggregateMessageOrigin,
+ pub index: ::core::primitive::u32,
+ }
+ impl ::subxt::events::StaticEvent for PageReaped {
+ const PALLET: &'static str = "MessageQueue";
+ const EVENT: &'static str = "PageReaped";
+ }
+ }
+ pub mod storage {
+ use super::runtime_types;
+ pub struct StorageApi;
+ impl StorageApi {
+ #[doc = " The index of the first and last (non-empty) pages."]
+ pub fn book_state_for_iter(
+ &self,
+ ) -> ::subxt::storage::address::Address<
+ ::subxt::storage::address::StaticStorageMapKey,
+ runtime_types::pallet_message_queue::BookState<
+ runtime_types::cumulus_primitives_core::AggregateMessageOrigin,
+ >,
+ (),
+ ::subxt::storage::address::Yes,
+ ::subxt::storage::address::Yes,
+ > {
+ ::subxt::storage::address::Address::new_static(
+ "MessageQueue",
+ "BookStateFor",
+ vec![],
+ [
+ 33u8, 240u8, 235u8, 59u8, 150u8, 42u8, 91u8, 248u8, 235u8, 52u8, 170u8,
+ 52u8, 195u8, 129u8, 6u8, 174u8, 57u8, 242u8, 30u8, 220u8, 232u8, 4u8,
+ 246u8, 218u8, 162u8, 174u8, 102u8, 95u8, 210u8, 92u8, 133u8, 143u8,
+ ],
+ )
+ }
+ #[doc = " The index of the first and last (non-empty) pages."]
+ pub fn book_state_for(
+ &self,
+ _0: impl ::std::borrow::Borrow<
+ runtime_types::cumulus_primitives_core::AggregateMessageOrigin,
+ >,
+ ) -> ::subxt::storage::address::Address<
+ ::subxt::storage::address::StaticStorageMapKey,
+ runtime_types::pallet_message_queue::BookState<
+ runtime_types::cumulus_primitives_core::AggregateMessageOrigin,
+ >,
+ ::subxt::storage::address::Yes,
+ ::subxt::storage::address::Yes,
+ (),
+ > {
+ ::subxt::storage::address::Address::new_static(
+ "MessageQueue",
+ "BookStateFor",
+ vec![::subxt::storage::address::make_static_storage_map_key(_0.borrow())],
+ [
+ 33u8, 240u8, 235u8, 59u8, 150u8, 42u8, 91u8, 248u8, 235u8, 52u8, 170u8,
+ 52u8, 195u8, 129u8, 6u8, 174u8, 57u8, 242u8, 30u8, 220u8, 232u8, 4u8,
+ 246u8, 218u8, 162u8, 174u8, 102u8, 95u8, 210u8, 92u8, 133u8, 143u8,
+ ],
+ )
+ }
+ #[doc = " The origin at which we should begin servicing."]
+ pub fn service_head(
+ &self,
+ ) -> ::subxt::storage::address::Address<
+ ::subxt::storage::address::StaticStorageMapKey,
+ runtime_types::cumulus_primitives_core::AggregateMessageOrigin,
+ ::subxt::storage::address::Yes,
+ (),
+ (),
+ > {
+ ::subxt::storage::address::Address::new_static(
+ "MessageQueue",
+ "ServiceHead",
+ vec![],
+ [
+ 104u8, 146u8, 240u8, 41u8, 171u8, 68u8, 20u8, 147u8, 212u8, 155u8,
+ 59u8, 39u8, 174u8, 186u8, 97u8, 250u8, 41u8, 247u8, 67u8, 190u8, 252u8,
+ 167u8, 234u8, 36u8, 124u8, 239u8, 163u8, 72u8, 223u8, 82u8, 82u8,
+ 171u8,
+ ],
+ )
+ }
+ #[doc = " The map of page indices to pages."]
+ pub fn pages_iter(
+ &self,
+ ) -> ::subxt::storage::address::Address<
+ ::subxt::storage::address::StaticStorageMapKey,
+ runtime_types::pallet_message_queue::Page<::core::primitive::u32>,
+ (),
+ (),
+ ::subxt::storage::address::Yes,
+ > {
+ ::subxt::storage::address::Address::new_static(
+ "MessageQueue",
+ "Pages",
+ vec![],
+ [
+ 45u8, 202u8, 18u8, 128u8, 31u8, 194u8, 175u8, 173u8, 99u8, 81u8, 161u8,
+ 44u8, 32u8, 183u8, 238u8, 181u8, 110u8, 240u8, 203u8, 12u8, 152u8,
+ 58u8, 239u8, 190u8, 144u8, 168u8, 210u8, 33u8, 121u8, 250u8, 137u8,
+ 142u8,
+ ],
+ )
+ }
+ #[doc = " The map of page indices to pages."]
+ pub fn pages_iter1(
+ &self,
+ _0: impl ::std::borrow::Borrow<
+ runtime_types::cumulus_primitives_core::AggregateMessageOrigin,
+ >,
+ ) -> ::subxt::storage::address::Address<
+ ::subxt::storage::address::StaticStorageMapKey,
+ runtime_types::pallet_message_queue::Page<::core::primitive::u32>,
+ (),
+ (),
+ ::subxt::storage::address::Yes,
+ > {
+ ::subxt::storage::address::Address::new_static(
+ "MessageQueue",
+ "Pages",
+ vec![::subxt::storage::address::make_static_storage_map_key(_0.borrow())],
+ [
+ 45u8, 202u8, 18u8, 128u8, 31u8, 194u8, 175u8, 173u8, 99u8, 81u8, 161u8,
+ 44u8, 32u8, 183u8, 238u8, 181u8, 110u8, 240u8, 203u8, 12u8, 152u8,
+ 58u8, 239u8, 190u8, 144u8, 168u8, 210u8, 33u8, 121u8, 250u8, 137u8,
+ 142u8,
+ ],
+ )
+ }
+ #[doc = " The map of page indices to pages."]
+ pub fn pages(
+ &self,
+ _0: impl ::std::borrow::Borrow<
+ runtime_types::cumulus_primitives_core::AggregateMessageOrigin,
+ >,
+ _1: impl ::std::borrow::Borrow<::core::primitive::u32>,
+ ) -> ::subxt::storage::address::Address<
+ ::subxt::storage::address::StaticStorageMapKey,
+ runtime_types::pallet_message_queue::Page<::core::primitive::u32>,
+ ::subxt::storage::address::Yes,
+ (),
+ (),
+ > {
+ ::subxt::storage::address::Address::new_static(
+ "MessageQueue",
+ "Pages",
+ vec![
+ ::subxt::storage::address::make_static_storage_map_key(_0.borrow()),
+ ::subxt::storage::address::make_static_storage_map_key(_1.borrow()),
+ ],
+ [
+ 45u8, 202u8, 18u8, 128u8, 31u8, 194u8, 175u8, 173u8, 99u8, 81u8, 161u8,
+ 44u8, 32u8, 183u8, 238u8, 181u8, 110u8, 240u8, 203u8, 12u8, 152u8,
+ 58u8, 239u8, 190u8, 144u8, 168u8, 210u8, 33u8, 121u8, 250u8, 137u8,
+ 142u8,
+ ],
+ )
+ }
+ }
+ }
+ pub mod constants {
+ use super::runtime_types;
+ pub struct ConstantsApi;
+ impl ConstantsApi {
+ #[doc = " The size of the page; this implies the maximum message size which can be sent."]
+ #[doc = ""]
+ #[doc = " A good value depends on the expected message sizes, their weights, the weight that is"]
+ #[doc = " available for processing them and the maximal needed message size. The maximal message"]
+ #[doc = " size is slightly lower than this as defined by [`MaxMessageLenOf`]."]
+ pub fn heap_size(&self) -> ::subxt::constants::Address<::core::primitive::u32> {
+ ::subxt::constants::Address::new_static(
+ "MessageQueue",
+ "HeapSize",
+ [
+ 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 stale pages (i.e. of overweight messages) allowed before culling"]
+ #[doc = " can happen. Once there are more stale pages than this, then historical pages may be"]
+ #[doc = " dropped, even if they contain unprocessed overweight messages."]
+ pub fn max_stale(&self) -> ::subxt::constants::Address<::core::primitive::u32> {
+ ::subxt::constants::Address::new_static(
+ "MessageQueue",
+ "MaxStale",
+ [
+ 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 amount of weight (if any) which should be provided to the message queue for"]
+ #[doc = " servicing enqueued items."]
+ #[doc = ""]
+ #[doc = " This may be legitimately `None` in the case that you will call"]
+ #[doc = " `ServiceQueues::service_queues` manually."]
+ pub fn service_weight(
+ &self,
+ ) -> ::subxt::constants::Address<
+ ::core::option::Option,
+ > {
+ ::subxt::constants::Address::new_static(
+ "MessageQueue",
+ "ServiceWeight",
+ [
+ 204u8, 140u8, 63u8, 167u8, 49u8, 8u8, 148u8, 163u8, 190u8, 224u8, 15u8,
+ 103u8, 86u8, 153u8, 248u8, 117u8, 223u8, 117u8, 210u8, 80u8, 205u8,
+ 155u8, 40u8, 11u8, 59u8, 63u8, 129u8, 156u8, 17u8, 83u8, 177u8, 250u8,
+ ],
+ )
+ }
+ }
+ }
+ }
+ pub mod utility {
+ use super::root_mod;
+ use super::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;
+ use super::runtime_types;
+ type DispatchError = runtime_types::sp_runtime::DispatchError;
+ pub mod types {
+ use super::runtime_types;
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ pub struct Batch {
+ pub calls: ::std::vec::Vec,
+ }
+ impl ::subxt::blocks::StaticExtrinsic for Batch {
+ const PALLET: &'static str = "Utility";
+ const CALL: &'static str = "batch";
+ }
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ pub struct AsDerivative {
+ pub index: ::core::primitive::u16,
+ pub call:
+ ::std::boxed::Box,
+ }
+ impl ::subxt::blocks::StaticExtrinsic for AsDerivative {
+ const PALLET: &'static str = "Utility";
+ const CALL: &'static str = "as_derivative";
+ }
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ pub struct BatchAll {
+ pub calls: ::std::vec::Vec,
+ }
+ impl ::subxt::blocks::StaticExtrinsic for BatchAll {
+ const PALLET: &'static str = "Utility";
+ const CALL: &'static str = "batch_all";
+ }
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ pub struct DispatchAs {
+ pub as_origin:
+ ::std::boxed::Box,
+ pub call:
+ ::std::boxed::Box,
+ }
+ impl ::subxt::blocks::StaticExtrinsic for DispatchAs {
+ const PALLET: &'static str = "Utility";
+ const CALL: &'static str = "dispatch_as";
+ }
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ pub struct ForceBatch {
+ pub calls: ::std::vec::Vec,
+ }
+ impl ::subxt::blocks::StaticExtrinsic for ForceBatch {
+ const PALLET: &'static str = "Utility";
+ const CALL: &'static str = "force_batch";
+ }
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ pub struct WithWeight {
+ pub call:
+ ::std::boxed::Box,
+ pub weight: runtime_types::sp_weights::weight_v2::Weight,
+ }
+ impl ::subxt::blocks::StaticExtrinsic for WithWeight {
+ const PALLET: &'static str = "Utility";
+ const CALL: &'static str = "with_weight";
+ }
+ }
+ pub struct TransactionApi;
+ impl TransactionApi {
+ #[doc = "See [`Pallet::batch`]."]
+ pub fn batch(
+ &self,
+ calls: ::std::vec::Vec,
+ ) -> ::subxt::tx::Payload {
+ ::subxt::tx::Payload::new_static(
+ "Utility",
+ "batch",
+ types::Batch { calls },
+ [
+ 196u8, 209u8, 52u8, 231u8, 46u8, 197u8, 7u8, 8u8, 85u8, 223u8, 142u8,
+ 251u8, 7u8, 60u8, 113u8, 87u8, 8u8, 125u8, 194u8, 180u8, 144u8, 212u8,
+ 243u8, 127u8, 87u8, 76u8, 7u8, 54u8, 64u8, 141u8, 206u8, 51u8,
+ ],
+ )
+ }
+ #[doc = "See [`Pallet::as_derivative`]."]
+ pub fn as_derivative(
+ &self,
+ index: ::core::primitive::u16,
+ call: runtime_types::coretime_rococo_runtime::RuntimeCall,
+ ) -> ::subxt::tx::Payload {
+ ::subxt::tx::Payload::new_static(
+ "Utility",
+ "as_derivative",
+ types::AsDerivative { index, call: ::std::boxed::Box::new(call) },
+ [
+ 126u8, 211u8, 152u8, 5u8, 89u8, 68u8, 210u8, 83u8, 191u8, 217u8, 168u8,
+ 29u8, 141u8, 230u8, 4u8, 219u8, 91u8, 223u8, 27u8, 85u8, 63u8, 251u8,
+ 141u8, 0u8, 99u8, 230u8, 91u8, 145u8, 177u8, 106u8, 14u8, 189u8,
+ ],
+ )
+ }
+ #[doc = "See [`Pallet::batch_all`]."]
+ pub fn batch_all(
+ &self,
+ calls: ::std::vec::Vec,
+ ) -> ::subxt::tx::Payload {
+ ::subxt::tx::Payload::new_static(
+ "Utility",
+ "batch_all",
+ types::BatchAll { calls },
+ [
+ 131u8, 0u8, 44u8, 110u8, 130u8, 180u8, 218u8, 239u8, 123u8, 185u8,
+ 204u8, 239u8, 83u8, 11u8, 0u8, 138u8, 164u8, 212u8, 139u8, 147u8, 20u8,
+ 105u8, 176u8, 167u8, 207u8, 66u8, 244u8, 13u8, 56u8, 50u8, 183u8, 26u8,
+ ],
+ )
+ }
+ #[doc = "See [`Pallet::dispatch_as`]."]
+ pub fn dispatch_as(
+ &self,
+ as_origin: runtime_types::coretime_rococo_runtime::OriginCaller,
+ call: runtime_types::coretime_rococo_runtime::RuntimeCall,
+ ) -> ::subxt::tx::Payload {
+ ::subxt::tx::Payload::new_static(
+ "Utility",
+ "dispatch_as",
+ types::DispatchAs {
+ as_origin: ::std::boxed::Box::new(as_origin),
+ call: ::std::boxed::Box::new(call),
+ },
+ [
+ 103u8, 50u8, 121u8, 101u8, 30u8, 227u8, 123u8, 125u8, 94u8, 185u8,
+ 74u8, 165u8, 178u8, 61u8, 204u8, 15u8, 220u8, 149u8, 88u8, 142u8,
+ 213u8, 16u8, 27u8, 11u8, 233u8, 82u8, 225u8, 11u8, 118u8, 201u8, 160u8,
+ 99u8,
+ ],
+ )
+ }
+ #[doc = "See [`Pallet::force_batch`]."]
+ pub fn force_batch(
+ &self,
+ calls: ::std::vec::Vec,
+ ) -> ::subxt::tx::Payload {
+ ::subxt::tx::Payload::new_static(
+ "Utility",
+ "force_batch",
+ types::ForceBatch { calls },
+ [
+ 137u8, 141u8, 119u8, 237u8, 225u8, 180u8, 133u8, 11u8, 223u8, 67u8,
+ 96u8, 59u8, 207u8, 168u8, 81u8, 69u8, 109u8, 14u8, 202u8, 96u8, 10u8,
+ 66u8, 102u8, 222u8, 29u8, 9u8, 69u8, 28u8, 2u8, 99u8, 127u8, 173u8,
+ ],
+ )
+ }
+ #[doc = "See [`Pallet::with_weight`]."]
+ pub fn with_weight(
+ &self,
+ call: runtime_types::coretime_rococo_runtime::RuntimeCall,
+ weight: runtime_types::sp_weights::weight_v2::Weight,
+ ) -> ::subxt::tx::Payload {
+ ::subxt::tx::Payload::new_static(
+ "Utility",
+ "with_weight",
+ types::WithWeight { call: ::std::boxed::Box::new(call), weight },
+ [
+ 169u8, 60u8, 21u8, 80u8, 219u8, 219u8, 154u8, 125u8, 254u8, 169u8,
+ 22u8, 243u8, 7u8, 4u8, 225u8, 11u8, 134u8, 236u8, 83u8, 184u8, 188u8,
+ 10u8, 248u8, 127u8, 240u8, 220u8, 74u8, 212u8, 104u8, 60u8, 31u8,
+ 164u8,
+ ],
+ )
+ }
+ }
+ }
+ #[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 :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ #[doc = "Batch of dispatches did not complete fully. Index of first failing dispatch given, as"]
+ #[doc = "well as the error."]
+ pub struct BatchInterrupted {
+ pub index: ::core::primitive::u32,
+ pub error: runtime_types::sp_runtime::DispatchError,
+ }
+ impl ::subxt::events::StaticEvent for BatchInterrupted {
+ const PALLET: &'static str = "Utility";
+ const EVENT: &'static str = "BatchInterrupted";
+ }
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ #[doc = "Batch of dispatches completed fully with no error."]
+ pub struct BatchCompleted;
+ impl ::subxt::events::StaticEvent for BatchCompleted {
+ const PALLET: &'static str = "Utility";
+ const EVENT: &'static str = "BatchCompleted";
+ }
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ #[doc = "Batch of dispatches completed but has errors."]
+ pub struct BatchCompletedWithErrors;
+ impl ::subxt::events::StaticEvent for BatchCompletedWithErrors {
+ const PALLET: &'static str = "Utility";
+ const EVENT: &'static str = "BatchCompletedWithErrors";
+ }
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ #[doc = "A single item within a Batch of dispatches has completed with no error."]
+ pub struct ItemCompleted;
+ impl ::subxt::events::StaticEvent for ItemCompleted {
+ const PALLET: &'static str = "Utility";
+ const EVENT: &'static str = "ItemCompleted";
+ }
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ #[doc = "A single item within a Batch of dispatches has completed with error."]
+ pub struct ItemFailed {
+ pub error: runtime_types::sp_runtime::DispatchError,
+ }
+ impl ::subxt::events::StaticEvent for ItemFailed {
+ const PALLET: &'static str = "Utility";
+ const EVENT: &'static str = "ItemFailed";
+ }
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ #[doc = "A call was dispatched."]
+ pub struct DispatchedAs {
+ pub result: ::core::result::Result<(), runtime_types::sp_runtime::DispatchError>,
+ }
+ impl ::subxt::events::StaticEvent for DispatchedAs {
+ const PALLET: &'static str = "Utility";
+ const EVENT: &'static str = "DispatchedAs";
+ }
+ }
+ 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::constants::Address<::core::primitive::u32> {
+ ::subxt::constants::Address::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 multisig {
+ use super::root_mod;
+ use super::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;
+ use super::runtime_types;
+ type DispatchError = runtime_types::sp_runtime::DispatchError;
+ pub mod types {
+ use super::runtime_types;
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ pub struct AsMultiThreshold1 {
+ pub other_signatories: ::std::vec::Vec<::subxt::utils::AccountId32>,
+ pub call:
+ ::std::boxed::Box,
+ }
+ impl ::subxt::blocks::StaticExtrinsic for AsMultiThreshold1 {
+ const PALLET: &'static str = "Multisig";
+ const CALL: &'static str = "as_multi_threshold_1";
+ }
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ pub struct AsMulti {
+ pub threshold: ::core::primitive::u16,
+ pub other_signatories: ::std::vec::Vec<::subxt::utils::AccountId32>,
+ pub maybe_timepoint: ::core::option::Option<
+ runtime_types::pallet_multisig::Timepoint<::core::primitive::u32>,
+ >,
+ pub call:
+ ::std::boxed::Box,
+ pub max_weight: runtime_types::sp_weights::weight_v2::Weight,
+ }
+ impl ::subxt::blocks::StaticExtrinsic for AsMulti {
+ const PALLET: &'static str = "Multisig";
+ const CALL: &'static str = "as_multi";
+ }
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ pub struct ApproveAsMulti {
+ pub threshold: ::core::primitive::u16,
+ pub other_signatories: ::std::vec::Vec<::subxt::utils::AccountId32>,
+ pub maybe_timepoint: ::core::option::Option<
+ runtime_types::pallet_multisig::Timepoint<::core::primitive::u32>,
+ >,
+ pub call_hash: [::core::primitive::u8; 32usize],
+ pub max_weight: runtime_types::sp_weights::weight_v2::Weight,
+ }
+ impl ::subxt::blocks::StaticExtrinsic for ApproveAsMulti {
+ const PALLET: &'static str = "Multisig";
+ const CALL: &'static str = "approve_as_multi";
+ }
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ pub struct CancelAsMulti {
+ pub threshold: ::core::primitive::u16,
+ pub other_signatories: ::std::vec::Vec<::subxt::utils::AccountId32>,
+ pub timepoint:
+ runtime_types::pallet_multisig::Timepoint<::core::primitive::u32>,
+ pub call_hash: [::core::primitive::u8; 32usize],
+ }
+ impl ::subxt::blocks::StaticExtrinsic for CancelAsMulti {
+ const PALLET: &'static str = "Multisig";
+ const CALL: &'static str = "cancel_as_multi";
+ }
+ }
+ pub struct TransactionApi;
+ impl TransactionApi {
+ #[doc = "See [`Pallet::as_multi_threshold_1`]."]
+ pub fn as_multi_threshold_1(
+ &self,
+ other_signatories: ::std::vec::Vec<::subxt::utils::AccountId32>,
+ call: runtime_types::coretime_rococo_runtime::RuntimeCall,
+ ) -> ::subxt::tx::Payload {
+ ::subxt::tx::Payload::new_static(
+ "Multisig",
+ "as_multi_threshold_1",
+ types::AsMultiThreshold1 {
+ other_signatories,
+ call: ::std::boxed::Box::new(call),
+ },
+ [
+ 254u8, 54u8, 88u8, 235u8, 170u8, 12u8, 95u8, 53u8, 93u8, 170u8, 39u8,
+ 224u8, 0u8, 128u8, 16u8, 91u8, 152u8, 70u8, 66u8, 52u8, 134u8, 110u8,
+ 178u8, 37u8, 53u8, 125u8, 162u8, 72u8, 102u8, 78u8, 73u8, 96u8,
+ ],
+ )
+ }
+ #[doc = "See [`Pallet::as_multi`]."]
+ pub fn as_multi(
+ &self,
+ threshold: ::core::primitive::u16,
+ other_signatories: ::std::vec::Vec<::subxt::utils::AccountId32>,
+ maybe_timepoint: ::core::option::Option<
+ runtime_types::pallet_multisig::Timepoint<::core::primitive::u32>,
+ >,
+ call: runtime_types::coretime_rococo_runtime::RuntimeCall,
+ max_weight: runtime_types::sp_weights::weight_v2::Weight,
+ ) -> ::subxt::tx::Payload {
+ ::subxt::tx::Payload::new_static(
+ "Multisig",
+ "as_multi",
+ types::AsMulti {
+ threshold,
+ other_signatories,
+ maybe_timepoint,
+ call: ::std::boxed::Box::new(call),
+ max_weight,
+ },
+ [
+ 125u8, 11u8, 76u8, 234u8, 44u8, 41u8, 237u8, 218u8, 233u8, 225u8,
+ 254u8, 203u8, 234u8, 214u8, 181u8, 116u8, 14u8, 100u8, 187u8, 243u8,
+ 166u8, 26u8, 216u8, 0u8, 196u8, 134u8, 66u8, 121u8, 92u8, 100u8, 165u8,
+ 180u8,
+ ],
+ )
+ }
+ #[doc = "See [`Pallet::approve_as_multi`]."]
+ pub fn approve_as_multi(
+ &self,
+ threshold: ::core::primitive::u16,
+ other_signatories: ::std::vec::Vec<::subxt::utils::AccountId32>,
+ maybe_timepoint: ::core::option::Option<
+ runtime_types::pallet_multisig::Timepoint<::core::primitive::u32>,
+ >,
+ call_hash: [::core::primitive::u8; 32usize],
+ max_weight: runtime_types::sp_weights::weight_v2::Weight,
+ ) -> ::subxt::tx::Payload {
+ ::subxt::tx::Payload::new_static(
+ "Multisig",
+ "approve_as_multi",
+ types::ApproveAsMulti {
+ threshold,
+ other_signatories,
+ maybe_timepoint,
+ call_hash,
+ max_weight,
+ },
+ [
+ 248u8, 46u8, 131u8, 35u8, 204u8, 12u8, 218u8, 150u8, 88u8, 131u8, 89u8,
+ 13u8, 95u8, 122u8, 87u8, 107u8, 136u8, 154u8, 92u8, 199u8, 108u8, 92u8,
+ 207u8, 171u8, 113u8, 8u8, 47u8, 248u8, 65u8, 26u8, 203u8, 135u8,
+ ],
+ )
+ }
+ #[doc = "See [`Pallet::cancel_as_multi`]."]
+ pub fn cancel_as_multi(
+ &self,
+ threshold: ::core::primitive::u16,
+ other_signatories: ::std::vec::Vec<::subxt::utils::AccountId32>,
+ timepoint: runtime_types::pallet_multisig::Timepoint<::core::primitive::u32>,
+ call_hash: [::core::primitive::u8; 32usize],
+ ) -> ::subxt::tx::Payload {
+ ::subxt::tx::Payload::new_static(
+ "Multisig",
+ "cancel_as_multi",
+ types::CancelAsMulti { threshold, other_signatories, timepoint, call_hash },
+ [
+ 212u8, 179u8, 123u8, 40u8, 209u8, 228u8, 181u8, 0u8, 109u8, 28u8, 27u8,
+ 48u8, 15u8, 47u8, 203u8, 54u8, 106u8, 114u8, 28u8, 118u8, 101u8, 201u8,
+ 95u8, 187u8, 46u8, 182u8, 4u8, 30u8, 227u8, 105u8, 14u8, 81u8,
+ ],
+ )
+ }
+ }
+ }
+ #[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 :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ #[doc = "A new multisig operation has begun."]
+ pub struct NewMultisig {
+ pub approving: ::subxt::utils::AccountId32,
+ pub multisig: ::subxt::utils::AccountId32,
+ pub call_hash: [::core::primitive::u8; 32usize],
+ }
+ impl ::subxt::events::StaticEvent for NewMultisig {
+ const PALLET: &'static str = "Multisig";
+ const EVENT: &'static str = "NewMultisig";
+ }
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ #[doc = "A multisig operation has been approved by someone."]
+ pub struct MultisigApproval {
+ pub approving: ::subxt::utils::AccountId32,
+ pub timepoint: runtime_types::pallet_multisig::Timepoint<::core::primitive::u32>,
+ pub multisig: ::subxt::utils::AccountId32,
+ pub call_hash: [::core::primitive::u8; 32usize],
+ }
+ impl ::subxt::events::StaticEvent for MultisigApproval {
+ const PALLET: &'static str = "Multisig";
+ const EVENT: &'static str = "MultisigApproval";
+ }
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ #[doc = "A multisig operation has been executed."]
+ pub struct MultisigExecuted {
+ pub approving: ::subxt::utils::AccountId32,
+ pub timepoint: runtime_types::pallet_multisig::Timepoint<::core::primitive::u32>,
+ pub multisig: ::subxt::utils::AccountId32,
+ pub call_hash: [::core::primitive::u8; 32usize],
+ pub result: ::core::result::Result<(), runtime_types::sp_runtime::DispatchError>,
+ }
+ impl ::subxt::events::StaticEvent for MultisigExecuted {
+ const PALLET: &'static str = "Multisig";
+ const EVENT: &'static str = "MultisigExecuted";
+ }
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ #[doc = "A multisig operation has been cancelled."]
+ pub struct MultisigCancelled {
+ pub cancelling: ::subxt::utils::AccountId32,
+ pub timepoint: runtime_types::pallet_multisig::Timepoint<::core::primitive::u32>,
+ pub multisig: ::subxt::utils::AccountId32,
+ pub call_hash: [::core::primitive::u8; 32usize],
+ }
+ impl ::subxt::events::StaticEvent for MultisigCancelled {
+ const PALLET: &'static str = "Multisig";
+ const EVENT: &'static str = "MultisigCancelled";
+ }
+ }
+ pub mod storage {
+ use super::runtime_types;
+ pub struct StorageApi;
+ impl StorageApi {
+ #[doc = " The set of open multisig operations."]
+ pub fn multisigs_iter(
+ &self,
+ ) -> ::subxt::storage::address::Address<
+ ::subxt::storage::address::StaticStorageMapKey,
+ runtime_types::pallet_multisig::Multisig<
+ ::core::primitive::u32,
+ ::core::primitive::u128,
+ ::subxt::utils::AccountId32,
+ >,
+ (),
+ (),
+ ::subxt::storage::address::Yes,
+ > {
+ ::subxt::storage::address::Address::new_static(
+ "Multisig",
+ "Multisigs",
+ vec![],
+ [
+ 154u8, 109u8, 45u8, 18u8, 155u8, 151u8, 81u8, 28u8, 86u8, 127u8, 189u8,
+ 151u8, 49u8, 61u8, 12u8, 149u8, 84u8, 61u8, 110u8, 197u8, 200u8, 140u8,
+ 37u8, 100u8, 14u8, 162u8, 158u8, 161u8, 48u8, 117u8, 102u8, 61u8,
+ ],
+ )
+ }
+ #[doc = " The set of open multisig operations."]
+ pub fn multisigs_iter1(
+ &self,
+ _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>,
+ ) -> ::subxt::storage::address::Address<
+ ::subxt::storage::address::StaticStorageMapKey,
+ runtime_types::pallet_multisig::Multisig<
+ ::core::primitive::u32,
+ ::core::primitive::u128,
+ ::subxt::utils::AccountId32,
+ >,
+ (),
+ (),
+ ::subxt::storage::address::Yes,
+ > {
+ ::subxt::storage::address::Address::new_static(
+ "Multisig",
+ "Multisigs",
+ vec![::subxt::storage::address::make_static_storage_map_key(_0.borrow())],
+ [
+ 154u8, 109u8, 45u8, 18u8, 155u8, 151u8, 81u8, 28u8, 86u8, 127u8, 189u8,
+ 151u8, 49u8, 61u8, 12u8, 149u8, 84u8, 61u8, 110u8, 197u8, 200u8, 140u8,
+ 37u8, 100u8, 14u8, 162u8, 158u8, 161u8, 48u8, 117u8, 102u8, 61u8,
+ ],
+ )
+ }
+ #[doc = " The set of open multisig operations."]
+ pub fn multisigs(
+ &self,
+ _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>,
+ _1: impl ::std::borrow::Borrow<[::core::primitive::u8; 32usize]>,
+ ) -> ::subxt::storage::address::Address<
+ ::subxt::storage::address::StaticStorageMapKey,
+ runtime_types::pallet_multisig::Multisig<
+ ::core::primitive::u32,
+ ::core::primitive::u128,
+ ::subxt::utils::AccountId32,
+ >,
+ ::subxt::storage::address::Yes,
+ (),
+ (),
+ > {
+ ::subxt::storage::address::Address::new_static(
+ "Multisig",
+ "Multisigs",
+ vec![
+ ::subxt::storage::address::make_static_storage_map_key(_0.borrow()),
+ ::subxt::storage::address::make_static_storage_map_key(_1.borrow()),
+ ],
+ [
+ 154u8, 109u8, 45u8, 18u8, 155u8, 151u8, 81u8, 28u8, 86u8, 127u8, 189u8,
+ 151u8, 49u8, 61u8, 12u8, 149u8, 84u8, 61u8, 110u8, 197u8, 200u8, 140u8,
+ 37u8, 100u8, 14u8, 162u8, 158u8, 161u8, 48u8, 117u8, 102u8, 61u8,
+ ],
+ )
+ }
+ }
+ }
+ pub mod constants {
+ use super::runtime_types;
+ pub struct ConstantsApi;
+ impl ConstantsApi {
+ #[doc = " The base amount of currency needed to reserve for creating a multisig execution or to"]
+ #[doc = " store a dispatch call for later."]
+ #[doc = ""]
+ #[doc = " This is held for an additional storage item whose value size is"]
+ #[doc = " `4 + sizeof((BlockNumber, Balance, AccountId))` bytes and whose key size is"]
+ #[doc = " `32 + sizeof(AccountId)` bytes."]
+ pub fn deposit_base(&self) -> ::subxt::constants::Address<::core::primitive::u128> {
+ ::subxt::constants::Address::new_static(
+ "Multisig",
+ "DepositBase",
+ [
+ 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 unit threshold when creating a multisig execution."]
+ #[doc = ""]
+ #[doc = " This is held for adding 32 bytes more into a pre-existing storage value."]
+ pub fn deposit_factor(
+ &self,
+ ) -> ::subxt::constants::Address<::core::primitive::u128> {
+ ::subxt::constants::Address::new_static(
+ "Multisig",
+ "DepositFactor",
+ [
+ 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 signatories allowed in the multisig."]
+ pub fn max_signatories(
+ &self,
+ ) -> ::subxt::constants::Address<::core::primitive::u32> {
+ ::subxt::constants::Address::new_static(
+ "Multisig",
+ "MaxSignatories",
+ [
+ 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 broker {
+ use super::root_mod;
+ use super::runtime_types;
+ #[doc = "The `Error` enum of this pallet."]
+ pub type Error = runtime_types::pallet_broker::pallet::Error;
+ #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."]
+ pub type Call = runtime_types::pallet_broker::pallet::Call;
+ pub mod calls {
+ use super::root_mod;
+ use super::runtime_types;
+ type DispatchError = runtime_types::sp_runtime::DispatchError;
+ pub mod types {
+ use super::runtime_types;
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ pub struct Configure {
+ pub config: runtime_types::pallet_broker::types::ConfigRecord<
+ ::core::primitive::u32,
+ ::core::primitive::u32,
+ >,
+ }
+ impl ::subxt::blocks::StaticExtrinsic for Configure {
+ const PALLET: &'static str = "Broker";
+ const CALL: &'static str = "configure";
+ }
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ pub struct Reserve {
+ pub workload: runtime_types::bounded_collections::bounded_vec::BoundedVec<
+ runtime_types::pallet_broker::types::ScheduleItem,
+ >,
+ }
+ impl ::subxt::blocks::StaticExtrinsic for Reserve {
+ const PALLET: &'static str = "Broker";
+ const CALL: &'static str = "reserve";
+ }
+ #[derive(
+ :: subxt :: ext :: codec :: CompactAs,
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ pub struct Unreserve {
+ pub item_index: ::core::primitive::u32,
+ }
+ impl ::subxt::blocks::StaticExtrinsic for Unreserve {
+ const PALLET: &'static str = "Broker";
+ const CALL: &'static str = "unreserve";
+ }
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ pub struct SetLease {
+ pub task: ::core::primitive::u32,
+ pub until: ::core::primitive::u32,
+ }
+ impl ::subxt::blocks::StaticExtrinsic for SetLease {
+ const PALLET: &'static str = "Broker";
+ const CALL: &'static str = "set_lease";
+ }
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ pub struct StartSales {
+ pub initial_price: ::core::primitive::u128,
+ pub core_count: ::core::primitive::u16,
+ }
+ impl ::subxt::blocks::StaticExtrinsic for StartSales {
+ const PALLET: &'static str = "Broker";
+ const CALL: &'static str = "start_sales";
+ }
+ #[derive(
+ :: subxt :: ext :: codec :: CompactAs,
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ pub struct Purchase {
+ pub price_limit: ::core::primitive::u128,
+ }
+ impl ::subxt::blocks::StaticExtrinsic for Purchase {
+ const PALLET: &'static str = "Broker";
+ const CALL: &'static str = "purchase";
+ }
+ #[derive(
+ :: subxt :: ext :: codec :: CompactAs,
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ pub struct Renew {
+ pub core: ::core::primitive::u16,
+ }
+ impl ::subxt::blocks::StaticExtrinsic for Renew {
+ const PALLET: &'static str = "Broker";
+ const CALL: &'static str = "renew";
+ }
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ pub struct Transfer {
+ pub region_id: runtime_types::pallet_broker::types::RegionId,
+ pub new_owner: ::subxt::utils::AccountId32,
+ }
+ impl ::subxt::blocks::StaticExtrinsic for Transfer {
+ const PALLET: &'static str = "Broker";
+ const CALL: &'static str = "transfer";
+ }
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ pub struct Partition {
+ pub region_id: runtime_types::pallet_broker::types::RegionId,
+ pub pivot: ::core::primitive::u32,
+ }
+ impl ::subxt::blocks::StaticExtrinsic for Partition {
+ const PALLET: &'static str = "Broker";
+ const CALL: &'static str = "partition";
+ }
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ pub struct Interlace {
+ pub region_id: runtime_types::pallet_broker::types::RegionId,
+ pub pivot: runtime_types::pallet_broker::core_mask::CoreMask,
+ }
+ impl ::subxt::blocks::StaticExtrinsic for Interlace {
+ const PALLET: &'static str = "Broker";
+ const CALL: &'static str = "interlace";
+ }
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ pub struct Assign {
+ pub region_id: runtime_types::pallet_broker::types::RegionId,
+ pub task: ::core::primitive::u32,
+ pub finality: runtime_types::pallet_broker::types::Finality,
+ }
+ impl ::subxt::blocks::StaticExtrinsic for Assign {
+ const PALLET: &'static str = "Broker";
+ const CALL: &'static str = "assign";
+ }
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ pub struct Pool {
+ pub region_id: runtime_types::pallet_broker::types::RegionId,
+ pub payee: ::subxt::utils::AccountId32,
+ pub finality: runtime_types::pallet_broker::types::Finality,
+ }
+ impl ::subxt::blocks::StaticExtrinsic for Pool {
+ const PALLET: &'static str = "Broker";
+ const CALL: &'static str = "pool";
+ }
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ pub struct ClaimRevenue {
+ pub region_id: runtime_types::pallet_broker::types::RegionId,
+ pub max_timeslices: ::core::primitive::u32,
+ }
+ impl ::subxt::blocks::StaticExtrinsic for ClaimRevenue {
+ const PALLET: &'static str = "Broker";
+ const CALL: &'static str = "claim_revenue";
+ }
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ pub struct PurchaseCredit {
+ pub amount: ::core::primitive::u128,
+ pub beneficiary: ::subxt::utils::AccountId32,
+ }
+ impl ::subxt::blocks::StaticExtrinsic for PurchaseCredit {
+ const PALLET: &'static str = "Broker";
+ const CALL: &'static str = "purchase_credit";
+ }
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ pub struct DropRegion {
+ pub region_id: runtime_types::pallet_broker::types::RegionId,
+ }
+ impl ::subxt::blocks::StaticExtrinsic for DropRegion {
+ const PALLET: &'static str = "Broker";
+ const CALL: &'static str = "drop_region";
+ }
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ pub struct DropContribution {
+ pub region_id: runtime_types::pallet_broker::types::RegionId,
+ }
+ impl ::subxt::blocks::StaticExtrinsic for DropContribution {
+ const PALLET: &'static str = "Broker";
+ const CALL: &'static str = "drop_contribution";
+ }
+ #[derive(
+ :: subxt :: ext :: codec :: CompactAs,
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ pub struct DropHistory {
+ pub when: ::core::primitive::u32,
+ }
+ impl ::subxt::blocks::StaticExtrinsic for DropHistory {
+ const PALLET: &'static str = "Broker";
+ const CALL: &'static str = "drop_history";
+ }
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ pub struct DropRenewal {
+ pub core: ::core::primitive::u16,
+ pub when: ::core::primitive::u32,
+ }
+ impl ::subxt::blocks::StaticExtrinsic for DropRenewal {
+ const PALLET: &'static str = "Broker";
+ const CALL: &'static str = "drop_renewal";
+ }
+ #[derive(
+ :: subxt :: ext :: codec :: CompactAs,
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ pub struct RequestCoreCount {
+ pub core_count: ::core::primitive::u16,
+ }
+ impl ::subxt::blocks::StaticExtrinsic for RequestCoreCount {
+ const PALLET: &'static str = "Broker";
+ const CALL: &'static str = "request_core_count";
+ }
+ #[derive(
+ :: subxt :: ext :: codec :: CompactAs,
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ pub struct NotifyCoreCount {
+ pub core_count: ::core::primitive::u16,
+ }
+ impl ::subxt::blocks::StaticExtrinsic for NotifyCoreCount {
+ const PALLET: &'static str = "Broker";
+ const CALL: &'static str = "notify_core_count";
+ }
+ }
+ pub struct TransactionApi;
+ impl TransactionApi {
+ #[doc = "See [`Pallet::configure`]."]
+ pub fn configure(
+ &self,
+ config: runtime_types::pallet_broker::types::ConfigRecord<
+ ::core::primitive::u32,
+ ::core::primitive::u32,
+ >,
+ ) -> ::subxt::tx::Payload {
+ ::subxt::tx::Payload::new_static(
+ "Broker",
+ "configure",
+ types::Configure { config },
+ [
+ 47u8, 41u8, 114u8, 129u8, 138u8, 255u8, 77u8, 164u8, 39u8, 215u8,
+ 231u8, 16u8, 128u8, 220u8, 80u8, 21u8, 199u8, 112u8, 5u8, 209u8, 6u8,
+ 196u8, 157u8, 38u8, 124u8, 127u8, 134u8, 246u8, 255u8, 191u8, 29u8,
+ 235u8,
+ ],
+ )
+ }
+ #[doc = "See [`Pallet::reserve`]."]
+ pub fn reserve(
+ &self,
+ workload: runtime_types::bounded_collections::bounded_vec::BoundedVec<
+ runtime_types::pallet_broker::types::ScheduleItem,
+ >,
+ ) -> ::subxt::tx::Payload {
+ ::subxt::tx::Payload::new_static(
+ "Broker",
+ "reserve",
+ types::Reserve { workload },
+ [
+ 179u8, 93u8, 196u8, 189u8, 19u8, 203u8, 18u8, 244u8, 161u8, 158u8,
+ 222u8, 96u8, 140u8, 137u8, 255u8, 4u8, 126u8, 244u8, 236u8, 163u8,
+ 99u8, 232u8, 70u8, 173u8, 205u8, 167u8, 26u8, 55u8, 133u8, 249u8, 20u8,
+ 154u8,
+ ],
+ )
+ }
+ #[doc = "See [`Pallet::unreserve`]."]
+ pub fn unreserve(
+ &self,
+ item_index: ::core::primitive::u32,
+ ) -> ::subxt::tx::Payload {
+ ::subxt::tx::Payload::new_static(
+ "Broker",
+ "unreserve",
+ types::Unreserve { item_index },
+ [
+ 159u8, 127u8, 127u8, 134u8, 252u8, 69u8, 255u8, 67u8, 14u8, 221u8,
+ 14u8, 56u8, 194u8, 46u8, 33u8, 150u8, 67u8, 124u8, 122u8, 138u8, 74u8,
+ 186u8, 185u8, 182u8, 42u8, 20u8, 42u8, 178u8, 245u8, 72u8, 116u8, 18u8,
+ ],
+ )
+ }
+ #[doc = "See [`Pallet::set_lease`]."]
+ pub fn set_lease(
+ &self,
+ task: ::core::primitive::u32,
+ until: ::core::primitive::u32,
+ ) -> ::subxt::tx::Payload {
+ ::subxt::tx::Payload::new_static(
+ "Broker",
+ "set_lease",
+ types::SetLease { task, until },
+ [
+ 183u8, 72u8, 230u8, 156u8, 226u8, 167u8, 172u8, 191u8, 10u8, 221u8,
+ 224u8, 153u8, 217u8, 195u8, 165u8, 138u8, 154u8, 158u8, 140u8, 121u8,
+ 77u8, 139u8, 152u8, 7u8, 250u8, 8u8, 33u8, 183u8, 250u8, 150u8, 105u8,
+ 199u8,
+ ],
+ )
+ }
+ #[doc = "See [`Pallet::start_sales`]."]
+ pub fn start_sales(
+ &self,
+ initial_price: ::core::primitive::u128,
+ core_count: ::core::primitive::u16,
+ ) -> ::subxt::tx::Payload {
+ ::subxt::tx::Payload::new_static(
+ "Broker",
+ "start_sales",
+ types::StartSales { initial_price, core_count },
+ [
+ 78u8, 51u8, 30u8, 152u8, 207u8, 24u8, 207u8, 149u8, 236u8, 132u8, 62u8,
+ 228u8, 250u8, 140u8, 44u8, 240u8, 59u8, 114u8, 148u8, 198u8, 151u8,
+ 127u8, 221u8, 188u8, 250u8, 161u8, 104u8, 7u8, 225u8, 80u8, 170u8,
+ 207u8,
+ ],
+ )
+ }
+ #[doc = "See [`Pallet::purchase`]."]
+ pub fn purchase(
+ &self,
+ price_limit: ::core::primitive::u128,
+ ) -> ::subxt::tx::Payload {
+ ::subxt::tx::Payload::new_static(
+ "Broker",
+ "purchase",
+ types::Purchase { price_limit },
+ [
+ 180u8, 34u8, 117u8, 232u8, 116u8, 211u8, 229u8, 201u8, 144u8, 72u8,
+ 36u8, 255u8, 68u8, 70u8, 150u8, 113u8, 230u8, 12u8, 152u8, 88u8, 137u8,
+ 220u8, 36u8, 6u8, 96u8, 236u8, 108u8, 186u8, 103u8, 92u8, 207u8, 176u8,
+ ],
+ )
+ }
+ #[doc = "See [`Pallet::renew`]."]
+ pub fn renew(
+ &self,
+ core: ::core::primitive::u16,
+ ) -> ::subxt::tx::Payload {
+ ::subxt::tx::Payload::new_static(
+ "Broker",
+ "renew",
+ types::Renew { core },
+ [
+ 89u8, 65u8, 189u8, 173u8, 166u8, 60u8, 207u8, 186u8, 18u8, 239u8,
+ 130u8, 6u8, 200u8, 56u8, 74u8, 221u8, 220u8, 88u8, 213u8, 202u8, 125u8,
+ 44u8, 75u8, 102u8, 192u8, 238u8, 170u8, 18u8, 186u8, 101u8, 181u8,
+ 105u8,
+ ],
+ )
+ }
+ #[doc = "See [`Pallet::transfer`]."]
+ pub fn transfer(
+ &self,
+ region_id: runtime_types::pallet_broker::types::RegionId,
+ new_owner: ::subxt::utils::AccountId32,
+ ) -> ::subxt::tx::Payload {
+ ::subxt::tx::Payload::new_static(
+ "Broker",
+ "transfer",
+ types::Transfer { region_id, new_owner },
+ [
+ 80u8, 18u8, 186u8, 227u8, 213u8, 255u8, 214u8, 84u8, 250u8, 102u8,
+ 108u8, 104u8, 158u8, 4u8, 14u8, 94u8, 122u8, 6u8, 74u8, 182u8, 193u8,
+ 11u8, 191u8, 226u8, 2u8, 184u8, 104u8, 126u8, 66u8, 22u8, 125u8, 249u8,
+ ],
+ )
+ }
+ #[doc = "See [`Pallet::partition`]."]
+ pub fn partition(
+ &self,
+ region_id: runtime_types::pallet_broker::types::RegionId,
+ pivot: ::core::primitive::u32,
+ ) -> ::subxt::tx::Payload {
+ ::subxt::tx::Payload::new_static(
+ "Broker",
+ "partition",
+ types::Partition { region_id, pivot },
+ [
+ 8u8, 89u8, 3u8, 231u8, 184u8, 148u8, 1u8, 32u8, 90u8, 170u8, 209u8,
+ 110u8, 243u8, 170u8, 140u8, 168u8, 241u8, 4u8, 223u8, 68u8, 70u8, 52u8,
+ 109u8, 128u8, 61u8, 167u8, 51u8, 133u8, 74u8, 141u8, 0u8, 36u8,
+ ],
+ )
+ }
+ #[doc = "See [`Pallet::interlace`]."]
+ pub fn interlace(
+ &self,
+ region_id: runtime_types::pallet_broker::types::RegionId,
+ pivot: runtime_types::pallet_broker::core_mask::CoreMask,
+ ) -> ::subxt::tx::Payload {
+ ::subxt::tx::Payload::new_static(
+ "Broker",
+ "interlace",
+ types::Interlace { region_id, pivot },
+ [
+ 7u8, 93u8, 42u8, 166u8, 194u8, 35u8, 255u8, 78u8, 40u8, 127u8, 224u8,
+ 63u8, 218u8, 150u8, 143u8, 233u8, 48u8, 33u8, 140u8, 72u8, 247u8,
+ 251u8, 179u8, 25u8, 68u8, 157u8, 27u8, 108u8, 183u8, 159u8, 33u8,
+ 123u8,
+ ],
+ )
+ }
+ #[doc = "See [`Pallet::assign`]."]
+ pub fn assign(
+ &self,
+ region_id: runtime_types::pallet_broker::types::RegionId,
+ task: ::core::primitive::u32,
+ finality: runtime_types::pallet_broker::types::Finality,
+ ) -> ::subxt::tx::Payload {
+ ::subxt::tx::Payload::new_static(
+ "Broker",
+ "assign",
+ types::Assign { region_id, task, finality },
+ [
+ 91u8, 132u8, 233u8, 43u8, 154u8, 152u8, 15u8, 44u8, 202u8, 230u8,
+ 122u8, 5u8, 3u8, 5u8, 116u8, 221u8, 207u8, 161u8, 160u8, 100u8, 151u8,
+ 98u8, 161u8, 218u8, 124u8, 92u8, 45u8, 0u8, 103u8, 188u8, 223u8, 53u8,
+ ],
+ )
+ }
+ #[doc = "See [`Pallet::pool`]."]
+ pub fn pool(
+ &self,
+ region_id: runtime_types::pallet_broker::types::RegionId,
+ payee: ::subxt::utils::AccountId32,
+ finality: runtime_types::pallet_broker::types::Finality,
+ ) -> ::subxt::tx::Payload {
+ ::subxt::tx::Payload::new_static(
+ "Broker",
+ "pool",
+ types::Pool { region_id, payee, finality },
+ [
+ 14u8, 189u8, 13u8, 148u8, 5u8, 149u8, 194u8, 194u8, 84u8, 123u8, 52u8,
+ 69u8, 38u8, 226u8, 26u8, 222u8, 247u8, 149u8, 148u8, 248u8, 145u8,
+ 205u8, 36u8, 139u8, 40u8, 126u8, 14u8, 54u8, 83u8, 248u8, 240u8, 139u8,
+ ],
+ )
+ }
+ #[doc = "See [`Pallet::claim_revenue`]."]
+ pub fn claim_revenue(
+ &self,
+ region_id: runtime_types::pallet_broker::types::RegionId,
+ max_timeslices: ::core::primitive::u32,
+ ) -> ::subxt::tx::Payload {
+ ::subxt::tx::Payload::new_static(
+ "Broker",
+ "claim_revenue",
+ types::ClaimRevenue { region_id, max_timeslices },
+ [
+ 124u8, 55u8, 35u8, 170u8, 105u8, 123u8, 63u8, 62u8, 63u8, 149u8, 17u8,
+ 149u8, 185u8, 220u8, 151u8, 206u8, 14u8, 217u8, 84u8, 97u8, 81u8,
+ 250u8, 122u8, 124u8, 189u8, 144u8, 211u8, 126u8, 158u8, 80u8, 249u8,
+ 237u8,
+ ],
+ )
+ }
+ #[doc = "See [`Pallet::purchase_credit`]."]
+ pub fn purchase_credit(
+ &self,
+ amount: ::core::primitive::u128,
+ beneficiary: ::subxt::utils::AccountId32,
+ ) -> ::subxt::tx::Payload {
+ ::subxt::tx::Payload::new_static(
+ "Broker",
+ "purchase_credit",
+ types::PurchaseCredit { amount, beneficiary },
+ [
+ 112u8, 183u8, 193u8, 102u8, 30u8, 216u8, 254u8, 165u8, 45u8, 117u8,
+ 26u8, 95u8, 232u8, 47u8, 237u8, 81u8, 13u8, 191u8, 179u8, 107u8, 183u8,
+ 182u8, 168u8, 106u8, 164u8, 89u8, 193u8, 116u8, 36u8, 181u8, 146u8,
+ 160u8,
+ ],
+ )
+ }
+ #[doc = "See [`Pallet::drop_region`]."]
+ pub fn drop_region(
+ &self,
+ region_id: runtime_types::pallet_broker::types::RegionId,
+ ) -> ::subxt::tx::Payload {
+ ::subxt::tx::Payload::new_static(
+ "Broker",
+ "drop_region",
+ types::DropRegion { region_id },
+ [
+ 192u8, 116u8, 124u8, 133u8, 187u8, 176u8, 149u8, 187u8, 230u8, 107u8,
+ 149u8, 185u8, 139u8, 18u8, 154u8, 186u8, 153u8, 56u8, 199u8, 218u8,
+ 117u8, 84u8, 113u8, 15u8, 233u8, 177u8, 33u8, 224u8, 182u8, 191u8,
+ 202u8, 234u8,
+ ],
+ )
+ }
+ #[doc = "See [`Pallet::drop_contribution`]."]
+ pub fn drop_contribution(
+ &self,
+ region_id: runtime_types::pallet_broker::types::RegionId,
+ ) -> ::subxt::tx::Payload {
+ ::subxt::tx::Payload::new_static(
+ "Broker",
+ "drop_contribution",
+ types::DropContribution { region_id },
+ [
+ 174u8, 22u8, 254u8, 7u8, 41u8, 231u8, 26u8, 174u8, 125u8, 110u8, 9u8,
+ 27u8, 116u8, 152u8, 51u8, 247u8, 167u8, 126u8, 92u8, 232u8, 122u8,
+ 189u8, 37u8, 166u8, 181u8, 75u8, 33u8, 188u8, 147u8, 110u8, 111u8,
+ 10u8,
+ ],
+ )
+ }
+ #[doc = "See [`Pallet::drop_history`]."]
+ pub fn drop_history(
+ &self,
+ when: ::core::primitive::u32,
+ ) -> ::subxt::tx::Payload {
+ ::subxt::tx::Payload::new_static(
+ "Broker",
+ "drop_history",
+ types::DropHistory { when },
+ [
+ 57u8, 162u8, 131u8, 40u8, 152u8, 60u8, 57u8, 118u8, 165u8, 10u8, 170u8,
+ 202u8, 43u8, 5u8, 118u8, 213u8, 151u8, 89u8, 119u8, 247u8, 133u8, 78u8,
+ 13u8, 229u8, 159u8, 106u8, 47u8, 244u8, 140u8, 20u8, 80u8, 106u8,
+ ],
+ )
+ }
+ #[doc = "See [`Pallet::drop_renewal`]."]
+ pub fn drop_renewal(
+ &self,
+ core: ::core::primitive::u16,
+ when: ::core::primitive::u32,
+ ) -> ::subxt::tx::Payload {
+ ::subxt::tx::Payload::new_static(
+ "Broker",
+ "drop_renewal",
+ types::DropRenewal { core, when },
+ [
+ 209u8, 97u8, 211u8, 220u8, 204u8, 144u8, 175u8, 124u8, 55u8, 157u8,
+ 186u8, 45u8, 197u8, 25u8, 107u8, 108u8, 45u8, 163u8, 95u8, 200u8,
+ 130u8, 163u8, 22u8, 229u8, 15u8, 249u8, 135u8, 102u8, 12u8, 179u8,
+ 77u8, 162u8,
+ ],
+ )
+ }
+ #[doc = "See [`Pallet::request_core_count`]."]
+ pub fn request_core_count(
+ &self,
+ core_count: ::core::primitive::u16,
+ ) -> ::subxt::tx::Payload {
+ ::subxt::tx::Payload::new_static(
+ "Broker",
+ "request_core_count",
+ types::RequestCoreCount { core_count },
+ [
+ 32u8, 197u8, 224u8, 109u8, 148u8, 220u8, 31u8, 58u8, 219u8, 175u8,
+ 220u8, 169u8, 217u8, 190u8, 128u8, 122u8, 142u8, 12u8, 52u8, 105u8,
+ 40u8, 236u8, 54u8, 27u8, 246u8, 8u8, 152u8, 213u8, 127u8, 25u8, 118u8,
+ 20u8,
+ ],
+ )
+ }
+ #[doc = "See [`Pallet::notify_core_count`]."]
+ pub fn notify_core_count(
+ &self,
+ core_count: ::core::primitive::u16,
+ ) -> ::subxt::tx::Payload {
+ ::subxt::tx::Payload::new_static(
+ "Broker",
+ "notify_core_count",
+ types::NotifyCoreCount { core_count },
+ [
+ 53u8, 44u8, 53u8, 90u8, 247u8, 189u8, 94u8, 149u8, 143u8, 96u8, 51u8,
+ 87u8, 68u8, 179u8, 121u8, 183u8, 82u8, 109u8, 247u8, 21u8, 164u8,
+ 180u8, 133u8, 228u8, 247u8, 220u8, 15u8, 48u8, 113u8, 246u8, 112u8,
+ 49u8,
+ ],
+ )
+ }
+ }
+ }
+ #[doc = "The `Event` enum of this pallet"]
+ pub type Event = runtime_types::pallet_broker::pallet::Event;
+ pub mod events {
+ use super::runtime_types;
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ #[doc = "A Region of Bulk Coretime has been purchased."]
+ pub struct Purchased {
+ pub who: ::subxt::utils::AccountId32,
+ pub region_id: runtime_types::pallet_broker::types::RegionId,
+ pub price: ::core::primitive::u128,
+ pub duration: ::core::primitive::u32,
+ }
+ impl ::subxt::events::StaticEvent for Purchased {
+ const PALLET: &'static str = "Broker";
+ const EVENT: &'static str = "Purchased";
+ }
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ #[doc = "The workload of a core has become renewable."]
+ pub struct Renewable {
+ pub core: ::core::primitive::u16,
+ pub price: ::core::primitive::u128,
+ pub begin: ::core::primitive::u32,
+ pub workload: runtime_types::bounded_collections::bounded_vec::BoundedVec<
+ runtime_types::pallet_broker::types::ScheduleItem,
+ >,
+ }
+ impl ::subxt::events::StaticEvent for Renewable {
+ const PALLET: &'static str = "Broker";
+ const EVENT: &'static str = "Renewable";
+ }
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ #[doc = "A workload has been renewed."]
+ pub struct Renewed {
+ pub who: ::subxt::utils::AccountId32,
+ pub price: ::core::primitive::u128,
+ pub old_core: ::core::primitive::u16,
+ pub core: ::core::primitive::u16,
+ pub begin: ::core::primitive::u32,
+ pub duration: ::core::primitive::u32,
+ pub workload: runtime_types::bounded_collections::bounded_vec::BoundedVec<
+ runtime_types::pallet_broker::types::ScheduleItem,
+ >,
+ }
+ impl ::subxt::events::StaticEvent for Renewed {
+ const PALLET: &'static str = "Broker";
+ const EVENT: &'static str = "Renewed";
+ }
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ #[doc = "Ownership of a Region has been transferred."]
+ pub struct Transferred {
+ pub region_id: runtime_types::pallet_broker::types::RegionId,
+ pub duration: ::core::primitive::u32,
+ pub old_owner: ::subxt::utils::AccountId32,
+ pub owner: ::subxt::utils::AccountId32,
+ }
+ impl ::subxt::events::StaticEvent for Transferred {
+ const PALLET: &'static str = "Broker";
+ const EVENT: &'static str = "Transferred";
+ }
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ #[doc = "A Region has been split into two non-overlapping Regions."]
+ pub struct Partitioned {
+ pub old_region_id: runtime_types::pallet_broker::types::RegionId,
+ pub new_region_ids: (
+ runtime_types::pallet_broker::types::RegionId,
+ runtime_types::pallet_broker::types::RegionId,
+ ),
+ }
+ impl ::subxt::events::StaticEvent for Partitioned {
+ const PALLET: &'static str = "Broker";
+ const EVENT: &'static str = "Partitioned";
+ }
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ #[doc = "A Region has been converted into two overlapping Regions each of lesser regularity."]
+ pub struct Interlaced {
+ pub old_region_id: runtime_types::pallet_broker::types::RegionId,
+ pub new_region_ids: (
+ runtime_types::pallet_broker::types::RegionId,
+ runtime_types::pallet_broker::types::RegionId,
+ ),
+ }
+ impl ::subxt::events::StaticEvent for Interlaced {
+ const PALLET: &'static str = "Broker";
+ const EVENT: &'static str = "Interlaced";
+ }
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ #[doc = "A Region has been assigned to a particular task."]
+ pub struct Assigned {
+ pub region_id: runtime_types::pallet_broker::types::RegionId,
+ pub duration: ::core::primitive::u32,
+ pub task: ::core::primitive::u32,
+ }
+ impl ::subxt::events::StaticEvent for Assigned {
+ const PALLET: &'static str = "Broker";
+ const EVENT: &'static str = "Assigned";
+ }
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ #[doc = "A Region has been added to the Instantaneous Coretime Pool."]
+ pub struct Pooled {
+ pub region_id: runtime_types::pallet_broker::types::RegionId,
+ pub duration: ::core::primitive::u32,
+ }
+ impl ::subxt::events::StaticEvent for Pooled {
+ const PALLET: &'static str = "Broker";
+ const EVENT: &'static str = "Pooled";
+ }
+ #[derive(
+ :: subxt :: ext :: codec :: CompactAs,
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ #[doc = "A new number of cores has been requested."]
+ pub struct CoreCountRequested {
+ pub core_count: ::core::primitive::u16,
+ }
+ impl ::subxt::events::StaticEvent for CoreCountRequested {
+ const PALLET: &'static str = "Broker";
+ const EVENT: &'static str = "CoreCountRequested";
+ }
+ #[derive(
+ :: subxt :: ext :: codec :: CompactAs,
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ #[doc = "The number of cores available for scheduling has changed."]
+ pub struct CoreCountChanged {
+ pub core_count: ::core::primitive::u16,
+ }
+ impl ::subxt::events::StaticEvent for CoreCountChanged {
+ const PALLET: &'static str = "Broker";
+ const EVENT: &'static str = "CoreCountChanged";
+ }
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ #[doc = "There is a new reservation for a workload."]
+ pub struct ReservationMade {
+ pub index: ::core::primitive::u32,
+ pub workload: runtime_types::bounded_collections::bounded_vec::BoundedVec<
+ runtime_types::pallet_broker::types::ScheduleItem,
+ >,
+ }
+ impl ::subxt::events::StaticEvent for ReservationMade {
+ const PALLET: &'static str = "Broker";
+ const EVENT: &'static str = "ReservationMade";
+ }
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ #[doc = "A reservation for a workload has been cancelled."]
+ pub struct ReservationCancelled {
+ pub index: ::core::primitive::u32,
+ pub workload: runtime_types::bounded_collections::bounded_vec::BoundedVec<
+ runtime_types::pallet_broker::types::ScheduleItem,
+ >,
+ }
+ impl ::subxt::events::StaticEvent for ReservationCancelled {
+ const PALLET: &'static str = "Broker";
+ const EVENT: &'static str = "ReservationCancelled";
+ }
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ #[doc = "A new sale has been initialized."]
+ pub struct SaleInitialized {
+ pub sale_start: ::core::primitive::u32,
+ pub leadin_length: ::core::primitive::u32,
+ pub start_price: ::core::primitive::u128,
+ pub regular_price: ::core::primitive::u128,
+ pub region_begin: ::core::primitive::u32,
+ pub region_end: ::core::primitive::u32,
+ pub ideal_cores_sold: ::core::primitive::u16,
+ pub cores_offered: ::core::primitive::u16,
+ }
+ impl ::subxt::events::StaticEvent for SaleInitialized {
+ const PALLET: &'static str = "Broker";
+ const EVENT: &'static str = "SaleInitialized";
+ }
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ #[doc = "A new lease has been created."]
+ pub struct Leased {
+ pub task: ::core::primitive::u32,
+ pub until: ::core::primitive::u32,
+ }
+ impl ::subxt::events::StaticEvent for Leased {
+ const PALLET: &'static str = "Broker";
+ const EVENT: &'static str = "Leased";
+ }
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ #[doc = "A lease is about to end."]
+ pub struct LeaseEnding {
+ pub task: ::core::primitive::u32,
+ pub when: ::core::primitive::u32,
+ }
+ impl ::subxt::events::StaticEvent for LeaseEnding {
+ const PALLET: &'static str = "Broker";
+ const EVENT: &'static str = "LeaseEnding";
+ }
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ #[doc = "The sale rotation has been started and a new sale is imminent."]
+ pub struct SalesStarted {
+ pub price: ::core::primitive::u128,
+ pub core_count: ::core::primitive::u16,
+ }
+ impl ::subxt::events::StaticEvent for SalesStarted {
+ const PALLET: &'static str = "Broker";
+ const EVENT: &'static str = "SalesStarted";
+ }
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ #[doc = "The act of claiming revenue has begun."]
+ pub struct RevenueClaimBegun {
+ pub region: runtime_types::pallet_broker::types::RegionId,
+ pub max_timeslices: ::core::primitive::u32,
+ }
+ impl ::subxt::events::StaticEvent for RevenueClaimBegun {
+ const PALLET: &'static str = "Broker";
+ const EVENT: &'static str = "RevenueClaimBegun";
+ }
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ #[doc = "A particular timeslice has a non-zero claim."]
+ pub struct RevenueClaimItem {
+ pub when: ::core::primitive::u32,
+ pub amount: ::core::primitive::u128,
+ }
+ impl ::subxt::events::StaticEvent for RevenueClaimItem {
+ const PALLET: &'static str = "Broker";
+ const EVENT: &'static str = "RevenueClaimItem";
+ }
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ #[doc = "A revenue claim has (possibly only in part) been paid."]
+ pub struct RevenueClaimPaid {
+ pub who: ::subxt::utils::AccountId32,
+ pub amount: ::core::primitive::u128,
+ pub next: ::core::option::Option,
+ }
+ impl ::subxt::events::StaticEvent for RevenueClaimPaid {
+ const PALLET: &'static str = "Broker";
+ const EVENT: &'static str = "RevenueClaimPaid";
+ }
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ #[doc = "Some Instantaneous Coretime Pool credit has been purchased."]
+ pub struct CreditPurchased {
+ pub who: ::subxt::utils::AccountId32,
+ pub beneficiary: ::subxt::utils::AccountId32,
+ pub amount: ::core::primitive::u128,
+ }
+ impl ::subxt::events::StaticEvent for CreditPurchased {
+ const PALLET: &'static str = "Broker";
+ const EVENT: &'static str = "CreditPurchased";
+ }
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ #[doc = "A Region has been dropped due to being out of date."]
+ pub struct RegionDropped {
+ pub region_id: runtime_types::pallet_broker::types::RegionId,
+ pub duration: ::core::primitive::u32,
+ }
+ impl ::subxt::events::StaticEvent for RegionDropped {
+ const PALLET: &'static str = "Broker";
+ const EVENT: &'static str = "RegionDropped";
+ }
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ #[doc = "Some historical Instantaneous Core Pool contribution record has been dropped."]
+ pub struct ContributionDropped {
+ pub region_id: runtime_types::pallet_broker::types::RegionId,
+ }
+ impl ::subxt::events::StaticEvent for ContributionDropped {
+ const PALLET: &'static str = "Broker";
+ const EVENT: &'static str = "ContributionDropped";
+ }
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ #[doc = "Some historical Instantaneous Core Pool payment record has been initialized."]
+ pub struct HistoryInitialized {
+ pub when: ::core::primitive::u32,
+ pub private_pool_size: ::core::primitive::u32,
+ pub system_pool_size: ::core::primitive::u32,
+ }
+ impl ::subxt::events::StaticEvent for HistoryInitialized {
+ const PALLET: &'static str = "Broker";
+ const EVENT: &'static str = "HistoryInitialized";
+ }
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ #[doc = "Some historical Instantaneous Core Pool payment record has been dropped."]
+ pub struct HistoryDropped {
+ pub when: ::core::primitive::u32,
+ pub revenue: ::core::primitive::u128,
+ }
+ impl ::subxt::events::StaticEvent for HistoryDropped {
+ const PALLET: &'static str = "Broker";
+ const EVENT: &'static str = "HistoryDropped";
+ }
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ #[doc = "Some historical Instantaneous Core Pool payment record has been ignored because the"]
+ #[doc = "timeslice was already known. Governance may need to intervene."]
+ pub struct HistoryIgnored {
+ pub when: ::core::primitive::u32,
+ pub revenue: ::core::primitive::u128,
+ }
+ impl ::subxt::events::StaticEvent for HistoryIgnored {
+ const PALLET: &'static str = "Broker";
+ const EVENT: &'static str = "HistoryIgnored";
+ }
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ #[doc = "Some historical Instantaneous Core Pool Revenue is ready for payout claims."]
+ pub struct ClaimsReady {
+ pub when: ::core::primitive::u32,
+ pub system_payout: ::core::primitive::u128,
+ pub private_payout: ::core::primitive::u128,
+ }
+ impl ::subxt::events::StaticEvent for ClaimsReady {
+ const PALLET: &'static str = "Broker";
+ const EVENT: &'static str = "ClaimsReady";
+ }
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ #[doc = "A Core has been assigned to one or more tasks and/or the Pool on the Relay-chain."]
+ pub struct CoreAssigned {
+ pub core: ::core::primitive::u16,
+ pub when: ::core::primitive::u32,
+ pub assignment: ::std::vec::Vec<(
+ runtime_types::pallet_broker::coretime_interface::CoreAssignment,
+ ::core::primitive::u16,
+ )>,
+ }
+ impl ::subxt::events::StaticEvent for CoreAssigned {
+ const PALLET: &'static str = "Broker";
+ const EVENT: &'static str = "CoreAssigned";
+ }
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ #[doc = "Some historical Instantaneous Core Pool payment record has been dropped."]
+ pub struct AllowedRenewalDropped {
+ pub when: ::core::primitive::u32,
+ pub core: ::core::primitive::u16,
+ }
+ impl ::subxt::events::StaticEvent for AllowedRenewalDropped {
+ const PALLET: &'static str = "Broker";
+ const EVENT: &'static str = "AllowedRenewalDropped";
+ }
+ }
+ pub mod storage {
+ use super::runtime_types;
+ pub struct StorageApi;
+ impl StorageApi {
+ #[doc = " The current configuration of this pallet."]
+ pub fn configuration(
+ &self,
+ ) -> ::subxt::storage::address::Address<
+ ::subxt::storage::address::StaticStorageMapKey,
+ runtime_types::pallet_broker::types::ConfigRecord<
+ ::core::primitive::u32,
+ ::core::primitive::u32,
+ >,
+ ::subxt::storage::address::Yes,
+ (),
+ (),
+ > {
+ ::subxt::storage::address::Address::new_static(
+ "Broker",
+ "Configuration",
+ vec![],
+ [
+ 235u8, 144u8, 177u8, 6u8, 2u8, 211u8, 0u8, 98u8, 225u8, 133u8, 98u8,
+ 140u8, 13u8, 117u8, 87u8, 151u8, 42u8, 52u8, 237u8, 170u8, 59u8, 108u8,
+ 169u8, 254u8, 87u8, 225u8, 64u8, 42u8, 226u8, 214u8, 219u8, 255u8,
+ ],
+ )
+ }
+ #[doc = " The Polkadot Core reservations (generally tasked with the maintenance of System Chains)."]
+ pub fn reservations(
+ &self,
+ ) -> ::subxt::storage::address::Address<
+ ::subxt::storage::address::StaticStorageMapKey,
+ runtime_types::bounded_collections::bounded_vec::BoundedVec<
+ runtime_types::bounded_collections::bounded_vec::BoundedVec<
+ runtime_types::pallet_broker::types::ScheduleItem,
+ >,
+ >,
+ ::subxt::storage::address::Yes,
+ ::subxt::storage::address::Yes,
+ (),
+ > {
+ ::subxt::storage::address::Address::new_static(
+ "Broker",
+ "Reservations",
+ vec![],
+ [
+ 181u8, 60u8, 95u8, 87u8, 83u8, 84u8, 101u8, 181u8, 171u8, 223u8, 229u8,
+ 6u8, 197u8, 87u8, 137u8, 19u8, 132u8, 252u8, 158u8, 51u8, 193u8, 13u8,
+ 205u8, 24u8, 133u8, 27u8, 53u8, 23u8, 97u8, 160u8, 39u8, 38u8,
+ ],
+ )
+ }
+ #[doc = " The Polkadot Core legacy leases."]
+ pub fn leases(
+ &self,
+ ) -> ::subxt::storage::address::Address<
+ ::subxt::storage::address::StaticStorageMapKey,
+ runtime_types::bounded_collections::bounded_vec::BoundedVec<
+ runtime_types::pallet_broker::types::LeaseRecordItem,
+ >,
+ ::subxt::storage::address::Yes,
+ ::subxt::storage::address::Yes,
+ (),
+ > {
+ ::subxt::storage::address::Address::new_static(
+ "Broker",
+ "Leases",
+ vec![],
+ [
+ 120u8, 85u8, 234u8, 191u8, 14u8, 161u8, 200u8, 43u8, 248u8, 220u8,
+ 220u8, 183u8, 62u8, 101u8, 32u8, 34u8, 2u8, 157u8, 140u8, 107u8, 114u8,
+ 168u8, 121u8, 161u8, 113u8, 223u8, 86u8, 183u8, 226u8, 233u8, 2u8,
+ 250u8,
+ ],
+ )
+ }
+ #[doc = " The current status of miscellaneous subsystems of this pallet."]
+ pub fn status(
+ &self,
+ ) -> ::subxt::storage::address::Address<
+ ::subxt::storage::address::StaticStorageMapKey,
+ runtime_types::pallet_broker::types::StatusRecord,
+ ::subxt::storage::address::Yes,
+ (),
+ (),
+ > {
+ ::subxt::storage::address::Address::new_static(
+ "Broker",
+ "Status",
+ vec![],
+ [
+ 226u8, 93u8, 147u8, 26u8, 160u8, 235u8, 247u8, 150u8, 187u8, 108u8,
+ 138u8, 71u8, 227u8, 121u8, 51u8, 106u8, 10u8, 18u8, 58u8, 56u8, 128u8,
+ 186u8, 93u8, 230u8, 176u8, 248u8, 111u8, 140u8, 148u8, 39u8, 84u8,
+ 144u8,
+ ],
+ )
+ }
+ #[doc = " The details of the current sale, including its properties and status."]
+ pub fn sale_info(
+ &self,
+ ) -> ::subxt::storage::address::Address<
+ ::subxt::storage::address::StaticStorageMapKey,
+ runtime_types::pallet_broker::types::SaleInfoRecord<
+ ::core::primitive::u128,
+ ::core::primitive::u32,
+ >,
+ ::subxt::storage::address::Yes,
+ (),
+ (),
+ > {
+ ::subxt::storage::address::Address::new_static(
+ "Broker",
+ "SaleInfo",
+ vec![],
+ [
+ 127u8, 255u8, 82u8, 247u8, 241u8, 27u8, 105u8, 176u8, 147u8, 196u8,
+ 190u8, 63u8, 235u8, 1u8, 165u8, 106u8, 91u8, 165u8, 58u8, 132u8, 100u8,
+ 94u8, 106u8, 224u8, 16u8, 33u8, 50u8, 120u8, 90u8, 163u8, 108u8, 165u8,
+ ],
+ )
+ }
+ #[doc = " Records of allowed renewals."]
+ pub fn allowed_renewals_iter(
+ &self,
+ ) -> ::subxt::storage::address::Address<
+ ::subxt::storage::address::StaticStorageMapKey,
+ runtime_types::pallet_broker::types::AllowedRenewalRecord<
+ ::core::primitive::u128,
+ >,
+ (),
+ (),
+ ::subxt::storage::address::Yes,
+ > {
+ ::subxt::storage::address::Address::new_static(
+ "Broker",
+ "AllowedRenewals",
+ vec![],
+ [
+ 198u8, 33u8, 189u8, 111u8, 176u8, 156u8, 94u8, 163u8, 130u8, 227u8,
+ 84u8, 165u8, 51u8, 92u8, 103u8, 62u8, 254u8, 102u8, 161u8, 31u8, 228u8,
+ 88u8, 91u8, 62u8, 155u8, 23u8, 183u8, 246u8, 73u8, 90u8, 151u8, 209u8,
+ ],
+ )
+ }
+ #[doc = " Records of allowed renewals."]
+ pub fn allowed_renewals(
+ &self,
+ _0: impl ::std::borrow::Borrow<
+ runtime_types::pallet_broker::types::AllowedRenewalId,
+ >,
+ ) -> ::subxt::storage::address::Address<
+ ::subxt::storage::address::StaticStorageMapKey,
+ runtime_types::pallet_broker::types::AllowedRenewalRecord<
+ ::core::primitive::u128,
+ >,
+ ::subxt::storage::address::Yes,
+ (),
+ (),
+ > {
+ ::subxt::storage::address::Address::new_static(
+ "Broker",
+ "AllowedRenewals",
+ vec![::subxt::storage::address::make_static_storage_map_key(_0.borrow())],
+ [
+ 198u8, 33u8, 189u8, 111u8, 176u8, 156u8, 94u8, 163u8, 130u8, 227u8,
+ 84u8, 165u8, 51u8, 92u8, 103u8, 62u8, 254u8, 102u8, 161u8, 31u8, 228u8,
+ 88u8, 91u8, 62u8, 155u8, 23u8, 183u8, 246u8, 73u8, 90u8, 151u8, 209u8,
+ ],
+ )
+ }
+ #[doc = " The current (unassigned) Regions."]
+ pub fn regions_iter(
+ &self,
+ ) -> ::subxt::storage::address::Address<
+ ::subxt::storage::address::StaticStorageMapKey,
+ runtime_types::pallet_broker::types::RegionRecord<
+ ::subxt::utils::AccountId32,
+ ::core::primitive::u128,
+ >,
+ (),
+ (),
+ ::subxt::storage::address::Yes,
+ > {
+ ::subxt::storage::address::Address::new_static(
+ "Broker",
+ "Regions",
+ vec![],
+ [
+ 13u8, 138u8, 239u8, 59u8, 188u8, 5u8, 37u8, 111u8, 236u8, 244u8, 11u8,
+ 46u8, 70u8, 54u8, 140u8, 148u8, 153u8, 181u8, 57u8, 114u8, 27u8, 156u8,
+ 177u8, 222u8, 211u8, 79u8, 213u8, 252u8, 68u8, 12u8, 150u8, 70u8,
+ ],
+ )
+ }
+ #[doc = " The current (unassigned) Regions."]
+ pub fn regions(
+ &self,
+ _0: impl ::std::borrow::Borrow,
+ ) -> ::subxt::storage::address::Address<
+ ::subxt::storage::address::StaticStorageMapKey,
+ runtime_types::pallet_broker::types::RegionRecord<
+ ::subxt::utils::AccountId32,
+ ::core::primitive::u128,
+ >,
+ ::subxt::storage::address::Yes,
+ (),
+ (),
+ > {
+ ::subxt::storage::address::Address::new_static(
+ "Broker",
+ "Regions",
+ vec![::subxt::storage::address::make_static_storage_map_key(_0.borrow())],
+ [
+ 13u8, 138u8, 239u8, 59u8, 188u8, 5u8, 37u8, 111u8, 236u8, 244u8, 11u8,
+ 46u8, 70u8, 54u8, 140u8, 148u8, 153u8, 181u8, 57u8, 114u8, 27u8, 156u8,
+ 177u8, 222u8, 211u8, 79u8, 213u8, 252u8, 68u8, 12u8, 150u8, 70u8,
+ ],
+ )
+ }
+ #[doc = " The work we plan on having each core do at a particular time in the future."]
+ pub fn workplan_iter(
+ &self,
+ ) -> ::subxt::storage::address::Address<
+ ::subxt::storage::address::StaticStorageMapKey,
+ runtime_types::bounded_collections::bounded_vec::BoundedVec<
+ runtime_types::pallet_broker::types::ScheduleItem,
+ >,
+ (),
+ (),
+ ::subxt::storage::address::Yes,
+ > {
+ ::subxt::storage::address::Address::new_static(
+ "Broker",
+ "Workplan",
+ vec![],
+ [
+ 208u8, 23u8, 159u8, 5u8, 97u8, 15u8, 8u8, 3u8, 120u8, 151u8, 25u8,
+ 172u8, 99u8, 84u8, 164u8, 151u8, 35u8, 231u8, 194u8, 176u8, 74u8,
+ 132u8, 110u8, 238u8, 159u8, 197u8, 36u8, 64u8, 54u8, 69u8, 72u8, 163u8,
+ ],
+ )
+ }
+ #[doc = " The work we plan on having each core do at a particular time in the future."]
+ pub fn workplan_iter1(
+ &self,
+ _0: impl ::std::borrow::Borrow<::core::primitive::u32>,
+ ) -> ::subxt::storage::address::Address<
+ ::subxt::storage::address::StaticStorageMapKey,
+ runtime_types::bounded_collections::bounded_vec::BoundedVec<
+ runtime_types::pallet_broker::types::ScheduleItem,
+ >,
+ (),
+ (),
+ ::subxt::storage::address::Yes,
+ > {
+ ::subxt::storage::address::Address::new_static(
+ "Broker",
+ "Workplan",
+ vec![::subxt::storage::address::make_static_storage_map_key(_0.borrow())],
+ [
+ 208u8, 23u8, 159u8, 5u8, 97u8, 15u8, 8u8, 3u8, 120u8, 151u8, 25u8,
+ 172u8, 99u8, 84u8, 164u8, 151u8, 35u8, 231u8, 194u8, 176u8, 74u8,
+ 132u8, 110u8, 238u8, 159u8, 197u8, 36u8, 64u8, 54u8, 69u8, 72u8, 163u8,
+ ],
+ )
+ }
+ #[doc = " The work we plan on having each core do at a particular time in the future."]
+ pub fn workplan(
+ &self,
+ _0: impl ::std::borrow::Borrow<::core::primitive::u32>,
+ _1: impl ::std::borrow::Borrow<::core::primitive::u16>,
+ ) -> ::subxt::storage::address::Address<
+ ::subxt::storage::address::StaticStorageMapKey,
+ runtime_types::bounded_collections::bounded_vec::BoundedVec<
+ runtime_types::pallet_broker::types::ScheduleItem,
+ >,
+ ::subxt::storage::address::Yes,
+ (),
+ (),
+ > {
+ ::subxt::storage::address::Address::new_static(
+ "Broker",
+ "Workplan",
+ vec![
+ ::subxt::storage::address::make_static_storage_map_key(_0.borrow()),
+ ::subxt::storage::address::make_static_storage_map_key(_1.borrow()),
+ ],
+ [
+ 208u8, 23u8, 159u8, 5u8, 97u8, 15u8, 8u8, 3u8, 120u8, 151u8, 25u8,
+ 172u8, 99u8, 84u8, 164u8, 151u8, 35u8, 231u8, 194u8, 176u8, 74u8,
+ 132u8, 110u8, 238u8, 159u8, 197u8, 36u8, 64u8, 54u8, 69u8, 72u8, 163u8,
+ ],
+ )
+ }
+ #[doc = " The current workload of each core. This gets updated with workplan as timeslices pass."]
+ pub fn workload_iter(
+ &self,
+ ) -> ::subxt::storage::address::Address<
+ ::subxt::storage::address::StaticStorageMapKey,
+ runtime_types::bounded_collections::bounded_vec::BoundedVec<
+ runtime_types::pallet_broker::types::ScheduleItem,
+ >,
+ (),
+ ::subxt::storage::address::Yes,
+ ::subxt::storage::address::Yes,
+ > {
+ ::subxt::storage::address::Address::new_static(
+ "Broker",
+ "Workload",
+ vec![],
+ [
+ 45u8, 113u8, 84u8, 213u8, 62u8, 242u8, 79u8, 85u8, 136u8, 4u8, 216u8,
+ 202u8, 30u8, 188u8, 60u8, 157u8, 245u8, 141u8, 248u8, 95u8, 247u8,
+ 119u8, 9u8, 235u8, 164u8, 169u8, 68u8, 99u8, 217u8, 131u8, 250u8,
+ 137u8,
+ ],
+ )
+ }
+ #[doc = " The current workload of each core. This gets updated with workplan as timeslices pass."]
+ pub fn workload(
+ &self,
+ _0: impl ::std::borrow::Borrow<::core::primitive::u16>,
+ ) -> ::subxt::storage::address::Address<
+ ::subxt::storage::address::StaticStorageMapKey,
+ runtime_types::bounded_collections::bounded_vec::BoundedVec<
+ runtime_types::pallet_broker::types::ScheduleItem,
+ >,
+ ::subxt::storage::address::Yes,
+ ::subxt::storage::address::Yes,
+ (),
+ > {
+ ::subxt::storage::address::Address::new_static(
+ "Broker",
+ "Workload",
+ vec![::subxt::storage::address::make_static_storage_map_key(_0.borrow())],
+ [
+ 45u8, 113u8, 84u8, 213u8, 62u8, 242u8, 79u8, 85u8, 136u8, 4u8, 216u8,
+ 202u8, 30u8, 188u8, 60u8, 157u8, 245u8, 141u8, 248u8, 95u8, 247u8,
+ 119u8, 9u8, 235u8, 164u8, 169u8, 68u8, 99u8, 217u8, 131u8, 250u8,
+ 137u8,
+ ],
+ )
+ }
+ #[doc = " Record of a single contribution to the Instantaneous Coretime Pool."]
+ pub fn insta_pool_contribution_iter(
+ &self,
+ ) -> ::subxt::storage::address::Address<
+ ::subxt::storage::address::StaticStorageMapKey,
+ runtime_types::pallet_broker::types::ContributionRecord<
+ ::subxt::utils::AccountId32,
+ >,
+ (),
+ (),
+ ::subxt::storage::address::Yes,
+ > {
+ ::subxt::storage::address::Address::new_static(
+ "Broker",
+ "InstaPoolContribution",
+ vec![],
+ [
+ 225u8, 37u8, 29u8, 149u8, 219u8, 135u8, 224u8, 209u8, 135u8, 209u8,
+ 121u8, 140u8, 72u8, 231u8, 213u8, 173u8, 125u8, 250u8, 14u8, 41u8,
+ 65u8, 242u8, 58u8, 65u8, 27u8, 164u8, 32u8, 174u8, 175u8, 253u8, 205u8,
+ 192u8,
+ ],
+ )
+ }
+ #[doc = " Record of a single contribution to the Instantaneous Coretime Pool."]
+ pub fn insta_pool_contribution(
+ &self,
+ _0: impl ::std::borrow::Borrow,
+ ) -> ::subxt::storage::address::Address<
+ ::subxt::storage::address::StaticStorageMapKey,
+ runtime_types::pallet_broker::types::ContributionRecord<
+ ::subxt::utils::AccountId32,
+ >,
+ ::subxt::storage::address::Yes,
+ (),
+ (),
+ > {
+ ::subxt::storage::address::Address::new_static(
+ "Broker",
+ "InstaPoolContribution",
+ vec![::subxt::storage::address::make_static_storage_map_key(_0.borrow())],
+ [
+ 225u8, 37u8, 29u8, 149u8, 219u8, 135u8, 224u8, 209u8, 135u8, 209u8,
+ 121u8, 140u8, 72u8, 231u8, 213u8, 173u8, 125u8, 250u8, 14u8, 41u8,
+ 65u8, 242u8, 58u8, 65u8, 27u8, 164u8, 32u8, 174u8, 175u8, 253u8, 205u8,
+ 192u8,
+ ],
+ )
+ }
+ #[doc = " Record of Coretime entering or leaving the Instantaneous Coretime Pool."]
+ pub fn insta_pool_io_iter(
+ &self,
+ ) -> ::subxt::storage::address::Address<
+ ::subxt::storage::address::StaticStorageMapKey,
+ runtime_types::pallet_broker::types::PoolIoRecord,
+ (),
+ ::subxt::storage::address::Yes,
+ ::subxt::storage::address::Yes,
+ > {
+ ::subxt::storage::address::Address::new_static(
+ "Broker",
+ "InstaPoolIo",
+ vec![],
+ [
+ 162u8, 151u8, 195u8, 176u8, 123u8, 253u8, 27u8, 213u8, 21u8, 145u8,
+ 189u8, 94u8, 166u8, 4u8, 46u8, 24u8, 68u8, 151u8, 16u8, 131u8, 45u8,
+ 201u8, 54u8, 188u8, 26u8, 164u8, 35u8, 251u8, 78u8, 56u8, 39u8, 141u8,
+ ],
+ )
+ }
+ #[doc = " Record of Coretime entering or leaving the Instantaneous Coretime Pool."]
+ pub fn insta_pool_io(
+ &self,
+ _0: impl ::std::borrow::Borrow<::core::primitive::u32>,
+ ) -> ::subxt::storage::address::Address<
+ ::subxt::storage::address::StaticStorageMapKey,
+ runtime_types::pallet_broker::types::PoolIoRecord,
+ ::subxt::storage::address::Yes,
+ ::subxt::storage::address::Yes,
+ (),
+ > {
+ ::subxt::storage::address::Address::new_static(
+ "Broker",
+ "InstaPoolIo",
+ vec![::subxt::storage::address::make_static_storage_map_key(_0.borrow())],
+ [
+ 162u8, 151u8, 195u8, 176u8, 123u8, 253u8, 27u8, 213u8, 21u8, 145u8,
+ 189u8, 94u8, 166u8, 4u8, 46u8, 24u8, 68u8, 151u8, 16u8, 131u8, 45u8,
+ 201u8, 54u8, 188u8, 26u8, 164u8, 35u8, 251u8, 78u8, 56u8, 39u8, 141u8,
+ ],
+ )
+ }
+ #[doc = " Total InstaPool rewards for each Timeslice and the number of core parts which contributed."]
+ pub fn insta_pool_history_iter(
+ &self,
+ ) -> ::subxt::storage::address::Address<
+ ::subxt::storage::address::StaticStorageMapKey,
+ runtime_types::pallet_broker::types::InstaPoolHistoryRecord<
+ ::core::primitive::u128,
+ >,
+ (),
+ (),
+ ::subxt::storage::address::Yes,
+ > {
+ ::subxt::storage::address::Address::new_static(
+ "Broker",
+ "InstaPoolHistory",
+ vec![],
+ [
+ 126u8, 207u8, 245u8, 55u8, 169u8, 211u8, 138u8, 201u8, 39u8, 31u8,
+ 176u8, 228u8, 252u8, 247u8, 198u8, 195u8, 134u8, 17u8, 139u8, 200u8,
+ 58u8, 159u8, 232u8, 213u8, 232u8, 43u8, 30u8, 15u8, 151u8, 236u8, 76u8,
+ 85u8,
+ ],
+ )
+ }
+ #[doc = " Total InstaPool rewards for each Timeslice and the number of core parts which contributed."]
+ pub fn insta_pool_history(
+ &self,
+ _0: impl ::std::borrow::Borrow<::core::primitive::u32>,
+ ) -> ::subxt::storage::address::Address<
+ ::subxt::storage::address::StaticStorageMapKey,
+ runtime_types::pallet_broker::types::InstaPoolHistoryRecord<
+ ::core::primitive::u128,
+ >,
+ ::subxt::storage::address::Yes,
+ (),
+ (),
+ > {
+ ::subxt::storage::address::Address::new_static(
+ "Broker",
+ "InstaPoolHistory",
+ vec![::subxt::storage::address::make_static_storage_map_key(_0.borrow())],
+ [
+ 126u8, 207u8, 245u8, 55u8, 169u8, 211u8, 138u8, 201u8, 39u8, 31u8,
+ 176u8, 228u8, 252u8, 247u8, 198u8, 195u8, 134u8, 17u8, 139u8, 200u8,
+ 58u8, 159u8, 232u8, 213u8, 232u8, 43u8, 30u8, 15u8, 151u8, 236u8, 76u8,
+ 85u8,
+ ],
+ )
+ }
+ #[doc = " Received core count change from the relay chain."]
+ pub fn core_count_inbox(
+ &self,
+ ) -> ::subxt::storage::address::Address<
+ ::subxt::storage::address::StaticStorageMapKey,
+ ::core::primitive::u16,
+ ::subxt::storage::address::Yes,
+ (),
+ (),
+ > {
+ ::subxt::storage::address::Address::new_static(
+ "Broker",
+ "CoreCountInbox",
+ vec![],
+ [
+ 78u8, 33u8, 242u8, 74u8, 188u8, 71u8, 31u8, 182u8, 130u8, 205u8, 58u8,
+ 165u8, 83u8, 161u8, 140u8, 26u8, 208u8, 233u8, 130u8, 27u8, 170u8,
+ 220u8, 249u8, 195u8, 200u8, 141u8, 28u8, 20u8, 68u8, 86u8, 23u8, 182u8,
+ ],
+ )
+ }
+ }
+ }
+ pub mod constants {
+ use super::runtime_types;
+ pub struct ConstantsApi;
+ impl ConstantsApi {
+ #[doc = " Identifier from which the internal Pot is generated."]
+ pub fn pallet_id(
+ &self,
+ ) -> ::subxt::constants::Address {
+ ::subxt::constants::Address::new_static(
+ "Broker",
+ "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 = " Number of Relay-chain blocks per timeslice."]
+ pub fn timeslice_period(
+ &self,
+ ) -> ::subxt::constants::Address<::core::primitive::u32> {
+ ::subxt::constants::Address::new_static(
+ "Broker",
+ "TimeslicePeriod",
+ [
+ 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 legacy leases."]
+ pub fn max_leased_cores(
+ &self,
+ ) -> ::subxt::constants::Address<::core::primitive::u32> {
+ ::subxt::constants::Address::new_static(
+ "Broker",
+ "MaxLeasedCores",
+ [
+ 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 system cores."]
+ pub fn max_reserved_cores(
+ &self,
+ ) -> ::subxt::constants::Address<::core::primitive::u32> {
+ ::subxt::constants::Address::new_static(
+ "Broker",
+ "MaxReservedCores",
+ [
+ 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 sudo {
+ use super::root_mod;
+ use super::runtime_types;
+ #[doc = "Error for the Sudo pallet."]
+ pub type Error = runtime_types::pallet_sudo::pallet::Error;
+ #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."]
+ pub type Call = runtime_types::pallet_sudo::pallet::Call;
+ pub mod calls {
+ use super::root_mod;
+ use super::runtime_types;
+ type DispatchError = runtime_types::sp_runtime::DispatchError;
+ pub mod types {
+ use super::runtime_types;
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ pub struct Sudo {
+ pub call:
+ ::std::boxed::Box,
+ }
+ impl ::subxt::blocks::StaticExtrinsic for Sudo {
+ const PALLET: &'static str = "Sudo";
+ const CALL: &'static str = "sudo";
+ }
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ pub struct SudoUncheckedWeight {
+ pub call:
+ ::std::boxed::Box,
+ pub weight: runtime_types::sp_weights::weight_v2::Weight,
+ }
+ impl ::subxt::blocks::StaticExtrinsic for SudoUncheckedWeight {
+ const PALLET: &'static str = "Sudo";
+ const CALL: &'static str = "sudo_unchecked_weight";
+ }
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ pub struct SetKey {
+ pub new: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>,
+ }
+ impl ::subxt::blocks::StaticExtrinsic for SetKey {
+ const PALLET: &'static str = "Sudo";
+ const CALL: &'static str = "set_key";
+ }
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ pub struct SudoAs {
+ pub who: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>,
+ pub call:
+ ::std::boxed::Box,
+ }
+ impl ::subxt::blocks::StaticExtrinsic for SudoAs {
+ const PALLET: &'static str = "Sudo";
+ const CALL: &'static str = "sudo_as";
+ }
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ pub struct RemoveKey;
+ impl ::subxt::blocks::StaticExtrinsic for RemoveKey {
+ const PALLET: &'static str = "Sudo";
+ const CALL: &'static str = "remove_key";
+ }
+ }
+ pub struct TransactionApi;
+ impl TransactionApi {
+ #[doc = "See [`Pallet::sudo`]."]
+ pub fn sudo(
+ &self,
+ call: runtime_types::coretime_rococo_runtime::RuntimeCall,
+ ) -> ::subxt::tx::Payload {
+ ::subxt::tx::Payload::new_static(
+ "Sudo",
+ "sudo",
+ types::Sudo { call: ::std::boxed::Box::new(call) },
+ [
+ 41u8, 23u8, 149u8, 206u8, 108u8, 62u8, 70u8, 168u8, 244u8, 16u8, 168u8,
+ 159u8, 122u8, 103u8, 32u8, 146u8, 180u8, 215u8, 7u8, 163u8, 102u8,
+ 243u8, 125u8, 59u8, 3u8, 110u8, 165u8, 65u8, 4u8, 53u8, 119u8, 111u8,
+ ],
+ )
+ }
+ #[doc = "See [`Pallet::sudo_unchecked_weight`]."]
+ pub fn sudo_unchecked_weight(
+ &self,
+ call: runtime_types::coretime_rococo_runtime::RuntimeCall,
+ weight: runtime_types::sp_weights::weight_v2::Weight,
+ ) -> ::subxt::tx::Payload {
+ ::subxt::tx::Payload::new_static(
+ "Sudo",
+ "sudo_unchecked_weight",
+ types::SudoUncheckedWeight { call: ::std::boxed::Box::new(call), weight },
+ [
+ 141u8, 64u8, 170u8, 4u8, 89u8, 149u8, 62u8, 1u8, 203u8, 56u8, 131u8,
+ 201u8, 8u8, 108u8, 213u8, 253u8, 101u8, 187u8, 26u8, 39u8, 246u8,
+ 185u8, 39u8, 3u8, 113u8, 211u8, 223u8, 198u8, 195u8, 81u8, 35u8, 90u8,
+ ],
+ )
+ }
+ #[doc = "See [`Pallet::set_key`]."]
+ pub fn set_key(
+ &self,
+ new: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>,
+ ) -> ::subxt::tx::Payload {
+ ::subxt::tx::Payload::new_static(
+ "Sudo",
+ "set_key",
+ types::SetKey { new },
+ [
+ 9u8, 73u8, 39u8, 205u8, 188u8, 127u8, 143u8, 54u8, 128u8, 94u8, 8u8,
+ 227u8, 197u8, 44u8, 70u8, 93u8, 228u8, 196u8, 64u8, 165u8, 226u8,
+ 158u8, 101u8, 192u8, 22u8, 193u8, 102u8, 84u8, 21u8, 35u8, 92u8, 198u8,
+ ],
+ )
+ }
+ #[doc = "See [`Pallet::sudo_as`]."]
+ pub fn sudo_as(
+ &self,
+ who: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>,
+ call: runtime_types::coretime_rococo_runtime::RuntimeCall,
+ ) -> ::subxt::tx::Payload {
+ ::subxt::tx::Payload::new_static(
+ "Sudo",
+ "sudo_as",
+ types::SudoAs { who, call: ::std::boxed::Box::new(call) },
+ [
+ 202u8, 135u8, 76u8, 156u8, 213u8, 15u8, 106u8, 60u8, 139u8, 153u8,
+ 152u8, 67u8, 89u8, 46u8, 122u8, 149u8, 139u8, 226u8, 189u8, 19u8,
+ 248u8, 220u8, 26u8, 196u8, 246u8, 244u8, 124u8, 25u8, 169u8, 181u8,
+ 119u8, 96u8,
+ ],
+ )
+ }
+ #[doc = "See [`Pallet::remove_key`]."]
+ pub fn remove_key(&self) -> ::subxt::tx::Payload {
+ ::subxt::tx::Payload::new_static(
+ "Sudo",
+ "remove_key",
+ types::RemoveKey {},
+ [
+ 133u8, 253u8, 54u8, 175u8, 202u8, 239u8, 5u8, 198u8, 180u8, 138u8,
+ 25u8, 28u8, 109u8, 40u8, 30u8, 56u8, 126u8, 100u8, 52u8, 205u8, 250u8,
+ 191u8, 61u8, 195u8, 172u8, 142u8, 184u8, 239u8, 247u8, 10u8, 211u8,
+ 79u8,
+ ],
+ )
+ }
+ }
+ }
+ #[doc = "The `Event` enum of this pallet"]
+ pub type Event = runtime_types::pallet_sudo::pallet::Event;
+ pub mod events {
+ use super::runtime_types;
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ #[doc = "A sudo call just took place."]
+ pub struct Sudid {
+ pub sudo_result:
+ ::core::result::Result<(), runtime_types::sp_runtime::DispatchError>,
+ }
+ impl ::subxt::events::StaticEvent for Sudid {
+ const PALLET: &'static str = "Sudo";
+ const EVENT: &'static str = "Sudid";
+ }
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ #[doc = "The sudo key has been updated."]
+ pub struct KeyChanged {
+ pub old: ::core::option::Option<::subxt::utils::AccountId32>,
+ pub new: ::subxt::utils::AccountId32,
+ }
+ impl ::subxt::events::StaticEvent for KeyChanged {
+ const PALLET: &'static str = "Sudo";
+ const EVENT: &'static str = "KeyChanged";
+ }
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ #[doc = "The key was permanently removed."]
+ pub struct KeyRemoved;
+ impl ::subxt::events::StaticEvent for KeyRemoved {
+ const PALLET: &'static str = "Sudo";
+ const EVENT: &'static str = "KeyRemoved";
+ }
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ #[doc = "A [sudo_as](Pallet::sudo_as) call just took place."]
+ pub struct SudoAsDone {
+ pub sudo_result:
+ ::core::result::Result<(), runtime_types::sp_runtime::DispatchError>,
+ }
+ impl ::subxt::events::StaticEvent for SudoAsDone {
+ const PALLET: &'static str = "Sudo";
+ const EVENT: &'static str = "SudoAsDone";
+ }
+ }
+ pub mod storage {
+ use super::runtime_types;
+ pub struct StorageApi;
+ impl StorageApi {
+ #[doc = " The `AccountId` of the sudo key."]
+ pub fn key(
+ &self,
+ ) -> ::subxt::storage::address::Address<
+ ::subxt::storage::address::StaticStorageMapKey,
+ ::subxt::utils::AccountId32,
+ ::subxt::storage::address::Yes,
+ (),
+ (),
+ > {
+ ::subxt::storage::address::Address::new_static(
+ "Sudo",
+ "Key",
+ vec![],
+ [
+ 72u8, 14u8, 225u8, 162u8, 205u8, 247u8, 227u8, 105u8, 116u8, 57u8, 4u8,
+ 31u8, 84u8, 137u8, 227u8, 228u8, 133u8, 245u8, 206u8, 227u8, 117u8,
+ 36u8, 252u8, 151u8, 107u8, 15u8, 180u8, 4u8, 4u8, 152u8, 195u8, 144u8,
+ ],
+ )
+ }
+ }
+ }
+ }
+ pub mod runtime_types {
+ use super::runtime_types;
+ pub mod bounded_collections {
+ use super::runtime_types;
+ pub mod bounded_btree_set {
+ use super::runtime_types;
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ pub struct BoundedBTreeSet<_0>(pub ::std::vec::Vec<_0>);
+ }
+ pub mod bounded_vec {
+ use super::runtime_types;
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ pub struct BoundedVec<_0>(pub ::std::vec::Vec<_0>);
+ }
+ pub mod weak_bounded_vec {
+ use super::runtime_types;
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ pub struct WeakBoundedVec<_0>(pub ::std::vec::Vec<_0>);
+ }
+ }
+ pub mod coretime_rococo_runtime {
+ use super::runtime_types;
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ pub enum OriginCaller {
+ #[codec(index = 0)]
+ system(
+ runtime_types::frame_support::dispatch::RawOrigin<::subxt::utils::AccountId32>,
+ ),
+ #[codec(index = 31)]
+ PolkadotXcm(runtime_types::pallet_xcm::pallet::Origin),
+ #[codec(index = 32)]
+ CumulusXcm(runtime_types::cumulus_pallet_xcm::pallet::Origin),
+ #[codec(index = 3)]
+ Void(runtime_types::sp_core::Void),
+ }
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ pub struct Runtime;
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ pub enum RuntimeCall {
+ #[codec(index = 0)]
+ System(runtime_types::frame_system::pallet::Call),
+ #[codec(index = 1)]
+ ParachainSystem(runtime_types::cumulus_pallet_parachain_system::pallet::Call),
+ #[codec(index = 3)]
+ Timestamp(runtime_types::pallet_timestamp::pallet::Call),
+ #[codec(index = 4)]
+ ParachainInfo(runtime_types::staging_parachain_info::pallet::Call),
+ #[codec(index = 10)]
+ Balances(runtime_types::pallet_balances::pallet::Call),
+ #[codec(index = 21)]
+ CollatorSelection(runtime_types::pallet_collator_selection::pallet::Call),
+ #[codec(index = 22)]
+ Session(runtime_types::pallet_session::pallet::Call),
+ #[codec(index = 30)]
+ XcmpQueue(runtime_types::cumulus_pallet_xcmp_queue::pallet::Call),
+ #[codec(index = 31)]
+ PolkadotXcm(runtime_types::pallet_xcm::pallet::Call),
+ #[codec(index = 32)]
+ CumulusXcm(runtime_types::cumulus_pallet_xcm::pallet::Call),
+ #[codec(index = 34)]
+ MessageQueue(runtime_types::pallet_message_queue::pallet::Call),
+ #[codec(index = 40)]
+ Utility(runtime_types::pallet_utility::pallet::Call),
+ #[codec(index = 41)]
+ Multisig(runtime_types::pallet_multisig::pallet::Call),
+ #[codec(index = 50)]
+ Broker(runtime_types::pallet_broker::pallet::Call),
+ #[codec(index = 100)]
+ Sudo(runtime_types::pallet_sudo::pallet::Call),
+ }
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ pub enum RuntimeError {
+ #[codec(index = 0)]
+ System(runtime_types::frame_system::pallet::Error),
+ #[codec(index = 1)]
+ ParachainSystem(runtime_types::cumulus_pallet_parachain_system::pallet::Error),
+ #[codec(index = 10)]
+ Balances(runtime_types::pallet_balances::pallet::Error),
+ #[codec(index = 21)]
+ CollatorSelection(runtime_types::pallet_collator_selection::pallet::Error),
+ #[codec(index = 22)]
+ Session(runtime_types::pallet_session::pallet::Error),
+ #[codec(index = 30)]
+ XcmpQueue(runtime_types::cumulus_pallet_xcmp_queue::pallet::Error),
+ #[codec(index = 31)]
+ PolkadotXcm(runtime_types::pallet_xcm::pallet::Error),
+ #[codec(index = 34)]
+ MessageQueue(runtime_types::pallet_message_queue::pallet::Error),
+ #[codec(index = 40)]
+ Utility(runtime_types::pallet_utility::pallet::Error),
+ #[codec(index = 41)]
+ Multisig(runtime_types::pallet_multisig::pallet::Error),
+ #[codec(index = 50)]
+ Broker(runtime_types::pallet_broker::pallet::Error),
+ #[codec(index = 100)]
+ Sudo(runtime_types::pallet_sudo::pallet::Error),
+ }
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ pub enum RuntimeEvent {
+ #[codec(index = 0)]
+ System(runtime_types::frame_system::pallet::Event),
+ #[codec(index = 1)]
+ ParachainSystem(runtime_types::cumulus_pallet_parachain_system::pallet::Event),
+ #[codec(index = 10)]
+ Balances(runtime_types::pallet_balances::pallet::Event),
+ #[codec(index = 11)]
+ TransactionPayment(runtime_types::pallet_transaction_payment::pallet::Event),
+ #[codec(index = 21)]
+ CollatorSelection(runtime_types::pallet_collator_selection::pallet::Event),
+ #[codec(index = 22)]
+ Session(runtime_types::pallet_session::pallet::Event),
+ #[codec(index = 30)]
+ XcmpQueue(runtime_types::cumulus_pallet_xcmp_queue::pallet::Event),
+ #[codec(index = 31)]
+ PolkadotXcm(runtime_types::pallet_xcm::pallet::Event),
+ #[codec(index = 32)]
+ CumulusXcm(runtime_types::cumulus_pallet_xcm::pallet::Event),
+ #[codec(index = 34)]
+ MessageQueue(runtime_types::pallet_message_queue::pallet::Event),
+ #[codec(index = 40)]
+ Utility(runtime_types::pallet_utility::pallet::Event),
+ #[codec(index = 41)]
+ Multisig(runtime_types::pallet_multisig::pallet::Event),
+ #[codec(index = 50)]
+ Broker(runtime_types::pallet_broker::pallet::Event),
+ #[codec(index = 100)]
+ Sudo(runtime_types::pallet_sudo::pallet::Event),
+ }
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ pub enum RuntimeHoldReason {}
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ pub struct SessionKeys {
+ pub aura: runtime_types::sp_consensus_aura::sr25519::app_sr25519::Public,
+ }
+ }
+ pub mod cumulus_pallet_parachain_system {
+ use super::runtime_types;
+ pub mod pallet {
+ use super::runtime_types;
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."]
+ pub enum Call {
+ # [codec (index = 0)] # [doc = "See [`Pallet::set_validation_data`]."] set_validation_data { data : runtime_types :: cumulus_primitives_parachain_inherent :: ParachainInherentData , } , # [codec (index = 1)] # [doc = "See [`Pallet::sudo_send_upward_message`]."] sudo_send_upward_message { message : :: std :: vec :: Vec < :: core :: primitive :: u8 > , } , # [codec (index = 2)] # [doc = "See [`Pallet::authorize_upgrade`]."] authorize_upgrade { code_hash : :: subxt :: utils :: H256 , check_version : :: core :: primitive :: bool , } , # [codec (index = 3)] # [doc = "See [`Pallet::enact_authorized_upgrade`]."] enact_authorized_upgrade { code : :: std :: vec :: Vec < :: core :: primitive :: u8 > , } , }
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ #[doc = "The `Error` enum of this pallet."]
+ pub enum Error {
+ #[codec(index = 0)]
+ #[doc = "Attempt to upgrade validation function while existing upgrade pending."]
+ OverlappingUpgrades,
+ #[codec(index = 1)]
+ #[doc = "Polkadot currently prohibits this parachain from upgrading its validation function."]
+ ProhibitedByPolkadot,
+ #[codec(index = 2)]
+ #[doc = "The supplied validation function has compiled into a blob larger than Polkadot is"]
+ #[doc = "willing to run."]
+ TooBig,
+ #[codec(index = 3)]
+ #[doc = "The inherent which supplies the validation data did not run this block."]
+ ValidationDataNotAvailable,
+ #[codec(index = 4)]
+ #[doc = "The inherent which supplies the host configuration did not run this block."]
+ HostConfigurationNotAvailable,
+ #[codec(index = 5)]
+ #[doc = "No validation function upgrade is currently scheduled."]
+ NotScheduled,
+ #[codec(index = 6)]
+ #[doc = "No code upgrade has been authorized."]
+ NothingAuthorized,
+ #[codec(index = 7)]
+ #[doc = "The given code upgrade has not been authorized."]
+ Unauthorized,
+ }
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ #[doc = "The `Event` enum of this pallet"]
+ pub enum Event {
+ #[codec(index = 0)]
+ #[doc = "The validation function has been scheduled to apply."]
+ ValidationFunctionStored,
+ #[codec(index = 1)]
+ #[doc = "The validation function was applied as of the contained relay chain block number."]
+ ValidationFunctionApplied { relay_chain_block_num: ::core::primitive::u32 },
+ #[codec(index = 2)]
+ #[doc = "The relay-chain aborted the upgrade process."]
+ ValidationFunctionDiscarded,
+ #[codec(index = 3)]
+ #[doc = "Some downward messages have been received and will be processed."]
+ DownwardMessagesReceived { count: ::core::primitive::u32 },
+ #[codec(index = 4)]
+ #[doc = "Downward messages were processed using the given weight."]
+ DownwardMessagesProcessed {
+ weight_used: runtime_types::sp_weights::weight_v2::Weight,
+ dmq_head: ::subxt::utils::H256,
+ },
+ #[codec(index = 5)]
+ #[doc = "An upward message was sent to the relay chain."]
+ UpwardMessageSent {
+ message_hash: ::core::option::Option<[::core::primitive::u8; 32usize]>,
+ },
+ }
+ }
+ pub mod relay_state_snapshot {
+ use super::runtime_types;
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ pub struct MessagingStateSnapshot { pub dmq_mqc_head : :: subxt :: utils :: H256 , pub relay_dispatch_queue_remaining_capacity : runtime_types :: cumulus_pallet_parachain_system :: relay_state_snapshot :: RelayDispatchQueueRemainingCapacity , pub ingress_channels : :: std :: vec :: Vec < (runtime_types :: polkadot_parachain_primitives :: primitives :: Id , runtime_types :: polkadot_primitives :: v6 :: AbridgedHrmpChannel ,) > , pub egress_channels : :: std :: vec :: Vec < (runtime_types :: polkadot_parachain_primitives :: primitives :: Id , runtime_types :: polkadot_primitives :: v6 :: AbridgedHrmpChannel ,) > , }
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ pub struct RelayDispatchQueueRemainingCapacity {
+ pub remaining_count: ::core::primitive::u32,
+ pub remaining_size: ::core::primitive::u32,
+ }
+ }
+ pub mod unincluded_segment {
+ use super::runtime_types;
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ pub struct Ancestor < _0 > { pub used_bandwidth : runtime_types :: cumulus_pallet_parachain_system :: unincluded_segment :: UsedBandwidth , pub para_head_hash : :: core :: option :: Option < _0 > , pub consumed_go_ahead_signal : :: core :: option :: Option < runtime_types :: polkadot_primitives :: v6 :: UpgradeGoAhead > , }
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ pub struct HrmpChannelUpdate {
+ pub msg_count: ::core::primitive::u32,
+ pub total_bytes: ::core::primitive::u32,
+ }
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ pub struct SegmentTracker < _0 > { pub used_bandwidth : runtime_types :: cumulus_pallet_parachain_system :: unincluded_segment :: UsedBandwidth , pub hrmp_watermark : :: core :: option :: Option < :: core :: primitive :: u32 > , pub consumed_go_ahead_signal : :: core :: option :: Option < runtime_types :: polkadot_primitives :: v6 :: UpgradeGoAhead > , # [codec (skip)] pub __subxt_unused_type_params : :: core :: marker :: PhantomData < _0 > }
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ pub struct UsedBandwidth { pub ump_msg_count : :: core :: primitive :: u32 , pub ump_total_bytes : :: core :: primitive :: u32 , pub hrmp_outgoing : :: subxt :: utils :: KeyedVec < runtime_types :: polkadot_parachain_primitives :: primitives :: Id , runtime_types :: cumulus_pallet_parachain_system :: unincluded_segment :: HrmpChannelUpdate > , }
+ }
+ }
+ pub mod cumulus_pallet_xcm {
+ use super::runtime_types;
+ pub mod pallet {
+ use super::runtime_types;
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."]
+ pub enum Call {}
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ #[doc = "The `Event` enum of this pallet"]
+ pub enum Event {
+ #[codec(index = 0)]
+ #[doc = "Downward message is invalid XCM."]
+ #[doc = "\\[ id \\]"]
+ InvalidFormat([::core::primitive::u8; 32usize]),
+ #[codec(index = 1)]
+ #[doc = "Downward message is unsupported version of XCM."]
+ #[doc = "\\[ id \\]"]
+ UnsupportedVersion([::core::primitive::u8; 32usize]),
+ #[codec(index = 2)]
+ #[doc = "Downward message executed with the given outcome."]
+ #[doc = "\\[ id, outcome \\]"]
+ ExecutedDownward(
+ [::core::primitive::u8; 32usize],
+ runtime_types::staging_xcm::v4::traits::Outcome,
+ ),
+ }
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ pub enum Origin {
+ #[codec(index = 0)]
+ Relay,
+ #[codec(index = 1)]
+ SiblingParachain(runtime_types::polkadot_parachain_primitives::primitives::Id),
+ }
+ }
+ }
+ pub mod cumulus_pallet_xcmp_queue {
+ use super::runtime_types;
+ pub mod pallet {
+ use super::runtime_types;
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."]
+ pub enum Call {
+ #[codec(index = 1)]
+ #[doc = "See [`Pallet::suspend_xcm_execution`]."]
+ suspend_xcm_execution,
+ #[codec(index = 2)]
+ #[doc = "See [`Pallet::resume_xcm_execution`]."]
+ resume_xcm_execution,
+ #[codec(index = 3)]
+ #[doc = "See [`Pallet::update_suspend_threshold`]."]
+ update_suspend_threshold { new: ::core::primitive::u32 },
+ #[codec(index = 4)]
+ #[doc = "See [`Pallet::update_drop_threshold`]."]
+ update_drop_threshold { new: ::core::primitive::u32 },
+ #[codec(index = 5)]
+ #[doc = "See [`Pallet::update_resume_threshold`]."]
+ update_resume_threshold { new: ::core::primitive::u32 },
+ }
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ #[doc = "The `Error` enum of this pallet."]
+ pub enum Error {
+ #[codec(index = 0)]
+ #[doc = "Setting the queue config failed since one of its values was invalid."]
+ BadQueueConfig,
+ #[codec(index = 1)]
+ #[doc = "The execution is already suspended."]
+ AlreadySuspended,
+ #[codec(index = 2)]
+ #[doc = "The execution is already resumed."]
+ AlreadyResumed,
+ }
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ #[doc = "The `Event` enum of this pallet"]
+ pub enum Event {
+ #[codec(index = 0)]
+ #[doc = "An HRMP message was sent to a sibling parachain."]
+ XcmpMessageSent { message_hash: [::core::primitive::u8; 32usize] },
+ }
+ }
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ pub struct OutboundChannelDetails {
+ pub recipient: runtime_types::polkadot_parachain_primitives::primitives::Id,
+ pub state: runtime_types::cumulus_pallet_xcmp_queue::OutboundState,
+ pub signals_exist: ::core::primitive::bool,
+ pub first_index: ::core::primitive::u16,
+ pub last_index: ::core::primitive::u16,
+ }
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ pub enum OutboundState {
+ #[codec(index = 0)]
+ Ok,
+ #[codec(index = 1)]
+ Suspended,
+ }
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ pub struct QueueConfigData {
+ pub suspend_threshold: ::core::primitive::u32,
+ pub drop_threshold: ::core::primitive::u32,
+ pub resume_threshold: ::core::primitive::u32,
+ }
+ }
+ pub mod cumulus_primitives_core {
+ use super::runtime_types;
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ pub enum AggregateMessageOrigin {
+ #[codec(index = 0)]
+ Here,
+ #[codec(index = 1)]
+ Parent,
+ #[codec(index = 2)]
+ Sibling(runtime_types::polkadot_parachain_primitives::primitives::Id),
+ }
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ pub struct CollationInfo {
+ pub upward_messages: ::std::vec::Vec<::std::vec::Vec<::core::primitive::u8>>,
+ pub horizontal_messages: ::std::vec::Vec<
+ runtime_types::polkadot_core_primitives::OutboundHrmpMessage<
+ runtime_types::polkadot_parachain_primitives::primitives::Id,
+ >,
+ >,
+ pub new_validation_code: ::core::option::Option<
+ runtime_types::polkadot_parachain_primitives::primitives::ValidationCode,
+ >,
+ pub processed_downward_messages: ::core::primitive::u32,
+ pub hrmp_watermark: ::core::primitive::u32,
+ pub head_data: runtime_types::polkadot_parachain_primitives::primitives::HeadData,
+ }
+ }
+ pub mod cumulus_primitives_parachain_inherent {
+ use super::runtime_types;
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ pub struct MessageQueueChain(pub ::subxt::utils::H256);
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ pub struct ParachainInherentData {
+ pub validation_data:
+ runtime_types::polkadot_primitives::v6::PersistedValidationData<
+ ::subxt::utils::H256,
+ ::core::primitive::u32,
+ >,
+ pub relay_chain_state: runtime_types::sp_trie::storage_proof::StorageProof,
+ pub downward_messages: ::std::vec::Vec<
+ runtime_types::polkadot_core_primitives::InboundDownwardMessage<
+ ::core::primitive::u32,
+ >,
+ >,
+ pub horizontal_messages: ::subxt::utils::KeyedVec<
+ runtime_types::polkadot_parachain_primitives::primitives::Id,
+ ::std::vec::Vec<
+ runtime_types::polkadot_core_primitives::InboundHrmpMessage<
+ ::core::primitive::u32,
+ >,
+ >,
+ >,
+ }
+ }
+ pub mod frame_support {
+ use super::runtime_types;
+ pub mod dispatch {
+ use super::runtime_types;
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ pub enum DispatchClass {
+ #[codec(index = 0)]
+ Normal,
+ #[codec(index = 1)]
+ Operational,
+ #[codec(index = 2)]
+ Mandatory,
+ }
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ pub struct DispatchInfo {
+ pub weight: runtime_types::sp_weights::weight_v2::Weight,
+ pub class: runtime_types::frame_support::dispatch::DispatchClass,
+ pub pays_fee: runtime_types::frame_support::dispatch::Pays,
+ }
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ pub enum Pays {
+ #[codec(index = 0)]
+ Yes,
+ #[codec(index = 1)]
+ No,
+ }
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ pub struct PerDispatchClass<_0> {
+ pub normal: _0,
+ pub operational: _0,
+ pub mandatory: _0,
+ }
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ pub enum RawOrigin<_0> {
+ #[codec(index = 0)]
+ Root,
+ #[codec(index = 1)]
+ Signed(_0),
+ #[codec(index = 2)]
+ None,
+ }
+ }
+ pub mod traits {
+ use super::runtime_types;
+ pub mod messages {
+ use super::runtime_types;
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ pub enum ProcessMessageError {
+ #[codec(index = 0)]
+ BadFormat,
+ #[codec(index = 1)]
+ Corrupt,
+ #[codec(index = 2)]
+ Unsupported,
+ #[codec(index = 3)]
+ Overweight(runtime_types::sp_weights::weight_v2::Weight),
+ #[codec(index = 4)]
+ Yield,
+ }
+ }
+ pub mod tokens {
+ use super::runtime_types;
+ pub mod misc {
+ use super::runtime_types;
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ pub enum BalanceStatus {
+ #[codec(index = 0)]
+ Free,
+ #[codec(index = 1)]
+ Reserved,
+ }
+ }
+ }
+ }
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ pub struct 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 :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ pub struct CheckGenesis;
+ }
+ pub mod check_mortality {
+ use super::runtime_types;
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ pub struct CheckMortality(pub runtime_types::sp_runtime::generic::era::Era);
+ }
+ pub mod check_non_zero_sender {
+ use super::runtime_types;
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ pub struct CheckNonZeroSender;
+ }
+ pub mod check_nonce {
+ use super::runtime_types;
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ pub struct CheckNonce(#[codec(compact)] pub ::core::primitive::u32);
+ }
+ pub mod check_spec_version {
+ use super::runtime_types;
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ pub struct CheckSpecVersion;
+ }
+ pub mod check_tx_version {
+ use super::runtime_types;
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ pub struct CheckTxVersion;
+ }
+ pub mod check_weight {
+ use super::runtime_types;
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ pub struct CheckWeight;
+ }
+ }
+ pub mod limits {
+ use super::runtime_types;
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ pub struct BlockLength {
+ pub max: runtime_types::frame_support::dispatch::PerDispatchClass<
+ ::core::primitive::u32,
+ >,
+ }
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ pub struct BlockWeights {
+ pub base_block: runtime_types::sp_weights::weight_v2::Weight,
+ pub max_block: runtime_types::sp_weights::weight_v2::Weight,
+ pub per_class: runtime_types::frame_support::dispatch::PerDispatchClass<
+ runtime_types::frame_system::limits::WeightsPerClass,
+ >,
+ }
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ pub struct WeightsPerClass {
+ pub base_extrinsic: runtime_types::sp_weights::weight_v2::Weight,
+ pub max_extrinsic:
+ ::core::option::Option,
+ pub max_total:
+ ::core::option::Option,
+ pub reserved:
+ ::core::option::Option,
+ }
+ }
+ pub mod pallet {
+ use super::runtime_types;
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."]
+ pub enum Call {
+ #[codec(index = 0)]
+ #[doc = "See [`Pallet::remark`]."]
+ remark { remark: ::std::vec::Vec<::core::primitive::u8> },
+ #[codec(index = 1)]
+ #[doc = "See [`Pallet::set_heap_pages`]."]
+ set_heap_pages { pages: ::core::primitive::u64 },
+ #[codec(index = 2)]
+ #[doc = "See [`Pallet::set_code`]."]
+ set_code { code: ::std::vec::Vec<::core::primitive::u8> },
+ #[codec(index = 3)]
+ #[doc = "See [`Pallet::set_code_without_checks`]."]
+ set_code_without_checks { code: ::std::vec::Vec<::core::primitive::u8> },
+ #[codec(index = 4)]
+ #[doc = "See [`Pallet::set_storage`]."]
+ set_storage {
+ items: ::std::vec::Vec<(
+ ::std::vec::Vec<::core::primitive::u8>,
+ ::std::vec::Vec<::core::primitive::u8>,
+ )>,
+ },
+ #[codec(index = 5)]
+ #[doc = "See [`Pallet::kill_storage`]."]
+ kill_storage { keys: ::std::vec::Vec<::std::vec::Vec<::core::primitive::u8>> },
+ #[codec(index = 6)]
+ #[doc = "See [`Pallet::kill_prefix`]."]
+ kill_prefix {
+ prefix: ::std::vec::Vec<::core::primitive::u8>,
+ subkeys: ::core::primitive::u32,
+ },
+ #[codec(index = 7)]
+ #[doc = "See [`Pallet::remark_with_event`]."]
+ remark_with_event { remark: ::std::vec::Vec<::core::primitive::u8> },
+ #[codec(index = 9)]
+ #[doc = "See [`Pallet::authorize_upgrade`]."]
+ authorize_upgrade { code_hash: ::subxt::utils::H256 },
+ #[codec(index = 10)]
+ #[doc = "See [`Pallet::authorize_upgrade_without_checks`]."]
+ authorize_upgrade_without_checks { code_hash: ::subxt::utils::H256 },
+ #[codec(index = 11)]
+ #[doc = "See [`Pallet::apply_authorized_upgrade`]."]
+ apply_authorized_upgrade { code: ::std::vec::Vec<::core::primitive::u8> },
+ }
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ #[doc = "Error for the System pallet"]
+ pub enum Error {
+ #[codec(index = 0)]
+ #[doc = "The name of specification does not match between the current runtime"]
+ #[doc = "and the new runtime."]
+ InvalidSpecName,
+ #[codec(index = 1)]
+ #[doc = "The specification version is not allowed to decrease between the current runtime"]
+ #[doc = "and the new runtime."]
+ SpecVersionNeedsToIncrease,
+ #[codec(index = 2)]
+ #[doc = "Failed to extract the runtime version from the new runtime."]
+ #[doc = ""]
+ #[doc = "Either calling `Core_version` or decoding `RuntimeVersion` failed."]
+ FailedToExtractRuntimeVersion,
+ #[codec(index = 3)]
+ #[doc = "Suicide called when the account has non-default composite data."]
+ NonDefaultComposite,
+ #[codec(index = 4)]
+ #[doc = "There is a non-zero reference count preventing the account from being purged."]
+ NonZeroRefCount,
+ #[codec(index = 5)]
+ #[doc = "The origin filter prevent the call to be dispatched."]
+ CallFiltered,
+ #[codec(index = 6)]
+ #[doc = "No upgrade authorized."]
+ NothingAuthorized,
+ #[codec(index = 7)]
+ #[doc = "The submitted code is not authorized."]
+ Unauthorized,
+ }
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ #[doc = "Event for the System pallet."]
+ pub enum Event {
+ #[codec(index = 0)]
+ #[doc = "An extrinsic completed successfully."]
+ ExtrinsicSuccess {
+ dispatch_info: runtime_types::frame_support::dispatch::DispatchInfo,
+ },
+ #[codec(index = 1)]
+ #[doc = "An extrinsic failed."]
+ ExtrinsicFailed {
+ dispatch_error: runtime_types::sp_runtime::DispatchError,
+ dispatch_info: runtime_types::frame_support::dispatch::DispatchInfo,
+ },
+ #[codec(index = 2)]
+ #[doc = "`:code` was updated."]
+ CodeUpdated,
+ #[codec(index = 3)]
+ #[doc = "A new account was created."]
+ NewAccount { account: ::subxt::utils::AccountId32 },
+ #[codec(index = 4)]
+ #[doc = "An account was reaped."]
+ KilledAccount { account: ::subxt::utils::AccountId32 },
+ #[codec(index = 5)]
+ #[doc = "On on-chain remark happened."]
+ Remarked { sender: ::subxt::utils::AccountId32, hash: ::subxt::utils::H256 },
+ #[codec(index = 6)]
+ #[doc = "An upgrade was authorized."]
+ UpgradeAuthorized {
+ code_hash: ::subxt::utils::H256,
+ check_version: ::core::primitive::bool,
+ },
+ }
+ }
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ pub struct AccountInfo<_0, _1> {
+ pub nonce: _0,
+ pub consumers: ::core::primitive::u32,
+ pub providers: ::core::primitive::u32,
+ pub sufficients: ::core::primitive::u32,
+ pub data: _1,
+ }
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ pub struct CodeUpgradeAuthorization {
+ pub code_hash: ::subxt::utils::H256,
+ pub check_version: ::core::primitive::bool,
+ }
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ pub struct EventRecord<_0, _1> {
+ pub phase: runtime_types::frame_system::Phase,
+ pub event: _0,
+ pub topics: ::std::vec::Vec<_1>,
+ }
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ pub struct LastRuntimeUpgradeInfo {
+ #[codec(compact)]
+ pub spec_version: ::core::primitive::u32,
+ pub spec_name: ::std::string::String,
+ }
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ pub enum Phase {
+ #[codec(index = 0)]
+ ApplyExtrinsic(::core::primitive::u32),
+ #[codec(index = 1)]
+ Finalization,
+ #[codec(index = 2)]
+ Initialization,
+ }
+ }
+ pub mod pallet_balances {
+ use super::runtime_types;
+ pub mod pallet {
+ use super::runtime_types;
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."]
+ pub enum Call {
+ #[codec(index = 0)]
+ #[doc = "See [`Pallet::transfer_allow_death`]."]
+ transfer_allow_death {
+ dest: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>,
+ #[codec(compact)]
+ value: ::core::primitive::u128,
+ },
+ #[codec(index = 2)]
+ #[doc = "See [`Pallet::force_transfer`]."]
+ force_transfer {
+ source: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>,
+ dest: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>,
+ #[codec(compact)]
+ value: ::core::primitive::u128,
+ },
+ #[codec(index = 3)]
+ #[doc = "See [`Pallet::transfer_keep_alive`]."]
+ transfer_keep_alive {
+ dest: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>,
+ #[codec(compact)]
+ value: ::core::primitive::u128,
+ },
+ #[codec(index = 4)]
+ #[doc = "See [`Pallet::transfer_all`]."]
+ transfer_all {
+ dest: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>,
+ keep_alive: ::core::primitive::bool,
+ },
+ #[codec(index = 5)]
+ #[doc = "See [`Pallet::force_unreserve`]."]
+ force_unreserve {
+ who: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>,
+ amount: ::core::primitive::u128,
+ },
+ #[codec(index = 6)]
+ #[doc = "See [`Pallet::upgrade_accounts`]."]
+ upgrade_accounts { who: ::std::vec::Vec<::subxt::utils::AccountId32> },
+ #[codec(index = 8)]
+ #[doc = "See [`Pallet::force_set_balance`]."]
+ force_set_balance {
+ who: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>,
+ #[codec(compact)]
+ new_free: ::core::primitive::u128,
+ },
+ #[codec(index = 9)]
+ #[doc = "See [`Pallet::force_adjust_total_issuance`]."]
+ force_adjust_total_issuance {
+ direction: runtime_types::pallet_balances::types::AdjustmentDirection,
+ #[codec(compact)]
+ delta: ::core::primitive::u128,
+ },
+ }
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ #[doc = "The `Error` enum of this pallet."]
+ pub enum Error {
+ #[codec(index = 0)]
+ #[doc = "Vesting balance too high to send value."]
+ VestingBalance,
+ #[codec(index = 1)]
+ #[doc = "Account liquidity restrictions prevent withdrawal."]
+ LiquidityRestrictions,
+ #[codec(index = 2)]
+ #[doc = "Balance too low to send value."]
+ InsufficientBalance,
+ #[codec(index = 3)]
+ #[doc = "Value too low to create account due to existential deposit."]
+ ExistentialDeposit,
+ #[codec(index = 4)]
+ #[doc = "Transfer/payment would kill account."]
+ Expendability,
+ #[codec(index = 5)]
+ #[doc = "A vesting schedule already exists for this account."]
+ ExistingVestingSchedule,
+ #[codec(index = 6)]
+ #[doc = "Beneficiary account must pre-exist."]
+ DeadAccount,
+ #[codec(index = 7)]
+ #[doc = "Number of named reserves exceed `MaxReserves`."]
+ TooManyReserves,
+ #[codec(index = 8)]
+ #[doc = "Number of holds exceed `VariantCountOf`."]
+ 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 :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ #[doc = "The `Event` enum of this pallet"]
+ pub enum Event {
+ #[codec(index = 0)]
+ #[doc = "An account was created with some free balance."]
+ Endowed {
+ account: ::subxt::utils::AccountId32,
+ free_balance: ::core::primitive::u128,
+ },
+ #[codec(index = 1)]
+ #[doc = "An account was removed whose balance was non-zero but below ExistentialDeposit,"]
+ #[doc = "resulting in an outright loss."]
+ DustLost {
+ account: ::subxt::utils::AccountId32,
+ amount: ::core::primitive::u128,
+ },
+ #[codec(index = 2)]
+ #[doc = "Transfer succeeded."]
+ Transfer {
+ from: ::subxt::utils::AccountId32,
+ to: ::subxt::utils::AccountId32,
+ amount: ::core::primitive::u128,
+ },
+ #[codec(index = 3)]
+ #[doc = "A balance was set by root."]
+ BalanceSet { who: ::subxt::utils::AccountId32, free: ::core::primitive::u128 },
+ #[codec(index = 4)]
+ #[doc = "Some balance was reserved (moved from free to reserved)."]
+ Reserved { who: ::subxt::utils::AccountId32, amount: ::core::primitive::u128 },
+ #[codec(index = 5)]
+ #[doc = "Some balance was unreserved (moved from reserved to free)."]
+ Unreserved { who: ::subxt::utils::AccountId32, amount: ::core::primitive::u128 },
+ #[codec(index = 6)]
+ #[doc = "Some balance was moved from the reserve of the first account to the second account."]
+ #[doc = "Final argument indicates the destination balance type."]
+ ReserveRepatriated {
+ from: ::subxt::utils::AccountId32,
+ to: ::subxt::utils::AccountId32,
+ amount: ::core::primitive::u128,
+ destination_status:
+ runtime_types::frame_support::traits::tokens::misc::BalanceStatus,
+ },
+ #[codec(index = 7)]
+ #[doc = "Some amount was deposited (e.g. for transaction fees)."]
+ Deposit { who: ::subxt::utils::AccountId32, amount: ::core::primitive::u128 },
+ #[codec(index = 8)]
+ #[doc = "Some amount was withdrawn from the account (e.g. for transaction fees)."]
+ Withdraw { who: ::subxt::utils::AccountId32, amount: ::core::primitive::u128 },
+ #[codec(index = 9)]
+ #[doc = "Some amount was removed from the account (e.g. for misbehavior)."]
+ Slashed { who: ::subxt::utils::AccountId32, amount: ::core::primitive::u128 },
+ #[codec(index = 10)]
+ #[doc = "Some amount was minted into an account."]
+ Minted { who: ::subxt::utils::AccountId32, amount: ::core::primitive::u128 },
+ #[codec(index = 11)]
+ #[doc = "Some amount was burned from an account."]
+ Burned { who: ::subxt::utils::AccountId32, amount: ::core::primitive::u128 },
+ #[codec(index = 12)]
+ #[doc = "Some amount was suspended from an account (it can be restored later)."]
+ Suspended { who: ::subxt::utils::AccountId32, amount: ::core::primitive::u128 },
+ #[codec(index = 13)]
+ #[doc = "Some amount was restored into an account."]
+ Restored { who: ::subxt::utils::AccountId32, amount: ::core::primitive::u128 },
+ #[codec(index = 14)]
+ #[doc = "An account was upgraded."]
+ Upgraded { who: ::subxt::utils::AccountId32 },
+ #[codec(index = 15)]
+ #[doc = "Total issuance was increased by `amount`, creating a credit to be balanced."]
+ Issued { amount: ::core::primitive::u128 },
+ #[codec(index = 16)]
+ #[doc = "Total issuance was decreased by `amount`, creating a debt to be balanced."]
+ Rescinded { amount: ::core::primitive::u128 },
+ #[codec(index = 17)]
+ #[doc = "Some balance was locked."]
+ Locked { who: ::subxt::utils::AccountId32, amount: ::core::primitive::u128 },
+ #[codec(index = 18)]
+ #[doc = "Some balance was unlocked."]
+ Unlocked { who: ::subxt::utils::AccountId32, amount: ::core::primitive::u128 },
+ #[codec(index = 19)]
+ #[doc = "Some balance was frozen."]
+ Frozen { who: ::subxt::utils::AccountId32, amount: ::core::primitive::u128 },
+ #[codec(index = 20)]
+ #[doc = "Some balance was thawed."]
+ Thawed { who: ::subxt::utils::AccountId32, amount: ::core::primitive::u128 },
+ #[codec(index = 21)]
+ #[doc = "The `TotalIssuance` was forcefully changed."]
+ TotalIssuanceForced {
+ old: ::core::primitive::u128,
+ new: ::core::primitive::u128,
+ },
+ }
+ }
+ pub mod types {
+ use super::runtime_types;
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ pub struct AccountData<_0> {
+ pub free: _0,
+ pub reserved: _0,
+ pub frozen: _0,
+ pub flags: runtime_types::pallet_balances::types::ExtraFlags,
+ }
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ pub enum AdjustmentDirection {
+ #[codec(index = 0)]
+ Increase,
+ #[codec(index = 1)]
+ Decrease,
+ }
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ pub struct BalanceLock<_0> {
+ pub id: [::core::primitive::u8; 8usize],
+ pub amount: _0,
+ pub reasons: runtime_types::pallet_balances::types::Reasons,
+ }
+ #[derive(
+ :: subxt :: ext :: codec :: CompactAs,
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ pub struct ExtraFlags(pub ::core::primitive::u128);
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ pub struct IdAmount<_0, _1> {
+ pub id: _0,
+ pub amount: _1,
+ }
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ pub enum Reasons {
+ #[codec(index = 0)]
+ Fee,
+ #[codec(index = 1)]
+ Misc,
+ #[codec(index = 2)]
+ All,
+ }
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ pub struct ReserveData<_0, _1> {
+ pub id: _0,
+ pub amount: _1,
+ }
+ }
+ }
+ pub mod pallet_broker {
+ use super::runtime_types;
+ pub mod core_mask {
+ use super::runtime_types;
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ pub struct CoreMask(pub [::core::primitive::u8; 10usize]);
+ }
+ pub mod coretime_interface {
+ use super::runtime_types;
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ pub enum CoreAssignment {
+ #[codec(index = 0)]
+ Idle,
+ #[codec(index = 1)]
+ Pool,
+ #[codec(index = 2)]
+ Task(::core::primitive::u32),
+ }
+ }
+ pub mod pallet {
+ use super::runtime_types;
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."]
+ pub enum Call {
+ #[codec(index = 0)]
+ #[doc = "See [`Pallet::configure`]."]
+ configure {
+ config: runtime_types::pallet_broker::types::ConfigRecord<
+ ::core::primitive::u32,
+ ::core::primitive::u32,
+ >,
+ },
+ #[codec(index = 1)]
+ #[doc = "See [`Pallet::reserve`]."]
+ reserve {
+ workload: runtime_types::bounded_collections::bounded_vec::BoundedVec<
+ runtime_types::pallet_broker::types::ScheduleItem,
+ >,
+ },
+ #[codec(index = 2)]
+ #[doc = "See [`Pallet::unreserve`]."]
+ unreserve { item_index: ::core::primitive::u32 },
+ #[codec(index = 3)]
+ #[doc = "See [`Pallet::set_lease`]."]
+ set_lease { task: ::core::primitive::u32, until: ::core::primitive::u32 },
+ #[codec(index = 4)]
+ #[doc = "See [`Pallet::start_sales`]."]
+ start_sales {
+ initial_price: ::core::primitive::u128,
+ core_count: ::core::primitive::u16,
+ },
+ #[codec(index = 5)]
+ #[doc = "See [`Pallet::purchase`]."]
+ purchase { price_limit: ::core::primitive::u128 },
+ #[codec(index = 6)]
+ #[doc = "See [`Pallet::renew`]."]
+ renew { core: ::core::primitive::u16 },
+ #[codec(index = 7)]
+ #[doc = "See [`Pallet::transfer`]."]
+ transfer {
+ region_id: runtime_types::pallet_broker::types::RegionId,
+ new_owner: ::subxt::utils::AccountId32,
+ },
+ #[codec(index = 8)]
+ #[doc = "See [`Pallet::partition`]."]
+ partition {
+ region_id: runtime_types::pallet_broker::types::RegionId,
+ pivot: ::core::primitive::u32,
+ },
+ #[codec(index = 9)]
+ #[doc = "See [`Pallet::interlace`]."]
+ interlace {
+ region_id: runtime_types::pallet_broker::types::RegionId,
+ pivot: runtime_types::pallet_broker::core_mask::CoreMask,
+ },
+ #[codec(index = 10)]
+ #[doc = "See [`Pallet::assign`]."]
+ assign {
+ region_id: runtime_types::pallet_broker::types::RegionId,
+ task: ::core::primitive::u32,
+ finality: runtime_types::pallet_broker::types::Finality,
+ },
+ #[codec(index = 11)]
+ #[doc = "See [`Pallet::pool`]."]
+ pool {
+ region_id: runtime_types::pallet_broker::types::RegionId,
+ payee: ::subxt::utils::AccountId32,
+ finality: runtime_types::pallet_broker::types::Finality,
+ },
+ #[codec(index = 12)]
+ #[doc = "See [`Pallet::claim_revenue`]."]
+ claim_revenue {
+ region_id: runtime_types::pallet_broker::types::RegionId,
+ max_timeslices: ::core::primitive::u32,
+ },
+ #[codec(index = 13)]
+ #[doc = "See [`Pallet::purchase_credit`]."]
+ purchase_credit {
+ amount: ::core::primitive::u128,
+ beneficiary: ::subxt::utils::AccountId32,
+ },
+ #[codec(index = 14)]
+ #[doc = "See [`Pallet::drop_region`]."]
+ drop_region { region_id: runtime_types::pallet_broker::types::RegionId },
+ #[codec(index = 15)]
+ #[doc = "See [`Pallet::drop_contribution`]."]
+ drop_contribution { region_id: runtime_types::pallet_broker::types::RegionId },
+ #[codec(index = 16)]
+ #[doc = "See [`Pallet::drop_history`]."]
+ drop_history { when: ::core::primitive::u32 },
+ #[codec(index = 17)]
+ #[doc = "See [`Pallet::drop_renewal`]."]
+ drop_renewal { core: ::core::primitive::u16, when: ::core::primitive::u32 },
+ #[codec(index = 18)]
+ #[doc = "See [`Pallet::request_core_count`]."]
+ request_core_count { core_count: ::core::primitive::u16 },
+ #[codec(index = 19)]
+ #[doc = "See [`Pallet::notify_core_count`]."]
+ notify_core_count { core_count: ::core::primitive::u16 },
+ }
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ #[doc = "The `Error` enum of this pallet."]
+ pub enum Error {
+ #[codec(index = 0)]
+ #[doc = "The given region identity is not known."]
+ UnknownRegion,
+ #[codec(index = 1)]
+ #[doc = "The owner of the region is not the origin."]
+ NotOwner,
+ #[codec(index = 2)]
+ #[doc = "The pivot point of the partition at or after the end of the region."]
+ PivotTooLate,
+ #[codec(index = 3)]
+ #[doc = "The pivot point of the partition at the beginning of the region."]
+ PivotTooEarly,
+ #[codec(index = 4)]
+ #[doc = "The pivot mask for the interlacing is not contained within the region's interlace mask."]
+ ExteriorPivot,
+ #[codec(index = 5)]
+ #[doc = "The pivot mask for the interlacing is void (and therefore unschedulable)."]
+ VoidPivot,
+ #[codec(index = 6)]
+ #[doc = "The pivot mask for the interlacing is complete (and therefore not a strict subset)."]
+ CompletePivot,
+ #[codec(index = 7)]
+ #[doc = "The workplan of the pallet's state is invalid. This indicates a state corruption."]
+ CorruptWorkplan,
+ #[codec(index = 8)]
+ #[doc = "There is no sale happening currently."]
+ NoSales,
+ #[codec(index = 9)]
+ #[doc = "The price limit is exceeded."]
+ Overpriced,
+ #[codec(index = 10)]
+ #[doc = "There are no cores available."]
+ Unavailable,
+ #[codec(index = 11)]
+ #[doc = "The sale limit has been reached."]
+ SoldOut,
+ #[codec(index = 12)]
+ #[doc = "The renewal operation is not valid at the current time (it may become valid in the next"]
+ #[doc = "sale)."]
+ WrongTime,
+ #[codec(index = 13)]
+ #[doc = "Invalid attempt to renew."]
+ NotAllowed,
+ #[codec(index = 14)]
+ #[doc = "This pallet has not yet been initialized."]
+ Uninitialized,
+ #[codec(index = 15)]
+ #[doc = "The purchase cannot happen yet as the sale period is yet to begin."]
+ TooEarly,
+ #[codec(index = 16)]
+ #[doc = "There is no work to be done."]
+ NothingToDo,
+ #[codec(index = 17)]
+ #[doc = "The maximum amount of reservations has already been reached."]
+ TooManyReservations,
+ #[codec(index = 18)]
+ #[doc = "The maximum amount of leases has already been reached."]
+ TooManyLeases,
+ #[codec(index = 19)]
+ #[doc = "The revenue for the Instantaneous Core Sales of this period is not (yet) known and thus"]
+ #[doc = "this operation cannot proceed."]
+ UnknownRevenue,
+ #[codec(index = 20)]
+ #[doc = "The identified contribution to the Instantaneous Core Pool is unknown."]
+ UnknownContribution,
+ #[codec(index = 21)]
+ #[doc = "The workload assigned for renewal is incomplete. This is unexpected and indicates a"]
+ #[doc = "logic error."]
+ IncompleteAssignment,
+ #[codec(index = 22)]
+ #[doc = "An item cannot be dropped because it is still valid."]
+ StillValid,
+ #[codec(index = 23)]
+ #[doc = "The history item does not exist."]
+ NoHistory,
+ #[codec(index = 24)]
+ #[doc = "No reservation of the given index exists."]
+ UnknownReservation,
+ #[codec(index = 25)]
+ #[doc = "The renewal record cannot be found."]
+ UnknownRenewal,
+ #[codec(index = 26)]
+ #[doc = "The lease expiry time has already passed."]
+ AlreadyExpired,
+ #[codec(index = 27)]
+ #[doc = "The configuration could not be applied because it is invalid."]
+ InvalidConfig,
+ }
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ #[doc = "The `Event` enum of this pallet"]
+ pub enum Event {
+ #[codec(index = 0)]
+ #[doc = "A Region of Bulk Coretime has been purchased."]
+ Purchased {
+ who: ::subxt::utils::AccountId32,
+ region_id: runtime_types::pallet_broker::types::RegionId,
+ price: ::core::primitive::u128,
+ duration: ::core::primitive::u32,
+ },
+ #[codec(index = 1)]
+ #[doc = "The workload of a core has become renewable."]
+ Renewable {
+ core: ::core::primitive::u16,
+ price: ::core::primitive::u128,
+ begin: ::core::primitive::u32,
+ workload: runtime_types::bounded_collections::bounded_vec::BoundedVec<
+ runtime_types::pallet_broker::types::ScheduleItem,
+ >,
+ },
+ #[codec(index = 2)]
+ #[doc = "A workload has been renewed."]
+ Renewed {
+ who: ::subxt::utils::AccountId32,
+ price: ::core::primitive::u128,
+ old_core: ::core::primitive::u16,
+ core: ::core::primitive::u16,
+ begin: ::core::primitive::u32,
+ duration: ::core::primitive::u32,
+ workload: runtime_types::bounded_collections::bounded_vec::BoundedVec<
+ runtime_types::pallet_broker::types::ScheduleItem,
+ >,
+ },
+ #[codec(index = 3)]
+ #[doc = "Ownership of a Region has been transferred."]
+ Transferred {
+ region_id: runtime_types::pallet_broker::types::RegionId,
+ duration: ::core::primitive::u32,
+ old_owner: ::subxt::utils::AccountId32,
+ owner: ::subxt::utils::AccountId32,
+ },
+ #[codec(index = 4)]
+ #[doc = "A Region has been split into two non-overlapping Regions."]
+ Partitioned {
+ old_region_id: runtime_types::pallet_broker::types::RegionId,
+ new_region_ids: (
+ runtime_types::pallet_broker::types::RegionId,
+ runtime_types::pallet_broker::types::RegionId,
+ ),
+ },
+ #[codec(index = 5)]
+ #[doc = "A Region has been converted into two overlapping Regions each of lesser regularity."]
+ Interlaced {
+ old_region_id: runtime_types::pallet_broker::types::RegionId,
+ new_region_ids: (
+ runtime_types::pallet_broker::types::RegionId,
+ runtime_types::pallet_broker::types::RegionId,
+ ),
+ },
+ #[codec(index = 6)]
+ #[doc = "A Region has been assigned to a particular task."]
+ Assigned {
+ region_id: runtime_types::pallet_broker::types::RegionId,
+ duration: ::core::primitive::u32,
+ task: ::core::primitive::u32,
+ },
+ #[codec(index = 7)]
+ #[doc = "A Region has been added to the Instantaneous Coretime Pool."]
+ Pooled {
+ region_id: runtime_types::pallet_broker::types::RegionId,
+ duration: ::core::primitive::u32,
+ },
+ #[codec(index = 8)]
+ #[doc = "A new number of cores has been requested."]
+ CoreCountRequested { core_count: ::core::primitive::u16 },
+ #[codec(index = 9)]
+ #[doc = "The number of cores available for scheduling has changed."]
+ CoreCountChanged { core_count: ::core::primitive::u16 },
+ #[codec(index = 10)]
+ #[doc = "There is a new reservation for a workload."]
+ ReservationMade {
+ index: ::core::primitive::u32,
+ workload: runtime_types::bounded_collections::bounded_vec::BoundedVec<
+ runtime_types::pallet_broker::types::ScheduleItem,
+ >,
+ },
+ #[codec(index = 11)]
+ #[doc = "A reservation for a workload has been cancelled."]
+ ReservationCancelled {
+ index: ::core::primitive::u32,
+ workload: runtime_types::bounded_collections::bounded_vec::BoundedVec<
+ runtime_types::pallet_broker::types::ScheduleItem,
+ >,
+ },
+ #[codec(index = 12)]
+ #[doc = "A new sale has been initialized."]
+ SaleInitialized {
+ sale_start: ::core::primitive::u32,
+ leadin_length: ::core::primitive::u32,
+ start_price: ::core::primitive::u128,
+ regular_price: ::core::primitive::u128,
+ region_begin: ::core::primitive::u32,
+ region_end: ::core::primitive::u32,
+ ideal_cores_sold: ::core::primitive::u16,
+ cores_offered: ::core::primitive::u16,
+ },
+ #[codec(index = 13)]
+ #[doc = "A new lease has been created."]
+ Leased { task: ::core::primitive::u32, until: ::core::primitive::u32 },
+ #[codec(index = 14)]
+ #[doc = "A lease is about to end."]
+ LeaseEnding { task: ::core::primitive::u32, when: ::core::primitive::u32 },
+ #[codec(index = 15)]
+ #[doc = "The sale rotation has been started and a new sale is imminent."]
+ SalesStarted {
+ price: ::core::primitive::u128,
+ core_count: ::core::primitive::u16,
+ },
+ #[codec(index = 16)]
+ #[doc = "The act of claiming revenue has begun."]
+ RevenueClaimBegun {
+ region: runtime_types::pallet_broker::types::RegionId,
+ max_timeslices: ::core::primitive::u32,
+ },
+ #[codec(index = 17)]
+ #[doc = "A particular timeslice has a non-zero claim."]
+ RevenueClaimItem {
+ when: ::core::primitive::u32,
+ amount: ::core::primitive::u128,
+ },
+ #[codec(index = 18)]
+ #[doc = "A revenue claim has (possibly only in part) been paid."]
+ RevenueClaimPaid {
+ who: ::subxt::utils::AccountId32,
+ amount: ::core::primitive::u128,
+ next: ::core::option::Option,
+ },
+ #[codec(index = 19)]
+ #[doc = "Some Instantaneous Coretime Pool credit has been purchased."]
+ CreditPurchased {
+ who: ::subxt::utils::AccountId32,
+ beneficiary: ::subxt::utils::AccountId32,
+ amount: ::core::primitive::u128,
+ },
+ #[codec(index = 20)]
+ #[doc = "A Region has been dropped due to being out of date."]
+ RegionDropped {
+ region_id: runtime_types::pallet_broker::types::RegionId,
+ duration: ::core::primitive::u32,
+ },
+ #[codec(index = 21)]
+ #[doc = "Some historical Instantaneous Core Pool contribution record has been dropped."]
+ ContributionDropped { region_id: runtime_types::pallet_broker::types::RegionId },
+ #[codec(index = 22)]
+ #[doc = "Some historical Instantaneous Core Pool payment record has been initialized."]
+ HistoryInitialized {
+ when: ::core::primitive::u32,
+ private_pool_size: ::core::primitive::u32,
+ system_pool_size: ::core::primitive::u32,
+ },
+ #[codec(index = 23)]
+ #[doc = "Some historical Instantaneous Core Pool payment record has been dropped."]
+ HistoryDropped {
+ when: ::core::primitive::u32,
+ revenue: ::core::primitive::u128,
+ },
+ #[codec(index = 24)]
+ #[doc = "Some historical Instantaneous Core Pool payment record has been ignored because the"]
+ #[doc = "timeslice was already known. Governance may need to intervene."]
+ HistoryIgnored {
+ when: ::core::primitive::u32,
+ revenue: ::core::primitive::u128,
+ },
+ #[codec(index = 25)]
+ #[doc = "Some historical Instantaneous Core Pool Revenue is ready for payout claims."]
+ ClaimsReady {
+ when: ::core::primitive::u32,
+ system_payout: ::core::primitive::u128,
+ private_payout: ::core::primitive::u128,
+ },
+ #[codec(index = 26)]
+ #[doc = "A Core has been assigned to one or more tasks and/or the Pool on the Relay-chain."]
+ CoreAssigned {
+ core: ::core::primitive::u16,
+ when: ::core::primitive::u32,
+ assignment: ::std::vec::Vec<(
+ runtime_types::pallet_broker::coretime_interface::CoreAssignment,
+ ::core::primitive::u16,
+ )>,
+ },
+ #[codec(index = 27)]
+ #[doc = "Some historical Instantaneous Core Pool payment record has been dropped."]
+ AllowedRenewalDropped {
+ when: ::core::primitive::u32,
+ core: ::core::primitive::u16,
+ },
+ }
+ }
+ pub mod types {
+ use super::runtime_types;
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ pub struct AllowedRenewalId {
+ pub core: ::core::primitive::u16,
+ pub when: ::core::primitive::u32,
+ }
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ pub struct AllowedRenewalRecord<_0> {
+ pub price: _0,
+ pub completion: runtime_types::pallet_broker::types::CompletionStatus,
+ }
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ pub enum CompletionStatus {
+ #[codec(index = 0)]
+ Partial(runtime_types::pallet_broker::core_mask::CoreMask),
+ #[codec(index = 1)]
+ Complete(
+ runtime_types::bounded_collections::bounded_vec::BoundedVec<
+ runtime_types::pallet_broker::types::ScheduleItem,
+ >,
+ ),
+ }
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ pub struct ConfigRecord<_0, _1> {
+ pub advance_notice: _1,
+ pub interlude_length: _0,
+ pub leadin_length: _0,
+ pub region_length: ::core::primitive::u32,
+ pub ideal_bulk_proportion: runtime_types::sp_arithmetic::per_things::Perbill,
+ pub limit_cores_offered: ::core::option::Option<::core::primitive::u16>,
+ pub renewal_bump: runtime_types::sp_arithmetic::per_things::Perbill,
+ pub contribution_timeout: ::core::primitive::u32,
+ }
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ pub struct ContributionRecord<_0> {
+ pub length: ::core::primitive::u32,
+ pub payee: _0,
+ }
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ pub enum Finality {
+ #[codec(index = 0)]
+ Provisional,
+ #[codec(index = 1)]
+ Final,
+ }
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ pub struct InstaPoolHistoryRecord<_0> {
+ pub private_contributions: ::core::primitive::u32,
+ pub system_contributions: ::core::primitive::u32,
+ pub maybe_payout: ::core::option::Option<_0>,
+ }
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ pub struct LeaseRecordItem {
+ pub until: ::core::primitive::u32,
+ pub task: ::core::primitive::u32,
+ }
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ pub struct PoolIoRecord {
+ pub private: ::core::primitive::i32,
+ pub system: ::core::primitive::i32,
+ }
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ pub struct RegionId {
+ pub begin: ::core::primitive::u32,
+ pub core: ::core::primitive::u16,
+ pub mask: runtime_types::pallet_broker::core_mask::CoreMask,
+ }
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ pub struct RegionRecord<_0, _1> {
+ pub end: ::core::primitive::u32,
+ pub owner: _0,
+ pub paid: ::core::option::Option<_1>,
+ }
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ pub struct SaleInfoRecord<_0, _1> {
+ pub sale_start: _1,
+ pub leadin_length: _1,
+ pub price: _0,
+ pub region_begin: ::core::primitive::u32,
+ pub region_end: ::core::primitive::u32,
+ pub ideal_cores_sold: ::core::primitive::u16,
+ pub cores_offered: ::core::primitive::u16,
+ pub first_core: ::core::primitive::u16,
+ pub sellout_price: ::core::option::Option<_0>,
+ pub cores_sold: ::core::primitive::u16,
+ }
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ pub struct ScheduleItem {
+ pub mask: runtime_types::pallet_broker::core_mask::CoreMask,
+ pub assignment:
+ runtime_types::pallet_broker::coretime_interface::CoreAssignment,
+ }
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ pub struct StatusRecord {
+ pub core_count: ::core::primitive::u16,
+ pub private_pool_size: ::core::primitive::u32,
+ pub system_pool_size: ::core::primitive::u32,
+ pub last_committed_timeslice: ::core::primitive::u32,
+ pub last_timeslice: ::core::primitive::u32,
+ }
+ }
+ }
+ pub mod pallet_collator_selection {
+ use super::runtime_types;
+ pub mod pallet {
+ use super::runtime_types;
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."]
+ pub enum Call {
+ #[codec(index = 0)]
+ #[doc = "See [`Pallet::set_invulnerables`]."]
+ set_invulnerables { new: ::std::vec::Vec<::subxt::utils::AccountId32> },
+ #[codec(index = 1)]
+ #[doc = "See [`Pallet::set_desired_candidates`]."]
+ set_desired_candidates { max: ::core::primitive::u32 },
+ #[codec(index = 2)]
+ #[doc = "See [`Pallet::set_candidacy_bond`]."]
+ set_candidacy_bond { bond: ::core::primitive::u128 },
+ #[codec(index = 3)]
+ #[doc = "See [`Pallet::register_as_candidate`]."]
+ register_as_candidate,
+ #[codec(index = 4)]
+ #[doc = "See [`Pallet::leave_intent`]."]
+ leave_intent,
+ #[codec(index = 5)]
+ #[doc = "See [`Pallet::add_invulnerable`]."]
+ add_invulnerable { who: ::subxt::utils::AccountId32 },
+ #[codec(index = 6)]
+ #[doc = "See [`Pallet::remove_invulnerable`]."]
+ remove_invulnerable { who: ::subxt::utils::AccountId32 },
+ #[codec(index = 7)]
+ #[doc = "See [`Pallet::update_bond`]."]
+ update_bond { new_deposit: ::core::primitive::u128 },
+ #[codec(index = 8)]
+ #[doc = "See [`Pallet::take_candidate_slot`]."]
+ take_candidate_slot {
+ deposit: ::core::primitive::u128,
+ target: ::subxt::utils::AccountId32,
+ },
+ }
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ pub struct CandidateInfo<_0, _1> {
+ pub who: _0,
+ pub deposit: _1,
+ }
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ #[doc = "The `Error` enum of this pallet."]
+ pub enum Error {
+ #[codec(index = 0)]
+ #[doc = "The pallet has too many candidates."]
+ TooManyCandidates,
+ #[codec(index = 1)]
+ #[doc = "Leaving would result in too few candidates."]
+ TooFewEligibleCollators,
+ #[codec(index = 2)]
+ #[doc = "Account is already a candidate."]
+ AlreadyCandidate,
+ #[codec(index = 3)]
+ #[doc = "Account is not a candidate."]
+ NotCandidate,
+ #[codec(index = 4)]
+ #[doc = "There are too many Invulnerables."]
+ TooManyInvulnerables,
+ #[codec(index = 5)]
+ #[doc = "Account is already an Invulnerable."]
+ AlreadyInvulnerable,
+ #[codec(index = 6)]
+ #[doc = "Account is not an Invulnerable."]
+ NotInvulnerable,
+ #[codec(index = 7)]
+ #[doc = "Account has no associated validator ID."]
+ NoAssociatedValidatorId,
+ #[codec(index = 8)]
+ #[doc = "Validator ID is not yet registered."]
+ ValidatorNotRegistered,
+ #[codec(index = 9)]
+ #[doc = "Could not insert in the candidate list."]
+ InsertToCandidateListFailed,
+ #[codec(index = 10)]
+ #[doc = "Could not remove from the candidate list."]
+ RemoveFromCandidateListFailed,
+ #[codec(index = 11)]
+ #[doc = "New deposit amount would be below the minimum candidacy bond."]
+ DepositTooLow,
+ #[codec(index = 12)]
+ #[doc = "Could not update the candidate list."]
+ UpdateCandidateListFailed,
+ #[codec(index = 13)]
+ #[doc = "Deposit amount is too low to take the target's slot in the candidate list."]
+ InsufficientBond,
+ #[codec(index = 14)]
+ #[doc = "The target account to be replaced in the candidate list is not a candidate."]
+ TargetIsNotCandidate,
+ #[codec(index = 15)]
+ #[doc = "The updated deposit amount is equal to the amount already reserved."]
+ IdenticalDeposit,
+ #[codec(index = 16)]
+ #[doc = "Cannot lower candidacy bond while occupying a future collator slot in the list."]
+ InvalidUnreserve,
+ }
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ #[doc = "The `Event` enum of this pallet"]
+ pub enum Event {
+ #[codec(index = 0)]
+ #[doc = "New Invulnerables were set."]
+ NewInvulnerables { invulnerables: ::std::vec::Vec<::subxt::utils::AccountId32> },
+ #[codec(index = 1)]
+ #[doc = "A new Invulnerable was added."]
+ InvulnerableAdded { account_id: ::subxt::utils::AccountId32 },
+ #[codec(index = 2)]
+ #[doc = "An Invulnerable was removed."]
+ InvulnerableRemoved { account_id: ::subxt::utils::AccountId32 },
+ #[codec(index = 3)]
+ #[doc = "The number of desired candidates was set."]
+ NewDesiredCandidates { desired_candidates: ::core::primitive::u32 },
+ #[codec(index = 4)]
+ #[doc = "The candidacy bond was set."]
+ NewCandidacyBond { bond_amount: ::core::primitive::u128 },
+ #[codec(index = 5)]
+ #[doc = "A new candidate joined."]
+ CandidateAdded {
+ account_id: ::subxt::utils::AccountId32,
+ deposit: ::core::primitive::u128,
+ },
+ #[codec(index = 6)]
+ #[doc = "Bond of a candidate updated."]
+ CandidateBondUpdated {
+ account_id: ::subxt::utils::AccountId32,
+ deposit: ::core::primitive::u128,
+ },
+ #[codec(index = 7)]
+ #[doc = "A candidate was removed."]
+ CandidateRemoved { account_id: ::subxt::utils::AccountId32 },
+ #[codec(index = 8)]
+ #[doc = "An account was replaced in the candidate list by another one."]
+ CandidateReplaced {
+ old: ::subxt::utils::AccountId32,
+ new: ::subxt::utils::AccountId32,
+ deposit: ::core::primitive::u128,
+ },
+ #[codec(index = 9)]
+ #[doc = "An account was unable to be added to the Invulnerables because they did not have keys"]
+ #[doc = "registered. Other Invulnerables may have been set."]
+ InvalidInvulnerableSkipped { account_id: ::subxt::utils::AccountId32 },
+ }
+ }
+ }
+ pub mod pallet_message_queue {
+ use super::runtime_types;
+ pub mod pallet {
+ use super::runtime_types;
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."]
+ pub enum Call {
+ #[codec(index = 0)]
+ #[doc = "See [`Pallet::reap_page`]."]
+ reap_page {
+ message_origin:
+ runtime_types::cumulus_primitives_core::AggregateMessageOrigin,
+ page_index: ::core::primitive::u32,
+ },
+ #[codec(index = 1)]
+ #[doc = "See [`Pallet::execute_overweight`]."]
+ execute_overweight {
+ message_origin:
+ runtime_types::cumulus_primitives_core::AggregateMessageOrigin,
+ page: ::core::primitive::u32,
+ index: ::core::primitive::u32,
+ weight_limit: runtime_types::sp_weights::weight_v2::Weight,
+ },
+ }
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ #[doc = "The `Error` enum of this pallet."]
+ pub enum Error {
+ #[codec(index = 0)]
+ #[doc = "Page is not reapable because it has items remaining to be processed and is not old"]
+ #[doc = "enough."]
+ NotReapable,
+ #[codec(index = 1)]
+ #[doc = "Page to be reaped does not exist."]
+ NoPage,
+ #[codec(index = 2)]
+ #[doc = "The referenced message could not be found."]
+ NoMessage,
+ #[codec(index = 3)]
+ #[doc = "The message was already processed and cannot be processed again."]
+ AlreadyProcessed,
+ #[codec(index = 4)]
+ #[doc = "The message is queued for future execution."]
+ Queued,
+ #[codec(index = 5)]
+ #[doc = "There is temporarily not enough weight to continue servicing messages."]
+ InsufficientWeight,
+ #[codec(index = 6)]
+ #[doc = "This message is temporarily unprocessable."]
+ #[doc = ""]
+ #[doc = "Such errors are expected, but not guaranteed, to resolve themselves eventually through"]
+ #[doc = "retrying."]
+ TemporarilyUnprocessable,
+ #[codec(index = 7)]
+ #[doc = "The queue is paused and no message can be executed from it."]
+ #[doc = ""]
+ #[doc = "This can change at any time and may resolve in the future by re-trying."]
+ QueuePaused,
+ #[codec(index = 8)]
+ #[doc = "Another call is in progress and needs to finish before this call can happen."]
+ RecursiveDisallowed,
+ }
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ #[doc = "The `Event` enum of this pallet"]
+ pub enum Event {
+ #[codec(index = 0)]
+ #[doc = "Message discarded due to an error in the `MessageProcessor` (usually a format error)."]
+ ProcessingFailed {
+ id: ::subxt::utils::H256,
+ origin: runtime_types::cumulus_primitives_core::AggregateMessageOrigin,
+ error: runtime_types::frame_support::traits::messages::ProcessMessageError,
+ },
+ #[codec(index = 1)]
+ #[doc = "Message is processed."]
+ Processed {
+ id: ::subxt::utils::H256,
+ origin: runtime_types::cumulus_primitives_core::AggregateMessageOrigin,
+ weight_used: runtime_types::sp_weights::weight_v2::Weight,
+ success: ::core::primitive::bool,
+ },
+ #[codec(index = 2)]
+ #[doc = "Message placed in overweight queue."]
+ OverweightEnqueued {
+ id: [::core::primitive::u8; 32usize],
+ origin: runtime_types::cumulus_primitives_core::AggregateMessageOrigin,
+ page_index: ::core::primitive::u32,
+ message_index: ::core::primitive::u32,
+ },
+ #[codec(index = 3)]
+ #[doc = "This page was reaped."]
+ PageReaped {
+ origin: runtime_types::cumulus_primitives_core::AggregateMessageOrigin,
+ index: ::core::primitive::u32,
+ },
+ }
+ }
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ pub struct BookState<_0> {
+ pub begin: ::core::primitive::u32,
+ pub end: ::core::primitive::u32,
+ pub count: ::core::primitive::u32,
+ pub ready_neighbours:
+ ::core::option::Option>,
+ pub message_count: ::core::primitive::u64,
+ pub size: ::core::primitive::u64,
+ }
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ pub struct Neighbours<_0> {
+ pub prev: _0,
+ pub next: _0,
+ }
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ pub struct Page<_0> {
+ pub remaining: _0,
+ pub remaining_size: _0,
+ pub first_index: _0,
+ pub first: _0,
+ pub last: _0,
+ pub heap: runtime_types::bounded_collections::bounded_vec::BoundedVec<
+ ::core::primitive::u8,
+ >,
+ }
+ }
+ pub mod pallet_multisig {
+ use super::runtime_types;
+ pub mod pallet {
+ use super::runtime_types;
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."]
+ pub enum Call {
+ #[codec(index = 0)]
+ #[doc = "See [`Pallet::as_multi_threshold_1`]."]
+ as_multi_threshold_1 {
+ other_signatories: ::std::vec::Vec<::subxt::utils::AccountId32>,
+ call:
+ ::std::boxed::Box,
+ },
+ #[codec(index = 1)]
+ #[doc = "See [`Pallet::as_multi`]."]
+ as_multi {
+ threshold: ::core::primitive::u16,
+ other_signatories: ::std::vec::Vec<::subxt::utils::AccountId32>,
+ maybe_timepoint: ::core::option::Option<
+ runtime_types::pallet_multisig::Timepoint<::core::primitive::u32>,
+ >,
+ call:
+ ::std::boxed::Box,
+ max_weight: runtime_types::sp_weights::weight_v2::Weight,
+ },
+ #[codec(index = 2)]
+ #[doc = "See [`Pallet::approve_as_multi`]."]
+ approve_as_multi {
+ threshold: ::core::primitive::u16,
+ other_signatories: ::std::vec::Vec<::subxt::utils::AccountId32>,
+ maybe_timepoint: ::core::option::Option<
+ runtime_types::pallet_multisig::Timepoint<::core::primitive::u32>,
+ >,
+ call_hash: [::core::primitive::u8; 32usize],
+ max_weight: runtime_types::sp_weights::weight_v2::Weight,
+ },
+ #[codec(index = 3)]
+ #[doc = "See [`Pallet::cancel_as_multi`]."]
+ cancel_as_multi {
+ threshold: ::core::primitive::u16,
+ other_signatories: ::std::vec::Vec<::subxt::utils::AccountId32>,
+ timepoint:
+ runtime_types::pallet_multisig::Timepoint<::core::primitive::u32>,
+ call_hash: [::core::primitive::u8; 32usize],
+ },
+ }
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ #[doc = "The `Error` enum of this pallet."]
+ pub enum Error {
+ #[codec(index = 0)]
+ #[doc = "Threshold must be 2 or greater."]
+ MinimumThreshold,
+ #[codec(index = 1)]
+ #[doc = "Call is already approved by this signatory."]
+ AlreadyApproved,
+ #[codec(index = 2)]
+ #[doc = "Call doesn't need any (more) approvals."]
+ NoApprovalsNeeded,
+ #[codec(index = 3)]
+ #[doc = "There are too few signatories in the list."]
+ TooFewSignatories,
+ #[codec(index = 4)]
+ #[doc = "There are too many signatories in the list."]
+ TooManySignatories,
+ #[codec(index = 5)]
+ #[doc = "The signatories were provided out of order; they should be ordered."]
+ SignatoriesOutOfOrder,
+ #[codec(index = 6)]
+ #[doc = "The sender was contained in the other signatories; it shouldn't be."]
+ SenderInSignatories,
+ #[codec(index = 7)]
+ #[doc = "Multisig operation not found when attempting to cancel."]
+ NotFound,
+ #[codec(index = 8)]
+ #[doc = "Only the account that originally created the multisig is able to cancel it."]
+ NotOwner,
+ #[codec(index = 9)]
+ #[doc = "No timepoint was given, yet the multisig operation is already underway."]
+ NoTimepoint,
+ #[codec(index = 10)]
+ #[doc = "A different timepoint was given to the multisig operation that is underway."]
+ WrongTimepoint,
+ #[codec(index = 11)]
+ #[doc = "A timepoint was given, yet no multisig operation is underway."]
+ UnexpectedTimepoint,
+ #[codec(index = 12)]
+ #[doc = "The maximum weight information provided was too low."]
+ MaxWeightTooLow,
+ #[codec(index = 13)]
+ #[doc = "The data to be stored is already stored."]
+ AlreadyStored,
+ }
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ #[doc = "The `Event` enum of this pallet"]
+ pub enum Event {
+ #[codec(index = 0)]
+ #[doc = "A new multisig operation has begun."]
+ NewMultisig {
+ approving: ::subxt::utils::AccountId32,
+ multisig: ::subxt::utils::AccountId32,
+ call_hash: [::core::primitive::u8; 32usize],
+ },
+ #[codec(index = 1)]
+ #[doc = "A multisig operation has been approved by someone."]
+ MultisigApproval {
+ approving: ::subxt::utils::AccountId32,
+ timepoint:
+ runtime_types::pallet_multisig::Timepoint<::core::primitive::u32>,
+ multisig: ::subxt::utils::AccountId32,
+ call_hash: [::core::primitive::u8; 32usize],
+ },
+ #[codec(index = 2)]
+ #[doc = "A multisig operation has been executed."]
+ MultisigExecuted {
+ approving: ::subxt::utils::AccountId32,
+ timepoint:
+ runtime_types::pallet_multisig::Timepoint<::core::primitive::u32>,
+ multisig: ::subxt::utils::AccountId32,
+ call_hash: [::core::primitive::u8; 32usize],
+ result:
+ ::core::result::Result<(), runtime_types::sp_runtime::DispatchError>,
+ },
+ #[codec(index = 3)]
+ #[doc = "A multisig operation has been cancelled."]
+ MultisigCancelled {
+ cancelling: ::subxt::utils::AccountId32,
+ timepoint:
+ runtime_types::pallet_multisig::Timepoint<::core::primitive::u32>,
+ multisig: ::subxt::utils::AccountId32,
+ call_hash: [::core::primitive::u8; 32usize],
+ },
+ }
+ }
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ pub struct Multisig<_0, _1, _2> {
+ pub when: runtime_types::pallet_multisig::Timepoint<_0>,
+ pub deposit: _1,
+ pub depositor: _2,
+ pub approvals: runtime_types::bounded_collections::bounded_vec::BoundedVec<_2>,
+ }
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ pub struct Timepoint<_0> {
+ pub height: _0,
+ pub index: ::core::primitive::u32,
+ }
+ }
+ pub mod pallet_session {
+ use super::runtime_types;
+ pub mod pallet {
+ use super::runtime_types;
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."]
+ pub enum Call {
+ #[codec(index = 0)]
+ #[doc = "See [`Pallet::set_keys`]."]
+ set_keys {
+ keys: runtime_types::coretime_rococo_runtime::SessionKeys,
+ proof: ::std::vec::Vec<::core::primitive::u8>,
+ },
+ #[codec(index = 1)]
+ #[doc = "See [`Pallet::purge_keys`]."]
+ purge_keys,
+ }
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ #[doc = "Error for the session pallet."]
+ pub enum Error {
+ #[codec(index = 0)]
+ #[doc = "Invalid ownership proof."]
+ InvalidProof,
+ #[codec(index = 1)]
+ #[doc = "No associated validator ID for account."]
+ NoAssociatedValidatorId,
+ #[codec(index = 2)]
+ #[doc = "Registered duplicate key."]
+ DuplicatedKey,
+ #[codec(index = 3)]
+ #[doc = "No keys are associated with this account."]
+ NoKeys,
+ #[codec(index = 4)]
+ #[doc = "Key setting account is not live, so it's impossible to associate keys."]
+ NoAccount,
+ }
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ #[doc = "The `Event` enum of this pallet"]
+ pub enum Event {
+ #[codec(index = 0)]
+ #[doc = "New session has happened. Note that the argument is the session index, not the"]
+ #[doc = "block number as the type might suggest."]
+ NewSession { session_index: ::core::primitive::u32 },
+ }
+ }
+ }
+ pub mod pallet_sudo {
+ use super::runtime_types;
+ pub mod pallet {
+ use super::runtime_types;
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."]
+ pub enum Call {
+ #[codec(index = 0)]
+ #[doc = "See [`Pallet::sudo`]."]
+ sudo {
+ call:
+ ::std::boxed::Box,
+ },
+ #[codec(index = 1)]
+ #[doc = "See [`Pallet::sudo_unchecked_weight`]."]
+ sudo_unchecked_weight {
+ call:
+ ::std::boxed::Box,
+ weight: runtime_types::sp_weights::weight_v2::Weight,
+ },
+ #[codec(index = 2)]
+ #[doc = "See [`Pallet::set_key`]."]
+ set_key { new: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()> },
+ #[codec(index = 3)]
+ #[doc = "See [`Pallet::sudo_as`]."]
+ sudo_as {
+ who: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>,
+ call:
+ ::std::boxed::Box,
+ },
+ #[codec(index = 4)]
+ #[doc = "See [`Pallet::remove_key`]."]
+ remove_key,
+ }
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ #[doc = "Error for the Sudo pallet."]
+ pub enum Error {
+ #[codec(index = 0)]
+ #[doc = "Sender must be the Sudo account."]
+ RequireSudo,
+ }
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ #[doc = "The `Event` enum of this pallet"]
+ pub enum Event {
+ #[codec(index = 0)]
+ #[doc = "A sudo call just took place."]
+ Sudid {
+ sudo_result:
+ ::core::result::Result<(), runtime_types::sp_runtime::DispatchError>,
+ },
+ #[codec(index = 1)]
+ #[doc = "The sudo key has been updated."]
+ KeyChanged {
+ old: ::core::option::Option<::subxt::utils::AccountId32>,
+ new: ::subxt::utils::AccountId32,
+ },
+ #[codec(index = 2)]
+ #[doc = "The key was permanently removed."]
+ KeyRemoved,
+ #[codec(index = 3)]
+ #[doc = "A [sudo_as](Pallet::sudo_as) call just took place."]
+ SudoAsDone {
+ sudo_result:
+ ::core::result::Result<(), runtime_types::sp_runtime::DispatchError>,
+ },
+ }
+ }
+ }
+ pub mod pallet_timestamp {
+ use super::runtime_types;
+ pub mod pallet {
+ use super::runtime_types;
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."]
+ pub enum Call {
+ #[codec(index = 0)]
+ #[doc = "See [`Pallet::set`]."]
+ set {
+ #[codec(compact)]
+ now: ::core::primitive::u64,
+ },
+ }
+ }
+ }
+ pub mod pallet_transaction_payment {
+ use super::runtime_types;
+ pub mod pallet {
+ use super::runtime_types;
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ #[doc = "The `Event` enum of this pallet"]
+ pub enum Event {
+ #[codec(index = 0)]
+ #[doc = "A transaction fee `actual_fee`, of which `tip` was added to the minimum inclusion fee,"]
+ #[doc = "has been paid by `who`."]
+ TransactionFeePaid {
+ who: ::subxt::utils::AccountId32,
+ actual_fee: ::core::primitive::u128,
+ tip: ::core::primitive::u128,
+ },
+ }
+ }
+ pub mod types {
+ use super::runtime_types;
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ pub struct FeeDetails<_0> {
+ pub inclusion_fee: ::core::option::Option<
+ runtime_types::pallet_transaction_payment::types::InclusionFee<_0>,
+ >,
+ pub tip: _0,
+ }
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ pub struct InclusionFee<_0> {
+ pub base_fee: _0,
+ pub len_fee: _0,
+ pub adjusted_weight_fee: _0,
+ }
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ pub struct RuntimeDispatchInfo<_0, _1> {
+ pub weight: _1,
+ pub class: runtime_types::frame_support::dispatch::DispatchClass,
+ pub partial_fee: _0,
+ }
+ }
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ pub struct ChargeTransactionPayment(#[codec(compact)] pub ::core::primitive::u128);
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ pub enum Releases {
+ #[codec(index = 0)]
+ V1Ancient,
+ #[codec(index = 1)]
+ V2,
+ }
+ }
+ pub mod pallet_utility {
+ use super::runtime_types;
+ pub mod pallet {
+ use super::runtime_types;
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."]
+ pub enum Call {
+ #[codec(index = 0)]
+ #[doc = "See [`Pallet::batch`]."]
+ batch {
+ calls: ::std::vec::Vec,
+ },
+ #[codec(index = 1)]
+ #[doc = "See [`Pallet::as_derivative`]."]
+ as_derivative {
+ index: ::core::primitive::u16,
+ call:
+ ::std::boxed::Box,
+ },
+ #[codec(index = 2)]
+ #[doc = "See [`Pallet::batch_all`]."]
+ batch_all {
+ calls: ::std::vec::Vec,
+ },
+ #[codec(index = 3)]
+ #[doc = "See [`Pallet::dispatch_as`]."]
+ dispatch_as {
+ as_origin:
+ ::std::boxed::Box,
+ call:
+ ::std::boxed::Box,
+ },
+ #[codec(index = 4)]
+ #[doc = "See [`Pallet::force_batch`]."]
+ force_batch {
+ calls: ::std::vec::Vec,
+ },
+ #[codec(index = 5)]
+ #[doc = "See [`Pallet::with_weight`]."]
+ with_weight {
+ call:
+ ::std::boxed::Box,
+ weight: runtime_types::sp_weights::weight_v2::Weight,
+ },
+ }
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ #[doc = "The `Error` enum of this pallet."]
+ pub enum Error {
+ #[codec(index = 0)]
+ #[doc = "Too many calls batched."]
+ TooManyCalls,
+ }
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ #[doc = "The `Event` enum of this pallet"]
+ pub enum Event {
+ #[codec(index = 0)]
+ #[doc = "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>,
+ },
+ }
+ }
+ }
+ pub mod pallet_xcm {
+ use super::runtime_types;
+ pub mod pallet {
+ use super::runtime_types;
+ #[derive(
+ :: subxt :: ext :: codec :: Decode,
+ :: subxt :: ext :: codec :: Encode,
+ :: subxt :: ext :: scale_decode :: DecodeAsType,
+ :: subxt :: ext :: scale_encode :: EncodeAsType,
+ Debug,
+ )]
+ # [codec (crate = :: subxt :: ext :: codec)]
+ #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
+ #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
+ #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."]
+ pub enum Call {
+ #[codec(index = 0)]
+ #[doc = "See [`Pallet::send`]."]
+ send {
+ dest: ::std::boxed::Box,
+ message: ::std::boxed::Box,
+ },
+ #[codec(index = 1)]
+ #[doc = "See [`Pallet::teleport_assets`]."]
+ teleport_assets {
+ dest: ::std::boxed::Box,
+ beneficiary: ::std::boxed::Box,
+ assets: ::std::boxed::Box,
+ fee_asset_item: ::core::primitive::u32,
+ },
+ #[codec(index = 2)]
+ #[doc = "See [`Pallet::reserve_transfer_assets`]."]
+ reserve_transfer_assets {
+ dest: ::std::boxed::Box,
+ beneficiary: ::std::boxed::Box,
+ assets: ::std::boxed::Box,
+ fee_asset_item: ::core::primitive::u32,
+ },
+ #[codec(index = 3)]
+ #[doc = "See [`Pallet::execute`]."]
+ execute {
+ message: ::std::boxed::Box