Newer
Older
// Copyright 2019-2023 Parity Technologies (UK) Ltd.
// This file is part of Parity Bridges Common.
// Parity Bridges Common 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.
// Parity Bridges Common 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 Parity Bridges Common. If not, see <http://www.gnu.org/licenses/>.
//! Autogenerated runtime API
//! THIS FILE WAS AUTOGENERATED USING parity-bridges-common::runtime-codegen
//! EXECUTED COMMAND: target/debug/runtime-codegen --from-wasm-file
//! /home/svyatonik/dev/polkadot-sdk/target/debug/wbuild/bridge-hub-rococo-runtime/
//! bridge_hub_rococo_runtime.wasm
#[allow(dead_code, unused_imports, non_camel_case_types)]
#[allow(clippy::all)]
#[allow(rustdoc::broken_intra_doc_links)]
#[allow(unused_imports)]
mod root_mod {
pub use super::*;
}
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(:: codec :: Decode, :: codec :: Encode, Clone, Debug, PartialEq)]
pub struct BoundedBTreeSet<_0>(pub ::std::vec::Vec<_0>);
}
pub mod bounded_vec {
use super::runtime_types;
#[derive(:: codec :: Decode, :: codec :: Encode, Clone, Debug, PartialEq)]
pub struct BoundedVec<_0>(pub ::std::vec::Vec<_0>);
}
pub mod weak_bounded_vec {
use super::runtime_types;
#[derive(:: codec :: Decode, :: codec :: Encode, Clone, Debug, PartialEq)]
pub struct WeakBoundedVec<_0>(pub ::std::vec::Vec<_0>);
}
}
pub mod bp_header_chain {
use super::runtime_types;
#[derive(:: codec :: Decode, :: codec :: Encode, Clone, Debug, PartialEq)]
pub struct AuthoritySet {
pub authorities: ::std::vec::Vec<(
runtime_types::sp_consensus_grandpa::app::Public,
::core::primitive::u64,
)>,
pub set_id: ::core::primitive::u64,
}
#[derive(:: codec :: Decode, :: codec :: Encode, Clone, Debug, PartialEq)]
pub enum HeaderChainError {
#[codec(index = 0)]
UnknownHeader,
#[codec(index = 1)]
StorageProof(runtime_types::bp_runtime::storage_proof::Error),
}
#[derive(:: codec :: Decode, :: codec :: Encode, Clone, Debug, PartialEq)]
pub struct HeaderFinalityInfo<_0, _1> {
pub finality_proof: _0,
pub new_verification_context: ::core::option::Option<_1>,
}
#[derive(:: codec :: Decode, :: codec :: Encode, Clone, Debug, PartialEq)]
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
pub struct StoredHeaderData<_0, _1> {
pub number: _0,
pub state_root: _1,
}
}
pub mod bp_messages {
use super::runtime_types;
#[derive(:: codec :: Decode, :: codec :: Encode, Clone, Debug, PartialEq)]
pub struct DeliveredMessages {
pub begin: ::core::primitive::u64,
pub end: ::core::primitive::u64,
}
#[derive(:: codec :: Decode, :: codec :: Encode, Clone, Debug, PartialEq)]
pub struct InboundLaneData<_0> {
pub relayers: ::std::vec::Vec<runtime_types::bp_messages::UnrewardedRelayer<_0>>,
pub last_confirmed_nonce: ::core::primitive::u64,
}
#[derive(:: codec :: Decode, :: codec :: Encode, Clone, Debug, PartialEq)]
pub struct LaneId(pub [::core::primitive::u8; 4usize]);
#[derive(:: codec :: Decode, :: codec :: Encode, Clone, Debug, PartialEq)]
pub struct MessageKey {
pub lane_id: runtime_types::bp_messages::LaneId,
pub nonce: ::core::primitive::u64,
}
#[derive(:: codec :: Decode, :: codec :: Encode, Clone, Debug, PartialEq)]
pub enum MessagesOperatingMode {
#[codec(index = 0)]
Basic(runtime_types::bp_runtime::BasicOperatingMode),
#[codec(index = 1)]
RejectingOutboundMessages,
}
#[derive(:: codec :: Decode, :: codec :: Encode, Clone, Debug, PartialEq)]
pub struct OutboundLaneData {
pub oldest_unpruned_nonce: ::core::primitive::u64,
pub latest_received_nonce: ::core::primitive::u64,
pub latest_generated_nonce: ::core::primitive::u64,
}
#[derive(:: codec :: Decode, :: codec :: Encode, Clone, Debug, PartialEq)]
pub enum ReceivalResult<_0> {
#[codec(index = 0)]
Dispatched(runtime_types::bp_runtime::messages::MessageDispatchResult<_0>),
#[codec(index = 1)]
InvalidNonce,
#[codec(index = 2)]
TooManyUnrewardedRelayers,
#[codec(index = 3)]
TooManyUnconfirmedMessages,
}
#[derive(:: codec :: Decode, :: codec :: Encode, Clone, Debug, PartialEq)]
pub struct ReceivedMessages<_0> {
pub lane: runtime_types::bp_messages::LaneId,
pub receive_results: ::std::vec::Vec<(
::core::primitive::u64,
runtime_types::bp_messages::ReceivalResult<_0>,
)>,
}
#[derive(:: codec :: Decode, :: codec :: Encode, Clone, Debug, PartialEq)]
pub struct UnrewardedRelayer<_0> {
pub relayer: _0,
pub messages: runtime_types::bp_messages::DeliveredMessages,
}
#[derive(:: codec :: Decode, :: codec :: Encode, Clone, Debug, PartialEq)]
pub enum VerificationError {
#[codec(index = 0)]
EmptyMessageProof,
#[codec(index = 1)]
HeaderChain(runtime_types::bp_header_chain::HeaderChainError),
#[codec(index = 2)]
InboundLaneStorage(runtime_types::bp_runtime::storage_proof::Error),
#[codec(index = 3)]
InvalidMessageWeight,
#[codec(index = 4)]
MessagesCountMismatch,
#[codec(index = 5)]
MessageStorage(runtime_types::bp_runtime::storage_proof::Error),
#[codec(index = 6)]
MessageTooLarge,
#[codec(index = 7)]
OutboundLaneStorage(runtime_types::bp_runtime::storage_proof::Error),
#[codec(index = 8)]
StorageProof(runtime_types::bp_runtime::storage_proof::Error),
#[codec(index = 9)]
Other,
}
}
pub mod bp_parachains {
use super::runtime_types;
#[derive(:: codec :: Decode, :: codec :: Encode, Clone, Debug, PartialEq)]
pub struct BestParaHeadHash {
pub at_relay_block_number: ::core::primitive::u32,
pub head_hash: ::subxt::utils::H256,
}
#[derive(:: codec :: Decode, :: codec :: Encode, Clone, Debug, PartialEq)]
pub struct ParaInfo {
pub best_head_hash: runtime_types::bp_parachains::BestParaHeadHash,
pub next_imported_hash_position: ::core::primitive::u32,
}
#[derive(:: codec :: Decode, :: codec :: Encode, Clone, Debug, PartialEq)]
pub struct ParaStoredHeaderData(pub ::std::vec::Vec<::core::primitive::u8>);
}
pub mod bp_relayers {
use super::runtime_types;
pub mod registration {
use super::runtime_types;
#[derive(:: codec :: Decode, :: codec :: Encode, Clone, Debug, PartialEq)]
pub struct Registration<_0, _1> {
pub valid_till: _0,
pub stake: _1,
}
}
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
#[derive(:: codec :: Decode, :: codec :: Encode, Clone, Debug, PartialEq)]
pub enum RewardsAccountOwner {
#[codec(index = 0)]
ThisChain,
#[codec(index = 1)]
BridgedChain,
}
#[derive(:: codec :: Decode, :: codec :: Encode, Clone, Debug, PartialEq)]
pub struct RewardsAccountParams {
pub lane_id: runtime_types::bp_messages::LaneId,
pub bridged_chain_id: [::core::primitive::u8; 4usize],
pub owner: runtime_types::bp_relayers::RewardsAccountOwner,
}
}
pub mod bp_runtime {
use super::runtime_types;
pub mod messages {
use super::runtime_types;
#[derive(:: codec :: Decode, :: codec :: Encode, Clone, Debug, PartialEq)]
pub struct MessageDispatchResult<_0> {
pub unspent_weight: ::sp_weights::Weight,
pub dispatch_level_result: _0,
}
}
pub mod storage_proof {
use super::runtime_types;
#[derive(:: codec :: Decode, :: codec :: Encode, Clone, Debug, PartialEq)]
pub enum Error {
#[codec(index = 0)]
DuplicateNodesInProof,
#[codec(index = 1)]
UnusedNodesInTheProof,
#[codec(index = 2)]
StorageRootMismatch,
#[codec(index = 3)]
StorageValueUnavailable,
#[codec(index = 4)]
StorageValueEmpty,
#[codec(index = 5)]
StorageValueDecodeFailed(runtime_types::bp_runtime::StrippableError),
}
}
#[derive(:: codec :: Decode, :: codec :: Encode, Clone, Debug, PartialEq)]
pub enum BasicOperatingMode {
#[codec(index = 0)]
Normal,
#[codec(index = 1)]
Halted,
}
#[derive(:: codec :: Decode, :: codec :: Encode, Clone, Debug, PartialEq)]
pub struct HeaderId<_0, _1>(pub _1, pub _0);
#[derive(:: codec :: Decode, :: codec :: Encode, Clone, Debug, PartialEq)]
pub enum OwnedBridgeModuleError {
#[codec(index = 0)]
Halted,
}
#[derive(:: codec :: Decode, :: codec :: Encode, Clone, Debug, PartialEq)]
pub struct StrippableError;
}
pub mod bridge_hub_rococo_runtime {
use super::runtime_types;
#[derive(:: codec :: Decode, :: codec :: Encode, Clone, Debug, PartialEq)]
pub struct BridgeRejectObsoleteHeadersAndMessages;
#[derive(:: codec :: Decode, :: codec :: Encode, Clone, Debug, PartialEq)]
pub enum OriginCaller {
#[codec(index = 0)]
system(
runtime_types::frame_support::dispatch::RawOrigin<
::sp_core::crypto::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(:: codec :: Decode, :: codec :: Encode, Clone, Debug, PartialEq)]
pub struct Runtime;
#[derive(:: codec :: Decode, :: codec :: Encode, Clone, Debug, PartialEq)]
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 = 2)]
Timestamp(runtime_types::pallet_timestamp::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 = 40)]
Utility(runtime_types::pallet_utility::pallet::Call),
#[codec(index = 36)]
Multisig(runtime_types::pallet_multisig::pallet::Call),
#[codec(index = 48)]
BridgeWestendGrandpa(runtime_types::pallet_bridge_grandpa::pallet::Call),
#[codec(index = 60)]
BridgePolkadotBulletinGrandpa(runtime_types::pallet_bridge_grandpa::pallet::Call2),
#[codec(index = 49)]
BridgeWestendParachains(runtime_types::pallet_bridge_parachains::pallet::Call),
#[codec(index = 51)]
BridgeWestendMessages(runtime_types::pallet_bridge_messages::pallet::Call),
#[codec(index = 61)]
BridgePolkadotBulletinMessages(
runtime_types::pallet_bridge_messages::pallet::Call2,
),
#[codec(index = 47)]
BridgeRelayers(runtime_types::pallet_bridge_relayers::pallet::Call),
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
#[codec(index = 250)]
MessageQueue(runtime_types::pallet_message_queue::pallet::Call),
}
#[derive(:: codec :: Decode, :: codec :: Encode, Clone, Debug, PartialEq)]
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 = 40)]
Utility(runtime_types::pallet_utility::pallet::Error),
#[codec(index = 36)]
Multisig(runtime_types::pallet_multisig::pallet::Error),
#[codec(index = 48)]
BridgeWestendGrandpa(runtime_types::pallet_bridge_grandpa::pallet::Error),
#[codec(index = 52)]
BridgePolkadotBulletinGrandpa(runtime_types::pallet_bridge_grandpa::pallet::Error2),
#[codec(index = 49)]
BridgeWestendParachains(runtime_types::pallet_bridge_parachains::pallet::Error),
#[codec(index = 51)]
BridgeWestendMessages(runtime_types::pallet_bridge_messages::pallet::Error),
#[codec(index = 53)]
BridgePolkadotBulletinMessages(
runtime_types::pallet_bridge_messages::pallet::Error2,
),
#[codec(index = 47)]
BridgeRelayers(runtime_types::pallet_bridge_relayers::pallet::Error),
#[codec(index = 250)]
MessageQueue(runtime_types::pallet_message_queue::pallet::Error),
}
#[derive(:: codec :: Decode, :: codec :: Encode, Clone, Debug, PartialEq)]
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 = 40)]
Utility(runtime_types::pallet_utility::pallet::Event),
#[codec(index = 36)]
Multisig(runtime_types::pallet_multisig::pallet::Event),
#[codec(index = 48)]
BridgeWestendGrandpa(runtime_types::pallet_bridge_grandpa::pallet::Event),
#[codec(index = 52)]
BridgePolkadotBulletinGrandpa(runtime_types::pallet_bridge_grandpa::pallet::Event2),
#[codec(index = 49)]
BridgeWestendParachains(runtime_types::pallet_bridge_parachains::pallet::Event),
#[codec(index = 51)]
BridgeWestendMessages(runtime_types::pallet_bridge_messages::pallet::Event),
#[codec(index = 53)]
BridgePolkadotBulletinMessages(
runtime_types::pallet_bridge_messages::pallet::Event2,
),
#[codec(index = 47)]
BridgeRelayers(runtime_types::pallet_bridge_relayers::pallet::Event),
#[codec(index = 250)]
MessageQueue(runtime_types::pallet_message_queue::pallet::Event),
}
#[derive(:: codec :: Decode, :: codec :: Encode, Clone, Debug, PartialEq)]
pub enum RuntimeHoldReason {}
#[derive(:: codec :: Decode, :: codec :: Encode, Clone, Debug, PartialEq)]
pub struct SessionKeys {
pub aura: runtime_types::sp_consensus_aura::sr25519::app_sr25519::Public,
}
}
pub mod bridge_runtime_common {
use super::runtime_types;
pub mod messages_xcm_extension {
use super::runtime_types;
#[derive(:: codec :: Decode, :: codec :: Encode, Clone, Debug, PartialEq)]
pub enum XcmBlobMessageDispatchResult {
#[codec(index = 0)]
InvalidPayload,
#[codec(index = 1)]
Dispatched,
#[codec(index = 2)]
NotDispatched,
}
}
pub mod refund_relayer_extension {
use super::runtime_types;
#[derive(:: codec :: Decode, :: codec :: Encode, Clone, Debug, PartialEq)]
pub struct RefundBridgedGrandpaMessages;
#[derive(:: codec :: Decode, :: codec :: Encode, Clone, Debug, PartialEq)]
pub struct RefundBridgedParachainMessages;
#[derive(:: codec :: Decode, :: codec :: Encode, Clone, Debug, PartialEq)]
pub struct RefundSignedExtensionAdapter<_0>(pub _0);
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
}
}
pub mod cumulus_pallet_parachain_system {
use super::runtime_types;
pub mod pallet {
use super::runtime_types;
#[derive(:: codec :: Decode, :: codec :: Encode, Clone, Debug, PartialEq)]
pub enum Call {
# [codec (index = 0)] set_validation_data { data : runtime_types :: cumulus_primitives_parachain_inherent :: ParachainInherentData , } , # [codec (index = 1)] sudo_send_upward_message { message : :: std :: vec :: Vec < :: core :: primitive :: u8 > , } , # [codec (index = 2)] authorize_upgrade { code_hash : :: subxt :: utils :: H256 , check_version : :: core :: primitive :: bool , } , # [codec (index = 3)] enact_authorized_upgrade { code : :: std :: vec :: Vec < :: core :: primitive :: u8 > , } , }
#[derive(:: codec :: Decode, :: codec :: Encode, Clone, Debug, PartialEq)]
pub enum Error {
#[codec(index = 0)]
OverlappingUpgrades,
#[codec(index = 1)]
ProhibitedByPolkadot,
#[codec(index = 2)]
TooBig,
#[codec(index = 3)]
ValidationDataNotAvailable,
#[codec(index = 4)]
HostConfigurationNotAvailable,
#[codec(index = 5)]
NotScheduled,
#[codec(index = 6)]
NothingAuthorized,
#[codec(index = 7)]
Unauthorized,
}
#[derive(:: codec :: Decode, :: codec :: Encode, Clone, Debug, PartialEq)]
pub enum Event {
#[codec(index = 0)]
ValidationFunctionStored,
#[codec(index = 1)]
ValidationFunctionApplied { relay_chain_block_num: ::core::primitive::u32 },
#[codec(index = 2)]
ValidationFunctionDiscarded,
#[codec(index = 3)]
UpgradeAuthorized { code_hash: ::subxt::utils::H256 },
#[codec(index = 4)]
DownwardMessagesReceived { count: ::core::primitive::u32 },
#[codec(index = 5)]
DownwardMessagesProcessed {
weight_used: ::sp_weights::Weight,
dmq_head: ::subxt::utils::H256,
},
#[codec(index = 6)]
UpwardMessageSent {
message_hash: ::core::option::Option<[::core::primitive::u8; 32usize]>,
},
}
}
pub mod relay_state_snapshot {
use super::runtime_types;
#[derive(:: codec :: Decode, :: codec :: Encode, Clone, Debug, PartialEq)]
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(:: codec :: Decode, :: codec :: Encode, Clone, Debug, PartialEq)]
pub struct RelayDispatchQueueRemainingCapacity {
pub remaining_count: ::core::primitive::u32,
pub remaining_size: ::core::primitive::u32,
pub mod unincluded_segment {
use super::runtime_types;
#[derive(:: codec :: Decode, :: codec :: Encode, Clone, Debug, PartialEq)]
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(:: codec :: Decode, :: codec :: Encode, Clone, Debug, PartialEq)]
pub struct HrmpChannelUpdate {
pub msg_count: ::core::primitive::u32,
pub total_bytes: ::core::primitive::u32,
}
#[derive(:: codec :: Decode, :: codec :: Encode, Clone, Debug, PartialEq)]
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(:: codec :: Decode, :: codec :: Encode, Clone, Debug, PartialEq)]
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 > , }
}
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
#[derive(:: codec :: Decode, :: codec :: Encode, Clone, Debug, PartialEq)]
pub struct CodeUpgradeAuthorization {
pub code_hash: ::subxt::utils::H256,
pub check_version: ::core::primitive::bool,
}
}
pub mod cumulus_pallet_xcm {
use super::runtime_types;
pub mod pallet {
use super::runtime_types;
#[derive(:: codec :: Decode, :: codec :: Encode, Clone, Debug, PartialEq)]
pub enum Event {
#[codec(index = 0)]
InvalidFormat([::core::primitive::u8; 32usize]),
#[codec(index = 1)]
UnsupportedVersion([::core::primitive::u8; 32usize]),
#[codec(index = 2)]
ExecutedDownward(
[::core::primitive::u8; 32usize],
runtime_types::xcm::v3::traits::Outcome,
),
}
#[derive(:: codec :: Decode, :: codec :: Encode, Clone, Debug, PartialEq)]
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(:: codec :: Decode, :: codec :: Encode, Clone, Debug, PartialEq)]
pub enum Call {
#[codec(index = 1)]
suspend_xcm_execution,
#[codec(index = 2)]
resume_xcm_execution,
#[codec(index = 3)]
update_suspend_threshold { new: ::core::primitive::u32 },
#[codec(index = 4)]
update_drop_threshold { new: ::core::primitive::u32 },
#[codec(index = 5)]
update_resume_threshold { new: ::core::primitive::u32 },
}
#[derive(:: codec :: Decode, :: codec :: Encode, Clone, Debug, PartialEq)]
pub enum Error {
#[codec(index = 0)]
AlreadySuspended,
}
#[derive(:: codec :: Decode, :: codec :: Encode, Clone, Debug, PartialEq)]
pub enum Event {
#[codec(index = 0)]
XcmpMessageSent { message_hash: [::core::primitive::u8; 32usize] },
}
}
#[derive(:: codec :: Decode, :: codec :: Encode, Clone, Debug, PartialEq)]
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(:: codec :: Decode, :: codec :: Encode, Clone, Debug, PartialEq)]
pub enum OutboundState {
#[codec(index = 0)]
Ok,
#[codec(index = 1)]
Suspended,
}
#[derive(:: codec :: Decode, :: codec :: Encode, Clone, Debug, PartialEq)]
pub struct QueueConfigData {
pub suspend_threshold: ::core::primitive::u32,
pub drop_threshold: ::core::primitive::u32,
pub resume_threshold: ::core::primitive::u32,
pub threshold_weight: ::sp_weights::Weight,
pub weight_restrict_decay: ::sp_weights::Weight,
pub xcmp_max_individual_weight: ::sp_weights::Weight,
}
}
pub mod cumulus_primitives_core {
use super::runtime_types;
#[derive(:: codec :: Decode, :: codec :: Encode, Clone, Debug, PartialEq)]
pub enum AggregateMessageOrigin {
#[codec(index = 0)]
Here,
#[codec(index = 1)]
Parent,
#[codec(index = 2)]
Sibling(runtime_types::polkadot_parachain_primitives::primitives::Id),
}
}
pub mod cumulus_primitives_parachain_inherent {
use super::runtime_types;
#[derive(:: codec :: Decode, :: codec :: Encode, Clone, Debug, PartialEq)]
pub struct MessageQueueChain(pub ::subxt::utils::H256);
#[derive(:: codec :: Decode, :: codec :: Encode, Clone, Debug, PartialEq)]
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,
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
::std::vec::Vec<
runtime_types::polkadot_core_primitives::InboundHrmpMessage<
::core::primitive::u32,
>,
>,
>,
}
}
pub mod finality_grandpa {
use super::runtime_types;
#[derive(:: codec :: Decode, :: codec :: Encode, Clone, Debug, PartialEq)]
pub struct Commit<_0, _1, _2, _3> {
pub target_hash: _0,
pub target_number: _1,
pub precommits: ::std::vec::Vec<
runtime_types::finality_grandpa::SignedPrecommit<_0, _1, _2, _3>,
>,
}
#[derive(:: codec :: Decode, :: codec :: Encode, Clone, Debug, PartialEq)]
pub struct Precommit<_0, _1> {
pub target_hash: _0,
pub target_number: _1,
}
#[derive(:: codec :: Decode, :: codec :: Encode, Clone, Debug, PartialEq)]
pub struct SignedPrecommit<_0, _1, _2, _3> {
pub precommit: runtime_types::finality_grandpa::Precommit<_0, _1>,
pub signature: _2,
pub id: _3,
}
}
pub mod frame_support {
use super::runtime_types;
pub mod dispatch {
use super::runtime_types;
#[derive(:: codec :: Decode, :: codec :: Encode, Clone, Debug, PartialEq)]
pub enum DispatchClass {
#[codec(index = 0)]
Normal,
#[codec(index = 1)]
Operational,
#[codec(index = 2)]
Mandatory,
}
#[derive(:: codec :: Decode, :: codec :: Encode, Clone, Debug, PartialEq)]
pub struct DispatchInfo {
pub weight: ::sp_weights::Weight,
pub class: runtime_types::frame_support::dispatch::DispatchClass,
pub pays_fee: runtime_types::frame_support::dispatch::Pays,
}
#[derive(:: codec :: Decode, :: codec :: Encode, Clone, Debug, PartialEq)]
pub enum Pays {
#[codec(index = 0)]
Yes,
#[codec(index = 1)]
No,
}
#[derive(:: codec :: Decode, :: codec :: Encode, Clone, Debug, PartialEq)]
pub struct PerDispatchClass<_0> {
pub normal: _0,
pub operational: _0,
pub mandatory: _0,
}
#[derive(:: codec :: Decode, :: codec :: Encode, Clone, Debug, PartialEq)]
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(:: codec :: Decode, :: codec :: Encode, Clone, Debug, PartialEq)]
pub enum ProcessMessageError {
#[codec(index = 0)]
BadFormat,
#[codec(index = 1)]
Corrupt,
#[codec(index = 2)]
Unsupported,
#[codec(index = 3)]
Overweight(::sp_weights::Weight),
#[codec(index = 4)]
Yield,
}
}
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
pub mod tokens {
use super::runtime_types;
pub mod misc {
use super::runtime_types;
#[derive(
:: codec :: Decode, :: codec :: Encode, Clone, Debug, PartialEq,
)]
pub enum BalanceStatus {
#[codec(index = 0)]
Free,
#[codec(index = 1)]
Reserved,
}
}
}
}
}
pub mod frame_system {
use super::runtime_types;
pub mod extensions {
use super::runtime_types;
pub mod check_genesis {
use super::runtime_types;
#[derive(:: codec :: Decode, :: codec :: Encode, Clone, Debug, PartialEq)]
pub struct CheckGenesis;
}
pub mod check_mortality {
use super::runtime_types;
#[derive(:: codec :: Decode, :: codec :: Encode, Clone, Debug, PartialEq)]
pub struct CheckMortality(pub ::sp_runtime::generic::Era);
}
pub mod check_non_zero_sender {
use super::runtime_types;
#[derive(:: codec :: Decode, :: codec :: Encode, Clone, Debug, PartialEq)]
pub struct CheckNonZeroSender;
}
pub mod check_nonce {
use super::runtime_types;
#[derive(:: codec :: Decode, :: codec :: Encode, Clone, Debug, PartialEq)]
pub struct CheckNonce(#[codec(compact)] pub ::core::primitive::u32);
}
pub mod check_spec_version {
use super::runtime_types;
#[derive(:: codec :: Decode, :: codec :: Encode, Clone, Debug, PartialEq)]
pub struct CheckSpecVersion;
}
pub mod check_tx_version {
use super::runtime_types;
#[derive(:: codec :: Decode, :: codec :: Encode, Clone, Debug, PartialEq)]
pub struct CheckTxVersion;
}
pub mod check_weight {
use super::runtime_types;
#[derive(:: codec :: Decode, :: codec :: Encode, Clone, Debug, PartialEq)]
pub struct CheckWeight;
}
}
pub mod limits {
use super::runtime_types;
#[derive(:: codec :: Decode, :: codec :: Encode, Clone, Debug, PartialEq)]
pub struct BlockLength {
pub max: runtime_types::frame_support::dispatch::PerDispatchClass<
::core::primitive::u32,
>,
}
#[derive(:: codec :: Decode, :: codec :: Encode, Clone, Debug, PartialEq)]
pub struct BlockWeights {
pub base_block: ::sp_weights::Weight,
pub max_block: ::sp_weights::Weight,
pub per_class: runtime_types::frame_support::dispatch::PerDispatchClass<
runtime_types::frame_system::limits::WeightsPerClass,
>,
}
#[derive(:: codec :: Decode, :: codec :: Encode, Clone, Debug, PartialEq)]
pub struct WeightsPerClass {
pub base_extrinsic: ::sp_weights::Weight,
pub max_extrinsic: ::core::option::Option<::sp_weights::Weight>,
pub max_total: ::core::option::Option<::sp_weights::Weight>,
pub reserved: ::core::option::Option<::sp_weights::Weight>,
}
}
pub mod pallet {
use super::runtime_types;
#[derive(:: codec :: Decode, :: codec :: Encode, Clone, Debug, PartialEq)]
pub enum Call {
#[codec(index = 0)]
remark { remark: ::std::vec::Vec<::core::primitive::u8> },
#[codec(index = 1)]
set_heap_pages { pages: ::core::primitive::u64 },
#[codec(index = 2)]
set_code { code: ::std::vec::Vec<::core::primitive::u8> },
#[codec(index = 3)]
set_code_without_checks { code: ::std::vec::Vec<::core::primitive::u8> },
#[codec(index = 4)]
set_storage {
items: ::std::vec::Vec<(
::std::vec::Vec<::core::primitive::u8>,
::std::vec::Vec<::core::primitive::u8>,
)>,
},
#[codec(index = 5)]
kill_storage { keys: ::std::vec::Vec<::std::vec::Vec<::core::primitive::u8>> },
#[codec(index = 6)]
kill_prefix {
prefix: ::std::vec::Vec<::core::primitive::u8>,
subkeys: ::core::primitive::u32,
},
#[codec(index = 7)]
remark_with_event { remark: ::std::vec::Vec<::core::primitive::u8> },
}
#[derive(:: codec :: Decode, :: codec :: Encode, Clone, Debug, PartialEq)]
pub enum Error {
#[codec(index = 0)]
InvalidSpecName,
#[codec(index = 1)]
SpecVersionNeedsToIncrease,
#[codec(index = 2)]
FailedToExtractRuntimeVersion,
#[codec(index = 3)]
NonDefaultComposite,
#[codec(index = 4)]
NonZeroRefCount,
#[codec(index = 5)]
CallFiltered,
}
#[derive(:: codec :: Decode, :: codec :: Encode, Clone, Debug, PartialEq)]
pub enum Event {
#[codec(index = 0)]
ExtrinsicSuccess {
dispatch_info: runtime_types::frame_support::dispatch::DispatchInfo,
},
#[codec(index = 1)]
ExtrinsicFailed {
dispatch_error: runtime_types::sp_runtime::DispatchError,
dispatch_info: runtime_types::frame_support::dispatch::DispatchInfo,
},
#[codec(index = 2)]
CodeUpdated,
#[codec(index = 3)]
NewAccount { account: ::sp_core::crypto::AccountId32 },
#[codec(index = 4)]
KilledAccount { account: ::sp_core::crypto::AccountId32 },
#[codec(index = 5)]
Remarked { sender: ::sp_core::crypto::AccountId32, hash: ::subxt::utils::H256 },
}
}
#[derive(:: codec :: Decode, :: codec :: Encode, Clone, Debug, PartialEq)]
pub struct AccountInfo<_0, _1> {
pub nonce: _0,
pub consumers: ::core::primitive::u32,
pub providers: ::core::primitive::u32,
pub sufficients: ::core::primitive::u32,
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
pub data: _1,
}
#[derive(:: codec :: Decode, :: codec :: Encode, Clone, Debug, PartialEq)]
pub struct EventRecord<_0, _1> {
pub phase: runtime_types::frame_system::Phase,
pub event: _0,
pub topics: ::std::vec::Vec<_1>,
}
#[derive(:: codec :: Decode, :: codec :: Encode, Clone, Debug, PartialEq)]
pub struct LastRuntimeUpgradeInfo {
#[codec(compact)]
pub spec_version: ::core::primitive::u32,
pub spec_name: ::std::string::String,
}
#[derive(:: codec :: Decode, :: codec :: Encode, Clone, Debug, PartialEq)]
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(:: codec :: Decode, :: codec :: Encode, Clone, Debug, PartialEq)]
pub enum Call {
#[codec(index = 0)]
transfer_allow_death {
dest: ::subxt::utils::MultiAddress<::sp_core::crypto::AccountId32, ()>,
#[codec(compact)]
value: ::core::primitive::u128,
},
#[codec(index = 2)]
force_transfer {
source: ::subxt::utils::MultiAddress<::sp_core::crypto::AccountId32, ()>,
dest: ::subxt::utils::MultiAddress<::sp_core::crypto::AccountId32, ()>,
#[codec(compact)]
value: ::core::primitive::u128,
},
#[codec(index = 3)]
transfer_keep_alive {
dest: ::subxt::utils::MultiAddress<::sp_core::crypto::AccountId32, ()>,
#[codec(compact)]
value: ::core::primitive::u128,
},
#[codec(index = 4)]
transfer_all {
dest: ::subxt::utils::MultiAddress<::sp_core::crypto::AccountId32, ()>,
keep_alive: ::core::primitive::bool,
},
#[codec(index = 5)]
force_unreserve {
who: ::subxt::utils::MultiAddress<::sp_core::crypto::AccountId32, ()>,
amount: ::core::primitive::u128,
},
#[codec(index = 6)]
upgrade_accounts { who: ::std::vec::Vec<::sp_core::crypto::AccountId32> },
#[codec(index = 8)]
force_set_balance {
who: ::subxt::utils::MultiAddress<::sp_core::crypto::AccountId32, ()>,
#[codec(compact)]
new_free: ::core::primitive::u128,
},
}
#[derive(:: codec :: Decode, :: codec :: Encode, Clone, Debug, PartialEq)]
pub enum Error {
#[codec(index = 0)]
VestingBalance,
#[codec(index = 1)]
LiquidityRestrictions,
#[codec(index = 2)]
InsufficientBalance,
#[codec(index = 3)]
ExistentialDeposit,
#[codec(index = 4)]
Expendability,
#[codec(index = 5)]
ExistingVestingSchedule,
#[codec(index = 6)]
DeadAccount,
#[codec(index = 7)]
TooManyReserves,
#[codec(index = 8)]
TooManyHolds,
#[codec(index = 9)]
TooManyFreezes,
}
#[derive(:: codec :: Decode, :: codec :: Encode, Clone, Debug, PartialEq)]
pub enum Event {
#[codec(index = 0)]
Endowed {
account: ::sp_core::crypto::AccountId32,
free_balance: ::core::primitive::u128,
},
#[codec(index = 1)]
DustLost {
account: ::sp_core::crypto::AccountId32,
amount: ::core::primitive::u128,
},
#[codec(index = 2)]
Transfer {
from: ::sp_core::crypto::AccountId32,
to: ::sp_core::crypto::AccountId32,
amount: ::core::primitive::u128,
},
#[codec(index = 3)]
BalanceSet {
who: ::sp_core::crypto::AccountId32,
free: ::core::primitive::u128,
},
#[codec(index = 4)]
Reserved {
who: ::sp_core::crypto::AccountId32,
amount: ::core::primitive::u128,
},
#[codec(index = 5)]
Unreserved {
who: ::sp_core::crypto::AccountId32,
amount: ::core::primitive::u128,
},
#[codec(index = 6)]
ReserveRepatriated {
from: ::sp_core::crypto::AccountId32,
to: ::sp_core::crypto::AccountId32,
amount: ::core::primitive::u128,
destination_status:
runtime_types::frame_support::traits::tokens::misc::BalanceStatus,
},
#[codec(index = 7)]
Deposit { who: ::sp_core::crypto::AccountId32, amount: ::core::primitive::u128 },
#[codec(index = 8)]
Withdraw {
who: ::sp_core::crypto::AccountId32,
amount: ::core::primitive::u128,
},
#[codec(index = 9)]
Slashed { who: ::sp_core::crypto::AccountId32, amount: ::core::primitive::u128 },
#[codec(index = 10)]
Minted { who: ::sp_core::crypto::AccountId32, amount: ::core::primitive::u128 },
#[codec(index = 11)]
Burned { who: ::sp_core::crypto::AccountId32, amount: ::core::primitive::u128 },
#[codec(index = 12)]
Suspended {
who: ::sp_core::crypto::AccountId32,
amount: ::core::primitive::u128,
},
#[codec(index = 13)]
Restored {
who: ::sp_core::crypto::AccountId32,
amount: ::core::primitive::u128,
},