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://rococo-bridge-hub-rpc.polkadot.io:443
#[allow(dead_code, unused_imports, non_camel_case_types)]
#[allow(clippy::all)]
pub mod api {
use super::api as root_mod;
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 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 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>,
)>,
pub skipped_for_not_enough_weight: ::std::vec::Vec<::core::primitive::u64>,
}
#[derive(:: codec :: Decode, :: codec :: Encode, Clone, Debug, PartialEq)]
pub struct UnrewardedRelayer<_0> {
pub relayer: _0,
pub messages: runtime_types::bp_messages::DeliveredMessages,
}
}
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;
#[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,
>,
Loading full blame...