Newer
Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
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
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
// 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-node-url
//! wss://kusama-bridge-hub-rpc.polkadot.io
#[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 mod runtime_types {
use super::runtime_types;
pub mod bounded_collections {
use super::runtime_types;
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)]
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 InboundMessageDetails {
pub dispatch_weight: ::sp_weights::Weight,
}
#[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 struct OutboundMessageDetails {
pub nonce: ::core::primitive::u64,
pub dispatch_weight: ::sp_weights::Weight,
pub size: ::core::primitive::u32,
}
#[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,
}
}
#[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,
}
Loading full blame...