Newer
Older
Serban Iorga
committed
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://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_btree_map {
use super::runtime_types;
#[derive(:: codec :: Decode, :: codec :: Encode, Clone, Debug, PartialEq)]
pub struct BoundedBTreeMap<_0, _1>(pub ::subxt::utils::KeyedVec<_0, _1>);
}
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 finality_grandpa {
use super::runtime_types;
#[derive(:: codec :: Decode, :: codec :: Encode, Clone, Debug, PartialEq)]
pub struct Equivocation<_0, _1, _2> {
pub round_number: ::core::primitive::u64,
pub identity: _0,
pub first: (_1, _2),
pub second: (_1, _2),
}
#[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 Prevote<_0, _1> {
pub target_hash: _0,
pub target_number: _1,
}
}
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 struct PostDispatchInfo {
pub actual_weight: ::core::option::Option<::sp_weights::Weight>,
pub pays_fee: runtime_types::frame_support::dispatch::Pays,
}
#[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,
}
}
pub mod misc {
use super::runtime_types;
#[derive(:: codec :: Decode, :: codec :: Encode, Clone, Debug, PartialEq)]
pub struct WrapperOpaque<_0>(
#[codec(compact)] pub ::core::primitive::u32,
pub _0,
);
}
pub mod preimages {
use super::runtime_types;
#[derive(:: codec :: Decode, :: codec :: Encode, Clone, Debug, PartialEq)]
pub enum Bounded<_0> {
#[codec(index = 0)]
Legacy {
hash: ::subxt::utils::H256,
},
#[codec(index = 1)]
Inline(
runtime_types::bounded_collections::bounded_vec::BoundedVec<
::core::primitive::u8,
>,
),
#[codec(index = 2)]
Lookup {
hash: ::subxt::utils::H256,
len: ::core::primitive::u32,
},
__Ignore(::core::marker::PhantomData<_0>),
}
}
pub mod schedule {
use super::runtime_types;
#[derive(:: codec :: Decode, :: codec :: Encode, Clone, Debug, PartialEq)]
pub enum DispatchTime<_0> {
#[codec(index = 0)]
At(_0),
#[codec(index = 1)]
After(_0),
}
}
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,
}
}
}
}
#[derive(:: codec :: Decode, :: codec :: Encode, Clone, Debug, PartialEq)]
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(:: 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)]
Loading full blame...