1#[allow(
2 dead_code,
3 missing_docs,
4 unused_imports,
5 non_camel_case_types,
6 unreachable_patterns
7)]
8#[allow(clippy::all)]
9#[allow(rustdoc::broken_intra_doc_links)]
10pub mod api {
11 #[allow(unused_imports)]
12 mod root_mod {
13 pub use super::*;
14 }
15 pub static PALLETS: [&str; 12usize] = [
16 "System",
17 "Timestamp",
18 "ParachainSystem",
19 "Aura",
20 "Balances",
21 "Sudo",
22 "TransactionPayment",
23 "Content",
24 "AccountContent",
25 "AccountProfile",
26 "ContentReactions",
27 "Utility",
28 ];
29 pub static RUNTIME_APIS: [&str; 11usize] = [
30 "Core",
31 "Metadata",
32 "BlockBuilder",
33 "TaggedTransactionQueue",
34 "OffchainWorkerApi",
35 "SessionKeys",
36 "AuraApi",
37 "GetParachainInfo",
38 "AccountNonceApi",
39 "TransactionPaymentApi",
40 "GenesisBuilder",
41 ];
42 #[doc = r" The error type that is returned when there is a runtime issue."]
43 pub type DispatchError = runtime_types::sp_runtime::DispatchError;
44 #[doc = r" The outer event enum."]
45 pub type Event = runtime_types::acuity_runtime::RuntimeEvent;
46 #[doc = r" The outer extrinsic enum."]
47 pub type Call = runtime_types::acuity_runtime::RuntimeCall;
48 #[doc = r" The outer error enum represents the `DispatchError`'s `Module` variant."]
49 pub type Error = runtime_types::acuity_runtime::RuntimeError;
50 #[must_use]
51 pub fn constants() -> ConstantsApi {
52 ConstantsApi
53 }
54 #[must_use]
55 pub fn storage() -> StorageApi {
56 StorageApi
57 }
58 #[must_use]
59 #[doc = r" This is an alias to [`Self::transactions()`]."]
60 pub fn tx() -> TransactionApi {
61 TransactionApi
62 }
63 #[must_use]
64 pub fn transactions() -> TransactionApi {
65 TransactionApi
66 }
67 #[must_use]
68 pub fn runtime_apis() -> runtime_apis::RuntimeApi {
69 runtime_apis::RuntimeApi
70 }
71 pub mod runtime_apis {
72 use super::root_mod;
73 use super::runtime_types;
74 use ::subxt::ext::codec::Encode;
75 pub struct RuntimeApi;
76 impl RuntimeApi {
77 #[must_use]
78 pub fn core(&self) -> core::Core {
79 core::Core
80 }
81 #[must_use]
82 pub fn metadata(&self) -> metadata::Metadata {
83 metadata::Metadata
84 }
85 #[must_use]
86 pub fn block_builder(&self) -> block_builder::BlockBuilder {
87 block_builder::BlockBuilder
88 }
89 #[must_use]
90 pub fn tagged_transaction_queue(
91 &self,
92 ) -> tagged_transaction_queue::TaggedTransactionQueue {
93 tagged_transaction_queue::TaggedTransactionQueue
94 }
95 #[must_use]
96 pub fn offchain_worker_api(&self) -> offchain_worker_api::OffchainWorkerApi {
97 offchain_worker_api::OffchainWorkerApi
98 }
99 #[must_use]
100 pub fn session_keys(&self) -> session_keys::SessionKeys {
101 session_keys::SessionKeys
102 }
103 #[must_use]
104 pub fn aura_api(&self) -> aura_api::AuraApi {
105 aura_api::AuraApi
106 }
107 #[must_use]
108 pub fn get_parachain_info(&self) -> get_parachain_info::GetParachainInfo {
109 get_parachain_info::GetParachainInfo
110 }
111 #[must_use]
112 pub fn account_nonce_api(&self) -> account_nonce_api::AccountNonceApi {
113 account_nonce_api::AccountNonceApi
114 }
115 #[must_use]
116 pub fn transaction_payment_api(
117 &self,
118 ) -> transaction_payment_api::TransactionPaymentApi {
119 transaction_payment_api::TransactionPaymentApi
120 }
121 #[must_use]
122 pub fn genesis_builder(&self) -> genesis_builder::GenesisBuilder {
123 genesis_builder::GenesisBuilder
124 }
125 }
126 pub mod core {
127 use super::root_mod;
128 use super::runtime_types;
129 #[doc = " The `Core` runtime api that every Substrate runtime needs to implement."]
130 pub struct Core;
131 impl Core {
132 #[must_use]
133 #[doc = " Returns the version of the runtime."]
134 pub fn version(
135 &self,
136 ) -> ::subxt::runtime_apis::StaticPayload<(), version::output::Output>
137 {
138 ::subxt::runtime_apis::StaticPayload::new_static(
139 "Core",
140 "version",
141 (),
142 [
143 79u8, 22u8, 137u8, 4u8, 40u8, 64u8, 30u8, 180u8, 49u8, 222u8, 114u8,
144 125u8, 44u8, 25u8, 33u8, 152u8, 98u8, 42u8, 72u8, 178u8, 240u8, 103u8,
145 34u8, 187u8, 81u8, 161u8, 183u8, 6u8, 120u8, 2u8, 146u8, 0u8,
146 ],
147 )
148 }
149 #[must_use]
150 #[doc = " Execute the given block."]
151 pub fn execute_block(
152 &self,
153 block: execute_block::Block,
154 ) -> ::subxt::runtime_apis::StaticPayload<
155 (execute_block::Block,),
156 execute_block::output::Output,
157 > {
158 ::subxt::runtime_apis::StaticPayload::new_static(
159 "Core",
160 "execute_block",
161 (block,),
162 [
163 133u8, 135u8, 228u8, 65u8, 106u8, 27u8, 85u8, 158u8, 112u8, 254u8,
164 93u8, 26u8, 102u8, 201u8, 118u8, 216u8, 249u8, 247u8, 91u8, 74u8, 56u8,
165 208u8, 231u8, 115u8, 131u8, 29u8, 209u8, 6u8, 65u8, 57u8, 214u8, 125u8,
166 ],
167 )
168 }
169 #[must_use]
170 #[doc = " Initialize a block with the given header and return the runtime executive mode."]
171 pub fn initialize_block(
172 &self,
173 header: initialize_block::Header,
174 ) -> ::subxt::runtime_apis::StaticPayload<
175 (initialize_block::Header,),
176 initialize_block::output::Output,
177 > {
178 ::subxt::runtime_apis::StaticPayload::new_static(
179 "Core",
180 "initialize_block",
181 (header,),
182 [
183 132u8, 169u8, 113u8, 112u8, 80u8, 139u8, 113u8, 35u8, 41u8, 81u8, 36u8,
184 35u8, 37u8, 202u8, 29u8, 207u8, 205u8, 229u8, 145u8, 7u8, 133u8, 94u8,
185 25u8, 108u8, 233u8, 86u8, 234u8, 29u8, 236u8, 57u8, 56u8, 186u8,
186 ],
187 )
188 }
189 }
190 pub mod version {
191 use super::root_mod;
192 use super::runtime_types;
193 pub mod output {
194 use super::runtime_types;
195 pub type Output = runtime_types::sp_version::RuntimeVersion;
196 }
197 }
198 pub mod execute_block {
199 use super::root_mod;
200 use super::runtime_types;
201 pub type Block = runtime_types :: sp_runtime :: generic :: block :: LazyBlock < runtime_types :: sp_runtime :: generic :: header :: Header < :: core :: primitive :: u32 > , :: subxt :: utils :: UncheckedExtrinsic < :: subxt :: utils :: MultiAddress < :: subxt :: utils :: AccountId32 , () > , runtime_types :: acuity_runtime :: RuntimeCall , runtime_types :: sp_runtime :: MultiSignature , (runtime_types :: frame_system :: extensions :: authorize_call :: AuthorizeCall , 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 , runtime_types :: frame_system :: extensions :: weight_reclaim :: WeightReclaim ,) > > ;
202 pub mod output {
203 use super::runtime_types;
204 pub type Output = ();
205 }
206 }
207 pub mod initialize_block {
208 use super::root_mod;
209 use super::runtime_types;
210 pub type Header =
211 runtime_types::sp_runtime::generic::header::Header<::core::primitive::u32>;
212 pub mod output {
213 use super::runtime_types;
214 pub type Output = runtime_types::sp_runtime::ExtrinsicInclusionMode;
215 }
216 }
217 }
218 pub mod metadata {
219 use super::root_mod;
220 use super::runtime_types;
221 #[doc = " The `Metadata` api trait that returns metadata for the runtime."]
222 pub struct Metadata;
223 impl Metadata {
224 #[must_use]
225 #[doc = " Returns the metadata of a runtime."]
226 pub fn metadata(
227 &self,
228 ) -> ::subxt::runtime_apis::StaticPayload<(), metadata::output::Output>
229 {
230 ::subxt::runtime_apis::StaticPayload::new_static(
231 "Metadata",
232 "metadata",
233 (),
234 [
235 231u8, 24u8, 67u8, 152u8, 23u8, 26u8, 188u8, 82u8, 229u8, 6u8, 185u8,
236 27u8, 175u8, 68u8, 83u8, 122u8, 69u8, 89u8, 185u8, 74u8, 248u8, 87u8,
237 217u8, 124u8, 193u8, 252u8, 199u8, 186u8, 196u8, 179u8, 179u8, 96u8,
238 ],
239 )
240 }
241 #[must_use]
242 #[doc = " Returns the metadata at a given version."]
243 #[doc = ""]
244 #[doc = " If the given `version` isn't supported, this will return `None`."]
245 #[doc = " Use [`Self::metadata_versions`] to find out about supported metadata version of the runtime."]
246 pub fn metadata_at_version(
247 &self,
248 version: metadata_at_version::Version,
249 ) -> ::subxt::runtime_apis::StaticPayload<
250 (metadata_at_version::Version,),
251 metadata_at_version::output::Output,
252 > {
253 ::subxt::runtime_apis::StaticPayload::new_static(
254 "Metadata",
255 "metadata_at_version",
256 (version,),
257 [
258 131u8, 53u8, 212u8, 234u8, 16u8, 25u8, 120u8, 252u8, 153u8, 153u8,
259 216u8, 28u8, 54u8, 113u8, 52u8, 236u8, 146u8, 68u8, 142u8, 8u8, 10u8,
260 169u8, 131u8, 142u8, 204u8, 38u8, 48u8, 108u8, 134u8, 86u8, 226u8,
261 61u8,
262 ],
263 )
264 }
265 #[must_use]
266 #[doc = " Returns the supported metadata versions."]
267 #[doc = ""]
268 #[doc = " This can be used to call `metadata_at_version`."]
269 pub fn metadata_versions(
270 &self,
271 ) -> ::subxt::runtime_apis::StaticPayload<(), metadata_versions::output::Output>
272 {
273 ::subxt::runtime_apis::StaticPayload::new_static(
274 "Metadata",
275 "metadata_versions",
276 (),
277 [
278 23u8, 144u8, 137u8, 91u8, 188u8, 39u8, 231u8, 208u8, 252u8, 218u8,
279 224u8, 176u8, 77u8, 32u8, 130u8, 212u8, 223u8, 76u8, 100u8, 190u8,
280 82u8, 94u8, 190u8, 8u8, 82u8, 244u8, 225u8, 179u8, 85u8, 176u8, 56u8,
281 16u8,
282 ],
283 )
284 }
285 }
286 pub mod metadata {
287 use super::root_mod;
288 use super::runtime_types;
289 pub mod output {
290 use super::runtime_types;
291 pub type Output = runtime_types::sp_core::OpaqueMetadata;
292 }
293 }
294 pub mod metadata_at_version {
295 use super::root_mod;
296 use super::runtime_types;
297 pub type Version = ::core::primitive::u32;
298 pub mod output {
299 use super::runtime_types;
300 pub type Output =
301 ::core::option::Option<runtime_types::sp_core::OpaqueMetadata>;
302 }
303 }
304 pub mod metadata_versions {
305 use super::root_mod;
306 use super::runtime_types;
307 pub mod output {
308 use super::runtime_types;
309 pub type Output = ::subxt::alloc::vec::Vec<::core::primitive::u32>;
310 }
311 }
312 }
313 pub mod block_builder {
314 use super::root_mod;
315 use super::runtime_types;
316 #[doc = " The `BlockBuilder` api trait that provides the required functionality for building a block."]
317 pub struct BlockBuilder;
318 impl BlockBuilder {
319 #[must_use]
320 #[doc = " Apply the given extrinsic."]
321 #[doc = ""]
322 #[doc = " Returns an inclusion outcome which specifies if this extrinsic is included in"]
323 #[doc = " this block or not."]
324 pub fn apply_extrinsic(
325 &self,
326 extrinsic: apply_extrinsic::Extrinsic,
327 ) -> ::subxt::runtime_apis::StaticPayload<
328 (apply_extrinsic::Extrinsic,),
329 apply_extrinsic::output::Output,
330 > {
331 ::subxt::runtime_apis::StaticPayload::new_static(
332 "BlockBuilder",
333 "apply_extrinsic",
334 (extrinsic,),
335 [
336 192u8, 184u8, 199u8, 4u8, 85u8, 136u8, 214u8, 205u8, 29u8, 29u8, 98u8,
337 145u8, 172u8, 92u8, 168u8, 161u8, 150u8, 133u8, 100u8, 243u8, 100u8,
338 100u8, 118u8, 28u8, 104u8, 82u8, 93u8, 63u8, 79u8, 36u8, 149u8, 144u8,
339 ],
340 )
341 }
342 #[must_use]
343 #[doc = " Finish the current block."]
344 pub fn finalize_block(
345 &self,
346 ) -> ::subxt::runtime_apis::StaticPayload<(), finalize_block::output::Output>
347 {
348 ::subxt::runtime_apis::StaticPayload::new_static(
349 "BlockBuilder",
350 "finalize_block",
351 (),
352 [
353 244u8, 207u8, 24u8, 33u8, 13u8, 69u8, 9u8, 249u8, 145u8, 143u8, 122u8,
354 96u8, 197u8, 55u8, 64u8, 111u8, 238u8, 224u8, 34u8, 201u8, 27u8, 146u8,
355 232u8, 99u8, 191u8, 30u8, 114u8, 16u8, 32u8, 220u8, 58u8, 62u8,
356 ],
357 )
358 }
359 #[must_use]
360 #[doc = " Generate inherent extrinsics. The inherent data will vary from chain to chain."]
361 pub fn inherent_extrinsics(
362 &self,
363 inherent: inherent_extrinsics::Inherent,
364 ) -> ::subxt::runtime_apis::StaticPayload<
365 (inherent_extrinsics::Inherent,),
366 inherent_extrinsics::output::Output,
367 > {
368 ::subxt::runtime_apis::StaticPayload::new_static(
369 "BlockBuilder",
370 "inherent_extrinsics",
371 (inherent,),
372 [
373 254u8, 110u8, 245u8, 201u8, 250u8, 192u8, 27u8, 228u8, 151u8, 213u8,
374 166u8, 89u8, 94u8, 81u8, 189u8, 234u8, 64u8, 18u8, 245u8, 80u8, 29u8,
375 18u8, 140u8, 129u8, 113u8, 236u8, 135u8, 55u8, 79u8, 159u8, 175u8,
376 183u8,
377 ],
378 )
379 }
380 #[must_use]
381 #[doc = " Check that the inherents are valid. The inherent data will vary from chain to chain."]
382 pub fn check_inherents(
383 &self,
384 block: check_inherents::Block,
385 data: check_inherents::Data,
386 ) -> ::subxt::runtime_apis::StaticPayload<
387 (check_inherents::Block, check_inherents::Data),
388 check_inherents::output::Output,
389 > {
390 ::subxt::runtime_apis::StaticPayload::new_static(
391 "BlockBuilder",
392 "check_inherents",
393 (block, data),
394 [
395 153u8, 134u8, 1u8, 215u8, 139u8, 11u8, 53u8, 51u8, 210u8, 175u8, 197u8,
396 28u8, 38u8, 209u8, 175u8, 247u8, 142u8, 157u8, 50u8, 151u8, 164u8,
397 191u8, 181u8, 118u8, 80u8, 97u8, 160u8, 248u8, 110u8, 217u8, 181u8,
398 234u8,
399 ],
400 )
401 }
402 }
403 pub mod apply_extrinsic {
404 use super::root_mod;
405 use super::runtime_types;
406 pub type Extrinsic = :: subxt :: utils :: UncheckedExtrinsic < :: subxt :: utils :: MultiAddress < :: subxt :: utils :: AccountId32 , () > , runtime_types :: acuity_runtime :: RuntimeCall , runtime_types :: sp_runtime :: MultiSignature , (runtime_types :: frame_system :: extensions :: authorize_call :: AuthorizeCall , 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 , runtime_types :: frame_system :: extensions :: weight_reclaim :: WeightReclaim ,) > ;
407 pub mod output {
408 use super::runtime_types;
409 pub type Output = ::core::result::Result<
410 ::core::result::Result<(), runtime_types::sp_runtime::DispatchError>,
411 runtime_types::sp_runtime::transaction_validity::TransactionValidityError,
412 >;
413 }
414 }
415 pub mod finalize_block {
416 use super::root_mod;
417 use super::runtime_types;
418 pub mod output {
419 use super::runtime_types;
420 pub type Output =
421 runtime_types::sp_runtime::generic::header::Header<::core::primitive::u32>;
422 }
423 }
424 pub mod inherent_extrinsics {
425 use super::root_mod;
426 use super::runtime_types;
427 pub type Inherent = runtime_types::sp_inherents::InherentData;
428 pub mod output {
429 use super::runtime_types;
430 pub type Output = :: subxt :: alloc :: vec :: Vec < :: subxt :: utils :: UncheckedExtrinsic < :: subxt :: utils :: MultiAddress < :: subxt :: utils :: AccountId32 , () > , runtime_types :: acuity_runtime :: RuntimeCall , runtime_types :: sp_runtime :: MultiSignature , (runtime_types :: frame_system :: extensions :: authorize_call :: AuthorizeCall , 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 , runtime_types :: frame_system :: extensions :: weight_reclaim :: WeightReclaim ,) > > ;
431 }
432 }
433 pub mod check_inherents {
434 use super::root_mod;
435 use super::runtime_types;
436 pub type Block = runtime_types :: sp_runtime :: generic :: block :: LazyBlock < runtime_types :: sp_runtime :: generic :: header :: Header < :: core :: primitive :: u32 > , :: subxt :: utils :: UncheckedExtrinsic < :: subxt :: utils :: MultiAddress < :: subxt :: utils :: AccountId32 , () > , runtime_types :: acuity_runtime :: RuntimeCall , runtime_types :: sp_runtime :: MultiSignature , (runtime_types :: frame_system :: extensions :: authorize_call :: AuthorizeCall , 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 , runtime_types :: frame_system :: extensions :: weight_reclaim :: WeightReclaim ,) > > ;
437 pub type Data = runtime_types::sp_inherents::InherentData;
438 pub mod output {
439 use super::runtime_types;
440 pub type Output = runtime_types::sp_inherents::CheckInherentsResult;
441 }
442 }
443 }
444 pub mod tagged_transaction_queue {
445 use super::root_mod;
446 use super::runtime_types;
447 #[doc = " The `TaggedTransactionQueue` api trait for interfering with the transaction queue."]
448 pub struct TaggedTransactionQueue;
449 impl TaggedTransactionQueue {
450 #[must_use]
451 #[doc = " Validate the transaction."]
452 #[doc = ""]
453 #[doc = " This method is invoked by the transaction pool to learn details about given transaction."]
454 #[doc = " The implementation should make sure to verify the correctness of the transaction"]
455 #[doc = " against current state. The given `block_hash` corresponds to the hash of the block"]
456 #[doc = " that is used as current state."]
457 #[doc = ""]
458 #[doc = " Note that this call may be performed by the pool multiple times and transactions"]
459 #[doc = " might be verified in any possible order."]
460 pub fn validate_transaction(
461 &self,
462 source: validate_transaction::Source,
463 tx: validate_transaction::Tx,
464 block_hash: validate_transaction::BlockHash,
465 ) -> ::subxt::runtime_apis::StaticPayload<
466 (
467 validate_transaction::Source,
468 validate_transaction::Tx,
469 validate_transaction::BlockHash,
470 ),
471 validate_transaction::output::Output,
472 > {
473 ::subxt::runtime_apis::StaticPayload::new_static(
474 "TaggedTransactionQueue",
475 "validate_transaction",
476 (source, tx, block_hash),
477 [
478 19u8, 53u8, 170u8, 115u8, 75u8, 121u8, 231u8, 50u8, 199u8, 181u8,
479 243u8, 170u8, 163u8, 224u8, 213u8, 134u8, 206u8, 207u8, 88u8, 242u8,
480 80u8, 139u8, 233u8, 87u8, 175u8, 249u8, 178u8, 169u8, 255u8, 171u8,
481 4u8, 125u8,
482 ],
483 )
484 }
485 }
486 pub mod validate_transaction {
487 use super::root_mod;
488 use super::runtime_types;
489 pub type Source =
490 runtime_types::sp_runtime::transaction_validity::TransactionSource;
491 pub type Tx = :: subxt :: utils :: UncheckedExtrinsic < :: subxt :: utils :: MultiAddress < :: subxt :: utils :: AccountId32 , () > , runtime_types :: acuity_runtime :: RuntimeCall , runtime_types :: sp_runtime :: MultiSignature , (runtime_types :: frame_system :: extensions :: authorize_call :: AuthorizeCall , 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 , runtime_types :: frame_system :: extensions :: weight_reclaim :: WeightReclaim ,) > ;
492 pub type BlockHash = ::subxt::utils::H256;
493 pub mod output {
494 use super::runtime_types;
495 pub type Output = ::core::result::Result<
496 runtime_types::sp_runtime::transaction_validity::ValidTransaction,
497 runtime_types::sp_runtime::transaction_validity::TransactionValidityError,
498 >;
499 }
500 }
501 }
502 pub mod offchain_worker_api {
503 use super::root_mod;
504 use super::runtime_types;
505 #[doc = " The offchain worker api."]
506 pub struct OffchainWorkerApi;
507 impl OffchainWorkerApi {
508 #[must_use]
509 #[doc = " Starts the off-chain task for given block header."]
510 pub fn offchain_worker(
511 &self,
512 header: offchain_worker::Header,
513 ) -> ::subxt::runtime_apis::StaticPayload<
514 (offchain_worker::Header,),
515 offchain_worker::output::Output,
516 > {
517 ::subxt::runtime_apis::StaticPayload::new_static(
518 "OffchainWorkerApi",
519 "offchain_worker",
520 (header,),
521 [
522 10u8, 135u8, 19u8, 153u8, 33u8, 216u8, 18u8, 242u8, 33u8, 140u8, 4u8,
523 223u8, 200u8, 130u8, 103u8, 118u8, 137u8, 24u8, 19u8, 127u8, 161u8,
524 29u8, 184u8, 111u8, 222u8, 111u8, 253u8, 73u8, 45u8, 31u8, 79u8, 60u8,
525 ],
526 )
527 }
528 }
529 pub mod offchain_worker {
530 use super::root_mod;
531 use super::runtime_types;
532 pub type Header =
533 runtime_types::sp_runtime::generic::header::Header<::core::primitive::u32>;
534 pub mod output {
535 use super::runtime_types;
536 pub type Output = ();
537 }
538 }
539 }
540 pub mod session_keys {
541 use super::root_mod;
542 use super::runtime_types;
543 #[doc = " Session keys runtime api."]
544 pub struct SessionKeys;
545 impl SessionKeys {
546 #[must_use]
547 #[doc = " Generate a set of session keys with optionally using the given seed."]
548 #[doc = " The keys should be stored within the keystore exposed via runtime"]
549 #[doc = " externalities."]
550 #[doc = ""]
551 #[doc = " The seed needs to be a valid `utf8` string."]
552 #[doc = ""]
553 #[doc = " Returns the concatenated SCALE encoded public keys."]
554 pub fn generate_session_keys(
555 &self,
556 owner: generate_session_keys::Owner,
557 seed: generate_session_keys::Seed,
558 ) -> ::subxt::runtime_apis::StaticPayload<
559 (generate_session_keys::Owner, generate_session_keys::Seed),
560 generate_session_keys::output::Output,
561 > {
562 ::subxt::runtime_apis::StaticPayload::new_static(
563 "SessionKeys",
564 "generate_session_keys",
565 (owner, seed),
566 [
567 94u8, 230u8, 217u8, 119u8, 217u8, 37u8, 67u8, 190u8, 118u8, 204u8,
568 72u8, 95u8, 58u8, 138u8, 153u8, 164u8, 95u8, 31u8, 85u8, 83u8, 199u8,
569 12u8, 119u8, 135u8, 248u8, 96u8, 85u8, 142u8, 84u8, 238u8, 111u8,
570 254u8,
571 ],
572 )
573 }
574 #[must_use]
575 #[doc = " Decode the given public session keys."]
576 #[doc = ""]
577 #[doc = " Returns the list of public raw public keys + key type."]
578 pub fn decode_session_keys(
579 &self,
580 encoded: decode_session_keys::Encoded,
581 ) -> ::subxt::runtime_apis::StaticPayload<
582 (decode_session_keys::Encoded,),
583 decode_session_keys::output::Output,
584 > {
585 ::subxt::runtime_apis::StaticPayload::new_static(
586 "SessionKeys",
587 "decode_session_keys",
588 (encoded,),
589 [
590 57u8, 242u8, 18u8, 51u8, 132u8, 110u8, 238u8, 255u8, 39u8, 194u8, 8u8,
591 54u8, 198u8, 178u8, 75u8, 151u8, 148u8, 176u8, 144u8, 197u8, 87u8,
592 29u8, 179u8, 235u8, 176u8, 78u8, 252u8, 103u8, 72u8, 203u8, 151u8,
593 248u8,
594 ],
595 )
596 }
597 }
598 pub mod generate_session_keys {
599 use super::root_mod;
600 use super::runtime_types;
601 pub type Owner = ::subxt::alloc::vec::Vec<::core::primitive::u8>;
602 pub type Seed =
603 ::core::option::Option<::subxt::alloc::vec::Vec<::core::primitive::u8>>;
604 pub mod output {
605 use super::runtime_types;
606 pub type Output =
607 runtime_types::sp_session::runtime_api::OpaqueGeneratedSessionKeys;
608 }
609 }
610 pub mod decode_session_keys {
611 use super::root_mod;
612 use super::runtime_types;
613 pub type Encoded = ::subxt::alloc::vec::Vec<::core::primitive::u8>;
614 pub mod output {
615 use super::runtime_types;
616 pub type Output = ::core::option::Option<
617 ::subxt::alloc::vec::Vec<(
618 ::subxt::alloc::vec::Vec<::core::primitive::u8>,
619 runtime_types::sp_core::crypto::KeyTypeId,
620 )>,
621 >;
622 }
623 }
624 }
625 pub mod aura_api {
626 use super::root_mod;
627 use super::runtime_types;
628 #[doc = " API necessary for block authorship with aura."]
629 pub struct AuraApi;
630 impl AuraApi {
631 #[must_use]
632 #[doc = " Returns the slot duration for Aura."]
633 #[doc = ""]
634 #[doc = " Currently, only the value provided by this type at genesis will be used."]
635 pub fn slot_duration(
636 &self,
637 ) -> ::subxt::runtime_apis::StaticPayload<(), slot_duration::output::Output>
638 {
639 ::subxt::runtime_apis::StaticPayload::new_static(
640 "AuraApi",
641 "slot_duration",
642 (),
643 [
644 233u8, 210u8, 132u8, 172u8, 100u8, 125u8, 239u8, 92u8, 114u8, 82u8,
645 7u8, 110u8, 179u8, 196u8, 10u8, 19u8, 211u8, 15u8, 174u8, 2u8, 91u8,
646 73u8, 133u8, 100u8, 205u8, 201u8, 191u8, 60u8, 163u8, 122u8, 215u8,
647 10u8,
648 ],
649 )
650 }
651 #[must_use]
652 #[doc = " Return the current set of authorities."]
653 pub fn authorities(
654 &self,
655 ) -> ::subxt::runtime_apis::StaticPayload<(), authorities::output::Output>
656 {
657 ::subxt::runtime_apis::StaticPayload::new_static(
658 "AuraApi",
659 "authorities",
660 (),
661 [
662 35u8, 244u8, 24u8, 155u8, 95u8, 1u8, 221u8, 159u8, 33u8, 144u8, 213u8,
663 26u8, 13u8, 21u8, 136u8, 72u8, 45u8, 47u8, 15u8, 51u8, 235u8, 10u8,
664 6u8, 219u8, 9u8, 246u8, 50u8, 252u8, 49u8, 77u8, 64u8, 182u8,
665 ],
666 )
667 }
668 }
669 pub mod slot_duration {
670 use super::root_mod;
671 use super::runtime_types;
672 pub mod output {
673 use super::runtime_types;
674 pub type Output = runtime_types::sp_consensus_slots::SlotDuration;
675 }
676 }
677 pub mod authorities {
678 use super::root_mod;
679 use super::runtime_types;
680 pub mod output {
681 use super::runtime_types;
682 pub type Output = ::subxt::alloc::vec::Vec<
683 runtime_types::sp_consensus_aura::sr25519::app_sr25519::Public,
684 >;
685 }
686 }
687 }
688 pub mod get_parachain_info {
689 use super::root_mod;
690 use super::runtime_types;
691 #[doc = " Runtime api used to access general info about a parachain runtime."]
692 pub struct GetParachainInfo;
693 impl GetParachainInfo {
694 #[must_use]
695 #[doc = " Retrieve the parachain id used for runtime."]
696 pub fn parachain_id(
697 &self,
698 ) -> ::subxt::runtime_apis::StaticPayload<(), parachain_id::output::Output>
699 {
700 ::subxt::runtime_apis::StaticPayload::new_static(
701 "GetParachainInfo",
702 "parachain_id",
703 (),
704 [
705 133u8, 200u8, 87u8, 39u8, 197u8, 166u8, 184u8, 238u8, 60u8, 133u8,
706 176u8, 139u8, 162u8, 6u8, 45u8, 152u8, 186u8, 33u8, 185u8, 175u8,
707 225u8, 15u8, 226u8, 54u8, 157u8, 126u8, 214u8, 90u8, 155u8, 34u8, 1u8,
708 208u8,
709 ],
710 )
711 }
712 }
713 pub mod parachain_id {
714 use super::root_mod;
715 use super::runtime_types;
716 pub mod output {
717 use super::runtime_types;
718 pub type Output = runtime_types::polkadot_parachain_primitives::primitives::Id;
719 }
720 }
721 }
722 pub mod account_nonce_api {
723 use super::root_mod;
724 use super::runtime_types;
725 #[doc = " The API to query account nonce."]
726 pub struct AccountNonceApi;
727 impl AccountNonceApi {
728 #[must_use]
729 #[doc = " Get current account nonce of given `AccountId`."]
730 pub fn account_nonce(
731 &self,
732 account: account_nonce::Account,
733 ) -> ::subxt::runtime_apis::StaticPayload<
734 (account_nonce::Account,),
735 account_nonce::output::Output,
736 > {
737 ::subxt::runtime_apis::StaticPayload::new_static(
738 "AccountNonceApi",
739 "account_nonce",
740 (account,),
741 [
742 231u8, 82u8, 7u8, 227u8, 131u8, 2u8, 215u8, 252u8, 173u8, 82u8, 11u8,
743 103u8, 200u8, 25u8, 114u8, 116u8, 79u8, 229u8, 152u8, 150u8, 236u8,
744 37u8, 101u8, 26u8, 220u8, 146u8, 182u8, 101u8, 73u8, 55u8, 191u8,
745 171u8,
746 ],
747 )
748 }
749 }
750 pub mod account_nonce {
751 use super::root_mod;
752 use super::runtime_types;
753 pub type Account = ::subxt::utils::AccountId32;
754 pub mod output {
755 use super::runtime_types;
756 pub type Output = ::core::primitive::u32;
757 }
758 }
759 }
760 pub mod transaction_payment_api {
761 use super::root_mod;
762 use super::runtime_types;
763 pub struct TransactionPaymentApi;
764 impl TransactionPaymentApi {
765 #[must_use]
766 pub fn query_info(
767 &self,
768 uxt: query_info::Uxt,
769 len: query_info::Len,
770 ) -> ::subxt::runtime_apis::StaticPayload<
771 (query_info::Uxt, query_info::Len),
772 query_info::output::Output,
773 > {
774 ::subxt::runtime_apis::StaticPayload::new_static(
775 "TransactionPaymentApi",
776 "query_info",
777 (uxt, len),
778 [
779 56u8, 30u8, 174u8, 34u8, 202u8, 24u8, 177u8, 189u8, 145u8, 36u8, 1u8,
780 156u8, 98u8, 209u8, 178u8, 49u8, 198u8, 23u8, 150u8, 173u8, 35u8,
781 205u8, 147u8, 129u8, 42u8, 22u8, 69u8, 3u8, 129u8, 8u8, 196u8, 139u8,
782 ],
783 )
784 }
785 #[must_use]
786 pub fn query_fee_details(
787 &self,
788 uxt: query_fee_details::Uxt,
789 len: query_fee_details::Len,
790 ) -> ::subxt::runtime_apis::StaticPayload<
791 (query_fee_details::Uxt, query_fee_details::Len),
792 query_fee_details::output::Output,
793 > {
794 ::subxt::runtime_apis::StaticPayload::new_static(
795 "TransactionPaymentApi",
796 "query_fee_details",
797 (uxt, len),
798 [
799 117u8, 60u8, 137u8, 159u8, 237u8, 252u8, 216u8, 238u8, 232u8, 1u8,
800 100u8, 152u8, 26u8, 185u8, 145u8, 125u8, 68u8, 189u8, 4u8, 30u8, 125u8,
801 7u8, 196u8, 153u8, 235u8, 51u8, 219u8, 108u8, 185u8, 254u8, 100u8,
802 201u8,
803 ],
804 )
805 }
806 #[must_use]
807 pub fn query_weight_to_fee(
808 &self,
809 weight: query_weight_to_fee::Weight,
810 ) -> ::subxt::runtime_apis::StaticPayload<
811 (query_weight_to_fee::Weight,),
812 query_weight_to_fee::output::Output,
813 > {
814 ::subxt::runtime_apis::StaticPayload::new_static(
815 "TransactionPaymentApi",
816 "query_weight_to_fee",
817 (weight,),
818 [
819 206u8, 243u8, 189u8, 83u8, 231u8, 244u8, 247u8, 52u8, 126u8, 208u8,
820 224u8, 5u8, 163u8, 108u8, 254u8, 114u8, 214u8, 156u8, 227u8, 217u8,
821 211u8, 198u8, 121u8, 164u8, 110u8, 54u8, 181u8, 146u8, 50u8, 146u8,
822 146u8, 23u8,
823 ],
824 )
825 }
826 #[must_use]
827 pub fn query_length_to_fee(
828 &self,
829 length: query_length_to_fee::Length,
830 ) -> ::subxt::runtime_apis::StaticPayload<
831 (query_length_to_fee::Length,),
832 query_length_to_fee::output::Output,
833 > {
834 ::subxt::runtime_apis::StaticPayload::new_static(
835 "TransactionPaymentApi",
836 "query_length_to_fee",
837 (length,),
838 [
839 92u8, 132u8, 29u8, 119u8, 66u8, 11u8, 196u8, 224u8, 129u8, 23u8, 249u8,
840 12u8, 32u8, 28u8, 92u8, 50u8, 188u8, 101u8, 203u8, 229u8, 248u8, 216u8,
841 130u8, 150u8, 212u8, 161u8, 81u8, 254u8, 116u8, 89u8, 162u8, 48u8,
842 ],
843 )
844 }
845 }
846 pub mod query_info {
847 use super::root_mod;
848 use super::runtime_types;
849 pub type Uxt = :: subxt :: utils :: UncheckedExtrinsic < :: subxt :: utils :: MultiAddress < :: subxt :: utils :: AccountId32 , () > , runtime_types :: acuity_runtime :: RuntimeCall , runtime_types :: sp_runtime :: MultiSignature , (runtime_types :: frame_system :: extensions :: authorize_call :: AuthorizeCall , 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 , runtime_types :: frame_system :: extensions :: weight_reclaim :: WeightReclaim ,) > ;
850 pub type Len = ::core::primitive::u32;
851 pub mod output {
852 use super::runtime_types;
853 pub type Output =
854 runtime_types::pallet_transaction_payment::types::RuntimeDispatchInfo<
855 ::core::primitive::u128,
856 runtime_types::sp_weights::weight_v2::Weight,
857 >;
858 }
859 }
860 pub mod query_fee_details {
861 use super::root_mod;
862 use super::runtime_types;
863 pub type Uxt = :: subxt :: utils :: UncheckedExtrinsic < :: subxt :: utils :: MultiAddress < :: subxt :: utils :: AccountId32 , () > , runtime_types :: acuity_runtime :: RuntimeCall , runtime_types :: sp_runtime :: MultiSignature , (runtime_types :: frame_system :: extensions :: authorize_call :: AuthorizeCall , 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 , runtime_types :: frame_system :: extensions :: weight_reclaim :: WeightReclaim ,) > ;
864 pub type Len = ::core::primitive::u32;
865 pub mod output {
866 use super::runtime_types;
867 pub type Output = runtime_types::pallet_transaction_payment::types::FeeDetails<
868 ::core::primitive::u128,
869 >;
870 }
871 }
872 pub mod query_weight_to_fee {
873 use super::root_mod;
874 use super::runtime_types;
875 pub type Weight = runtime_types::sp_weights::weight_v2::Weight;
876 pub mod output {
877 use super::runtime_types;
878 pub type Output = ::core::primitive::u128;
879 }
880 }
881 pub mod query_length_to_fee {
882 use super::root_mod;
883 use super::runtime_types;
884 pub type Length = ::core::primitive::u32;
885 pub mod output {
886 use super::runtime_types;
887 pub type Output = ::core::primitive::u128;
888 }
889 }
890 }
891 pub mod genesis_builder {
892 use super::root_mod;
893 use super::runtime_types;
894 #[doc = " API to interact with `RuntimeGenesisConfig` for the runtime"]
895 pub struct GenesisBuilder;
896 impl GenesisBuilder {
897 #[must_use]
898 #[doc = " Build `RuntimeGenesisConfig` from a JSON blob not using any defaults and store it in the"]
899 #[doc = " storage."]
900 #[doc = ""]
901 #[doc = " In the case of a FRAME-based runtime, this function deserializes the full"]
902 #[doc = " `RuntimeGenesisConfig` from the given JSON blob and puts it into the storage. If the"]
903 #[doc = " provided JSON blob is incorrect or incomplete or the deserialization fails, an error"]
904 #[doc = " is returned."]
905 #[doc = ""]
906 #[doc = " Please note that provided JSON blob must contain all `RuntimeGenesisConfig` fields, no"]
907 #[doc = " defaults will be used."]
908 pub fn build_state(
909 &self,
910 json: build_state::Json,
911 ) -> ::subxt::runtime_apis::StaticPayload<
912 (build_state::Json,),
913 build_state::output::Output,
914 > {
915 ::subxt::runtime_apis::StaticPayload::new_static(
916 "GenesisBuilder",
917 "build_state",
918 (json,),
919 [
920 203u8, 233u8, 104u8, 116u8, 111u8, 131u8, 201u8, 235u8, 117u8, 116u8,
921 140u8, 185u8, 93u8, 25u8, 155u8, 210u8, 56u8, 49u8, 23u8, 32u8, 253u8,
922 92u8, 149u8, 241u8, 85u8, 245u8, 137u8, 45u8, 209u8, 189u8, 81u8, 2u8,
923 ],
924 )
925 }
926 #[must_use]
927 #[doc = " Returns a JSON blob representation of the built-in `RuntimeGenesisConfig` identified by"]
928 #[doc = " `id`."]
929 #[doc = ""]
930 #[doc = " If `id` is `None` the function should return JSON blob representation of the default"]
931 #[doc = " `RuntimeGenesisConfig` struct of the runtime. Implementation must provide default"]
932 #[doc = " `RuntimeGenesisConfig`."]
933 #[doc = ""]
934 #[doc = " Otherwise function returns a JSON representation of the built-in, named"]
935 #[doc = " `RuntimeGenesisConfig` preset identified by `id`, or `None` if such preset does not"]
936 #[doc = " exist. Returned `Vec<u8>` contains bytes of JSON blob (patch) which comprises a list of"]
937 #[doc = " (potentially nested) key-value pairs that are intended for customizing the default"]
938 #[doc = " runtime genesis config. The patch shall be merged (rfc7386) with the JSON representation"]
939 #[doc = " of the default `RuntimeGenesisConfig` to create a comprehensive genesis config that can"]
940 #[doc = " be used in `build_state` method."]
941 pub fn get_preset(
942 &self,
943 id: get_preset::Id,
944 ) -> ::subxt::runtime_apis::StaticPayload<
945 (get_preset::Id,),
946 get_preset::output::Output,
947 > {
948 ::subxt::runtime_apis::StaticPayload::new_static(
949 "GenesisBuilder",
950 "get_preset",
951 (id,),
952 [
953 43u8, 153u8, 23u8, 52u8, 113u8, 161u8, 227u8, 122u8, 169u8, 135u8,
954 119u8, 8u8, 128u8, 33u8, 143u8, 235u8, 13u8, 173u8, 58u8, 121u8, 178u8,
955 223u8, 66u8, 217u8, 22u8, 244u8, 168u8, 113u8, 202u8, 186u8, 241u8,
956 124u8,
957 ],
958 )
959 }
960 #[must_use]
961 #[doc = " Returns a list of identifiers for available builtin `RuntimeGenesisConfig` presets."]
962 #[doc = ""]
963 #[doc = " The presets from the list can be queried with [`GenesisBuilder::get_preset`] method. If"]
964 #[doc = " no named presets are provided by the runtime the list is empty."]
965 pub fn preset_names(
966 &self,
967 ) -> ::subxt::runtime_apis::StaticPayload<(), preset_names::output::Output>
968 {
969 ::subxt::runtime_apis::StaticPayload::new_static(
970 "GenesisBuilder",
971 "preset_names",
972 (),
973 [
974 150u8, 117u8, 54u8, 129u8, 221u8, 130u8, 186u8, 71u8, 13u8, 140u8,
975 77u8, 180u8, 141u8, 37u8, 22u8, 219u8, 149u8, 218u8, 186u8, 206u8,
976 80u8, 42u8, 165u8, 41u8, 99u8, 184u8, 73u8, 37u8, 125u8, 188u8, 167u8,
977 122u8,
978 ],
979 )
980 }
981 }
982 pub mod build_state {
983 use super::root_mod;
984 use super::runtime_types;
985 pub type Json = ::subxt::alloc::vec::Vec<::core::primitive::u8>;
986 pub mod output {
987 use super::runtime_types;
988 pub type Output = ::core::result::Result<(), ::subxt::alloc::string::String>;
989 }
990 }
991 pub mod get_preset {
992 use super::root_mod;
993 use super::runtime_types;
994 pub type Id = ::core::option::Option<::subxt::alloc::string::String>;
995 pub mod output {
996 use super::runtime_types;
997 pub type Output =
998 ::core::option::Option<::subxt::alloc::vec::Vec<::core::primitive::u8>>;
999 }
1000 }
1001 pub mod preset_names {
1002 use super::root_mod;
1003 use super::runtime_types;
1004 pub mod output {
1005 use super::runtime_types;
1006 pub type Output = ::subxt::alloc::vec::Vec<::subxt::alloc::string::String>;
1007 }
1008 }
1009 }
1010 }
1011 #[must_use]
1012 pub fn view_functions() -> ViewFunctionsApi {
1013 ViewFunctionsApi
1014 }
1015 #[must_use]
1016 pub fn custom_values() -> CustomValuesApi {
1017 CustomValuesApi
1018 }
1019 pub struct CustomValuesApi;
1020 impl CustomValuesApi {}
1021 pub struct ConstantsApi;
1022 impl ConstantsApi {
1023 #[must_use]
1024 pub fn system(&self) -> system::constants::ConstantsApi {
1025 system::constants::ConstantsApi
1026 }
1027 #[must_use]
1028 pub fn timestamp(&self) -> timestamp::constants::ConstantsApi {
1029 timestamp::constants::ConstantsApi
1030 }
1031 #[must_use]
1032 pub fn aura(&self) -> aura::constants::ConstantsApi {
1033 aura::constants::ConstantsApi
1034 }
1035 #[must_use]
1036 pub fn balances(&self) -> balances::constants::ConstantsApi {
1037 balances::constants::ConstantsApi
1038 }
1039 #[must_use]
1040 pub fn transaction_payment(&self) -> transaction_payment::constants::ConstantsApi {
1041 transaction_payment::constants::ConstantsApi
1042 }
1043 #[must_use]
1044 pub fn utility(&self) -> utility::constants::ConstantsApi {
1045 utility::constants::ConstantsApi
1046 }
1047 }
1048 pub struct StorageApi;
1049 impl StorageApi {
1050 #[must_use]
1051 pub fn system(&self) -> system::storage::StorageApi {
1052 system::storage::StorageApi
1053 }
1054 #[must_use]
1055 pub fn timestamp(&self) -> timestamp::storage::StorageApi {
1056 timestamp::storage::StorageApi
1057 }
1058 #[must_use]
1059 pub fn parachain_system(&self) -> parachain_system::storage::StorageApi {
1060 parachain_system::storage::StorageApi
1061 }
1062 #[must_use]
1063 pub fn aura(&self) -> aura::storage::StorageApi {
1064 aura::storage::StorageApi
1065 }
1066 #[must_use]
1067 pub fn balances(&self) -> balances::storage::StorageApi {
1068 balances::storage::StorageApi
1069 }
1070 #[must_use]
1071 pub fn sudo(&self) -> sudo::storage::StorageApi {
1072 sudo::storage::StorageApi
1073 }
1074 #[must_use]
1075 pub fn transaction_payment(&self) -> transaction_payment::storage::StorageApi {
1076 transaction_payment::storage::StorageApi
1077 }
1078 #[must_use]
1079 pub fn content(&self) -> content::storage::StorageApi {
1080 content::storage::StorageApi
1081 }
1082 #[must_use]
1083 pub fn account_content(&self) -> account_content::storage::StorageApi {
1084 account_content::storage::StorageApi
1085 }
1086 #[must_use]
1087 pub fn account_profile(&self) -> account_profile::storage::StorageApi {
1088 account_profile::storage::StorageApi
1089 }
1090 }
1091 pub struct TransactionApi;
1092 impl TransactionApi {
1093 #[must_use]
1094 pub fn system(&self) -> system::calls::api::TransactionApi {
1095 system::calls::api::TransactionApi
1096 }
1097 #[must_use]
1098 pub fn timestamp(&self) -> timestamp::calls::api::TransactionApi {
1099 timestamp::calls::api::TransactionApi
1100 }
1101 #[must_use]
1102 pub fn parachain_system(&self) -> parachain_system::calls::api::TransactionApi {
1103 parachain_system::calls::api::TransactionApi
1104 }
1105 #[must_use]
1106 pub fn balances(&self) -> balances::calls::api::TransactionApi {
1107 balances::calls::api::TransactionApi
1108 }
1109 #[must_use]
1110 pub fn sudo(&self) -> sudo::calls::api::TransactionApi {
1111 sudo::calls::api::TransactionApi
1112 }
1113 #[must_use]
1114 pub fn content(&self) -> content::calls::api::TransactionApi {
1115 content::calls::api::TransactionApi
1116 }
1117 #[must_use]
1118 pub fn account_content(&self) -> account_content::calls::api::TransactionApi {
1119 account_content::calls::api::TransactionApi
1120 }
1121 #[must_use]
1122 pub fn account_profile(&self) -> account_profile::calls::api::TransactionApi {
1123 account_profile::calls::api::TransactionApi
1124 }
1125 #[must_use]
1126 pub fn content_reactions(&self) -> content_reactions::calls::api::TransactionApi {
1127 content_reactions::calls::api::TransactionApi
1128 }
1129 #[must_use]
1130 pub fn utility(&self) -> utility::calls::api::TransactionApi {
1131 utility::calls::api::TransactionApi
1132 }
1133 }
1134 pub struct ViewFunctionsApi;
1135 impl ViewFunctionsApi {}
1136 #[must_use]
1137 #[doc = r" check whether the metadata provided is aligned with this statically generated code."]
1138 pub fn is_codegen_valid_for(metadata: &::subxt::Metadata) -> bool {
1139 let runtime_metadata_hash = metadata
1140 .hasher()
1141 .only_these_pallets(&PALLETS)
1142 .only_these_runtime_apis(&RUNTIME_APIS)
1143 .hash();
1144 runtime_metadata_hash
1145 == [
1146 237u8, 53u8, 225u8, 193u8, 28u8, 164u8, 224u8, 4u8, 217u8, 0u8, 108u8, 166u8, 45u8,
1147 137u8, 70u8, 153u8, 230u8, 31u8, 70u8, 122u8, 32u8, 216u8, 113u8, 114u8, 105u8,
1148 147u8, 164u8, 8u8, 121u8, 136u8, 162u8, 35u8,
1149 ]
1150 }
1151 pub mod system {
1152 use super::root_mod;
1153 use super::runtime_types;
1154 #[doc = "Error for the System pallet"]
1155 pub type Error = runtime_types::frame_system::pallet::Error;
1156 #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."]
1157 pub type Call = runtime_types::frame_system::pallet::Call;
1158 pub mod calls {
1159 use super::root_mod;
1160 use super::runtime_types;
1161 #[derive(
1162 :: subxt :: ext :: scale_decode :: DecodeAsType,
1163 :: subxt :: ext :: scale_encode :: EncodeAsType,
1164 Debug,
1165 )]
1166 #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
1167 #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
1168 #[doc = "Make some on-chain remark."]
1169 #[doc = ""]
1170 #[doc = "Can be executed by every `origin`."]
1171 pub struct Remark {
1172 pub remark: remark::Remark,
1173 }
1174 pub mod remark {
1175 use super::runtime_types;
1176 pub type Remark = ::subxt::alloc::vec::Vec<::core::primitive::u8>;
1177 }
1178 impl Remark {
1179 const PALLET_NAME: &'static str = "System";
1180 const CALL_NAME: &'static str = "remark";
1181 }
1182 impl ::subxt::extrinsics::DecodeAsExtrinsic for Remark {
1183 fn is_extrinsic(pallet_name: &str, call_name: &str) -> bool {
1184 pallet_name == Self::PALLET_NAME && call_name == Self::CALL_NAME
1185 }
1186 }
1187 #[derive(
1188 :: subxt :: ext :: scale_decode :: DecodeAsType,
1189 :: subxt :: ext :: scale_encode :: EncodeAsType,
1190 Debug,
1191 )]
1192 #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
1193 #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
1194 #[doc = "Set the number of pages in the WebAssembly environment's heap."]
1195 pub struct SetHeapPages {
1196 pub pages: set_heap_pages::Pages,
1197 }
1198 pub mod set_heap_pages {
1199 use super::runtime_types;
1200 pub type Pages = ::core::primitive::u64;
1201 }
1202 impl SetHeapPages {
1203 const PALLET_NAME: &'static str = "System";
1204 const CALL_NAME: &'static str = "set_heap_pages";
1205 }
1206 impl ::subxt::extrinsics::DecodeAsExtrinsic for SetHeapPages {
1207 fn is_extrinsic(pallet_name: &str, call_name: &str) -> bool {
1208 pallet_name == Self::PALLET_NAME && call_name == Self::CALL_NAME
1209 }
1210 }
1211 #[derive(
1212 :: subxt :: ext :: scale_decode :: DecodeAsType,
1213 :: subxt :: ext :: scale_encode :: EncodeAsType,
1214 Debug,
1215 )]
1216 #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
1217 #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
1218 #[doc = "Set the new runtime code."]
1219 pub struct SetCode {
1220 pub code: set_code::Code,
1221 }
1222 pub mod set_code {
1223 use super::runtime_types;
1224 pub type Code = ::subxt::alloc::vec::Vec<::core::primitive::u8>;
1225 }
1226 impl SetCode {
1227 const PALLET_NAME: &'static str = "System";
1228 const CALL_NAME: &'static str = "set_code";
1229 }
1230 impl ::subxt::extrinsics::DecodeAsExtrinsic for SetCode {
1231 fn is_extrinsic(pallet_name: &str, call_name: &str) -> bool {
1232 pallet_name == Self::PALLET_NAME && call_name == Self::CALL_NAME
1233 }
1234 }
1235 #[derive(
1236 :: subxt :: ext :: scale_decode :: DecodeAsType,
1237 :: subxt :: ext :: scale_encode :: EncodeAsType,
1238 Debug,
1239 )]
1240 #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
1241 #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
1242 #[doc = "Set the new runtime code without doing any checks of the given `code`."]
1243 #[doc = ""]
1244 #[doc = "Note that runtime upgrades will not run if this is called with a not-increasing spec"]
1245 #[doc = "version!"]
1246 pub struct SetCodeWithoutChecks {
1247 pub code: set_code_without_checks::Code,
1248 }
1249 pub mod set_code_without_checks {
1250 use super::runtime_types;
1251 pub type Code = ::subxt::alloc::vec::Vec<::core::primitive::u8>;
1252 }
1253 impl SetCodeWithoutChecks {
1254 const PALLET_NAME: &'static str = "System";
1255 const CALL_NAME: &'static str = "set_code_without_checks";
1256 }
1257 impl ::subxt::extrinsics::DecodeAsExtrinsic for SetCodeWithoutChecks {
1258 fn is_extrinsic(pallet_name: &str, call_name: &str) -> bool {
1259 pallet_name == Self::PALLET_NAME && call_name == Self::CALL_NAME
1260 }
1261 }
1262 #[derive(
1263 :: subxt :: ext :: scale_decode :: DecodeAsType,
1264 :: subxt :: ext :: scale_encode :: EncodeAsType,
1265 Debug,
1266 )]
1267 #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
1268 #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
1269 #[doc = "Set some items of storage."]
1270 pub struct SetStorage {
1271 pub items: set_storage::Items,
1272 }
1273 pub mod set_storage {
1274 use super::runtime_types;
1275 pub type Items = ::subxt::alloc::vec::Vec<(
1276 ::subxt::alloc::vec::Vec<::core::primitive::u8>,
1277 ::subxt::alloc::vec::Vec<::core::primitive::u8>,
1278 )>;
1279 }
1280 impl SetStorage {
1281 const PALLET_NAME: &'static str = "System";
1282 const CALL_NAME: &'static str = "set_storage";
1283 }
1284 impl ::subxt::extrinsics::DecodeAsExtrinsic for SetStorage {
1285 fn is_extrinsic(pallet_name: &str, call_name: &str) -> bool {
1286 pallet_name == Self::PALLET_NAME && call_name == Self::CALL_NAME
1287 }
1288 }
1289 #[derive(
1290 :: subxt :: ext :: scale_decode :: DecodeAsType,
1291 :: subxt :: ext :: scale_encode :: EncodeAsType,
1292 Debug,
1293 )]
1294 #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
1295 #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
1296 #[doc = "Kill some items from storage."]
1297 pub struct KillStorage {
1298 pub keys: kill_storage::Keys,
1299 }
1300 pub mod kill_storage {
1301 use super::runtime_types;
1302 pub type Keys =
1303 ::subxt::alloc::vec::Vec<::subxt::alloc::vec::Vec<::core::primitive::u8>>;
1304 }
1305 impl KillStorage {
1306 const PALLET_NAME: &'static str = "System";
1307 const CALL_NAME: &'static str = "kill_storage";
1308 }
1309 impl ::subxt::extrinsics::DecodeAsExtrinsic for KillStorage {
1310 fn is_extrinsic(pallet_name: &str, call_name: &str) -> bool {
1311 pallet_name == Self::PALLET_NAME && call_name == Self::CALL_NAME
1312 }
1313 }
1314 #[derive(
1315 :: subxt :: ext :: scale_decode :: DecodeAsType,
1316 :: subxt :: ext :: scale_encode :: EncodeAsType,
1317 Debug,
1318 )]
1319 #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
1320 #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
1321 #[doc = "Kill all storage items with a key that starts with the given prefix."]
1322 #[doc = ""]
1323 #[doc = "**NOTE:** We rely on the Root origin to provide us the number of subkeys under"]
1324 #[doc = "the prefix we are removing to accurately calculate the weight of this function."]
1325 pub struct KillPrefix {
1326 pub prefix: kill_prefix::Prefix,
1327 pub subkeys: kill_prefix::Subkeys,
1328 }
1329 pub mod kill_prefix {
1330 use super::runtime_types;
1331 pub type Prefix = ::subxt::alloc::vec::Vec<::core::primitive::u8>;
1332 pub type Subkeys = ::core::primitive::u32;
1333 }
1334 impl KillPrefix {
1335 const PALLET_NAME: &'static str = "System";
1336 const CALL_NAME: &'static str = "kill_prefix";
1337 }
1338 impl ::subxt::extrinsics::DecodeAsExtrinsic for KillPrefix {
1339 fn is_extrinsic(pallet_name: &str, call_name: &str) -> bool {
1340 pallet_name == Self::PALLET_NAME && call_name == Self::CALL_NAME
1341 }
1342 }
1343 #[derive(
1344 :: subxt :: ext :: scale_decode :: DecodeAsType,
1345 :: subxt :: ext :: scale_encode :: EncodeAsType,
1346 Debug,
1347 )]
1348 #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
1349 #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
1350 #[doc = "Make some on-chain remark and emit event."]
1351 pub struct RemarkWithEvent {
1352 pub remark: remark_with_event::Remark,
1353 }
1354 pub mod remark_with_event {
1355 use super::runtime_types;
1356 pub type Remark = ::subxt::alloc::vec::Vec<::core::primitive::u8>;
1357 }
1358 impl RemarkWithEvent {
1359 const PALLET_NAME: &'static str = "System";
1360 const CALL_NAME: &'static str = "remark_with_event";
1361 }
1362 impl ::subxt::extrinsics::DecodeAsExtrinsic for RemarkWithEvent {
1363 fn is_extrinsic(pallet_name: &str, call_name: &str) -> bool {
1364 pallet_name == Self::PALLET_NAME && call_name == Self::CALL_NAME
1365 }
1366 }
1367 #[derive(
1368 :: subxt :: ext :: scale_decode :: DecodeAsType,
1369 :: subxt :: ext :: scale_encode :: EncodeAsType,
1370 Debug,
1371 )]
1372 #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
1373 #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
1374 #[doc = "Authorize an upgrade to a given `code_hash` for the runtime. The runtime can be supplied"]
1375 #[doc = "later."]
1376 #[doc = ""]
1377 #[doc = "This call requires Root origin."]
1378 pub struct AuthorizeUpgrade {
1379 pub code_hash: authorize_upgrade::CodeHash,
1380 }
1381 pub mod authorize_upgrade {
1382 use super::runtime_types;
1383 pub type CodeHash = ::subxt::utils::H256;
1384 }
1385 impl AuthorizeUpgrade {
1386 const PALLET_NAME: &'static str = "System";
1387 const CALL_NAME: &'static str = "authorize_upgrade";
1388 }
1389 impl ::subxt::extrinsics::DecodeAsExtrinsic for AuthorizeUpgrade {
1390 fn is_extrinsic(pallet_name: &str, call_name: &str) -> bool {
1391 pallet_name == Self::PALLET_NAME && call_name == Self::CALL_NAME
1392 }
1393 }
1394 #[derive(
1395 :: subxt :: ext :: scale_decode :: DecodeAsType,
1396 :: subxt :: ext :: scale_encode :: EncodeAsType,
1397 Debug,
1398 )]
1399 #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
1400 #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
1401 #[doc = "Authorize an upgrade to a given `code_hash` for the runtime. The runtime can be supplied"]
1402 #[doc = "later."]
1403 #[doc = ""]
1404 #[doc = "WARNING: This authorizes an upgrade that will take place without any safety checks, for"]
1405 #[doc = "example that the spec name remains the same and that the version number increases. Not"]
1406 #[doc = "recommended for normal use. Use `authorize_upgrade` instead."]
1407 #[doc = ""]
1408 #[doc = "This call requires Root origin."]
1409 pub struct AuthorizeUpgradeWithoutChecks {
1410 pub code_hash: authorize_upgrade_without_checks::CodeHash,
1411 }
1412 pub mod authorize_upgrade_without_checks {
1413 use super::runtime_types;
1414 pub type CodeHash = ::subxt::utils::H256;
1415 }
1416 impl AuthorizeUpgradeWithoutChecks {
1417 const PALLET_NAME: &'static str = "System";
1418 const CALL_NAME: &'static str = "authorize_upgrade_without_checks";
1419 }
1420 impl ::subxt::extrinsics::DecodeAsExtrinsic for AuthorizeUpgradeWithoutChecks {
1421 fn is_extrinsic(pallet_name: &str, call_name: &str) -> bool {
1422 pallet_name == Self::PALLET_NAME && call_name == Self::CALL_NAME
1423 }
1424 }
1425 #[derive(
1426 :: subxt :: ext :: scale_decode :: DecodeAsType,
1427 :: subxt :: ext :: scale_encode :: EncodeAsType,
1428 Debug,
1429 )]
1430 #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
1431 #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
1432 #[doc = "Provide the preimage (runtime binary) `code` for an upgrade that has been authorized."]
1433 #[doc = ""]
1434 #[doc = "If the authorization required a version check, this call will ensure the spec name"]
1435 #[doc = "remains unchanged and that the spec version has increased."]
1436 #[doc = ""]
1437 #[doc = "Depending on the runtime's `OnSetCode` configuration, this function may directly apply"]
1438 #[doc = "the new `code` in the same block or attempt to schedule the upgrade."]
1439 #[doc = ""]
1440 #[doc = "All origins are allowed."]
1441 pub struct ApplyAuthorizedUpgrade {
1442 pub code: apply_authorized_upgrade::Code,
1443 }
1444 pub mod apply_authorized_upgrade {
1445 use super::runtime_types;
1446 pub type Code = ::subxt::alloc::vec::Vec<::core::primitive::u8>;
1447 }
1448 impl ApplyAuthorizedUpgrade {
1449 const PALLET_NAME: &'static str = "System";
1450 const CALL_NAME: &'static str = "apply_authorized_upgrade";
1451 }
1452 impl ::subxt::extrinsics::DecodeAsExtrinsic for ApplyAuthorizedUpgrade {
1453 fn is_extrinsic(pallet_name: &str, call_name: &str) -> bool {
1454 pallet_name == Self::PALLET_NAME && call_name == Self::CALL_NAME
1455 }
1456 }
1457 pub mod api {
1458 pub struct TransactionApi;
1459 impl TransactionApi {
1460 #[must_use]
1461 #[doc = "Make some on-chain remark."]
1462 #[doc = ""]
1463 #[doc = "Can be executed by every `origin`."]
1464 pub fn remark(
1465 &self,
1466 remark: super::remark::Remark,
1467 ) -> ::subxt::transactions::StaticPayload<super::Remark> {
1468 ::subxt::transactions::StaticPayload::new_static(
1469 "System",
1470 "remark",
1471 super::Remark { remark },
1472 [
1473 43u8, 126u8, 180u8, 174u8, 141u8, 48u8, 52u8, 125u8, 166u8, 212u8,
1474 216u8, 98u8, 100u8, 24u8, 132u8, 71u8, 101u8, 64u8, 246u8, 169u8,
1475 33u8, 250u8, 147u8, 208u8, 2u8, 40u8, 129u8, 209u8, 232u8, 207u8,
1476 207u8, 13u8,
1477 ],
1478 )
1479 }
1480 #[must_use]
1481 #[doc = "Set the number of pages in the WebAssembly environment's heap."]
1482 pub fn set_heap_pages(
1483 &self,
1484 pages: super::set_heap_pages::Pages,
1485 ) -> ::subxt::transactions::StaticPayload<super::SetHeapPages>
1486 {
1487 ::subxt::transactions::StaticPayload::new_static(
1488 "System",
1489 "set_heap_pages",
1490 super::SetHeapPages { pages },
1491 [
1492 188u8, 191u8, 99u8, 216u8, 219u8, 109u8, 141u8, 50u8, 78u8, 235u8,
1493 215u8, 242u8, 195u8, 24u8, 111u8, 76u8, 229u8, 64u8, 99u8, 225u8,
1494 134u8, 121u8, 81u8, 209u8, 127u8, 223u8, 98u8, 215u8, 150u8, 70u8,
1495 57u8, 147u8,
1496 ],
1497 )
1498 }
1499 #[must_use]
1500 #[doc = "Set the new runtime code."]
1501 pub fn set_code(
1502 &self,
1503 code: super::set_code::Code,
1504 ) -> ::subxt::transactions::StaticPayload<super::SetCode> {
1505 ::subxt::transactions::StaticPayload::new_static(
1506 "System",
1507 "set_code",
1508 super::SetCode { code },
1509 [
1510 233u8, 248u8, 88u8, 245u8, 28u8, 65u8, 25u8, 169u8, 35u8, 237u8,
1511 19u8, 203u8, 136u8, 160u8, 18u8, 3u8, 20u8, 197u8, 81u8, 169u8,
1512 244u8, 188u8, 27u8, 147u8, 147u8, 236u8, 65u8, 25u8, 3u8, 143u8,
1513 182u8, 22u8,
1514 ],
1515 )
1516 }
1517 #[must_use]
1518 #[doc = "Set the new runtime code without doing any checks of the given `code`."]
1519 #[doc = ""]
1520 #[doc = "Note that runtime upgrades will not run if this is called with a not-increasing spec"]
1521 #[doc = "version!"]
1522 pub fn set_code_without_checks(
1523 &self,
1524 code: super::set_code_without_checks::Code,
1525 ) -> ::subxt::transactions::StaticPayload<super::SetCodeWithoutChecks>
1526 {
1527 ::subxt::transactions::StaticPayload::new_static(
1528 "System",
1529 "set_code_without_checks",
1530 super::SetCodeWithoutChecks { code },
1531 [
1532 82u8, 212u8, 157u8, 44u8, 70u8, 0u8, 143u8, 15u8, 109u8, 109u8,
1533 107u8, 157u8, 141u8, 42u8, 169u8, 11u8, 15u8, 186u8, 252u8, 138u8,
1534 10u8, 147u8, 15u8, 178u8, 247u8, 229u8, 213u8, 98u8, 207u8, 231u8,
1535 119u8, 115u8,
1536 ],
1537 )
1538 }
1539 #[must_use]
1540 #[doc = "Set some items of storage."]
1541 pub fn set_storage(
1542 &self,
1543 items: super::set_storage::Items,
1544 ) -> ::subxt::transactions::StaticPayload<super::SetStorage>
1545 {
1546 ::subxt::transactions::StaticPayload::new_static(
1547 "System",
1548 "set_storage",
1549 super::SetStorage { items },
1550 [
1551 141u8, 216u8, 52u8, 222u8, 223u8, 136u8, 123u8, 181u8, 19u8, 75u8,
1552 163u8, 102u8, 229u8, 189u8, 158u8, 142u8, 95u8, 235u8, 240u8, 49u8,
1553 150u8, 76u8, 78u8, 137u8, 126u8, 88u8, 183u8, 88u8, 231u8, 146u8,
1554 234u8, 43u8,
1555 ],
1556 )
1557 }
1558 #[must_use]
1559 #[doc = "Kill some items from storage."]
1560 pub fn kill_storage(
1561 &self,
1562 keys: super::kill_storage::Keys,
1563 ) -> ::subxt::transactions::StaticPayload<super::KillStorage>
1564 {
1565 ::subxt::transactions::StaticPayload::new_static(
1566 "System",
1567 "kill_storage",
1568 super::KillStorage { keys },
1569 [
1570 73u8, 63u8, 196u8, 36u8, 144u8, 114u8, 34u8, 213u8, 108u8, 93u8,
1571 209u8, 234u8, 153u8, 185u8, 33u8, 91u8, 187u8, 195u8, 223u8, 130u8,
1572 58u8, 156u8, 63u8, 47u8, 228u8, 249u8, 216u8, 139u8, 143u8, 177u8,
1573 41u8, 35u8,
1574 ],
1575 )
1576 }
1577 #[must_use]
1578 #[doc = "Kill all storage items with a key that starts with the given prefix."]
1579 #[doc = ""]
1580 #[doc = "**NOTE:** We rely on the Root origin to provide us the number of subkeys under"]
1581 #[doc = "the prefix we are removing to accurately calculate the weight of this function."]
1582 pub fn kill_prefix(
1583 &self,
1584 prefix: super::kill_prefix::Prefix,
1585 subkeys: super::kill_prefix::Subkeys,
1586 ) -> ::subxt::transactions::StaticPayload<super::KillPrefix>
1587 {
1588 ::subxt::transactions::StaticPayload::new_static(
1589 "System",
1590 "kill_prefix",
1591 super::KillPrefix { prefix, subkeys },
1592 [
1593 184u8, 57u8, 139u8, 24u8, 208u8, 87u8, 108u8, 215u8, 198u8, 189u8,
1594 175u8, 242u8, 167u8, 215u8, 97u8, 63u8, 110u8, 166u8, 238u8, 98u8,
1595 67u8, 236u8, 111u8, 110u8, 234u8, 81u8, 102u8, 5u8, 182u8, 5u8,
1596 214u8, 85u8,
1597 ],
1598 )
1599 }
1600 #[must_use]
1601 #[doc = "Make some on-chain remark and emit event."]
1602 pub fn remark_with_event(
1603 &self,
1604 remark: super::remark_with_event::Remark,
1605 ) -> ::subxt::transactions::StaticPayload<super::RemarkWithEvent>
1606 {
1607 ::subxt::transactions::StaticPayload::new_static(
1608 "System",
1609 "remark_with_event",
1610 super::RemarkWithEvent { remark },
1611 [
1612 120u8, 120u8, 153u8, 92u8, 184u8, 85u8, 34u8, 2u8, 174u8, 206u8,
1613 105u8, 228u8, 233u8, 130u8, 80u8, 246u8, 228u8, 59u8, 234u8, 240u8,
1614 4u8, 49u8, 147u8, 170u8, 115u8, 91u8, 149u8, 200u8, 228u8, 181u8,
1615 8u8, 154u8,
1616 ],
1617 )
1618 }
1619 #[must_use]
1620 #[doc = "Authorize an upgrade to a given `code_hash` for the runtime. The runtime can be supplied"]
1621 #[doc = "later."]
1622 #[doc = ""]
1623 #[doc = "This call requires Root origin."]
1624 pub fn authorize_upgrade(
1625 &self,
1626 code_hash: super::authorize_upgrade::CodeHash,
1627 ) -> ::subxt::transactions::StaticPayload<super::AuthorizeUpgrade>
1628 {
1629 ::subxt::transactions::StaticPayload::new_static(
1630 "System",
1631 "authorize_upgrade",
1632 super::AuthorizeUpgrade { code_hash },
1633 [
1634 4u8, 14u8, 76u8, 107u8, 209u8, 129u8, 9u8, 39u8, 193u8, 17u8, 84u8,
1635 254u8, 170u8, 214u8, 24u8, 155u8, 29u8, 184u8, 249u8, 241u8, 109u8,
1636 58u8, 145u8, 131u8, 109u8, 63u8, 38u8, 165u8, 107u8, 215u8, 217u8,
1637 172u8,
1638 ],
1639 )
1640 }
1641 #[must_use]
1642 #[doc = "Authorize an upgrade to a given `code_hash` for the runtime. The runtime can be supplied"]
1643 #[doc = "later."]
1644 #[doc = ""]
1645 #[doc = "WARNING: This authorizes an upgrade that will take place without any safety checks, for"]
1646 #[doc = "example that the spec name remains the same and that the version number increases. Not"]
1647 #[doc = "recommended for normal use. Use `authorize_upgrade` instead."]
1648 #[doc = ""]
1649 #[doc = "This call requires Root origin."]
1650 pub fn authorize_upgrade_without_checks(
1651 &self,
1652 code_hash: super::authorize_upgrade_without_checks::CodeHash,
1653 ) -> ::subxt::transactions::StaticPayload<super::AuthorizeUpgradeWithoutChecks>
1654 {
1655 ::subxt::transactions::StaticPayload::new_static(
1656 "System",
1657 "authorize_upgrade_without_checks",
1658 super::AuthorizeUpgradeWithoutChecks { code_hash },
1659 [
1660 126u8, 126u8, 55u8, 26u8, 47u8, 55u8, 66u8, 8u8, 167u8, 18u8, 29u8,
1661 136u8, 146u8, 14u8, 189u8, 117u8, 16u8, 227u8, 162u8, 61u8, 149u8,
1662 197u8, 104u8, 184u8, 185u8, 161u8, 99u8, 154u8, 80u8, 125u8, 181u8,
1663 233u8,
1664 ],
1665 )
1666 }
1667 #[must_use]
1668 #[doc = "Provide the preimage (runtime binary) `code` for an upgrade that has been authorized."]
1669 #[doc = ""]
1670 #[doc = "If the authorization required a version check, this call will ensure the spec name"]
1671 #[doc = "remains unchanged and that the spec version has increased."]
1672 #[doc = ""]
1673 #[doc = "Depending on the runtime's `OnSetCode` configuration, this function may directly apply"]
1674 #[doc = "the new `code` in the same block or attempt to schedule the upgrade."]
1675 #[doc = ""]
1676 #[doc = "All origins are allowed."]
1677 pub fn apply_authorized_upgrade(
1678 &self,
1679 code: super::apply_authorized_upgrade::Code,
1680 ) -> ::subxt::transactions::StaticPayload<super::ApplyAuthorizedUpgrade>
1681 {
1682 ::subxt::transactions::StaticPayload::new_static(
1683 "System",
1684 "apply_authorized_upgrade",
1685 super::ApplyAuthorizedUpgrade { code },
1686 [
1687 232u8, 107u8, 127u8, 38u8, 230u8, 29u8, 97u8, 4u8, 160u8, 191u8,
1688 222u8, 156u8, 245u8, 102u8, 196u8, 141u8, 44u8, 163u8, 98u8, 68u8,
1689 125u8, 32u8, 124u8, 101u8, 108u8, 93u8, 211u8, 52u8, 0u8, 231u8,
1690 33u8, 227u8,
1691 ],
1692 )
1693 }
1694 }
1695 }
1696 }
1697 #[doc = "Event for the System pallet."]
1698 pub type Event = runtime_types::frame_system::pallet::Event;
1699 pub mod events {
1700 use super::runtime_types;
1701 #[derive(
1702 :: subxt :: ext :: scale_decode :: DecodeAsType,
1703 :: subxt :: ext :: scale_encode :: EncodeAsType,
1704 Debug,
1705 )]
1706 #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
1707 #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
1708 #[doc = "An extrinsic completed successfully."]
1709 pub struct ExtrinsicSuccess {
1710 pub dispatch_info: extrinsic_success::DispatchInfo,
1711 }
1712 pub mod extrinsic_success {
1713 use super::runtime_types;
1714 pub type DispatchInfo = runtime_types::frame_system::DispatchEventInfo;
1715 }
1716 impl ExtrinsicSuccess {
1717 const PALLET_NAME: &'static str = "System";
1718 const EVENT_NAME: &'static str = "ExtrinsicSuccess";
1719 }
1720 impl ::subxt::events::DecodeAsEvent for ExtrinsicSuccess {
1721 fn is_event(pallet_name: &str, event_name: &str) -> bool {
1722 pallet_name == Self::PALLET_NAME && event_name == Self::EVENT_NAME
1723 }
1724 }
1725 #[derive(
1726 :: subxt :: ext :: scale_decode :: DecodeAsType,
1727 :: subxt :: ext :: scale_encode :: EncodeAsType,
1728 Debug,
1729 )]
1730 #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
1731 #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
1732 #[doc = "An extrinsic failed."]
1733 pub struct ExtrinsicFailed {
1734 pub dispatch_error: extrinsic_failed::DispatchError,
1735 pub dispatch_info: extrinsic_failed::DispatchInfo,
1736 }
1737 pub mod extrinsic_failed {
1738 use super::runtime_types;
1739 pub type DispatchError = runtime_types::sp_runtime::DispatchError;
1740 pub type DispatchInfo = runtime_types::frame_system::DispatchEventInfo;
1741 }
1742 impl ExtrinsicFailed {
1743 const PALLET_NAME: &'static str = "System";
1744 const EVENT_NAME: &'static str = "ExtrinsicFailed";
1745 }
1746 impl ::subxt::events::DecodeAsEvent for ExtrinsicFailed {
1747 fn is_event(pallet_name: &str, event_name: &str) -> bool {
1748 pallet_name == Self::PALLET_NAME && event_name == Self::EVENT_NAME
1749 }
1750 }
1751 #[derive(
1752 :: subxt :: ext :: scale_decode :: DecodeAsType,
1753 :: subxt :: ext :: scale_encode :: EncodeAsType,
1754 Debug,
1755 )]
1756 #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
1757 #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
1758 #[doc = "`:code` was updated to the code with the given hash."]
1759 pub struct CodeUpdated {
1760 pub hash: code_updated::Hash,
1761 }
1762 pub mod code_updated {
1763 use super::runtime_types;
1764 pub type Hash = ::subxt::utils::H256;
1765 }
1766 impl CodeUpdated {
1767 const PALLET_NAME: &'static str = "System";
1768 const EVENT_NAME: &'static str = "CodeUpdated";
1769 }
1770 impl ::subxt::events::DecodeAsEvent for CodeUpdated {
1771 fn is_event(pallet_name: &str, event_name: &str) -> bool {
1772 pallet_name == Self::PALLET_NAME && event_name == Self::EVENT_NAME
1773 }
1774 }
1775 #[derive(
1776 :: subxt :: ext :: scale_decode :: DecodeAsType,
1777 :: subxt :: ext :: scale_encode :: EncodeAsType,
1778 Debug,
1779 )]
1780 #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
1781 #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
1782 #[doc = "A new account was created."]
1783 pub struct NewAccount {
1784 pub account: new_account::Account,
1785 }
1786 pub mod new_account {
1787 use super::runtime_types;
1788 pub type Account = ::subxt::utils::AccountId32;
1789 }
1790 impl NewAccount {
1791 const PALLET_NAME: &'static str = "System";
1792 const EVENT_NAME: &'static str = "NewAccount";
1793 }
1794 impl ::subxt::events::DecodeAsEvent for NewAccount {
1795 fn is_event(pallet_name: &str, event_name: &str) -> bool {
1796 pallet_name == Self::PALLET_NAME && event_name == Self::EVENT_NAME
1797 }
1798 }
1799 #[derive(
1800 :: subxt :: ext :: scale_decode :: DecodeAsType,
1801 :: subxt :: ext :: scale_encode :: EncodeAsType,
1802 Debug,
1803 )]
1804 #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
1805 #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
1806 #[doc = "An account was reaped."]
1807 pub struct KilledAccount {
1808 pub account: killed_account::Account,
1809 }
1810 pub mod killed_account {
1811 use super::runtime_types;
1812 pub type Account = ::subxt::utils::AccountId32;
1813 }
1814 impl KilledAccount {
1815 const PALLET_NAME: &'static str = "System";
1816 const EVENT_NAME: &'static str = "KilledAccount";
1817 }
1818 impl ::subxt::events::DecodeAsEvent for KilledAccount {
1819 fn is_event(pallet_name: &str, event_name: &str) -> bool {
1820 pallet_name == Self::PALLET_NAME && event_name == Self::EVENT_NAME
1821 }
1822 }
1823 #[derive(
1824 :: subxt :: ext :: scale_decode :: DecodeAsType,
1825 :: subxt :: ext :: scale_encode :: EncodeAsType,
1826 Debug,
1827 )]
1828 #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
1829 #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
1830 #[doc = "On on-chain remark happened."]
1831 pub struct Remarked {
1832 pub sender: remarked::Sender,
1833 pub hash: remarked::Hash,
1834 }
1835 pub mod remarked {
1836 use super::runtime_types;
1837 pub type Sender = ::subxt::utils::AccountId32;
1838 pub type Hash = ::subxt::utils::H256;
1839 }
1840 impl Remarked {
1841 const PALLET_NAME: &'static str = "System";
1842 const EVENT_NAME: &'static str = "Remarked";
1843 }
1844 impl ::subxt::events::DecodeAsEvent for Remarked {
1845 fn is_event(pallet_name: &str, event_name: &str) -> bool {
1846 pallet_name == Self::PALLET_NAME && event_name == Self::EVENT_NAME
1847 }
1848 }
1849 #[derive(
1850 :: subxt :: ext :: scale_decode :: DecodeAsType,
1851 :: subxt :: ext :: scale_encode :: EncodeAsType,
1852 Debug,
1853 )]
1854 #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
1855 #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
1856 #[doc = "An upgrade was authorized."]
1857 pub struct UpgradeAuthorized {
1858 pub code_hash: upgrade_authorized::CodeHash,
1859 pub check_version: upgrade_authorized::CheckVersion,
1860 }
1861 pub mod upgrade_authorized {
1862 use super::runtime_types;
1863 pub type CodeHash = ::subxt::utils::H256;
1864 pub type CheckVersion = ::core::primitive::bool;
1865 }
1866 impl UpgradeAuthorized {
1867 const PALLET_NAME: &'static str = "System";
1868 const EVENT_NAME: &'static str = "UpgradeAuthorized";
1869 }
1870 impl ::subxt::events::DecodeAsEvent for UpgradeAuthorized {
1871 fn is_event(pallet_name: &str, event_name: &str) -> bool {
1872 pallet_name == Self::PALLET_NAME && event_name == Self::EVENT_NAME
1873 }
1874 }
1875 #[derive(
1876 :: subxt :: ext :: scale_decode :: DecodeAsType,
1877 :: subxt :: ext :: scale_encode :: EncodeAsType,
1878 Debug,
1879 )]
1880 #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
1881 #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
1882 #[doc = "An invalid authorized upgrade was rejected while trying to apply it."]
1883 pub struct RejectedInvalidAuthorizedUpgrade {
1884 pub code_hash: rejected_invalid_authorized_upgrade::CodeHash,
1885 pub error: rejected_invalid_authorized_upgrade::Error,
1886 }
1887 pub mod rejected_invalid_authorized_upgrade {
1888 use super::runtime_types;
1889 pub type CodeHash = ::subxt::utils::H256;
1890 pub type Error = runtime_types::sp_runtime::DispatchError;
1891 }
1892 impl RejectedInvalidAuthorizedUpgrade {
1893 const PALLET_NAME: &'static str = "System";
1894 const EVENT_NAME: &'static str = "RejectedInvalidAuthorizedUpgrade";
1895 }
1896 impl ::subxt::events::DecodeAsEvent for RejectedInvalidAuthorizedUpgrade {
1897 fn is_event(pallet_name: &str, event_name: &str) -> bool {
1898 pallet_name == Self::PALLET_NAME && event_name == Self::EVENT_NAME
1899 }
1900 }
1901 }
1902 pub mod storage {
1903 use super::root_mod;
1904 use super::runtime_types;
1905 pub struct StorageApi;
1906 impl StorageApi {
1907 #[must_use]
1908 #[doc = " The full account information for a particular account ID."]
1909 pub fn account(
1910 &self,
1911 ) -> ::subxt::storage::StaticAddress<
1912 (account::input::Param0,),
1913 account::Output,
1914 ::subxt::utils::Maybe,
1915 > {
1916 ::subxt::storage::StaticAddress::new_static(
1917 "System",
1918 "Account",
1919 [
1920 181u8, 49u8, 172u8, 169u8, 233u8, 186u8, 227u8, 180u8, 188u8, 130u8,
1921 4u8, 70u8, 12u8, 226u8, 233u8, 72u8, 145u8, 59u8, 210u8, 78u8, 48u8,
1922 177u8, 203u8, 27u8, 216u8, 196u8, 244u8, 208u8, 26u8, 34u8, 13u8, 50u8,
1923 ],
1924 )
1925 }
1926 #[must_use]
1927 #[doc = " Total extrinsics count for the current block."]
1928 pub fn extrinsic_count(
1929 &self,
1930 ) -> ::subxt::storage::StaticAddress<(), extrinsic_count::Output, ::subxt::utils::Yes>
1931 {
1932 ::subxt::storage::StaticAddress::new_static(
1933 "System",
1934 "ExtrinsicCount",
1935 [
1936 217u8, 77u8, 146u8, 117u8, 157u8, 10u8, 137u8, 158u8, 27u8, 206u8,
1937 129u8, 195u8, 192u8, 141u8, 178u8, 6u8, 39u8, 199u8, 156u8, 101u8,
1938 60u8, 4u8, 166u8, 244u8, 193u8, 255u8, 148u8, 199u8, 83u8, 157u8, 67u8,
1939 193u8,
1940 ],
1941 )
1942 }
1943 #[must_use]
1944 #[doc = " Whether all inherents have been applied."]
1945 pub fn inherents_applied(
1946 &self,
1947 ) -> ::subxt::storage::StaticAddress<
1948 (),
1949 inherents_applied::Output,
1950 ::subxt::utils::Yes,
1951 > {
1952 ::subxt::storage::StaticAddress::new_static(
1953 "System",
1954 "InherentsApplied",
1955 [
1956 18u8, 210u8, 88u8, 91u8, 207u8, 11u8, 44u8, 234u8, 226u8, 71u8, 52u8,
1957 99u8, 125u8, 73u8, 149u8, 37u8, 57u8, 70u8, 39u8, 156u8, 159u8, 16u8,
1958 174u8, 10u8, 101u8, 172u8, 44u8, 61u8, 160u8, 139u8, 148u8, 113u8,
1959 ],
1960 )
1961 }
1962 #[must_use]
1963 #[doc = " The current weight for the block."]
1964 pub fn block_weight(
1965 &self,
1966 ) -> ::subxt::storage::StaticAddress<(), block_weight::Output, ::subxt::utils::Yes>
1967 {
1968 ::subxt::storage::StaticAddress::new_static(
1969 "System",
1970 "BlockWeight",
1971 [
1972 30u8, 69u8, 207u8, 199u8, 27u8, 245u8, 128u8, 231u8, 49u8, 94u8, 194u8,
1973 254u8, 18u8, 97u8, 20u8, 94u8, 12u8, 245u8, 93u8, 39u8, 34u8, 216u8,
1974 49u8, 39u8, 128u8, 139u8, 230u8, 83u8, 10u8, 42u8, 195u8, 115u8,
1975 ],
1976 )
1977 }
1978 #[must_use]
1979 #[doc = " Total size (in bytes) of the current block."]
1980 #[doc = ""]
1981 #[doc = " Tracks the size of the header and all extrinsics."]
1982 pub fn block_size(
1983 &self,
1984 ) -> ::subxt::storage::StaticAddress<(), block_size::Output, ::subxt::utils::Yes>
1985 {
1986 ::subxt::storage::StaticAddress::new_static(
1987 "System",
1988 "BlockSize",
1989 [
1990 189u8, 209u8, 204u8, 16u8, 123u8, 182u8, 74u8, 254u8, 0u8, 137u8,
1991 184u8, 170u8, 94u8, 208u8, 251u8, 174u8, 105u8, 91u8, 184u8, 127u8,
1992 194u8, 201u8, 191u8, 81u8, 121u8, 136u8, 121u8, 127u8, 4u8, 40u8,
1993 179u8, 159u8,
1994 ],
1995 )
1996 }
1997 #[must_use]
1998 #[doc = " Map of block numbers to block hashes."]
1999 pub fn block_hash(
2000 &self,
2001 ) -> ::subxt::storage::StaticAddress<
2002 (block_hash::input::Param0,),
2003 block_hash::Output,
2004 ::subxt::utils::Maybe,
2005 > {
2006 ::subxt::storage::StaticAddress::new_static(
2007 "System",
2008 "BlockHash",
2009 [
2010 251u8, 175u8, 179u8, 11u8, 47u8, 25u8, 43u8, 165u8, 168u8, 224u8, 35u8,
2011 57u8, 49u8, 93u8, 29u8, 47u8, 145u8, 113u8, 84u8, 200u8, 186u8, 21u8,
2012 22u8, 102u8, 126u8, 233u8, 10u8, 131u8, 47u8, 32u8, 165u8, 194u8,
2013 ],
2014 )
2015 }
2016 #[must_use]
2017 #[doc = " Extrinsics data for the current block (maps an extrinsic's index to its data)."]
2018 pub fn extrinsic_data(
2019 &self,
2020 ) -> ::subxt::storage::StaticAddress<
2021 (extrinsic_data::input::Param0,),
2022 extrinsic_data::Output,
2023 ::subxt::utils::Maybe,
2024 > {
2025 ::subxt::storage::StaticAddress::new_static(
2026 "System",
2027 "ExtrinsicData",
2028 [
2029 223u8, 197u8, 229u8, 38u8, 179u8, 46u8, 153u8, 107u8, 35u8, 131u8,
2030 71u8, 231u8, 213u8, 198u8, 141u8, 55u8, 2u8, 75u8, 114u8, 159u8, 0u8,
2031 16u8, 128u8, 190u8, 177u8, 92u8, 225u8, 213u8, 48u8, 167u8, 29u8,
2032 121u8,
2033 ],
2034 )
2035 }
2036 #[must_use]
2037 #[doc = " The current block number being processed. Set by `execute_block`."]
2038 pub fn number(
2039 &self,
2040 ) -> ::subxt::storage::StaticAddress<(), number::Output, ::subxt::utils::Yes>
2041 {
2042 ::subxt::storage::StaticAddress::new_static(
2043 "System",
2044 "Number",
2045 [
2046 93u8, 185u8, 195u8, 173u8, 19u8, 1u8, 39u8, 245u8, 243u8, 67u8, 228u8,
2047 232u8, 25u8, 15u8, 14u8, 109u8, 225u8, 34u8, 17u8, 110u8, 25u8, 154u8,
2048 149u8, 46u8, 184u8, 208u8, 79u8, 254u8, 166u8, 168u8, 33u8, 173u8,
2049 ],
2050 )
2051 }
2052 #[must_use]
2053 #[doc = " Hash of the previous block."]
2054 pub fn parent_hash(
2055 &self,
2056 ) -> ::subxt::storage::StaticAddress<(), parent_hash::Output, ::subxt::utils::Yes>
2057 {
2058 ::subxt::storage::StaticAddress::new_static(
2059 "System",
2060 "ParentHash",
2061 [
2062 252u8, 127u8, 135u8, 108u8, 14u8, 75u8, 71u8, 121u8, 36u8, 231u8, 44u8,
2063 64u8, 49u8, 246u8, 24u8, 49u8, 202u8, 229u8, 242u8, 74u8, 206u8, 65u8,
2064 78u8, 207u8, 12u8, 118u8, 33u8, 42u8, 130u8, 233u8, 33u8, 136u8,
2065 ],
2066 )
2067 }
2068 #[must_use]
2069 #[doc = " Digest of the current block, also part of the block header."]
2070 pub fn digest(
2071 &self,
2072 ) -> ::subxt::storage::StaticAddress<(), digest::Output, ::subxt::utils::Yes>
2073 {
2074 ::subxt::storage::StaticAddress::new_static(
2075 "System",
2076 "Digest",
2077 [
2078 137u8, 44u8, 198u8, 131u8, 117u8, 17u8, 114u8, 93u8, 213u8, 123u8,
2079 212u8, 55u8, 43u8, 34u8, 114u8, 86u8, 39u8, 18u8, 189u8, 157u8, 27u8,
2080 157u8, 155u8, 159u8, 147u8, 41u8, 138u8, 195u8, 20u8, 204u8, 110u8,
2081 53u8,
2082 ],
2083 )
2084 }
2085 #[must_use]
2086 #[doc = " Events deposited for the current block."]
2087 #[doc = ""]
2088 #[doc = " NOTE: The item is unbound and should therefore never be read on chain."]
2089 #[doc = " It could otherwise inflate the `PoV` size of a block."]
2090 #[doc = ""]
2091 #[doc = " Events have a large in-memory size. Box the events to not go out-of-memory"]
2092 #[doc = " just in case someone still reads them from within the runtime."]
2093 pub fn events(
2094 &self,
2095 ) -> ::subxt::storage::StaticAddress<(), events::Output, ::subxt::utils::Yes>
2096 {
2097 ::subxt::storage::StaticAddress::new_static(
2098 "System",
2099 "Events",
2100 [
2101 136u8, 237u8, 210u8, 168u8, 100u8, 127u8, 122u8, 26u8, 33u8, 177u8,
2102 118u8, 69u8, 157u8, 113u8, 42u8, 87u8, 104u8, 49u8, 177u8, 21u8, 155u8,
2103 216u8, 148u8, 40u8, 32u8, 146u8, 170u8, 29u8, 176u8, 227u8, 88u8,
2104 120u8,
2105 ],
2106 )
2107 }
2108 #[must_use]
2109 #[doc = " The number of events in the `Events<T>` list."]
2110 pub fn event_count(
2111 &self,
2112 ) -> ::subxt::storage::StaticAddress<(), event_count::Output, ::subxt::utils::Yes>
2113 {
2114 ::subxt::storage::StaticAddress::new_static(
2115 "System",
2116 "EventCount",
2117 [
2118 32u8, 54u8, 196u8, 23u8, 224u8, 204u8, 158u8, 79u8, 151u8, 46u8, 107u8,
2119 24u8, 120u8, 90u8, 137u8, 234u8, 64u8, 92u8, 174u8, 25u8, 152u8, 22u8,
2120 24u8, 245u8, 243u8, 212u8, 148u8, 149u8, 122u8, 171u8, 92u8, 140u8,
2121 ],
2122 )
2123 }
2124 #[must_use]
2125 #[doc = " Mapping between a topic (represented by `T::Hash`) and a vector of indexes"]
2126 #[doc = " of events in the `<Events<T>>` list."]
2127 #[doc = ""]
2128 #[doc = " All topic vectors have deterministic storage locations depending on the topic. This"]
2129 #[doc = " allows light-clients to leverage the changes trie storage tracking mechanism and"]
2130 #[doc = " in case of changes fetch the list of events of interest."]
2131 #[doc = ""]
2132 #[doc = " The value has the type `(BlockNumberFor<T>, EventIndex)` because if we used only just"]
2133 #[doc = " the `EventIndex` then in case if the topic has the same contents on the next block"]
2134 #[doc = " no notification will be triggered thus the event might be lost."]
2135 pub fn event_topics(
2136 &self,
2137 ) -> ::subxt::storage::StaticAddress<
2138 (event_topics::input::Param0,),
2139 event_topics::Output,
2140 ::subxt::utils::Maybe,
2141 > {
2142 ::subxt::storage::StaticAddress::new_static(
2143 "System",
2144 "EventTopics",
2145 [
2146 91u8, 29u8, 70u8, 62u8, 102u8, 127u8, 50u8, 42u8, 122u8, 136u8, 211u8,
2147 187u8, 165u8, 1u8, 82u8, 213u8, 58u8, 154u8, 239u8, 26u8, 213u8, 120u8,
2148 8u8, 179u8, 2u8, 134u8, 90u8, 241u8, 163u8, 199u8, 98u8, 94u8,
2149 ],
2150 )
2151 }
2152 #[must_use]
2153 #[doc = " Stores the `spec_version` and `spec_name` of when the last runtime upgrade happened."]
2154 pub fn last_runtime_upgrade(
2155 &self,
2156 ) -> ::subxt::storage::StaticAddress<
2157 (),
2158 last_runtime_upgrade::Output,
2159 ::subxt::utils::Yes,
2160 > {
2161 ::subxt::storage::StaticAddress::new_static(
2162 "System",
2163 "LastRuntimeUpgrade",
2164 [
2165 239u8, 183u8, 167u8, 75u8, 149u8, 166u8, 239u8, 31u8, 200u8, 140u8,
2166 61u8, 169u8, 227u8, 186u8, 101u8, 14u8, 78u8, 101u8, 19u8, 86u8, 128u8,
2167 203u8, 250u8, 97u8, 210u8, 179u8, 96u8, 191u8, 226u8, 225u8, 32u8,
2168 212u8,
2169 ],
2170 )
2171 }
2172 #[must_use]
2173 #[doc = " Number of blocks till the pending code upgrade is applied."]
2174 pub fn blocks_till_upgrade(
2175 &self,
2176 ) -> ::subxt::storage::StaticAddress<
2177 (),
2178 blocks_till_upgrade::Output,
2179 ::subxt::utils::Yes,
2180 > {
2181 ::subxt::storage::StaticAddress::new_static(
2182 "System",
2183 "BlocksTillUpgrade",
2184 [
2185 5u8, 76u8, 239u8, 121u8, 109u8, 31u8, 178u8, 175u8, 48u8, 175u8, 25u8,
2186 101u8, 201u8, 220u8, 19u8, 118u8, 173u8, 45u8, 211u8, 17u8, 50u8,
2187 134u8, 168u8, 8u8, 69u8, 29u8, 245u8, 207u8, 146u8, 204u8, 15u8, 145u8,
2188 ],
2189 )
2190 }
2191 #[must_use]
2192 #[doc = " True if we have upgraded so that `type RefCount` is `u32`. False (default) if not."]
2193 pub fn upgraded_to_u32_ref_count(
2194 &self,
2195 ) -> ::subxt::storage::StaticAddress<
2196 (),
2197 upgraded_to_u32_ref_count::Output,
2198 ::subxt::utils::Yes,
2199 > {
2200 ::subxt::storage::StaticAddress::new_static(
2201 "System",
2202 "UpgradedToU32RefCount",
2203 [
2204 121u8, 56u8, 110u8, 113u8, 59u8, 171u8, 213u8, 125u8, 149u8, 111u8,
2205 171u8, 66u8, 48u8, 0u8, 129u8, 158u8, 118u8, 33u8, 255u8, 236u8, 109u8,
2206 47u8, 123u8, 153u8, 40u8, 25u8, 16u8, 60u8, 248u8, 5u8, 94u8, 235u8,
2207 ],
2208 )
2209 }
2210 #[must_use]
2211 #[doc = " True if we have upgraded so that `AccountInfo` contains three types of `RefCount`. False"]
2212 #[doc = " (default) if not."]
2213 pub fn upgraded_to_triple_ref_count(
2214 &self,
2215 ) -> ::subxt::storage::StaticAddress<
2216 (),
2217 upgraded_to_triple_ref_count::Output,
2218 ::subxt::utils::Yes,
2219 > {
2220 ::subxt::storage::StaticAddress::new_static(
2221 "System",
2222 "UpgradedToTripleRefCount",
2223 [
2224 21u8, 68u8, 180u8, 14u8, 122u8, 62u8, 230u8, 35u8, 163u8, 50u8, 98u8,
2225 110u8, 27u8, 46u8, 205u8, 112u8, 29u8, 175u8, 250u8, 160u8, 76u8,
2226 139u8, 10u8, 64u8, 158u8, 114u8, 176u8, 180u8, 252u8, 66u8, 6u8, 103u8,
2227 ],
2228 )
2229 }
2230 #[must_use]
2231 #[doc = " The execution phase of the block."]
2232 pub fn execution_phase(
2233 &self,
2234 ) -> ::subxt::storage::StaticAddress<(), execution_phase::Output, ::subxt::utils::Yes>
2235 {
2236 ::subxt::storage::StaticAddress::new_static(
2237 "System",
2238 "ExecutionPhase",
2239 [
2240 73u8, 148u8, 64u8, 200u8, 68u8, 224u8, 56u8, 2u8, 224u8, 156u8, 197u8,
2241 124u8, 8u8, 173u8, 3u8, 36u8, 146u8, 33u8, 219u8, 205u8, 36u8, 89u8,
2242 99u8, 231u8, 208u8, 2u8, 236u8, 254u8, 254u8, 108u8, 65u8, 68u8,
2243 ],
2244 )
2245 }
2246 #[must_use]
2247 #[doc = " `Some` if a code upgrade has been authorized."]
2248 pub fn authorized_upgrade(
2249 &self,
2250 ) -> ::subxt::storage::StaticAddress<
2251 (),
2252 authorized_upgrade::Output,
2253 ::subxt::utils::Yes,
2254 > {
2255 ::subxt::storage::StaticAddress::new_static(
2256 "System",
2257 "AuthorizedUpgrade",
2258 [
2259 227u8, 212u8, 35u8, 221u8, 172u8, 87u8, 76u8, 244u8, 15u8, 213u8, 25u8,
2260 209u8, 213u8, 3u8, 230u8, 224u8, 81u8, 7u8, 62u8, 238u8, 51u8, 158u8,
2261 221u8, 35u8, 1u8, 5u8, 213u8, 142u8, 140u8, 206u8, 216u8, 214u8,
2262 ],
2263 )
2264 }
2265 #[must_use]
2266 #[doc = " The weight reclaimed for the extrinsic."]
2267 #[doc = ""]
2268 #[doc = " This information is available until the end of the extrinsic execution."]
2269 #[doc = " More precisely this information is removed in `note_applied_extrinsic`."]
2270 #[doc = ""]
2271 #[doc = " Logic doing some post dispatch weight reduction must update this storage to avoid duplicate"]
2272 #[doc = " reduction."]
2273 pub fn extrinsic_weight_reclaimed(
2274 &self,
2275 ) -> ::subxt::storage::StaticAddress<
2276 (),
2277 extrinsic_weight_reclaimed::Output,
2278 ::subxt::utils::Yes,
2279 > {
2280 ::subxt::storage::StaticAddress::new_static(
2281 "System",
2282 "ExtrinsicWeightReclaimed",
2283 [
2284 205u8, 30u8, 170u8, 39u8, 212u8, 71u8, 90u8, 173u8, 142u8, 127u8,
2285 164u8, 223u8, 113u8, 224u8, 161u8, 109u8, 102u8, 241u8, 4u8, 225u8,
2286 105u8, 163u8, 161u8, 96u8, 69u8, 178u8, 77u8, 154u8, 222u8, 83u8,
2287 106u8, 175u8,
2288 ],
2289 )
2290 }
2291 }
2292 pub mod account {
2293 use super::root_mod;
2294 use super::runtime_types;
2295 pub mod input {
2296 use super::runtime_types;
2297 pub type Param0 = ::subxt::utils::AccountId32;
2298 }
2299 pub type Output = runtime_types::frame_system::AccountInfo<
2300 ::core::primitive::u32,
2301 runtime_types::pallet_balances::types::AccountData<::core::primitive::u128>,
2302 >;
2303 }
2304 pub mod extrinsic_count {
2305 use super::root_mod;
2306 use super::runtime_types;
2307 pub mod input {
2308 use super::runtime_types;
2309 }
2310 pub type Output = ::core::primitive::u32;
2311 }
2312 pub mod inherents_applied {
2313 use super::root_mod;
2314 use super::runtime_types;
2315 pub mod input {
2316 use super::runtime_types;
2317 }
2318 pub type Output = ::core::primitive::bool;
2319 }
2320 pub mod block_weight {
2321 use super::root_mod;
2322 use super::runtime_types;
2323 pub mod input {
2324 use super::runtime_types;
2325 }
2326 pub type Output = runtime_types::frame_support::dispatch::PerDispatchClass<
2327 runtime_types::sp_weights::weight_v2::Weight,
2328 >;
2329 }
2330 pub mod block_size {
2331 use super::root_mod;
2332 use super::runtime_types;
2333 pub mod input {
2334 use super::runtime_types;
2335 }
2336 pub type Output = ::core::primitive::u32;
2337 }
2338 pub mod block_hash {
2339 use super::root_mod;
2340 use super::runtime_types;
2341 pub mod input {
2342 use super::runtime_types;
2343 pub type Param0 = ::core::primitive::u32;
2344 }
2345 pub type Output = ::subxt::utils::H256;
2346 }
2347 pub mod extrinsic_data {
2348 use super::root_mod;
2349 use super::runtime_types;
2350 pub mod input {
2351 use super::runtime_types;
2352 pub type Param0 = ::core::primitive::u32;
2353 }
2354 pub type Output = ::subxt::alloc::vec::Vec<::core::primitive::u8>;
2355 }
2356 pub mod number {
2357 use super::root_mod;
2358 use super::runtime_types;
2359 pub mod input {
2360 use super::runtime_types;
2361 }
2362 pub type Output = ::core::primitive::u32;
2363 }
2364 pub mod parent_hash {
2365 use super::root_mod;
2366 use super::runtime_types;
2367 pub mod input {
2368 use super::runtime_types;
2369 }
2370 pub type Output = ::subxt::utils::H256;
2371 }
2372 pub mod digest {
2373 use super::root_mod;
2374 use super::runtime_types;
2375 pub mod input {
2376 use super::runtime_types;
2377 }
2378 pub type Output = runtime_types::sp_runtime::generic::digest::Digest;
2379 }
2380 pub mod events {
2381 use super::root_mod;
2382 use super::runtime_types;
2383 pub mod input {
2384 use super::runtime_types;
2385 }
2386 pub type Output = ::subxt::alloc::vec::Vec<
2387 runtime_types::frame_system::EventRecord<
2388 runtime_types::acuity_runtime::RuntimeEvent,
2389 ::subxt::utils::H256,
2390 >,
2391 >;
2392 }
2393 pub mod event_count {
2394 use super::root_mod;
2395 use super::runtime_types;
2396 pub mod input {
2397 use super::runtime_types;
2398 }
2399 pub type Output = ::core::primitive::u32;
2400 }
2401 pub mod event_topics {
2402 use super::root_mod;
2403 use super::runtime_types;
2404 pub mod input {
2405 use super::runtime_types;
2406 pub type Param0 = ::subxt::utils::H256;
2407 }
2408 pub type Output =
2409 ::subxt::alloc::vec::Vec<(::core::primitive::u32, ::core::primitive::u32)>;
2410 }
2411 pub mod last_runtime_upgrade {
2412 use super::root_mod;
2413 use super::runtime_types;
2414 pub mod input {
2415 use super::runtime_types;
2416 }
2417 pub type Output = runtime_types::frame_system::LastRuntimeUpgradeInfo;
2418 }
2419 pub mod blocks_till_upgrade {
2420 use super::root_mod;
2421 use super::runtime_types;
2422 pub mod input {
2423 use super::runtime_types;
2424 }
2425 pub type Output = ::core::primitive::u8;
2426 }
2427 pub mod upgraded_to_u32_ref_count {
2428 use super::root_mod;
2429 use super::runtime_types;
2430 pub mod input {
2431 use super::runtime_types;
2432 }
2433 pub type Output = ::core::primitive::bool;
2434 }
2435 pub mod upgraded_to_triple_ref_count {
2436 use super::root_mod;
2437 use super::runtime_types;
2438 pub mod input {
2439 use super::runtime_types;
2440 }
2441 pub type Output = ::core::primitive::bool;
2442 }
2443 pub mod execution_phase {
2444 use super::root_mod;
2445 use super::runtime_types;
2446 pub mod input {
2447 use super::runtime_types;
2448 }
2449 pub type Output = runtime_types::frame_system::Phase;
2450 }
2451 pub mod authorized_upgrade {
2452 use super::root_mod;
2453 use super::runtime_types;
2454 pub mod input {
2455 use super::runtime_types;
2456 }
2457 pub type Output = runtime_types::frame_system::CodeUpgradeAuthorization;
2458 }
2459 pub mod extrinsic_weight_reclaimed {
2460 use super::root_mod;
2461 use super::runtime_types;
2462 pub mod input {
2463 use super::runtime_types;
2464 }
2465 pub type Output = runtime_types::sp_weights::weight_v2::Weight;
2466 }
2467 }
2468 pub mod constants {
2469 use super::runtime_types;
2470 pub struct ConstantsApi;
2471 impl ConstantsApi {
2472 #[must_use]
2473 #[doc = " Block & extrinsics weights: base values and limits."]
2474 pub fn block_weights(
2475 &self,
2476 ) -> ::subxt::constants::StaticAddress<
2477 runtime_types::frame_system::limits::BlockWeights,
2478 > {
2479 ::subxt::constants::StaticAddress::new_static(
2480 "System",
2481 "BlockWeights",
2482 [
2483 176u8, 124u8, 225u8, 136u8, 25u8, 73u8, 247u8, 33u8, 82u8, 206u8, 85u8,
2484 190u8, 127u8, 102u8, 71u8, 11u8, 185u8, 8u8, 58u8, 0u8, 94u8, 55u8,
2485 163u8, 177u8, 104u8, 59u8, 60u8, 136u8, 246u8, 116u8, 0u8, 239u8,
2486 ],
2487 )
2488 }
2489 #[must_use]
2490 #[doc = " The maximum length of a block (in bytes)."]
2491 pub fn block_length(
2492 &self,
2493 ) -> ::subxt::constants::StaticAddress<
2494 runtime_types::frame_system::limits::BlockLength,
2495 > {
2496 ::subxt::constants::StaticAddress::new_static(
2497 "System",
2498 "BlockLength",
2499 [
2500 25u8, 97u8, 176u8, 77u8, 2u8, 60u8, 44u8, 69u8, 161u8, 69u8, 251u8,
2501 229u8, 198u8, 186u8, 185u8, 237u8, 105u8, 56u8, 122u8, 35u8, 78u8,
2502 195u8, 98u8, 222u8, 215u8, 49u8, 249u8, 146u8, 231u8, 21u8, 224u8,
2503 134u8,
2504 ],
2505 )
2506 }
2507 #[must_use]
2508 #[doc = " Maximum number of block number to block hash mappings to keep (oldest pruned first)."]
2509 pub fn block_hash_count(
2510 &self,
2511 ) -> ::subxt::constants::StaticAddress<::core::primitive::u32> {
2512 ::subxt::constants::StaticAddress::new_static(
2513 "System",
2514 "BlockHashCount",
2515 [
2516 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8,
2517 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8,
2518 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8,
2519 145u8,
2520 ],
2521 )
2522 }
2523 #[must_use]
2524 #[doc = " The weight of runtime database operations the runtime can invoke."]
2525 pub fn db_weight(
2526 &self,
2527 ) -> ::subxt::constants::StaticAddress<runtime_types::sp_weights::RuntimeDbWeight>
2528 {
2529 ::subxt::constants::StaticAddress::new_static(
2530 "System",
2531 "DbWeight",
2532 [
2533 42u8, 43u8, 178u8, 142u8, 243u8, 203u8, 60u8, 173u8, 118u8, 111u8,
2534 200u8, 170u8, 102u8, 70u8, 237u8, 187u8, 198u8, 120u8, 153u8, 232u8,
2535 183u8, 76u8, 74u8, 10u8, 70u8, 243u8, 14u8, 218u8, 213u8, 126u8, 29u8,
2536 177u8,
2537 ],
2538 )
2539 }
2540 #[must_use]
2541 #[doc = " Get the chain's in-code version."]
2542 pub fn version(
2543 &self,
2544 ) -> ::subxt::constants::StaticAddress<runtime_types::sp_version::RuntimeVersion>
2545 {
2546 ::subxt::constants::StaticAddress::new_static(
2547 "System",
2548 "Version",
2549 [
2550 214u8, 43u8, 96u8, 193u8, 96u8, 213u8, 63u8, 124u8, 22u8, 111u8, 41u8,
2551 78u8, 146u8, 77u8, 34u8, 163u8, 117u8, 100u8, 6u8, 216u8, 238u8, 54u8,
2552 80u8, 185u8, 219u8, 11u8, 192u8, 200u8, 129u8, 88u8, 161u8, 250u8,
2553 ],
2554 )
2555 }
2556 #[must_use]
2557 #[doc = " The designated SS58 prefix of this chain."]
2558 #[doc = ""]
2559 #[doc = " This replaces the \"ss58Format\" property declared in the chain spec. Reason is"]
2560 #[doc = " that the runtime should know about the prefix in order to make use of it as"]
2561 #[doc = " an identifier of the chain."]
2562 pub fn ss58_prefix(
2563 &self,
2564 ) -> ::subxt::constants::StaticAddress<::core::primitive::u16> {
2565 ::subxt::constants::StaticAddress::new_static(
2566 "System",
2567 "SS58Prefix",
2568 [
2569 116u8, 33u8, 2u8, 170u8, 181u8, 147u8, 171u8, 169u8, 167u8, 227u8,
2570 41u8, 144u8, 11u8, 236u8, 82u8, 100u8, 74u8, 60u8, 184u8, 72u8, 169u8,
2571 90u8, 208u8, 135u8, 15u8, 117u8, 10u8, 123u8, 128u8, 193u8, 29u8, 70u8,
2572 ],
2573 )
2574 }
2575 }
2576 }
2577 }
2578 pub mod timestamp {
2579 use super::root_mod;
2580 use super::runtime_types;
2581 #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."]
2582 pub type Call = runtime_types::pallet_timestamp::pallet::Call;
2583 pub mod calls {
2584 use super::root_mod;
2585 use super::runtime_types;
2586 #[derive(
2587 :: subxt :: ext :: scale_decode :: DecodeAsType,
2588 :: subxt :: ext :: scale_encode :: EncodeAsType,
2589 Debug,
2590 )]
2591 #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
2592 #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
2593 #[doc = "Set the current time."]
2594 #[doc = ""]
2595 #[doc = "This call should be invoked exactly once per block. It will panic at the finalization"]
2596 #[doc = "phase, if this call hasn't been invoked by that time."]
2597 #[doc = ""]
2598 #[doc = "The timestamp should be greater than the previous one by the amount specified by"]
2599 #[doc = "[`Config::MinimumPeriod`]."]
2600 #[doc = ""]
2601 #[doc = "The dispatch origin for this call must be _None_."]
2602 #[doc = ""]
2603 #[doc = "This dispatch class is _Mandatory_ to ensure it gets executed in the block. Be aware"]
2604 #[doc = "that changing the complexity of this call could result exhausting the resources in a"]
2605 #[doc = "block to execute any other calls."]
2606 #[doc = ""]
2607 #[doc = "## Complexity"]
2608 #[doc = "- `O(1)` (Note that implementations of `OnTimestampSet` must also be `O(1)`)"]
2609 #[doc = "- 1 storage read and 1 storage mutation (codec `O(1)` because of `DidUpdate::take` in"]
2610 #[doc = " `on_finalize`)"]
2611 #[doc = "- 1 event handler `on_timestamp_set`. Must be `O(1)`."]
2612 pub struct Set {
2613 #[codec(compact)]
2614 pub now: set::Now,
2615 }
2616 pub mod set {
2617 use super::runtime_types;
2618 pub type Now = ::core::primitive::u64;
2619 }
2620 impl Set {
2621 const PALLET_NAME: &'static str = "Timestamp";
2622 const CALL_NAME: &'static str = "set";
2623 }
2624 impl ::subxt::extrinsics::DecodeAsExtrinsic for Set {
2625 fn is_extrinsic(pallet_name: &str, call_name: &str) -> bool {
2626 pallet_name == Self::PALLET_NAME && call_name == Self::CALL_NAME
2627 }
2628 }
2629 pub mod api {
2630 pub struct TransactionApi;
2631 impl TransactionApi {
2632 #[must_use]
2633 #[doc = "Set the current time."]
2634 #[doc = ""]
2635 #[doc = "This call should be invoked exactly once per block. It will panic at the finalization"]
2636 #[doc = "phase, if this call hasn't been invoked by that time."]
2637 #[doc = ""]
2638 #[doc = "The timestamp should be greater than the previous one by the amount specified by"]
2639 #[doc = "[`Config::MinimumPeriod`]."]
2640 #[doc = ""]
2641 #[doc = "The dispatch origin for this call must be _None_."]
2642 #[doc = ""]
2643 #[doc = "This dispatch class is _Mandatory_ to ensure it gets executed in the block. Be aware"]
2644 #[doc = "that changing the complexity of this call could result exhausting the resources in a"]
2645 #[doc = "block to execute any other calls."]
2646 #[doc = ""]
2647 #[doc = "## Complexity"]
2648 #[doc = "- `O(1)` (Note that implementations of `OnTimestampSet` must also be `O(1)`)"]
2649 #[doc = "- 1 storage read and 1 storage mutation (codec `O(1)` because of `DidUpdate::take` in"]
2650 #[doc = " `on_finalize`)"]
2651 #[doc = "- 1 event handler `on_timestamp_set`. Must be `O(1)`."]
2652 pub fn set(
2653 &self,
2654 now: super::set::Now,
2655 ) -> ::subxt::transactions::StaticPayload<super::Set> {
2656 ::subxt::transactions::StaticPayload::new_static(
2657 "Timestamp",
2658 "set",
2659 super::Set { now },
2660 [
2661 37u8, 95u8, 49u8, 218u8, 24u8, 22u8, 0u8, 95u8, 72u8, 35u8, 155u8,
2662 199u8, 213u8, 54u8, 207u8, 22u8, 185u8, 193u8, 221u8, 70u8, 18u8,
2663 200u8, 4u8, 231u8, 195u8, 173u8, 6u8, 122u8, 11u8, 203u8, 231u8,
2664 227u8,
2665 ],
2666 )
2667 }
2668 }
2669 }
2670 }
2671 pub mod storage {
2672 use super::root_mod;
2673 use super::runtime_types;
2674 pub struct StorageApi;
2675 impl StorageApi {
2676 #[must_use]
2677 #[doc = " The current time for the current block."]
2678 pub fn now(
2679 &self,
2680 ) -> ::subxt::storage::StaticAddress<(), now::Output, ::subxt::utils::Yes>
2681 {
2682 ::subxt::storage::StaticAddress::new_static(
2683 "Timestamp",
2684 "Now",
2685 [
2686 33u8, 56u8, 170u8, 83u8, 141u8, 145u8, 85u8, 240u8, 128u8, 31u8, 207u8,
2687 119u8, 3u8, 202u8, 67u8, 6u8, 117u8, 189u8, 75u8, 35u8, 142u8, 183u8,
2688 127u8, 182u8, 208u8, 169u8, 153u8, 229u8, 251u8, 53u8, 181u8, 45u8,
2689 ],
2690 )
2691 }
2692 #[must_use]
2693 #[doc = " Whether the timestamp has been updated in this block."]
2694 #[doc = ""]
2695 #[doc = " This value is updated to `true` upon successful submission of a timestamp by a node."]
2696 #[doc = " It is then checked at the end of each block execution in the `on_finalize` hook."]
2697 pub fn did_update(
2698 &self,
2699 ) -> ::subxt::storage::StaticAddress<(), did_update::Output, ::subxt::utils::Yes>
2700 {
2701 ::subxt::storage::StaticAddress::new_static(
2702 "Timestamp",
2703 "DidUpdate",
2704 [
2705 159u8, 174u8, 212u8, 192u8, 172u8, 1u8, 246u8, 2u8, 150u8, 55u8, 251u8,
2706 62u8, 194u8, 210u8, 15u8, 214u8, 177u8, 160u8, 15u8, 138u8, 142u8,
2707 125u8, 113u8, 227u8, 201u8, 250u8, 223u8, 252u8, 123u8, 144u8, 209u8,
2708 10u8,
2709 ],
2710 )
2711 }
2712 }
2713 pub mod now {
2714 use super::root_mod;
2715 use super::runtime_types;
2716 pub mod input {
2717 use super::runtime_types;
2718 }
2719 pub type Output = ::core::primitive::u64;
2720 }
2721 pub mod did_update {
2722 use super::root_mod;
2723 use super::runtime_types;
2724 pub mod input {
2725 use super::runtime_types;
2726 }
2727 pub type Output = ::core::primitive::bool;
2728 }
2729 }
2730 pub mod constants {
2731 use super::runtime_types;
2732 pub struct ConstantsApi;
2733 impl ConstantsApi {
2734 #[must_use]
2735 #[doc = " The minimum period between blocks."]
2736 #[doc = ""]
2737 #[doc = " Be aware that this is different to the *expected* period that the block production"]
2738 #[doc = " apparatus provides. Your chosen consensus system will generally work with this to"]
2739 #[doc = " determine a sensible block time. For example, in the Aura pallet it will be double this"]
2740 #[doc = " period on default settings."]
2741 pub fn minimum_period(
2742 &self,
2743 ) -> ::subxt::constants::StaticAddress<::core::primitive::u64> {
2744 ::subxt::constants::StaticAddress::new_static(
2745 "Timestamp",
2746 "MinimumPeriod",
2747 [
2748 128u8, 214u8, 205u8, 242u8, 181u8, 142u8, 124u8, 231u8, 190u8, 146u8,
2749 59u8, 226u8, 157u8, 101u8, 103u8, 117u8, 249u8, 65u8, 18u8, 191u8,
2750 103u8, 119u8, 53u8, 85u8, 81u8, 96u8, 220u8, 42u8, 184u8, 239u8, 42u8,
2751 246u8,
2752 ],
2753 )
2754 }
2755 }
2756 }
2757 }
2758 pub mod parachain_system {
2759 use super::root_mod;
2760 use super::runtime_types;
2761 #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."]
2762 pub type Call = runtime_types::staging_parachain_info::pallet::Call;
2763 pub mod calls {
2764 use super::root_mod;
2765 use super::runtime_types;
2766 pub mod api {
2767 pub struct TransactionApi;
2768 impl TransactionApi {}
2769 }
2770 }
2771 pub mod storage {
2772 use super::root_mod;
2773 use super::runtime_types;
2774 pub struct StorageApi;
2775 impl StorageApi {
2776 #[must_use]
2777 pub fn parachain_id(
2778 &self,
2779 ) -> ::subxt::storage::StaticAddress<(), parachain_id::Output, ::subxt::utils::Yes>
2780 {
2781 ::subxt::storage::StaticAddress::new_static(
2782 "ParachainSystem",
2783 "ParachainId",
2784 [
2785 139u8, 6u8, 228u8, 14u8, 72u8, 167u8, 10u8, 200u8, 65u8, 24u8, 199u8,
2786 158u8, 72u8, 243u8, 228u8, 95u8, 151u8, 77u8, 15u8, 245u8, 186u8, 23u8,
2787 180u8, 223u8, 101u8, 250u8, 41u8, 85u8, 156u8, 1u8, 65u8, 55u8,
2788 ],
2789 )
2790 }
2791 }
2792 pub mod parachain_id {
2793 use super::root_mod;
2794 use super::runtime_types;
2795 pub mod input {
2796 use super::runtime_types;
2797 }
2798 pub type Output = runtime_types::polkadot_parachain_primitives::primitives::Id;
2799 }
2800 }
2801 }
2802 pub mod aura {
2803 use super::root_mod;
2804 use super::runtime_types;
2805 pub mod storage {
2806 use super::root_mod;
2807 use super::runtime_types;
2808 pub struct StorageApi;
2809 impl StorageApi {
2810 #[must_use]
2811 #[doc = " The current authority set."]
2812 pub fn authorities(
2813 &self,
2814 ) -> ::subxt::storage::StaticAddress<(), authorities::Output, ::subxt::utils::Yes>
2815 {
2816 ::subxt::storage::StaticAddress::new_static(
2817 "Aura",
2818 "Authorities",
2819 [
2820 115u8, 164u8, 253u8, 15u8, 110u8, 193u8, 198u8, 238u8, 70u8, 39u8,
2821 107u8, 5u8, 197u8, 103u8, 95u8, 110u8, 83u8, 156u8, 209u8, 81u8, 44u8,
2822 44u8, 8u8, 12u8, 0u8, 98u8, 33u8, 100u8, 228u8, 128u8, 8u8, 88u8,
2823 ],
2824 )
2825 }
2826 #[must_use]
2827 #[doc = " The current slot of this block."]
2828 #[doc = ""]
2829 #[doc = " This will be set in `on_initialize`."]
2830 pub fn current_slot(
2831 &self,
2832 ) -> ::subxt::storage::StaticAddress<(), current_slot::Output, ::subxt::utils::Yes>
2833 {
2834 ::subxt::storage::StaticAddress::new_static(
2835 "Aura",
2836 "CurrentSlot",
2837 [
2838 43u8, 143u8, 102u8, 240u8, 243u8, 39u8, 191u8, 181u8, 112u8, 100u8,
2839 100u8, 92u8, 169u8, 252u8, 192u8, 187u8, 231u8, 43u8, 235u8, 136u8,
2840 116u8, 180u8, 82u8, 36u8, 140u8, 92u8, 203u8, 143u8, 4u8, 90u8, 86u8,
2841 13u8,
2842 ],
2843 )
2844 }
2845 }
2846 pub mod authorities {
2847 use super::root_mod;
2848 use super::runtime_types;
2849 pub mod input {
2850 use super::runtime_types;
2851 }
2852 pub type Output = runtime_types::bounded_collections::bounded_vec::BoundedVec<
2853 runtime_types::sp_consensus_aura::sr25519::app_sr25519::Public,
2854 >;
2855 }
2856 pub mod current_slot {
2857 use super::root_mod;
2858 use super::runtime_types;
2859 pub mod input {
2860 use super::runtime_types;
2861 }
2862 pub type Output = runtime_types::sp_consensus_slots::Slot;
2863 }
2864 }
2865 pub mod constants {
2866 use super::runtime_types;
2867 pub struct ConstantsApi;
2868 impl ConstantsApi {
2869 #[must_use]
2870 #[doc = " The slot duration Aura should run with, expressed in milliseconds."]
2871 #[doc = ""]
2872 #[doc = " The effective value of this type can be changed with a runtime upgrade."]
2873 #[doc = ""]
2874 #[doc = " For backwards compatibility either use [`MinimumPeriodTimesTwo`] or a const."]
2875 pub fn slot_duration(
2876 &self,
2877 ) -> ::subxt::constants::StaticAddress<::core::primitive::u64> {
2878 ::subxt::constants::StaticAddress::new_static(
2879 "Aura",
2880 "SlotDuration",
2881 [
2882 128u8, 214u8, 205u8, 242u8, 181u8, 142u8, 124u8, 231u8, 190u8, 146u8,
2883 59u8, 226u8, 157u8, 101u8, 103u8, 117u8, 249u8, 65u8, 18u8, 191u8,
2884 103u8, 119u8, 53u8, 85u8, 81u8, 96u8, 220u8, 42u8, 184u8, 239u8, 42u8,
2885 246u8,
2886 ],
2887 )
2888 }
2889 }
2890 }
2891 }
2892 pub mod balances {
2893 use super::root_mod;
2894 use super::runtime_types;
2895 #[doc = "The `Error` enum of this pallet."]
2896 pub type Error = runtime_types::pallet_balances::pallet::Error;
2897 #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."]
2898 pub type Call = runtime_types::pallet_balances::pallet::Call;
2899 pub mod calls {
2900 use super::root_mod;
2901 use super::runtime_types;
2902 #[derive(
2903 :: subxt :: ext :: scale_decode :: DecodeAsType,
2904 :: subxt :: ext :: scale_encode :: EncodeAsType,
2905 Debug,
2906 )]
2907 #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
2908 #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
2909 #[doc = "Transfer some liquid free balance to another account."]
2910 #[doc = ""]
2911 #[doc = "`transfer_allow_death` will set the `FreeBalance` of the sender and receiver."]
2912 #[doc = "If the sender's account is below the existential deposit as a result"]
2913 #[doc = "of the transfer, the account will be reaped."]
2914 #[doc = ""]
2915 #[doc = "The dispatch origin for this call must be `Signed` by the transactor."]
2916 pub struct TransferAllowDeath {
2917 pub dest: transfer_allow_death::Dest,
2918 #[codec(compact)]
2919 pub value: transfer_allow_death::Value,
2920 }
2921 pub mod transfer_allow_death {
2922 use super::runtime_types;
2923 pub type Dest = ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>;
2924 pub type Value = ::core::primitive::u128;
2925 }
2926 impl TransferAllowDeath {
2927 const PALLET_NAME: &'static str = "Balances";
2928 const CALL_NAME: &'static str = "transfer_allow_death";
2929 }
2930 impl ::subxt::extrinsics::DecodeAsExtrinsic for TransferAllowDeath {
2931 fn is_extrinsic(pallet_name: &str, call_name: &str) -> bool {
2932 pallet_name == Self::PALLET_NAME && call_name == Self::CALL_NAME
2933 }
2934 }
2935 #[derive(
2936 :: subxt :: ext :: scale_decode :: DecodeAsType,
2937 :: subxt :: ext :: scale_encode :: EncodeAsType,
2938 Debug,
2939 )]
2940 #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
2941 #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
2942 #[doc = "Exactly as `transfer_allow_death`, except the origin must be root and the source account"]
2943 #[doc = "may be specified."]
2944 pub struct ForceTransfer {
2945 pub source: force_transfer::Source,
2946 pub dest: force_transfer::Dest,
2947 #[codec(compact)]
2948 pub value: force_transfer::Value,
2949 }
2950 pub mod force_transfer {
2951 use super::runtime_types;
2952 pub type Source = ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>;
2953 pub type Dest = ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>;
2954 pub type Value = ::core::primitive::u128;
2955 }
2956 impl ForceTransfer {
2957 const PALLET_NAME: &'static str = "Balances";
2958 const CALL_NAME: &'static str = "force_transfer";
2959 }
2960 impl ::subxt::extrinsics::DecodeAsExtrinsic for ForceTransfer {
2961 fn is_extrinsic(pallet_name: &str, call_name: &str) -> bool {
2962 pallet_name == Self::PALLET_NAME && call_name == Self::CALL_NAME
2963 }
2964 }
2965 #[derive(
2966 :: subxt :: ext :: scale_decode :: DecodeAsType,
2967 :: subxt :: ext :: scale_encode :: EncodeAsType,
2968 Debug,
2969 )]
2970 #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
2971 #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
2972 #[doc = "Same as the [`transfer_allow_death`] call, but with a check that the transfer will not"]
2973 #[doc = "kill the origin account."]
2974 #[doc = ""]
2975 #[doc = "99% of the time you want [`transfer_allow_death`] instead."]
2976 #[doc = ""]
2977 #[doc = "[`transfer_allow_death`]: struct.Pallet.html#method.transfer"]
2978 pub struct TransferKeepAlive {
2979 pub dest: transfer_keep_alive::Dest,
2980 #[codec(compact)]
2981 pub value: transfer_keep_alive::Value,
2982 }
2983 pub mod transfer_keep_alive {
2984 use super::runtime_types;
2985 pub type Dest = ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>;
2986 pub type Value = ::core::primitive::u128;
2987 }
2988 impl TransferKeepAlive {
2989 const PALLET_NAME: &'static str = "Balances";
2990 const CALL_NAME: &'static str = "transfer_keep_alive";
2991 }
2992 impl ::subxt::extrinsics::DecodeAsExtrinsic for TransferKeepAlive {
2993 fn is_extrinsic(pallet_name: &str, call_name: &str) -> bool {
2994 pallet_name == Self::PALLET_NAME && call_name == Self::CALL_NAME
2995 }
2996 }
2997 #[derive(
2998 :: subxt :: ext :: scale_decode :: DecodeAsType,
2999 :: subxt :: ext :: scale_encode :: EncodeAsType,
3000 Debug,
3001 )]
3002 #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
3003 #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
3004 #[doc = "Transfer the entire transferable balance from the caller account."]
3005 #[doc = ""]
3006 #[doc = "NOTE: This function only attempts to transfer _transferable_ balances. This means that"]
3007 #[doc = "any locked, reserved, or existential deposits (when `keep_alive` is `true`), will not be"]
3008 #[doc = "transferred by this function. To ensure that this function results in a killed account,"]
3009 #[doc = "you might need to prepare the account by removing any reference counters, storage"]
3010 #[doc = "deposits, etc..."]
3011 #[doc = ""]
3012 #[doc = "The dispatch origin of this call must be Signed."]
3013 #[doc = ""]
3014 #[doc = "- `dest`: The recipient of the transfer."]
3015 #[doc = "- `keep_alive`: A boolean to determine if the `transfer_all` operation should send all"]
3016 #[doc = " of the funds the account has, causing the sender account to be killed (false), or"]
3017 #[doc = " transfer everything except at least the existential deposit, which will guarantee to"]
3018 #[doc = " keep the sender account alive (true)."]
3019 pub struct TransferAll {
3020 pub dest: transfer_all::Dest,
3021 pub keep_alive: transfer_all::KeepAlive,
3022 }
3023 pub mod transfer_all {
3024 use super::runtime_types;
3025 pub type Dest = ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>;
3026 pub type KeepAlive = ::core::primitive::bool;
3027 }
3028 impl TransferAll {
3029 const PALLET_NAME: &'static str = "Balances";
3030 const CALL_NAME: &'static str = "transfer_all";
3031 }
3032 impl ::subxt::extrinsics::DecodeAsExtrinsic for TransferAll {
3033 fn is_extrinsic(pallet_name: &str, call_name: &str) -> bool {
3034 pallet_name == Self::PALLET_NAME && call_name == Self::CALL_NAME
3035 }
3036 }
3037 #[derive(
3038 :: subxt :: ext :: scale_decode :: DecodeAsType,
3039 :: subxt :: ext :: scale_encode :: EncodeAsType,
3040 Debug,
3041 )]
3042 #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
3043 #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
3044 #[doc = "Unreserve some balance from a user by force."]
3045 #[doc = ""]
3046 #[doc = "Can only be called by ROOT."]
3047 pub struct ForceUnreserve {
3048 pub who: force_unreserve::Who,
3049 pub amount: force_unreserve::Amount,
3050 }
3051 pub mod force_unreserve {
3052 use super::runtime_types;
3053 pub type Who = ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>;
3054 pub type Amount = ::core::primitive::u128;
3055 }
3056 impl ForceUnreserve {
3057 const PALLET_NAME: &'static str = "Balances";
3058 const CALL_NAME: &'static str = "force_unreserve";
3059 }
3060 impl ::subxt::extrinsics::DecodeAsExtrinsic for ForceUnreserve {
3061 fn is_extrinsic(pallet_name: &str, call_name: &str) -> bool {
3062 pallet_name == Self::PALLET_NAME && call_name == Self::CALL_NAME
3063 }
3064 }
3065 #[derive(
3066 :: subxt :: ext :: scale_decode :: DecodeAsType,
3067 :: subxt :: ext :: scale_encode :: EncodeAsType,
3068 Debug,
3069 )]
3070 #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
3071 #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
3072 #[doc = "Upgrade a specified account."]
3073 #[doc = ""]
3074 #[doc = "- `origin`: Must be `Signed`."]
3075 #[doc = "- `who`: The account to be upgraded."]
3076 #[doc = ""]
3077 #[doc = "This will waive the transaction fee if at least all but 10% of the accounts needed to"]
3078 #[doc = "be upgraded. (We let some not have to be upgraded just in order to allow for the"]
3079 #[doc = "possibility of churn)."]
3080 pub struct UpgradeAccounts {
3081 pub who: upgrade_accounts::Who,
3082 }
3083 pub mod upgrade_accounts {
3084 use super::runtime_types;
3085 pub type Who = ::subxt::alloc::vec::Vec<::subxt::utils::AccountId32>;
3086 }
3087 impl UpgradeAccounts {
3088 const PALLET_NAME: &'static str = "Balances";
3089 const CALL_NAME: &'static str = "upgrade_accounts";
3090 }
3091 impl ::subxt::extrinsics::DecodeAsExtrinsic for UpgradeAccounts {
3092 fn is_extrinsic(pallet_name: &str, call_name: &str) -> bool {
3093 pallet_name == Self::PALLET_NAME && call_name == Self::CALL_NAME
3094 }
3095 }
3096 #[derive(
3097 :: subxt :: ext :: scale_decode :: DecodeAsType,
3098 :: subxt :: ext :: scale_encode :: EncodeAsType,
3099 Debug,
3100 )]
3101 #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
3102 #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
3103 #[doc = "Set the regular balance of a given account."]
3104 #[doc = ""]
3105 #[doc = "The dispatch origin for this call is `root`."]
3106 pub struct ForceSetBalance {
3107 pub who: force_set_balance::Who,
3108 #[codec(compact)]
3109 pub new_free: force_set_balance::NewFree,
3110 }
3111 pub mod force_set_balance {
3112 use super::runtime_types;
3113 pub type Who = ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>;
3114 pub type NewFree = ::core::primitive::u128;
3115 }
3116 impl ForceSetBalance {
3117 const PALLET_NAME: &'static str = "Balances";
3118 const CALL_NAME: &'static str = "force_set_balance";
3119 }
3120 impl ::subxt::extrinsics::DecodeAsExtrinsic for ForceSetBalance {
3121 fn is_extrinsic(pallet_name: &str, call_name: &str) -> bool {
3122 pallet_name == Self::PALLET_NAME && call_name == Self::CALL_NAME
3123 }
3124 }
3125 #[derive(
3126 :: subxt :: ext :: scale_decode :: DecodeAsType,
3127 :: subxt :: ext :: scale_encode :: EncodeAsType,
3128 Debug,
3129 )]
3130 #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
3131 #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
3132 #[doc = "Adjust the total issuance in a saturating way."]
3133 #[doc = ""]
3134 #[doc = "Can only be called by root and always needs a positive `delta`."]
3135 #[doc = ""]
3136 #[doc = "# Example"]
3137 pub struct ForceAdjustTotalIssuance {
3138 pub direction: force_adjust_total_issuance::Direction,
3139 #[codec(compact)]
3140 pub delta: force_adjust_total_issuance::Delta,
3141 }
3142 pub mod force_adjust_total_issuance {
3143 use super::runtime_types;
3144 pub type Direction = runtime_types::pallet_balances::types::AdjustmentDirection;
3145 pub type Delta = ::core::primitive::u128;
3146 }
3147 impl ForceAdjustTotalIssuance {
3148 const PALLET_NAME: &'static str = "Balances";
3149 const CALL_NAME: &'static str = "force_adjust_total_issuance";
3150 }
3151 impl ::subxt::extrinsics::DecodeAsExtrinsic for ForceAdjustTotalIssuance {
3152 fn is_extrinsic(pallet_name: &str, call_name: &str) -> bool {
3153 pallet_name == Self::PALLET_NAME && call_name == Self::CALL_NAME
3154 }
3155 }
3156 #[derive(
3157 :: subxt :: ext :: scale_decode :: DecodeAsType,
3158 :: subxt :: ext :: scale_encode :: EncodeAsType,
3159 Debug,
3160 )]
3161 #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
3162 #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
3163 #[doc = "Burn the specified liquid free balance from the origin account."]
3164 #[doc = ""]
3165 #[doc = "If the origin's account ends up below the existential deposit as a result"]
3166 #[doc = "of the burn and `keep_alive` is false, the account will be reaped."]
3167 #[doc = ""]
3168 #[doc = "Unlike sending funds to a _burn_ address, which merely makes the funds inaccessible,"]
3169 #[doc = "this `burn` operation will reduce total issuance by the amount _burned_."]
3170 pub struct Burn {
3171 #[codec(compact)]
3172 pub value: burn::Value,
3173 pub keep_alive: burn::KeepAlive,
3174 }
3175 pub mod burn {
3176 use super::runtime_types;
3177 pub type Value = ::core::primitive::u128;
3178 pub type KeepAlive = ::core::primitive::bool;
3179 }
3180 impl Burn {
3181 const PALLET_NAME: &'static str = "Balances";
3182 const CALL_NAME: &'static str = "burn";
3183 }
3184 impl ::subxt::extrinsics::DecodeAsExtrinsic for Burn {
3185 fn is_extrinsic(pallet_name: &str, call_name: &str) -> bool {
3186 pallet_name == Self::PALLET_NAME && call_name == Self::CALL_NAME
3187 }
3188 }
3189 pub mod api {
3190 pub struct TransactionApi;
3191 impl TransactionApi {
3192 #[must_use]
3193 #[doc = "Transfer some liquid free balance to another account."]
3194 #[doc = ""]
3195 #[doc = "`transfer_allow_death` will set the `FreeBalance` of the sender and receiver."]
3196 #[doc = "If the sender's account is below the existential deposit as a result"]
3197 #[doc = "of the transfer, the account will be reaped."]
3198 #[doc = ""]
3199 #[doc = "The dispatch origin for this call must be `Signed` by the transactor."]
3200 pub fn transfer_allow_death(
3201 &self,
3202 dest: super::transfer_allow_death::Dest,
3203 value: super::transfer_allow_death::Value,
3204 ) -> ::subxt::transactions::StaticPayload<super::TransferAllowDeath>
3205 {
3206 ::subxt::transactions::StaticPayload::new_static(
3207 "Balances",
3208 "transfer_allow_death",
3209 super::TransferAllowDeath { dest, value },
3210 [
3211 51u8, 166u8, 195u8, 10u8, 139u8, 218u8, 55u8, 130u8, 6u8, 194u8,
3212 35u8, 140u8, 27u8, 205u8, 214u8, 222u8, 102u8, 43u8, 143u8, 145u8,
3213 86u8, 219u8, 210u8, 147u8, 13u8, 39u8, 51u8, 21u8, 237u8, 179u8,
3214 132u8, 130u8,
3215 ],
3216 )
3217 }
3218 #[must_use]
3219 #[doc = "Exactly as `transfer_allow_death`, except the origin must be root and the source account"]
3220 #[doc = "may be specified."]
3221 pub fn force_transfer(
3222 &self,
3223 source: super::force_transfer::Source,
3224 dest: super::force_transfer::Dest,
3225 value: super::force_transfer::Value,
3226 ) -> ::subxt::transactions::StaticPayload<super::ForceTransfer>
3227 {
3228 ::subxt::transactions::StaticPayload::new_static(
3229 "Balances",
3230 "force_transfer",
3231 super::ForceTransfer {
3232 source,
3233 dest,
3234 value,
3235 },
3236 [
3237 154u8, 93u8, 222u8, 27u8, 12u8, 248u8, 63u8, 213u8, 224u8, 86u8,
3238 250u8, 153u8, 249u8, 102u8, 83u8, 160u8, 79u8, 125u8, 105u8, 222u8,
3239 77u8, 180u8, 90u8, 105u8, 81u8, 217u8, 60u8, 25u8, 213u8, 51u8,
3240 185u8, 96u8,
3241 ],
3242 )
3243 }
3244 #[must_use]
3245 #[doc = "Same as the [`transfer_allow_death`] call, but with a check that the transfer will not"]
3246 #[doc = "kill the origin account."]
3247 #[doc = ""]
3248 #[doc = "99% of the time you want [`transfer_allow_death`] instead."]
3249 #[doc = ""]
3250 #[doc = "[`transfer_allow_death`]: struct.Pallet.html#method.transfer"]
3251 pub fn transfer_keep_alive(
3252 &self,
3253 dest: super::transfer_keep_alive::Dest,
3254 value: super::transfer_keep_alive::Value,
3255 ) -> ::subxt::transactions::StaticPayload<super::TransferKeepAlive>
3256 {
3257 ::subxt::transactions::StaticPayload::new_static(
3258 "Balances",
3259 "transfer_keep_alive",
3260 super::TransferKeepAlive { dest, value },
3261 [
3262 245u8, 14u8, 190u8, 193u8, 32u8, 210u8, 74u8, 92u8, 25u8, 182u8,
3263 76u8, 55u8, 247u8, 83u8, 114u8, 75u8, 143u8, 236u8, 117u8, 25u8,
3264 54u8, 157u8, 208u8, 207u8, 233u8, 89u8, 70u8, 161u8, 235u8, 242u8,
3265 222u8, 59u8,
3266 ],
3267 )
3268 }
3269 #[must_use]
3270 #[doc = "Transfer the entire transferable balance from the caller account."]
3271 #[doc = ""]
3272 #[doc = "NOTE: This function only attempts to transfer _transferable_ balances. This means that"]
3273 #[doc = "any locked, reserved, or existential deposits (when `keep_alive` is `true`), will not be"]
3274 #[doc = "transferred by this function. To ensure that this function results in a killed account,"]
3275 #[doc = "you might need to prepare the account by removing any reference counters, storage"]
3276 #[doc = "deposits, etc..."]
3277 #[doc = ""]
3278 #[doc = "The dispatch origin of this call must be Signed."]
3279 #[doc = ""]
3280 #[doc = "- `dest`: The recipient of the transfer."]
3281 #[doc = "- `keep_alive`: A boolean to determine if the `transfer_all` operation should send all"]
3282 #[doc = " of the funds the account has, causing the sender account to be killed (false), or"]
3283 #[doc = " transfer everything except at least the existential deposit, which will guarantee to"]
3284 #[doc = " keep the sender account alive (true)."]
3285 pub fn transfer_all(
3286 &self,
3287 dest: super::transfer_all::Dest,
3288 keep_alive: super::transfer_all::KeepAlive,
3289 ) -> ::subxt::transactions::StaticPayload<super::TransferAll>
3290 {
3291 ::subxt::transactions::StaticPayload::new_static(
3292 "Balances",
3293 "transfer_all",
3294 super::TransferAll { dest, keep_alive },
3295 [
3296 105u8, 132u8, 49u8, 144u8, 195u8, 250u8, 34u8, 46u8, 213u8, 248u8,
3297 112u8, 188u8, 81u8, 228u8, 136u8, 18u8, 67u8, 172u8, 37u8, 38u8,
3298 238u8, 9u8, 34u8, 15u8, 67u8, 34u8, 148u8, 195u8, 223u8, 29u8,
3299 154u8, 6u8,
3300 ],
3301 )
3302 }
3303 #[must_use]
3304 #[doc = "Unreserve some balance from a user by force."]
3305 #[doc = ""]
3306 #[doc = "Can only be called by ROOT."]
3307 pub fn force_unreserve(
3308 &self,
3309 who: super::force_unreserve::Who,
3310 amount: super::force_unreserve::Amount,
3311 ) -> ::subxt::transactions::StaticPayload<super::ForceUnreserve>
3312 {
3313 ::subxt::transactions::StaticPayload::new_static(
3314 "Balances",
3315 "force_unreserve",
3316 super::ForceUnreserve { who, amount },
3317 [
3318 142u8, 151u8, 64u8, 205u8, 46u8, 64u8, 62u8, 122u8, 108u8, 49u8,
3319 223u8, 140u8, 120u8, 153u8, 35u8, 165u8, 187u8, 38u8, 157u8, 200u8,
3320 123u8, 199u8, 198u8, 168u8, 208u8, 159u8, 39u8, 134u8, 92u8, 103u8,
3321 84u8, 171u8,
3322 ],
3323 )
3324 }
3325 #[must_use]
3326 #[doc = "Upgrade a specified account."]
3327 #[doc = ""]
3328 #[doc = "- `origin`: Must be `Signed`."]
3329 #[doc = "- `who`: The account to be upgraded."]
3330 #[doc = ""]
3331 #[doc = "This will waive the transaction fee if at least all but 10% of the accounts needed to"]
3332 #[doc = "be upgraded. (We let some not have to be upgraded just in order to allow for the"]
3333 #[doc = "possibility of churn)."]
3334 pub fn upgrade_accounts(
3335 &self,
3336 who: super::upgrade_accounts::Who,
3337 ) -> ::subxt::transactions::StaticPayload<super::UpgradeAccounts>
3338 {
3339 ::subxt::transactions::StaticPayload::new_static(
3340 "Balances",
3341 "upgrade_accounts",
3342 super::UpgradeAccounts { who },
3343 [
3344 66u8, 200u8, 179u8, 104u8, 65u8, 2u8, 101u8, 56u8, 130u8, 161u8,
3345 224u8, 233u8, 255u8, 124u8, 70u8, 122u8, 8u8, 49u8, 103u8, 178u8,
3346 68u8, 47u8, 214u8, 166u8, 217u8, 116u8, 178u8, 50u8, 212u8, 164u8,
3347 98u8, 226u8,
3348 ],
3349 )
3350 }
3351 #[must_use]
3352 #[doc = "Set the regular balance of a given account."]
3353 #[doc = ""]
3354 #[doc = "The dispatch origin for this call is `root`."]
3355 pub fn force_set_balance(
3356 &self,
3357 who: super::force_set_balance::Who,
3358 new_free: super::force_set_balance::NewFree,
3359 ) -> ::subxt::transactions::StaticPayload<super::ForceSetBalance>
3360 {
3361 ::subxt::transactions::StaticPayload::new_static(
3362 "Balances",
3363 "force_set_balance",
3364 super::ForceSetBalance { who, new_free },
3365 [
3366 114u8, 229u8, 59u8, 204u8, 180u8, 83u8, 17u8, 4u8, 59u8, 4u8, 55u8,
3367 39u8, 151u8, 196u8, 124u8, 60u8, 209u8, 65u8, 193u8, 11u8, 44u8,
3368 164u8, 116u8, 93u8, 169u8, 30u8, 199u8, 165u8, 55u8, 231u8, 223u8,
3369 43u8,
3370 ],
3371 )
3372 }
3373 #[must_use]
3374 #[doc = "Adjust the total issuance in a saturating way."]
3375 #[doc = ""]
3376 #[doc = "Can only be called by root and always needs a positive `delta`."]
3377 #[doc = ""]
3378 #[doc = "# Example"]
3379 pub fn force_adjust_total_issuance(
3380 &self,
3381 direction: super::force_adjust_total_issuance::Direction,
3382 delta: super::force_adjust_total_issuance::Delta,
3383 ) -> ::subxt::transactions::StaticPayload<super::ForceAdjustTotalIssuance>
3384 {
3385 ::subxt::transactions::StaticPayload::new_static(
3386 "Balances",
3387 "force_adjust_total_issuance",
3388 super::ForceAdjustTotalIssuance { direction, delta },
3389 [
3390 208u8, 134u8, 56u8, 133u8, 232u8, 164u8, 10u8, 213u8, 53u8, 193u8,
3391 190u8, 63u8, 236u8, 186u8, 96u8, 122u8, 104u8, 87u8, 173u8, 38u8,
3392 58u8, 176u8, 21u8, 78u8, 42u8, 106u8, 46u8, 248u8, 251u8, 190u8,
3393 150u8, 202u8,
3394 ],
3395 )
3396 }
3397 #[must_use]
3398 #[doc = "Burn the specified liquid free balance from the origin account."]
3399 #[doc = ""]
3400 #[doc = "If the origin's account ends up below the existential deposit as a result"]
3401 #[doc = "of the burn and `keep_alive` is false, the account will be reaped."]
3402 #[doc = ""]
3403 #[doc = "Unlike sending funds to a _burn_ address, which merely makes the funds inaccessible,"]
3404 #[doc = "this `burn` operation will reduce total issuance by the amount _burned_."]
3405 pub fn burn(
3406 &self,
3407 value: super::burn::Value,
3408 keep_alive: super::burn::KeepAlive,
3409 ) -> ::subxt::transactions::StaticPayload<super::Burn> {
3410 ::subxt::transactions::StaticPayload::new_static(
3411 "Balances",
3412 "burn",
3413 super::Burn { value, keep_alive },
3414 [
3415 176u8, 64u8, 7u8, 109u8, 16u8, 44u8, 145u8, 125u8, 147u8, 152u8,
3416 130u8, 114u8, 221u8, 201u8, 150u8, 162u8, 118u8, 71u8, 52u8, 92u8,
3417 240u8, 116u8, 203u8, 98u8, 5u8, 22u8, 43u8, 102u8, 94u8, 208u8,
3418 101u8, 57u8,
3419 ],
3420 )
3421 }
3422 }
3423 }
3424 }
3425 #[doc = "The `Event` enum of this pallet"]
3426 pub type Event = runtime_types::pallet_balances::pallet::Event;
3427 pub mod events {
3428 use super::runtime_types;
3429 #[derive(
3430 :: subxt :: ext :: scale_decode :: DecodeAsType,
3431 :: subxt :: ext :: scale_encode :: EncodeAsType,
3432 Debug,
3433 )]
3434 #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
3435 #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
3436 #[doc = "An account was created with some free balance."]
3437 pub struct Endowed {
3438 pub account: endowed::Account,
3439 pub free_balance: endowed::FreeBalance,
3440 }
3441 pub mod endowed {
3442 use super::runtime_types;
3443 pub type Account = ::subxt::utils::AccountId32;
3444 pub type FreeBalance = ::core::primitive::u128;
3445 }
3446 impl Endowed {
3447 const PALLET_NAME: &'static str = "Balances";
3448 const EVENT_NAME: &'static str = "Endowed";
3449 }
3450 impl ::subxt::events::DecodeAsEvent for Endowed {
3451 fn is_event(pallet_name: &str, event_name: &str) -> bool {
3452 pallet_name == Self::PALLET_NAME && event_name == Self::EVENT_NAME
3453 }
3454 }
3455 #[derive(
3456 :: subxt :: ext :: scale_decode :: DecodeAsType,
3457 :: subxt :: ext :: scale_encode :: EncodeAsType,
3458 Debug,
3459 )]
3460 #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
3461 #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
3462 #[doc = "An account was removed whose balance was non-zero but below `ExistentialDeposit`,"]
3463 #[doc = "resulting in an outright loss."]
3464 pub struct DustLost {
3465 pub account: dust_lost::Account,
3466 pub amount: dust_lost::Amount,
3467 }
3468 pub mod dust_lost {
3469 use super::runtime_types;
3470 pub type Account = ::subxt::utils::AccountId32;
3471 pub type Amount = ::core::primitive::u128;
3472 }
3473 impl DustLost {
3474 const PALLET_NAME: &'static str = "Balances";
3475 const EVENT_NAME: &'static str = "DustLost";
3476 }
3477 impl ::subxt::events::DecodeAsEvent for DustLost {
3478 fn is_event(pallet_name: &str, event_name: &str) -> bool {
3479 pallet_name == Self::PALLET_NAME && event_name == Self::EVENT_NAME
3480 }
3481 }
3482 #[derive(
3483 :: subxt :: ext :: scale_decode :: DecodeAsType,
3484 :: subxt :: ext :: scale_encode :: EncodeAsType,
3485 Debug,
3486 )]
3487 #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
3488 #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
3489 #[doc = "Transfer succeeded."]
3490 pub struct Transfer {
3491 pub from: transfer::From,
3492 pub to: transfer::To,
3493 pub amount: transfer::Amount,
3494 }
3495 pub mod transfer {
3496 use super::runtime_types;
3497 pub type From = ::subxt::utils::AccountId32;
3498 pub type To = ::subxt::utils::AccountId32;
3499 pub type Amount = ::core::primitive::u128;
3500 }
3501 impl Transfer {
3502 const PALLET_NAME: &'static str = "Balances";
3503 const EVENT_NAME: &'static str = "Transfer";
3504 }
3505 impl ::subxt::events::DecodeAsEvent for Transfer {
3506 fn is_event(pallet_name: &str, event_name: &str) -> bool {
3507 pallet_name == Self::PALLET_NAME && event_name == Self::EVENT_NAME
3508 }
3509 }
3510 #[derive(
3511 :: subxt :: ext :: scale_decode :: DecodeAsType,
3512 :: subxt :: ext :: scale_encode :: EncodeAsType,
3513 Debug,
3514 )]
3515 #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
3516 #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
3517 #[doc = "A balance was set by root."]
3518 pub struct BalanceSet {
3519 pub who: balance_set::Who,
3520 pub free: balance_set::Free,
3521 }
3522 pub mod balance_set {
3523 use super::runtime_types;
3524 pub type Who = ::subxt::utils::AccountId32;
3525 pub type Free = ::core::primitive::u128;
3526 }
3527 impl BalanceSet {
3528 const PALLET_NAME: &'static str = "Balances";
3529 const EVENT_NAME: &'static str = "BalanceSet";
3530 }
3531 impl ::subxt::events::DecodeAsEvent for BalanceSet {
3532 fn is_event(pallet_name: &str, event_name: &str) -> bool {
3533 pallet_name == Self::PALLET_NAME && event_name == Self::EVENT_NAME
3534 }
3535 }
3536 #[derive(
3537 :: subxt :: ext :: scale_decode :: DecodeAsType,
3538 :: subxt :: ext :: scale_encode :: EncodeAsType,
3539 Debug,
3540 )]
3541 #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
3542 #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
3543 #[doc = "Some balance was reserved (moved from free to reserved)."]
3544 pub struct Reserved {
3545 pub who: reserved::Who,
3546 pub amount: reserved::Amount,
3547 }
3548 pub mod reserved {
3549 use super::runtime_types;
3550 pub type Who = ::subxt::utils::AccountId32;
3551 pub type Amount = ::core::primitive::u128;
3552 }
3553 impl Reserved {
3554 const PALLET_NAME: &'static str = "Balances";
3555 const EVENT_NAME: &'static str = "Reserved";
3556 }
3557 impl ::subxt::events::DecodeAsEvent for Reserved {
3558 fn is_event(pallet_name: &str, event_name: &str) -> bool {
3559 pallet_name == Self::PALLET_NAME && event_name == Self::EVENT_NAME
3560 }
3561 }
3562 #[derive(
3563 :: subxt :: ext :: scale_decode :: DecodeAsType,
3564 :: subxt :: ext :: scale_encode :: EncodeAsType,
3565 Debug,
3566 )]
3567 #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
3568 #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
3569 #[doc = "Some balance was unreserved (moved from reserved to free)."]
3570 pub struct Unreserved {
3571 pub who: unreserved::Who,
3572 pub amount: unreserved::Amount,
3573 }
3574 pub mod unreserved {
3575 use super::runtime_types;
3576 pub type Who = ::subxt::utils::AccountId32;
3577 pub type Amount = ::core::primitive::u128;
3578 }
3579 impl Unreserved {
3580 const PALLET_NAME: &'static str = "Balances";
3581 const EVENT_NAME: &'static str = "Unreserved";
3582 }
3583 impl ::subxt::events::DecodeAsEvent for Unreserved {
3584 fn is_event(pallet_name: &str, event_name: &str) -> bool {
3585 pallet_name == Self::PALLET_NAME && event_name == Self::EVENT_NAME
3586 }
3587 }
3588 #[derive(
3589 :: subxt :: ext :: scale_decode :: DecodeAsType,
3590 :: subxt :: ext :: scale_encode :: EncodeAsType,
3591 Debug,
3592 )]
3593 #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
3594 #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
3595 #[doc = "Some balance was moved from the reserve of the first account to the second account."]
3596 #[doc = "Final argument indicates the destination balance type."]
3597 pub struct ReserveRepatriated {
3598 pub from: reserve_repatriated::From,
3599 pub to: reserve_repatriated::To,
3600 pub amount: reserve_repatriated::Amount,
3601 pub destination_status: reserve_repatriated::DestinationStatus,
3602 }
3603 pub mod reserve_repatriated {
3604 use super::runtime_types;
3605 pub type From = ::subxt::utils::AccountId32;
3606 pub type To = ::subxt::utils::AccountId32;
3607 pub type Amount = ::core::primitive::u128;
3608 pub type DestinationStatus =
3609 runtime_types::frame_support::traits::tokens::misc::BalanceStatus;
3610 }
3611 impl ReserveRepatriated {
3612 const PALLET_NAME: &'static str = "Balances";
3613 const EVENT_NAME: &'static str = "ReserveRepatriated";
3614 }
3615 impl ::subxt::events::DecodeAsEvent for ReserveRepatriated {
3616 fn is_event(pallet_name: &str, event_name: &str) -> bool {
3617 pallet_name == Self::PALLET_NAME && event_name == Self::EVENT_NAME
3618 }
3619 }
3620 #[derive(
3621 :: subxt :: ext :: scale_decode :: DecodeAsType,
3622 :: subxt :: ext :: scale_encode :: EncodeAsType,
3623 Debug,
3624 )]
3625 #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
3626 #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
3627 #[doc = "Some amount was deposited (e.g. for transaction fees)."]
3628 pub struct Deposit {
3629 pub who: deposit::Who,
3630 pub amount: deposit::Amount,
3631 }
3632 pub mod deposit {
3633 use super::runtime_types;
3634 pub type Who = ::subxt::utils::AccountId32;
3635 pub type Amount = ::core::primitive::u128;
3636 }
3637 impl Deposit {
3638 const PALLET_NAME: &'static str = "Balances";
3639 const EVENT_NAME: &'static str = "Deposit";
3640 }
3641 impl ::subxt::events::DecodeAsEvent for Deposit {
3642 fn is_event(pallet_name: &str, event_name: &str) -> bool {
3643 pallet_name == Self::PALLET_NAME && event_name == Self::EVENT_NAME
3644 }
3645 }
3646 #[derive(
3647 :: subxt :: ext :: scale_decode :: DecodeAsType,
3648 :: subxt :: ext :: scale_encode :: EncodeAsType,
3649 Debug,
3650 )]
3651 #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
3652 #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
3653 #[doc = "Some amount was withdrawn from the account (e.g. for transaction fees)."]
3654 pub struct Withdraw {
3655 pub who: withdraw::Who,
3656 pub amount: withdraw::Amount,
3657 }
3658 pub mod withdraw {
3659 use super::runtime_types;
3660 pub type Who = ::subxt::utils::AccountId32;
3661 pub type Amount = ::core::primitive::u128;
3662 }
3663 impl Withdraw {
3664 const PALLET_NAME: &'static str = "Balances";
3665 const EVENT_NAME: &'static str = "Withdraw";
3666 }
3667 impl ::subxt::events::DecodeAsEvent for Withdraw {
3668 fn is_event(pallet_name: &str, event_name: &str) -> bool {
3669 pallet_name == Self::PALLET_NAME && event_name == Self::EVENT_NAME
3670 }
3671 }
3672 #[derive(
3673 :: subxt :: ext :: scale_decode :: DecodeAsType,
3674 :: subxt :: ext :: scale_encode :: EncodeAsType,
3675 Debug,
3676 )]
3677 #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
3678 #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
3679 #[doc = "Some amount was removed from the account (e.g. for misbehavior)."]
3680 pub struct Slashed {
3681 pub who: slashed::Who,
3682 pub amount: slashed::Amount,
3683 }
3684 pub mod slashed {
3685 use super::runtime_types;
3686 pub type Who = ::subxt::utils::AccountId32;
3687 pub type Amount = ::core::primitive::u128;
3688 }
3689 impl Slashed {
3690 const PALLET_NAME: &'static str = "Balances";
3691 const EVENT_NAME: &'static str = "Slashed";
3692 }
3693 impl ::subxt::events::DecodeAsEvent for Slashed {
3694 fn is_event(pallet_name: &str, event_name: &str) -> bool {
3695 pallet_name == Self::PALLET_NAME && event_name == Self::EVENT_NAME
3696 }
3697 }
3698 #[derive(
3699 :: subxt :: ext :: scale_decode :: DecodeAsType,
3700 :: subxt :: ext :: scale_encode :: EncodeAsType,
3701 Debug,
3702 )]
3703 #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
3704 #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
3705 #[doc = "Some amount was minted into an account."]
3706 pub struct Minted {
3707 pub who: minted::Who,
3708 pub amount: minted::Amount,
3709 }
3710 pub mod minted {
3711 use super::runtime_types;
3712 pub type Who = ::subxt::utils::AccountId32;
3713 pub type Amount = ::core::primitive::u128;
3714 }
3715 impl Minted {
3716 const PALLET_NAME: &'static str = "Balances";
3717 const EVENT_NAME: &'static str = "Minted";
3718 }
3719 impl ::subxt::events::DecodeAsEvent for Minted {
3720 fn is_event(pallet_name: &str, event_name: &str) -> bool {
3721 pallet_name == Self::PALLET_NAME && event_name == Self::EVENT_NAME
3722 }
3723 }
3724 #[derive(
3725 :: subxt :: ext :: scale_decode :: DecodeAsType,
3726 :: subxt :: ext :: scale_encode :: EncodeAsType,
3727 Debug,
3728 )]
3729 #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
3730 #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
3731 #[doc = "Some credit was balanced and added to the `TotalIssuance`."]
3732 pub struct MintedCredit {
3733 pub amount: minted_credit::Amount,
3734 }
3735 pub mod minted_credit {
3736 use super::runtime_types;
3737 pub type Amount = ::core::primitive::u128;
3738 }
3739 impl MintedCredit {
3740 const PALLET_NAME: &'static str = "Balances";
3741 const EVENT_NAME: &'static str = "MintedCredit";
3742 }
3743 impl ::subxt::events::DecodeAsEvent for MintedCredit {
3744 fn is_event(pallet_name: &str, event_name: &str) -> bool {
3745 pallet_name == Self::PALLET_NAME && event_name == Self::EVENT_NAME
3746 }
3747 }
3748 #[derive(
3749 :: subxt :: ext :: scale_decode :: DecodeAsType,
3750 :: subxt :: ext :: scale_encode :: EncodeAsType,
3751 Debug,
3752 )]
3753 #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
3754 #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
3755 #[doc = "Some amount was burned from an account."]
3756 pub struct Burned {
3757 pub who: burned::Who,
3758 pub amount: burned::Amount,
3759 }
3760 pub mod burned {
3761 use super::runtime_types;
3762 pub type Who = ::subxt::utils::AccountId32;
3763 pub type Amount = ::core::primitive::u128;
3764 }
3765 impl Burned {
3766 const PALLET_NAME: &'static str = "Balances";
3767 const EVENT_NAME: &'static str = "Burned";
3768 }
3769 impl ::subxt::events::DecodeAsEvent for Burned {
3770 fn is_event(pallet_name: &str, event_name: &str) -> bool {
3771 pallet_name == Self::PALLET_NAME && event_name == Self::EVENT_NAME
3772 }
3773 }
3774 #[derive(
3775 :: subxt :: ext :: scale_decode :: DecodeAsType,
3776 :: subxt :: ext :: scale_encode :: EncodeAsType,
3777 Debug,
3778 )]
3779 #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
3780 #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
3781 #[doc = "Some debt has been dropped from the Total Issuance."]
3782 pub struct BurnedDebt {
3783 pub amount: burned_debt::Amount,
3784 }
3785 pub mod burned_debt {
3786 use super::runtime_types;
3787 pub type Amount = ::core::primitive::u128;
3788 }
3789 impl BurnedDebt {
3790 const PALLET_NAME: &'static str = "Balances";
3791 const EVENT_NAME: &'static str = "BurnedDebt";
3792 }
3793 impl ::subxt::events::DecodeAsEvent for BurnedDebt {
3794 fn is_event(pallet_name: &str, event_name: &str) -> bool {
3795 pallet_name == Self::PALLET_NAME && event_name == Self::EVENT_NAME
3796 }
3797 }
3798 #[derive(
3799 :: subxt :: ext :: scale_decode :: DecodeAsType,
3800 :: subxt :: ext :: scale_encode :: EncodeAsType,
3801 Debug,
3802 )]
3803 #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
3804 #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
3805 #[doc = "Some amount was suspended from an account (it can be restored later)."]
3806 pub struct Suspended {
3807 pub who: suspended::Who,
3808 pub amount: suspended::Amount,
3809 }
3810 pub mod suspended {
3811 use super::runtime_types;
3812 pub type Who = ::subxt::utils::AccountId32;
3813 pub type Amount = ::core::primitive::u128;
3814 }
3815 impl Suspended {
3816 const PALLET_NAME: &'static str = "Balances";
3817 const EVENT_NAME: &'static str = "Suspended";
3818 }
3819 impl ::subxt::events::DecodeAsEvent for Suspended {
3820 fn is_event(pallet_name: &str, event_name: &str) -> bool {
3821 pallet_name == Self::PALLET_NAME && event_name == Self::EVENT_NAME
3822 }
3823 }
3824 #[derive(
3825 :: subxt :: ext :: scale_decode :: DecodeAsType,
3826 :: subxt :: ext :: scale_encode :: EncodeAsType,
3827 Debug,
3828 )]
3829 #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
3830 #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
3831 #[doc = "Some amount was restored into an account."]
3832 pub struct Restored {
3833 pub who: restored::Who,
3834 pub amount: restored::Amount,
3835 }
3836 pub mod restored {
3837 use super::runtime_types;
3838 pub type Who = ::subxt::utils::AccountId32;
3839 pub type Amount = ::core::primitive::u128;
3840 }
3841 impl Restored {
3842 const PALLET_NAME: &'static str = "Balances";
3843 const EVENT_NAME: &'static str = "Restored";
3844 }
3845 impl ::subxt::events::DecodeAsEvent for Restored {
3846 fn is_event(pallet_name: &str, event_name: &str) -> bool {
3847 pallet_name == Self::PALLET_NAME && event_name == Self::EVENT_NAME
3848 }
3849 }
3850 #[derive(
3851 :: subxt :: ext :: scale_decode :: DecodeAsType,
3852 :: subxt :: ext :: scale_encode :: EncodeAsType,
3853 Debug,
3854 )]
3855 #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
3856 #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
3857 #[doc = "An account was upgraded."]
3858 pub struct Upgraded {
3859 pub who: upgraded::Who,
3860 }
3861 pub mod upgraded {
3862 use super::runtime_types;
3863 pub type Who = ::subxt::utils::AccountId32;
3864 }
3865 impl Upgraded {
3866 const PALLET_NAME: &'static str = "Balances";
3867 const EVENT_NAME: &'static str = "Upgraded";
3868 }
3869 impl ::subxt::events::DecodeAsEvent for Upgraded {
3870 fn is_event(pallet_name: &str, event_name: &str) -> bool {
3871 pallet_name == Self::PALLET_NAME && event_name == Self::EVENT_NAME
3872 }
3873 }
3874 #[derive(
3875 :: subxt :: ext :: scale_decode :: DecodeAsType,
3876 :: subxt :: ext :: scale_encode :: EncodeAsType,
3877 Debug,
3878 )]
3879 #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
3880 #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
3881 #[doc = "Total issuance was increased by `amount`, creating a credit to be balanced."]
3882 pub struct Issued {
3883 pub amount: issued::Amount,
3884 }
3885 pub mod issued {
3886 use super::runtime_types;
3887 pub type Amount = ::core::primitive::u128;
3888 }
3889 impl Issued {
3890 const PALLET_NAME: &'static str = "Balances";
3891 const EVENT_NAME: &'static str = "Issued";
3892 }
3893 impl ::subxt::events::DecodeAsEvent for Issued {
3894 fn is_event(pallet_name: &str, event_name: &str) -> bool {
3895 pallet_name == Self::PALLET_NAME && event_name == Self::EVENT_NAME
3896 }
3897 }
3898 #[derive(
3899 :: subxt :: ext :: scale_decode :: DecodeAsType,
3900 :: subxt :: ext :: scale_encode :: EncodeAsType,
3901 Debug,
3902 )]
3903 #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
3904 #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
3905 #[doc = "Total issuance was decreased by `amount`, creating a debt to be balanced."]
3906 pub struct Rescinded {
3907 pub amount: rescinded::Amount,
3908 }
3909 pub mod rescinded {
3910 use super::runtime_types;
3911 pub type Amount = ::core::primitive::u128;
3912 }
3913 impl Rescinded {
3914 const PALLET_NAME: &'static str = "Balances";
3915 const EVENT_NAME: &'static str = "Rescinded";
3916 }
3917 impl ::subxt::events::DecodeAsEvent for Rescinded {
3918 fn is_event(pallet_name: &str, event_name: &str) -> bool {
3919 pallet_name == Self::PALLET_NAME && event_name == Self::EVENT_NAME
3920 }
3921 }
3922 #[derive(
3923 :: subxt :: ext :: scale_decode :: DecodeAsType,
3924 :: subxt :: ext :: scale_encode :: EncodeAsType,
3925 Debug,
3926 )]
3927 #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
3928 #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
3929 #[doc = "Some balance was locked."]
3930 pub struct Locked {
3931 pub who: locked::Who,
3932 pub amount: locked::Amount,
3933 }
3934 pub mod locked {
3935 use super::runtime_types;
3936 pub type Who = ::subxt::utils::AccountId32;
3937 pub type Amount = ::core::primitive::u128;
3938 }
3939 impl Locked {
3940 const PALLET_NAME: &'static str = "Balances";
3941 const EVENT_NAME: &'static str = "Locked";
3942 }
3943 impl ::subxt::events::DecodeAsEvent for Locked {
3944 fn is_event(pallet_name: &str, event_name: &str) -> bool {
3945 pallet_name == Self::PALLET_NAME && event_name == Self::EVENT_NAME
3946 }
3947 }
3948 #[derive(
3949 :: subxt :: ext :: scale_decode :: DecodeAsType,
3950 :: subxt :: ext :: scale_encode :: EncodeAsType,
3951 Debug,
3952 )]
3953 #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
3954 #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
3955 #[doc = "Some balance was unlocked."]
3956 pub struct Unlocked {
3957 pub who: unlocked::Who,
3958 pub amount: unlocked::Amount,
3959 }
3960 pub mod unlocked {
3961 use super::runtime_types;
3962 pub type Who = ::subxt::utils::AccountId32;
3963 pub type Amount = ::core::primitive::u128;
3964 }
3965 impl Unlocked {
3966 const PALLET_NAME: &'static str = "Balances";
3967 const EVENT_NAME: &'static str = "Unlocked";
3968 }
3969 impl ::subxt::events::DecodeAsEvent for Unlocked {
3970 fn is_event(pallet_name: &str, event_name: &str) -> bool {
3971 pallet_name == Self::PALLET_NAME && event_name == Self::EVENT_NAME
3972 }
3973 }
3974 #[derive(
3975 :: subxt :: ext :: scale_decode :: DecodeAsType,
3976 :: subxt :: ext :: scale_encode :: EncodeAsType,
3977 Debug,
3978 )]
3979 #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
3980 #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
3981 #[doc = "Some balance was frozen."]
3982 pub struct Frozen {
3983 pub who: frozen::Who,
3984 pub amount: frozen::Amount,
3985 }
3986 pub mod frozen {
3987 use super::runtime_types;
3988 pub type Who = ::subxt::utils::AccountId32;
3989 pub type Amount = ::core::primitive::u128;
3990 }
3991 impl Frozen {
3992 const PALLET_NAME: &'static str = "Balances";
3993 const EVENT_NAME: &'static str = "Frozen";
3994 }
3995 impl ::subxt::events::DecodeAsEvent for Frozen {
3996 fn is_event(pallet_name: &str, event_name: &str) -> bool {
3997 pallet_name == Self::PALLET_NAME && event_name == Self::EVENT_NAME
3998 }
3999 }
4000 #[derive(
4001 :: subxt :: ext :: scale_decode :: DecodeAsType,
4002 :: subxt :: ext :: scale_encode :: EncodeAsType,
4003 Debug,
4004 )]
4005 #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
4006 #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
4007 #[doc = "Some balance was thawed."]
4008 pub struct Thawed {
4009 pub who: thawed::Who,
4010 pub amount: thawed::Amount,
4011 }
4012 pub mod thawed {
4013 use super::runtime_types;
4014 pub type Who = ::subxt::utils::AccountId32;
4015 pub type Amount = ::core::primitive::u128;
4016 }
4017 impl Thawed {
4018 const PALLET_NAME: &'static str = "Balances";
4019 const EVENT_NAME: &'static str = "Thawed";
4020 }
4021 impl ::subxt::events::DecodeAsEvent for Thawed {
4022 fn is_event(pallet_name: &str, event_name: &str) -> bool {
4023 pallet_name == Self::PALLET_NAME && event_name == Self::EVENT_NAME
4024 }
4025 }
4026 #[derive(
4027 :: subxt :: ext :: scale_decode :: DecodeAsType,
4028 :: subxt :: ext :: scale_encode :: EncodeAsType,
4029 Debug,
4030 )]
4031 #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
4032 #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
4033 #[doc = "The `TotalIssuance` was forcefully changed."]
4034 pub struct TotalIssuanceForced {
4035 pub old: total_issuance_forced::Old,
4036 pub new: total_issuance_forced::New,
4037 }
4038 pub mod total_issuance_forced {
4039 use super::runtime_types;
4040 pub type Old = ::core::primitive::u128;
4041 pub type New = ::core::primitive::u128;
4042 }
4043 impl TotalIssuanceForced {
4044 const PALLET_NAME: &'static str = "Balances";
4045 const EVENT_NAME: &'static str = "TotalIssuanceForced";
4046 }
4047 impl ::subxt::events::DecodeAsEvent for TotalIssuanceForced {
4048 fn is_event(pallet_name: &str, event_name: &str) -> bool {
4049 pallet_name == Self::PALLET_NAME && event_name == Self::EVENT_NAME
4050 }
4051 }
4052 #[derive(
4053 :: subxt :: ext :: scale_decode :: DecodeAsType,
4054 :: subxt :: ext :: scale_encode :: EncodeAsType,
4055 Debug,
4056 )]
4057 #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
4058 #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
4059 #[doc = "Some balance was placed on hold."]
4060 pub struct Held {
4061 pub reason: held::Reason,
4062 pub who: held::Who,
4063 pub amount: held::Amount,
4064 }
4065 pub mod held {
4066 use super::runtime_types;
4067 pub type Reason = runtime_types::acuity_runtime::RuntimeHoldReason;
4068 pub type Who = ::subxt::utils::AccountId32;
4069 pub type Amount = ::core::primitive::u128;
4070 }
4071 impl Held {
4072 const PALLET_NAME: &'static str = "Balances";
4073 const EVENT_NAME: &'static str = "Held";
4074 }
4075 impl ::subxt::events::DecodeAsEvent for Held {
4076 fn is_event(pallet_name: &str, event_name: &str) -> bool {
4077 pallet_name == Self::PALLET_NAME && event_name == Self::EVENT_NAME
4078 }
4079 }
4080 #[derive(
4081 :: subxt :: ext :: scale_decode :: DecodeAsType,
4082 :: subxt :: ext :: scale_encode :: EncodeAsType,
4083 Debug,
4084 )]
4085 #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
4086 #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
4087 #[doc = "Held balance was burned from an account."]
4088 pub struct BurnedHeld {
4089 pub reason: burned_held::Reason,
4090 pub who: burned_held::Who,
4091 pub amount: burned_held::Amount,
4092 }
4093 pub mod burned_held {
4094 use super::runtime_types;
4095 pub type Reason = runtime_types::acuity_runtime::RuntimeHoldReason;
4096 pub type Who = ::subxt::utils::AccountId32;
4097 pub type Amount = ::core::primitive::u128;
4098 }
4099 impl BurnedHeld {
4100 const PALLET_NAME: &'static str = "Balances";
4101 const EVENT_NAME: &'static str = "BurnedHeld";
4102 }
4103 impl ::subxt::events::DecodeAsEvent for BurnedHeld {
4104 fn is_event(pallet_name: &str, event_name: &str) -> bool {
4105 pallet_name == Self::PALLET_NAME && event_name == Self::EVENT_NAME
4106 }
4107 }
4108 #[derive(
4109 :: subxt :: ext :: scale_decode :: DecodeAsType,
4110 :: subxt :: ext :: scale_encode :: EncodeAsType,
4111 Debug,
4112 )]
4113 #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
4114 #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
4115 #[doc = "A transfer of `amount` on hold from `source` to `dest` was initiated."]
4116 pub struct TransferOnHold {
4117 pub reason: transfer_on_hold::Reason,
4118 pub source: transfer_on_hold::Source,
4119 pub dest: transfer_on_hold::Dest,
4120 pub amount: transfer_on_hold::Amount,
4121 }
4122 pub mod transfer_on_hold {
4123 use super::runtime_types;
4124 pub type Reason = runtime_types::acuity_runtime::RuntimeHoldReason;
4125 pub type Source = ::subxt::utils::AccountId32;
4126 pub type Dest = ::subxt::utils::AccountId32;
4127 pub type Amount = ::core::primitive::u128;
4128 }
4129 impl TransferOnHold {
4130 const PALLET_NAME: &'static str = "Balances";
4131 const EVENT_NAME: &'static str = "TransferOnHold";
4132 }
4133 impl ::subxt::events::DecodeAsEvent for TransferOnHold {
4134 fn is_event(pallet_name: &str, event_name: &str) -> bool {
4135 pallet_name == Self::PALLET_NAME && event_name == Self::EVENT_NAME
4136 }
4137 }
4138 #[derive(
4139 :: subxt :: ext :: scale_decode :: DecodeAsType,
4140 :: subxt :: ext :: scale_encode :: EncodeAsType,
4141 Debug,
4142 )]
4143 #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
4144 #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
4145 #[doc = "The `transferred` balance is placed on hold at the `dest` account."]
4146 pub struct TransferAndHold {
4147 pub reason: transfer_and_hold::Reason,
4148 pub source: transfer_and_hold::Source,
4149 pub dest: transfer_and_hold::Dest,
4150 pub transferred: transfer_and_hold::Transferred,
4151 }
4152 pub mod transfer_and_hold {
4153 use super::runtime_types;
4154 pub type Reason = runtime_types::acuity_runtime::RuntimeHoldReason;
4155 pub type Source = ::subxt::utils::AccountId32;
4156 pub type Dest = ::subxt::utils::AccountId32;
4157 pub type Transferred = ::core::primitive::u128;
4158 }
4159 impl TransferAndHold {
4160 const PALLET_NAME: &'static str = "Balances";
4161 const EVENT_NAME: &'static str = "TransferAndHold";
4162 }
4163 impl ::subxt::events::DecodeAsEvent for TransferAndHold {
4164 fn is_event(pallet_name: &str, event_name: &str) -> bool {
4165 pallet_name == Self::PALLET_NAME && event_name == Self::EVENT_NAME
4166 }
4167 }
4168 #[derive(
4169 :: subxt :: ext :: scale_decode :: DecodeAsType,
4170 :: subxt :: ext :: scale_encode :: EncodeAsType,
4171 Debug,
4172 )]
4173 #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
4174 #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
4175 #[doc = "Some balance was released from hold."]
4176 pub struct Released {
4177 pub reason: released::Reason,
4178 pub who: released::Who,
4179 pub amount: released::Amount,
4180 }
4181 pub mod released {
4182 use super::runtime_types;
4183 pub type Reason = runtime_types::acuity_runtime::RuntimeHoldReason;
4184 pub type Who = ::subxt::utils::AccountId32;
4185 pub type Amount = ::core::primitive::u128;
4186 }
4187 impl Released {
4188 const PALLET_NAME: &'static str = "Balances";
4189 const EVENT_NAME: &'static str = "Released";
4190 }
4191 impl ::subxt::events::DecodeAsEvent for Released {
4192 fn is_event(pallet_name: &str, event_name: &str) -> bool {
4193 pallet_name == Self::PALLET_NAME && event_name == Self::EVENT_NAME
4194 }
4195 }
4196 #[derive(
4197 :: subxt :: ext :: scale_decode :: DecodeAsType,
4198 :: subxt :: ext :: scale_encode :: EncodeAsType,
4199 Debug,
4200 )]
4201 #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
4202 #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
4203 #[doc = "An unexpected/defensive event was triggered."]
4204 pub struct Unexpected(pub unexpected::Field0);
4205 pub mod unexpected {
4206 use super::runtime_types;
4207 pub type Field0 = runtime_types::pallet_balances::pallet::UnexpectedKind;
4208 }
4209 impl Unexpected {
4210 const PALLET_NAME: &'static str = "Balances";
4211 const EVENT_NAME: &'static str = "Unexpected";
4212 }
4213 impl ::subxt::events::DecodeAsEvent for Unexpected {
4214 fn is_event(pallet_name: &str, event_name: &str) -> bool {
4215 pallet_name == Self::PALLET_NAME && event_name == Self::EVENT_NAME
4216 }
4217 }
4218 }
4219 pub mod storage {
4220 use super::root_mod;
4221 use super::runtime_types;
4222 pub struct StorageApi;
4223 impl StorageApi {
4224 #[must_use]
4225 #[doc = " The total units issued in the system."]
4226 pub fn total_issuance(
4227 &self,
4228 ) -> ::subxt::storage::StaticAddress<(), total_issuance::Output, ::subxt::utils::Yes>
4229 {
4230 ::subxt::storage::StaticAddress::new_static(
4231 "Balances",
4232 "TotalIssuance",
4233 [
4234 138u8, 120u8, 138u8, 119u8, 4u8, 166u8, 22u8, 216u8, 227u8, 249u8,
4235 161u8, 193u8, 54u8, 68u8, 55u8, 74u8, 230u8, 68u8, 131u8, 253u8, 146u8,
4236 73u8, 54u8, 85u8, 212u8, 83u8, 162u8, 188u8, 171u8, 5u8, 232u8, 21u8,
4237 ],
4238 )
4239 }
4240 #[must_use]
4241 #[doc = " The total units of outstanding deactivated balance in the system."]
4242 pub fn inactive_issuance(
4243 &self,
4244 ) -> ::subxt::storage::StaticAddress<
4245 (),
4246 inactive_issuance::Output,
4247 ::subxt::utils::Yes,
4248 > {
4249 ::subxt::storage::StaticAddress::new_static(
4250 "Balances",
4251 "InactiveIssuance",
4252 [
4253 97u8, 194u8, 82u8, 3u8, 40u8, 108u8, 109u8, 245u8, 175u8, 189u8, 212u8,
4254 193u8, 229u8, 82u8, 107u8, 169u8, 9u8, 176u8, 124u8, 102u8, 151u8,
4255 98u8, 87u8, 194u8, 82u8, 130u8, 41u8, 137u8, 3u8, 230u8, 145u8, 58u8,
4256 ],
4257 )
4258 }
4259 #[must_use]
4260 #[doc = " The Balances pallet example of storing the balance of an account."]
4261 #[doc = ""]
4262 #[doc = " # Example"]
4263 #[doc = ""]
4264 #[doc = " ```nocompile"]
4265 #[doc = " impl pallet_balances::Config for Runtime {"]
4266 #[doc = " type AccountStore = StorageMapShim<Self::Account<Runtime>, frame_system::Provider<Runtime>, AccountId, Self::AccountData<Balance>>"]
4267 #[doc = " }"]
4268 #[doc = " ```"]
4269 #[doc = ""]
4270 #[doc = " You can also store the balance of an account in the `System` pallet."]
4271 #[doc = ""]
4272 #[doc = " # Example"]
4273 #[doc = ""]
4274 #[doc = " ```nocompile"]
4275 #[doc = " impl pallet_balances::Config for Runtime {"]
4276 #[doc = " type AccountStore = System"]
4277 #[doc = " }"]
4278 #[doc = " ```"]
4279 #[doc = ""]
4280 #[doc = " But this comes with tradeoffs, storing account balances in the system pallet stores"]
4281 #[doc = " `frame_system` data alongside the account data contrary to storing account balances in the"]
4282 #[doc = " `Balances` pallet, which uses a `StorageMap` to store balances data only."]
4283 #[doc = " NOTE: This is only used in the case that this pallet is used to store balances."]
4284 pub fn account(
4285 &self,
4286 ) -> ::subxt::storage::StaticAddress<
4287 (account::input::Param0,),
4288 account::Output,
4289 ::subxt::utils::Maybe,
4290 > {
4291 ::subxt::storage::StaticAddress::new_static(
4292 "Balances",
4293 "Account",
4294 [
4295 14u8, 88u8, 174u8, 192u8, 241u8, 142u8, 159u8, 255u8, 178u8, 117u8,
4296 55u8, 78u8, 218u8, 161u8, 146u8, 139u8, 170u8, 180u8, 187u8, 177u8,
4297 89u8, 157u8, 91u8, 225u8, 90u8, 174u8, 247u8, 47u8, 47u8, 23u8, 234u8,
4298 50u8,
4299 ],
4300 )
4301 }
4302 #[must_use]
4303 #[doc = " Any liquidity locks on some account balances."]
4304 #[doc = " NOTE: Should only be accessed when setting, changing and freeing a lock."]
4305 #[doc = ""]
4306 #[doc = " Use of locks is deprecated in favour of freezes. See `https://github.com/paritytech/substrate/pull/12951/`"]
4307 pub fn locks(
4308 &self,
4309 ) -> ::subxt::storage::StaticAddress<
4310 (locks::input::Param0,),
4311 locks::Output,
4312 ::subxt::utils::Maybe,
4313 > {
4314 ::subxt::storage::StaticAddress::new_static(
4315 "Balances",
4316 "Locks",
4317 [
4318 201u8, 50u8, 65u8, 126u8, 43u8, 153u8, 207u8, 145u8, 240u8, 59u8,
4319 160u8, 111u8, 144u8, 245u8, 193u8, 13u8, 227u8, 118u8, 72u8, 168u8,
4320 37u8, 147u8, 139u8, 221u8, 36u8, 177u8, 202u8, 209u8, 152u8, 122u8,
4321 250u8, 89u8,
4322 ],
4323 )
4324 }
4325 #[must_use]
4326 #[doc = " Named reserves on some account balances."]
4327 #[doc = ""]
4328 #[doc = " Use of reserves is deprecated in favour of holds. See `https://github.com/paritytech/substrate/pull/12951/`"]
4329 pub fn reserves(
4330 &self,
4331 ) -> ::subxt::storage::StaticAddress<
4332 (reserves::input::Param0,),
4333 reserves::Output,
4334 ::subxt::utils::Maybe,
4335 > {
4336 ::subxt::storage::StaticAddress::new_static(
4337 "Balances",
4338 "Reserves",
4339 [
4340 242u8, 49u8, 250u8, 113u8, 214u8, 13u8, 201u8, 251u8, 161u8, 201u8,
4341 81u8, 43u8, 122u8, 155u8, 190u8, 214u8, 210u8, 26u8, 104u8, 107u8,
4342 113u8, 108u8, 113u8, 171u8, 174u8, 31u8, 169u8, 220u8, 98u8, 39u8,
4343 68u8, 245u8,
4344 ],
4345 )
4346 }
4347 #[must_use]
4348 #[doc = " Holds on account balances."]
4349 pub fn holds(
4350 &self,
4351 ) -> ::subxt::storage::StaticAddress<
4352 (holds::input::Param0,),
4353 holds::Output,
4354 ::subxt::utils::Maybe,
4355 > {
4356 ::subxt::storage::StaticAddress::new_static(
4357 "Balances",
4358 "Holds",
4359 [
4360 127u8, 213u8, 56u8, 163u8, 150u8, 56u8, 111u8, 121u8, 191u8, 137u8,
4361 59u8, 114u8, 75u8, 24u8, 70u8, 242u8, 138u8, 133u8, 215u8, 74u8, 230u8,
4362 129u8, 232u8, 84u8, 145u8, 55u8, 37u8, 63u8, 69u8, 59u8, 121u8, 243u8,
4363 ],
4364 )
4365 }
4366 #[must_use]
4367 #[doc = " Freeze locks on account balances."]
4368 pub fn freezes(
4369 &self,
4370 ) -> ::subxt::storage::StaticAddress<
4371 (freezes::input::Param0,),
4372 freezes::Output,
4373 ::subxt::utils::Maybe,
4374 > {
4375 ::subxt::storage::StaticAddress::new_static(
4376 "Balances",
4377 "Freezes",
4378 [
4379 41u8, 196u8, 69u8, 26u8, 201u8, 141u8, 252u8, 255u8, 78u8, 216u8,
4380 102u8, 207u8, 133u8, 185u8, 86u8, 18u8, 79u8, 137u8, 132u8, 92u8,
4381 228u8, 237u8, 91u8, 125u8, 25u8, 111u8, 127u8, 212u8, 215u8, 114u8,
4382 219u8, 72u8,
4383 ],
4384 )
4385 }
4386 }
4387 pub mod total_issuance {
4388 use super::root_mod;
4389 use super::runtime_types;
4390 pub mod input {
4391 use super::runtime_types;
4392 }
4393 pub type Output = ::core::primitive::u128;
4394 }
4395 pub mod inactive_issuance {
4396 use super::root_mod;
4397 use super::runtime_types;
4398 pub mod input {
4399 use super::runtime_types;
4400 }
4401 pub type Output = ::core::primitive::u128;
4402 }
4403 pub mod account {
4404 use super::root_mod;
4405 use super::runtime_types;
4406 pub mod input {
4407 use super::runtime_types;
4408 pub type Param0 = ::subxt::utils::AccountId32;
4409 }
4410 pub type Output =
4411 runtime_types::pallet_balances::types::AccountData<::core::primitive::u128>;
4412 }
4413 pub mod locks {
4414 use super::root_mod;
4415 use super::runtime_types;
4416 pub mod input {
4417 use super::runtime_types;
4418 pub type Param0 = ::subxt::utils::AccountId32;
4419 }
4420 pub type Output =
4421 runtime_types::bounded_collections::weak_bounded_vec::WeakBoundedVec<
4422 runtime_types::pallet_balances::types::BalanceLock<::core::primitive::u128>,
4423 >;
4424 }
4425 pub mod reserves {
4426 use super::root_mod;
4427 use super::runtime_types;
4428 pub mod input {
4429 use super::runtime_types;
4430 pub type Param0 = ::subxt::utils::AccountId32;
4431 }
4432 pub type Output = runtime_types::bounded_collections::bounded_vec::BoundedVec<
4433 runtime_types::pallet_balances::types::ReserveData<(), ::core::primitive::u128>,
4434 >;
4435 }
4436 pub mod holds {
4437 use super::root_mod;
4438 use super::runtime_types;
4439 pub mod input {
4440 use super::runtime_types;
4441 pub type Param0 = ::subxt::utils::AccountId32;
4442 }
4443 pub type Output = runtime_types::bounded_collections::bounded_vec::BoundedVec<
4444 runtime_types::frame_support::traits::tokens::misc::IdAmount<
4445 runtime_types::acuity_runtime::RuntimeHoldReason,
4446 ::core::primitive::u128,
4447 >,
4448 >;
4449 }
4450 pub mod freezes {
4451 use super::root_mod;
4452 use super::runtime_types;
4453 pub mod input {
4454 use super::runtime_types;
4455 pub type Param0 = ::subxt::utils::AccountId32;
4456 }
4457 pub type Output = runtime_types::bounded_collections::bounded_vec::BoundedVec<
4458 runtime_types::frame_support::traits::tokens::misc::IdAmount<
4459 (),
4460 ::core::primitive::u128,
4461 >,
4462 >;
4463 }
4464 }
4465 pub mod constants {
4466 use super::runtime_types;
4467 pub struct ConstantsApi;
4468 impl ConstantsApi {
4469 #[must_use]
4470 #[doc = " The minimum amount required to keep an account open. MUST BE GREATER THAN ZERO!"]
4471 #[doc = ""]
4472 #[doc = " If you *really* need it to be zero, you can enable the feature `insecure_zero_ed` for"]
4473 #[doc = " this pallet. However, you do so at your own risk: this will open up a major `DoS` vector."]
4474 #[doc = " In case you have multiple sources of provider references, you may also get unexpected"]
4475 #[doc = " behaviour if you set this to zero."]
4476 #[doc = ""]
4477 #[doc = " Bottom line: Do yourself a favour and make it at least one!"]
4478 pub fn existential_deposit(
4479 &self,
4480 ) -> ::subxt::constants::StaticAddress<::core::primitive::u128> {
4481 ::subxt::constants::StaticAddress::new_static(
4482 "Balances",
4483 "ExistentialDeposit",
4484 [
4485 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8,
4486 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8,
4487 136u8, 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, 148u8, 156u8,
4488 ],
4489 )
4490 }
4491 #[must_use]
4492 #[doc = " The maximum number of locks that should exist on an account."]
4493 #[doc = " Not strictly enforced, but used for weight estimation."]
4494 #[doc = ""]
4495 #[doc = " Use of locks is deprecated in favour of freezes. See `https://github.com/paritytech/substrate/pull/12951/`"]
4496 pub fn max_locks(
4497 &self,
4498 ) -> ::subxt::constants::StaticAddress<::core::primitive::u32> {
4499 ::subxt::constants::StaticAddress::new_static(
4500 "Balances",
4501 "MaxLocks",
4502 [
4503 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8,
4504 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8,
4505 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8,
4506 145u8,
4507 ],
4508 )
4509 }
4510 #[must_use]
4511 #[doc = " The maximum number of named reserves that can exist on an account."]
4512 #[doc = ""]
4513 #[doc = " Use of reserves is deprecated in favour of holds. See `https://github.com/paritytech/substrate/pull/12951/`"]
4514 pub fn max_reserves(
4515 &self,
4516 ) -> ::subxt::constants::StaticAddress<::core::primitive::u32> {
4517 ::subxt::constants::StaticAddress::new_static(
4518 "Balances",
4519 "MaxReserves",
4520 [
4521 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8,
4522 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8,
4523 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8,
4524 145u8,
4525 ],
4526 )
4527 }
4528 #[must_use]
4529 #[doc = " The maximum number of individual freeze locks that can exist on an account at any time."]
4530 pub fn max_freezes(
4531 &self,
4532 ) -> ::subxt::constants::StaticAddress<::core::primitive::u32> {
4533 ::subxt::constants::StaticAddress::new_static(
4534 "Balances",
4535 "MaxFreezes",
4536 [
4537 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8,
4538 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8,
4539 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8,
4540 145u8,
4541 ],
4542 )
4543 }
4544 }
4545 }
4546 }
4547 pub mod sudo {
4548 use super::root_mod;
4549 use super::runtime_types;
4550 #[doc = "Error for the Sudo pallet."]
4551 pub type Error = runtime_types::pallet_sudo::pallet::Error;
4552 #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."]
4553 pub type Call = runtime_types::pallet_sudo::pallet::Call;
4554 pub mod calls {
4555 use super::root_mod;
4556 use super::runtime_types;
4557 #[derive(
4558 :: subxt :: ext :: scale_decode :: DecodeAsType,
4559 :: subxt :: ext :: scale_encode :: EncodeAsType,
4560 Debug,
4561 )]
4562 #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
4563 #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
4564 #[doc = "Authenticates the sudo key and dispatches a function call with `Root` origin."]
4565 pub struct Sudo {
4566 pub call: ::subxt::alloc::boxed::Box<sudo::Call>,
4567 }
4568 pub mod sudo {
4569 use super::runtime_types;
4570 pub type Call = runtime_types::acuity_runtime::RuntimeCall;
4571 }
4572 impl Sudo {
4573 const PALLET_NAME: &'static str = "Sudo";
4574 const CALL_NAME: &'static str = "sudo";
4575 }
4576 impl ::subxt::extrinsics::DecodeAsExtrinsic for Sudo {
4577 fn is_extrinsic(pallet_name: &str, call_name: &str) -> bool {
4578 pallet_name == Self::PALLET_NAME && call_name == Self::CALL_NAME
4579 }
4580 }
4581 #[derive(
4582 :: subxt :: ext :: scale_decode :: DecodeAsType,
4583 :: subxt :: ext :: scale_encode :: EncodeAsType,
4584 Debug,
4585 )]
4586 #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
4587 #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
4588 #[doc = "Authenticates the sudo key and dispatches a function call with `Root` origin."]
4589 #[doc = "This function does not check the weight of the call, and instead allows the"]
4590 #[doc = "Sudo user to specify the weight of the call."]
4591 #[doc = ""]
4592 #[doc = "The dispatch origin for this call must be _Signed_."]
4593 pub struct SudoUncheckedWeight {
4594 pub call: ::subxt::alloc::boxed::Box<sudo_unchecked_weight::Call>,
4595 pub weight: sudo_unchecked_weight::Weight,
4596 }
4597 pub mod sudo_unchecked_weight {
4598 use super::runtime_types;
4599 pub type Call = runtime_types::acuity_runtime::RuntimeCall;
4600 pub type Weight = runtime_types::sp_weights::weight_v2::Weight;
4601 }
4602 impl SudoUncheckedWeight {
4603 const PALLET_NAME: &'static str = "Sudo";
4604 const CALL_NAME: &'static str = "sudo_unchecked_weight";
4605 }
4606 impl ::subxt::extrinsics::DecodeAsExtrinsic for SudoUncheckedWeight {
4607 fn is_extrinsic(pallet_name: &str, call_name: &str) -> bool {
4608 pallet_name == Self::PALLET_NAME && call_name == Self::CALL_NAME
4609 }
4610 }
4611 #[derive(
4612 :: subxt :: ext :: scale_decode :: DecodeAsType,
4613 :: subxt :: ext :: scale_encode :: EncodeAsType,
4614 Debug,
4615 )]
4616 #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
4617 #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
4618 #[doc = "Authenticates the current sudo key and sets the given `AccountId` (`new`) as the new sudo"]
4619 #[doc = "key."]
4620 pub struct SetKey {
4621 pub new: set_key::New,
4622 }
4623 pub mod set_key {
4624 use super::runtime_types;
4625 pub type New = ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>;
4626 }
4627 impl SetKey {
4628 const PALLET_NAME: &'static str = "Sudo";
4629 const CALL_NAME: &'static str = "set_key";
4630 }
4631 impl ::subxt::extrinsics::DecodeAsExtrinsic for SetKey {
4632 fn is_extrinsic(pallet_name: &str, call_name: &str) -> bool {
4633 pallet_name == Self::PALLET_NAME && call_name == Self::CALL_NAME
4634 }
4635 }
4636 #[derive(
4637 :: subxt :: ext :: scale_decode :: DecodeAsType,
4638 :: subxt :: ext :: scale_encode :: EncodeAsType,
4639 Debug,
4640 )]
4641 #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
4642 #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
4643 #[doc = "Authenticates the sudo key and dispatches a function call with `Signed` origin from"]
4644 #[doc = "a given account."]
4645 #[doc = ""]
4646 #[doc = "The dispatch origin for this call must be _Signed_."]
4647 pub struct SudoAs {
4648 pub who: sudo_as::Who,
4649 pub call: ::subxt::alloc::boxed::Box<sudo_as::Call>,
4650 }
4651 pub mod sudo_as {
4652 use super::runtime_types;
4653 pub type Who = ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>;
4654 pub type Call = runtime_types::acuity_runtime::RuntimeCall;
4655 }
4656 impl SudoAs {
4657 const PALLET_NAME: &'static str = "Sudo";
4658 const CALL_NAME: &'static str = "sudo_as";
4659 }
4660 impl ::subxt::extrinsics::DecodeAsExtrinsic for SudoAs {
4661 fn is_extrinsic(pallet_name: &str, call_name: &str) -> bool {
4662 pallet_name == Self::PALLET_NAME && call_name == Self::CALL_NAME
4663 }
4664 }
4665 #[derive(
4666 :: subxt :: ext :: scale_decode :: DecodeAsType,
4667 :: subxt :: ext :: scale_encode :: EncodeAsType,
4668 Debug,
4669 )]
4670 #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
4671 #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
4672 #[doc = "Permanently removes the sudo key."]
4673 #[doc = ""]
4674 #[doc = "**This cannot be un-done.**"]
4675 pub struct RemoveKey;
4676 impl RemoveKey {
4677 const PALLET_NAME: &'static str = "Sudo";
4678 const CALL_NAME: &'static str = "remove_key";
4679 }
4680 impl ::subxt::extrinsics::DecodeAsExtrinsic for RemoveKey {
4681 fn is_extrinsic(pallet_name: &str, call_name: &str) -> bool {
4682 pallet_name == Self::PALLET_NAME && call_name == Self::CALL_NAME
4683 }
4684 }
4685 pub mod api {
4686 pub struct TransactionApi;
4687 impl TransactionApi {
4688 #[must_use]
4689 #[doc = "Authenticates the sudo key and dispatches a function call with `Root` origin."]
4690 pub fn sudo(
4691 &self,
4692 call: super::sudo::Call,
4693 ) -> ::subxt::transactions::StaticPayload<super::Sudo> {
4694 ::subxt::transactions::StaticPayload::new_static(
4695 "Sudo",
4696 "sudo",
4697 super::Sudo {
4698 call: ::subxt::alloc::boxed::Box::new(call),
4699 },
4700 [
4701 70u8, 130u8, 46u8, 245u8, 139u8, 31u8, 38u8, 158u8, 38u8, 145u8,
4702 39u8, 117u8, 55u8, 131u8, 169u8, 26u8, 34u8, 96u8, 32u8, 163u8,
4703 158u8, 229u8, 236u8, 230u8, 206u8, 1u8, 205u8, 6u8, 209u8, 16u8,
4704 27u8, 98u8,
4705 ],
4706 )
4707 }
4708 #[must_use]
4709 #[doc = "Authenticates the sudo key and dispatches a function call with `Root` origin."]
4710 #[doc = "This function does not check the weight of the call, and instead allows the"]
4711 #[doc = "Sudo user to specify the weight of the call."]
4712 #[doc = ""]
4713 #[doc = "The dispatch origin for this call must be _Signed_."]
4714 pub fn sudo_unchecked_weight(
4715 &self,
4716 call: super::sudo_unchecked_weight::Call,
4717 weight: super::sudo_unchecked_weight::Weight,
4718 ) -> ::subxt::transactions::StaticPayload<super::SudoUncheckedWeight>
4719 {
4720 ::subxt::transactions::StaticPayload::new_static(
4721 "Sudo",
4722 "sudo_unchecked_weight",
4723 super::SudoUncheckedWeight {
4724 call: ::subxt::alloc::boxed::Box::new(call),
4725 weight,
4726 },
4727 [
4728 71u8, 20u8, 222u8, 239u8, 64u8, 237u8, 4u8, 211u8, 128u8, 214u8,
4729 87u8, 134u8, 86u8, 65u8, 97u8, 21u8, 225u8, 225u8, 177u8, 33u8,
4730 183u8, 79u8, 142u8, 27u8, 150u8, 107u8, 153u8, 20u8, 217u8, 149u8,
4731 48u8, 222u8,
4732 ],
4733 )
4734 }
4735 #[must_use]
4736 #[doc = "Authenticates the current sudo key and sets the given `AccountId` (`new`) as the new sudo"]
4737 #[doc = "key."]
4738 pub fn set_key(
4739 &self,
4740 new: super::set_key::New,
4741 ) -> ::subxt::transactions::StaticPayload<super::SetKey> {
4742 ::subxt::transactions::StaticPayload::new_static(
4743 "Sudo",
4744 "set_key",
4745 super::SetKey { new },
4746 [
4747 9u8, 73u8, 39u8, 205u8, 188u8, 127u8, 143u8, 54u8, 128u8, 94u8,
4748 8u8, 227u8, 197u8, 44u8, 70u8, 93u8, 228u8, 196u8, 64u8, 165u8,
4749 226u8, 158u8, 101u8, 192u8, 22u8, 193u8, 102u8, 84u8, 21u8, 35u8,
4750 92u8, 198u8,
4751 ],
4752 )
4753 }
4754 #[must_use]
4755 #[doc = "Authenticates the sudo key and dispatches a function call with `Signed` origin from"]
4756 #[doc = "a given account."]
4757 #[doc = ""]
4758 #[doc = "The dispatch origin for this call must be _Signed_."]
4759 pub fn sudo_as(
4760 &self,
4761 who: super::sudo_as::Who,
4762 call: super::sudo_as::Call,
4763 ) -> ::subxt::transactions::StaticPayload<super::SudoAs> {
4764 ::subxt::transactions::StaticPayload::new_static(
4765 "Sudo",
4766 "sudo_as",
4767 super::SudoAs {
4768 who,
4769 call: ::subxt::alloc::boxed::Box::new(call),
4770 },
4771 [
4772 66u8, 178u8, 57u8, 171u8, 99u8, 7u8, 202u8, 194u8, 230u8, 145u8,
4773 136u8, 109u8, 200u8, 208u8, 53u8, 27u8, 123u8, 248u8, 223u8, 127u8,
4774 97u8, 127u8, 77u8, 53u8, 2u8, 93u8, 175u8, 67u8, 172u8, 202u8,
4775 116u8, 238u8,
4776 ],
4777 )
4778 }
4779 #[must_use]
4780 #[doc = "Permanently removes the sudo key."]
4781 #[doc = ""]
4782 #[doc = "**This cannot be un-done.**"]
4783 pub fn remove_key(
4784 &self,
4785 ) -> ::subxt::transactions::StaticPayload<super::RemoveKey>
4786 {
4787 ::subxt::transactions::StaticPayload::new_static(
4788 "Sudo",
4789 "remove_key",
4790 super::RemoveKey {},
4791 [
4792 133u8, 253u8, 54u8, 175u8, 202u8, 239u8, 5u8, 198u8, 180u8, 138u8,
4793 25u8, 28u8, 109u8, 40u8, 30u8, 56u8, 126u8, 100u8, 52u8, 205u8,
4794 250u8, 191u8, 61u8, 195u8, 172u8, 142u8, 184u8, 239u8, 247u8, 10u8,
4795 211u8, 79u8,
4796 ],
4797 )
4798 }
4799 }
4800 }
4801 }
4802 #[doc = "The `Event` enum of this pallet"]
4803 pub type Event = runtime_types::pallet_sudo::pallet::Event;
4804 pub mod events {
4805 use super::runtime_types;
4806 #[derive(
4807 :: subxt :: ext :: scale_decode :: DecodeAsType,
4808 :: subxt :: ext :: scale_encode :: EncodeAsType,
4809 Debug,
4810 )]
4811 #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
4812 #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
4813 #[doc = "A sudo call just took place."]
4814 pub struct Sudid {
4815 pub sudo_result: sudid::SudoResult,
4816 }
4817 pub mod sudid {
4818 use super::runtime_types;
4819 pub type SudoResult =
4820 ::core::result::Result<(), runtime_types::sp_runtime::DispatchError>;
4821 }
4822 impl Sudid {
4823 const PALLET_NAME: &'static str = "Sudo";
4824 const EVENT_NAME: &'static str = "Sudid";
4825 }
4826 impl ::subxt::events::DecodeAsEvent for Sudid {
4827 fn is_event(pallet_name: &str, event_name: &str) -> bool {
4828 pallet_name == Self::PALLET_NAME && event_name == Self::EVENT_NAME
4829 }
4830 }
4831 #[derive(
4832 :: subxt :: ext :: scale_decode :: DecodeAsType,
4833 :: subxt :: ext :: scale_encode :: EncodeAsType,
4834 Debug,
4835 )]
4836 #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
4837 #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
4838 #[doc = "The sudo key has been updated."]
4839 pub struct KeyChanged {
4840 pub old: key_changed::Old,
4841 pub new: key_changed::New,
4842 }
4843 pub mod key_changed {
4844 use super::runtime_types;
4845 pub type Old = ::core::option::Option<::subxt::utils::AccountId32>;
4846 pub type New = ::subxt::utils::AccountId32;
4847 }
4848 impl KeyChanged {
4849 const PALLET_NAME: &'static str = "Sudo";
4850 const EVENT_NAME: &'static str = "KeyChanged";
4851 }
4852 impl ::subxt::events::DecodeAsEvent for KeyChanged {
4853 fn is_event(pallet_name: &str, event_name: &str) -> bool {
4854 pallet_name == Self::PALLET_NAME && event_name == Self::EVENT_NAME
4855 }
4856 }
4857 #[derive(
4858 :: subxt :: ext :: scale_decode :: DecodeAsType,
4859 :: subxt :: ext :: scale_encode :: EncodeAsType,
4860 Debug,
4861 )]
4862 #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
4863 #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
4864 #[doc = "The key was permanently removed."]
4865 pub struct KeyRemoved;
4866 impl KeyRemoved {
4867 const PALLET_NAME: &'static str = "Sudo";
4868 const EVENT_NAME: &'static str = "KeyRemoved";
4869 }
4870 impl ::subxt::events::DecodeAsEvent for KeyRemoved {
4871 fn is_event(pallet_name: &str, event_name: &str) -> bool {
4872 pallet_name == Self::PALLET_NAME && event_name == Self::EVENT_NAME
4873 }
4874 }
4875 #[derive(
4876 :: subxt :: ext :: scale_decode :: DecodeAsType,
4877 :: subxt :: ext :: scale_encode :: EncodeAsType,
4878 Debug,
4879 )]
4880 #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
4881 #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
4882 #[doc = "A [sudo_as](Pallet::sudo_as) call just took place."]
4883 pub struct SudoAsDone {
4884 pub sudo_result: sudo_as_done::SudoResult,
4885 }
4886 pub mod sudo_as_done {
4887 use super::runtime_types;
4888 pub type SudoResult =
4889 ::core::result::Result<(), runtime_types::sp_runtime::DispatchError>;
4890 }
4891 impl SudoAsDone {
4892 const PALLET_NAME: &'static str = "Sudo";
4893 const EVENT_NAME: &'static str = "SudoAsDone";
4894 }
4895 impl ::subxt::events::DecodeAsEvent for SudoAsDone {
4896 fn is_event(pallet_name: &str, event_name: &str) -> bool {
4897 pallet_name == Self::PALLET_NAME && event_name == Self::EVENT_NAME
4898 }
4899 }
4900 }
4901 pub mod storage {
4902 use super::root_mod;
4903 use super::runtime_types;
4904 pub struct StorageApi;
4905 impl StorageApi {
4906 #[must_use]
4907 #[doc = " The `AccountId` of the sudo key."]
4908 pub fn key(
4909 &self,
4910 ) -> ::subxt::storage::StaticAddress<(), key::Output, ::subxt::utils::Yes>
4911 {
4912 ::subxt::storage::StaticAddress::new_static(
4913 "Sudo",
4914 "Key",
4915 [
4916 135u8, 9u8, 151u8, 148u8, 179u8, 127u8, 153u8, 3u8, 158u8, 91u8, 244u8,
4917 242u8, 201u8, 85u8, 31u8, 10u8, 151u8, 125u8, 201u8, 113u8, 15u8,
4918 104u8, 164u8, 246u8, 174u8, 14u8, 251u8, 184u8, 57u8, 223u8, 162u8,
4919 139u8,
4920 ],
4921 )
4922 }
4923 }
4924 pub mod key {
4925 use super::root_mod;
4926 use super::runtime_types;
4927 pub mod input {
4928 use super::runtime_types;
4929 }
4930 pub type Output = ::subxt::utils::AccountId32;
4931 }
4932 }
4933 }
4934 pub mod transaction_payment {
4935 use super::root_mod;
4936 use super::runtime_types;
4937 #[doc = "The `Event` enum of this pallet"]
4938 pub type Event = runtime_types::pallet_transaction_payment::pallet::Event;
4939 pub mod events {
4940 use super::runtime_types;
4941 #[derive(
4942 :: subxt :: ext :: scale_decode :: DecodeAsType,
4943 :: subxt :: ext :: scale_encode :: EncodeAsType,
4944 Debug,
4945 )]
4946 #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
4947 #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
4948 #[doc = "A transaction fee `actual_fee`, of which `tip` was added to the minimum inclusion fee,"]
4949 #[doc = "has been paid by `who`."]
4950 pub struct TransactionFeePaid {
4951 pub who: transaction_fee_paid::Who,
4952 pub actual_fee: transaction_fee_paid::ActualFee,
4953 pub tip: transaction_fee_paid::Tip,
4954 }
4955 pub mod transaction_fee_paid {
4956 use super::runtime_types;
4957 pub type Who = ::subxt::utils::AccountId32;
4958 pub type ActualFee = ::core::primitive::u128;
4959 pub type Tip = ::core::primitive::u128;
4960 }
4961 impl TransactionFeePaid {
4962 const PALLET_NAME: &'static str = "TransactionPayment";
4963 const EVENT_NAME: &'static str = "TransactionFeePaid";
4964 }
4965 impl ::subxt::events::DecodeAsEvent for TransactionFeePaid {
4966 fn is_event(pallet_name: &str, event_name: &str) -> bool {
4967 pallet_name == Self::PALLET_NAME && event_name == Self::EVENT_NAME
4968 }
4969 }
4970 }
4971 pub mod storage {
4972 use super::root_mod;
4973 use super::runtime_types;
4974 pub struct StorageApi;
4975 impl StorageApi {
4976 #[must_use]
4977 pub fn next_fee_multiplier(
4978 &self,
4979 ) -> ::subxt::storage::StaticAddress<
4980 (),
4981 next_fee_multiplier::Output,
4982 ::subxt::utils::Yes,
4983 > {
4984 ::subxt::storage::StaticAddress::new_static(
4985 "TransactionPayment",
4986 "NextFeeMultiplier",
4987 [
4988 54u8, 78u8, 153u8, 36u8, 231u8, 148u8, 27u8, 187u8, 224u8, 89u8, 193u8,
4989 138u8, 18u8, 92u8, 61u8, 225u8, 78u8, 186u8, 175u8, 214u8, 45u8, 237u8,
4990 65u8, 225u8, 177u8, 110u8, 113u8, 22u8, 164u8, 172u8, 191u8, 241u8,
4991 ],
4992 )
4993 }
4994 #[must_use]
4995 pub fn storage_version(
4996 &self,
4997 ) -> ::subxt::storage::StaticAddress<(), storage_version::Output, ::subxt::utils::Yes>
4998 {
4999 ::subxt::storage::StaticAddress::new_static(
5000 "TransactionPayment",
5001 "StorageVersion",
5002 [
5003 102u8, 2u8, 115u8, 199u8, 149u8, 230u8, 163u8, 131u8, 198u8, 138u8,
5004 203u8, 116u8, 26u8, 120u8, 43u8, 39u8, 234u8, 52u8, 229u8, 102u8,
5005 194u8, 18u8, 44u8, 249u8, 84u8, 142u8, 217u8, 129u8, 80u8, 5u8, 194u8,
5006 214u8,
5007 ],
5008 )
5009 }
5010 #[must_use]
5011 #[doc = " The `OnChargeTransaction` stores the withdrawn tx fee here."]
5012 #[doc = ""]
5013 #[doc = " Use `withdraw_txfee` and `remaining_txfee` to access from outside the crate."]
5014 pub fn tx_payment_credit(
5015 &self,
5016 ) -> ::subxt::storage::StaticAddress<
5017 (),
5018 tx_payment_credit::Output,
5019 ::subxt::utils::Yes,
5020 > {
5021 ::subxt::storage::StaticAddress::new_static(
5022 "TransactionPayment",
5023 "TxPaymentCredit",
5024 [
5025 200u8, 46u8, 84u8, 207u8, 2u8, 81u8, 201u8, 150u8, 218u8, 189u8, 138u8,
5026 151u8, 91u8, 194u8, 144u8, 2u8, 28u8, 38u8, 88u8, 233u8, 242u8, 207u8,
5027 20u8, 172u8, 99u8, 167u8, 57u8, 12u8, 121u8, 0u8, 162u8, 148u8,
5028 ],
5029 )
5030 }
5031 }
5032 pub mod next_fee_multiplier {
5033 use super::root_mod;
5034 use super::runtime_types;
5035 pub mod input {
5036 use super::runtime_types;
5037 }
5038 pub type Output = runtime_types::sp_arithmetic::fixed_point::FixedU128;
5039 }
5040 pub mod storage_version {
5041 use super::root_mod;
5042 use super::runtime_types;
5043 pub mod input {
5044 use super::runtime_types;
5045 }
5046 pub type Output = runtime_types::pallet_transaction_payment::Releases;
5047 }
5048 pub mod tx_payment_credit {
5049 use super::root_mod;
5050 use super::runtime_types;
5051 pub mod input {
5052 use super::runtime_types;
5053 }
5054 pub type Output = runtime_types::frame_support::traits::storage::NoDrop<
5055 runtime_types::frame_support::traits::tokens::fungible::imbalance::Imbalance<
5056 ::core::primitive::u128,
5057 >,
5058 >;
5059 }
5060 }
5061 pub mod constants {
5062 use super::runtime_types;
5063 pub struct ConstantsApi;
5064 impl ConstantsApi {
5065 #[must_use]
5066 #[doc = " A fee multiplier for `Operational` extrinsics to compute \"virtual tip\" to boost their"]
5067 #[doc = " `priority`"]
5068 #[doc = ""]
5069 #[doc = " This value is multiplied by the `final_fee` to obtain a \"virtual tip\" that is later"]
5070 #[doc = " added to a tip component in regular `priority` calculations."]
5071 #[doc = " It means that a `Normal` transaction can front-run a similarly-sized `Operational`"]
5072 #[doc = " extrinsic (with no tip), by including a tip value greater than the virtual tip."]
5073 #[doc = ""]
5074 #[doc = " ```rust,ignore"]
5075 #[doc = " // For `Normal`"]
5076 #[doc = " let priority = priority_calc(tip);"]
5077 #[doc = ""]
5078 #[doc = " // For `Operational`"]
5079 #[doc = " let virtual_tip = (inclusion_fee + tip) * OperationalFeeMultiplier;"]
5080 #[doc = " let priority = priority_calc(tip + virtual_tip);"]
5081 #[doc = " ```"]
5082 #[doc = ""]
5083 #[doc = " Note that since we use `final_fee` the multiplier applies also to the regular `tip`"]
5084 #[doc = " sent with the transaction. So, not only does the transaction get a priority bump based"]
5085 #[doc = " on the `inclusion_fee`, but we also amplify the impact of tips applied to `Operational`"]
5086 #[doc = " transactions."]
5087 pub fn operational_fee_multiplier(
5088 &self,
5089 ) -> ::subxt::constants::StaticAddress<::core::primitive::u8> {
5090 ::subxt::constants::StaticAddress::new_static(
5091 "TransactionPayment",
5092 "OperationalFeeMultiplier",
5093 [
5094 141u8, 130u8, 11u8, 35u8, 226u8, 114u8, 92u8, 179u8, 168u8, 110u8,
5095 28u8, 91u8, 221u8, 64u8, 4u8, 148u8, 201u8, 193u8, 185u8, 66u8, 226u8,
5096 114u8, 97u8, 79u8, 62u8, 212u8, 202u8, 114u8, 237u8, 228u8, 183u8,
5097 165u8,
5098 ],
5099 )
5100 }
5101 }
5102 }
5103 }
5104 pub mod content {
5105 use super::root_mod;
5106 use super::runtime_types;
5107 #[doc = "Errors returned by the content pallet."]
5108 pub type Error = runtime_types::pallet_content::pallet::Error;
5109 #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."]
5110 pub type Call = runtime_types::pallet_content::pallet::Call;
5111 pub mod calls {
5112 use super::root_mod;
5113 use super::runtime_types;
5114 #[derive(
5115 :: subxt :: ext :: scale_decode :: DecodeAsType,
5116 :: subxt :: ext :: scale_encode :: EncodeAsType,
5117 Debug,
5118 )]
5119 #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
5120 #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
5121 #[doc = "Publishes a new item and its initial revision."]
5122 #[doc = ""]
5123 #[doc = "The item id is derived from the signer, the supplied [`Nonce`], and"]
5124 #[doc = "[`Config::ItemIdNamespace`]. The call persists only ownership,"]
5125 #[doc = "revision, and flag metadata; graph edges and the payload reference are"]
5126 #[doc = "emitted in events for off-chain indexing."]
5127 pub struct PublishItem {
5128 pub nonce: publish_item::Nonce,
5129 pub parents: publish_item::Parents,
5130 pub flags: publish_item::Flags,
5131 pub links: publish_item::Links,
5132 pub mentions: publish_item::Mentions,
5133 pub ipfs_hash: publish_item::IpfsHash,
5134 }
5135 pub mod publish_item {
5136 use super::runtime_types;
5137 pub type Nonce = runtime_types::pallet_content::Nonce;
5138 pub type Parents = runtime_types::bounded_collections::bounded_vec::BoundedVec<
5139 runtime_types::pallet_content::pallet::ItemId,
5140 >;
5141 pub type Flags = ::core::primitive::u8;
5142 pub type Links = runtime_types::bounded_collections::bounded_vec::BoundedVec<
5143 runtime_types::pallet_content::pallet::ItemId,
5144 >;
5145 pub type Mentions = runtime_types::bounded_collections::bounded_vec::BoundedVec<
5146 ::subxt::utils::AccountId32,
5147 >;
5148 pub type IpfsHash = runtime_types::pallet_content::pallet::IpfsHash;
5149 }
5150 impl PublishItem {
5151 const PALLET_NAME: &'static str = "Content";
5152 const CALL_NAME: &'static str = "publish_item";
5153 }
5154 impl ::subxt::extrinsics::DecodeAsExtrinsic for PublishItem {
5155 fn is_extrinsic(pallet_name: &str, call_name: &str) -> bool {
5156 pallet_name == Self::PALLET_NAME && call_name == Self::CALL_NAME
5157 }
5158 }
5159 #[derive(
5160 :: subxt :: ext :: scale_decode :: DecodeAsType,
5161 :: subxt :: ext :: scale_encode :: EncodeAsType,
5162 Debug,
5163 )]
5164 #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
5165 #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
5166 #[doc = "Publishes a new revision for an existing item."]
5167 #[doc = ""]
5168 #[doc = "Only the current item owner can publish revisions, and only while the"]
5169 #[doc = "item is marked [`REVISIONABLE`] and not [`RETRACTED`]."]
5170 pub struct PublishRevision {
5171 pub item_id: publish_revision::ItemId,
5172 pub links: publish_revision::Links,
5173 pub mentions: publish_revision::Mentions,
5174 pub ipfs_hash: publish_revision::IpfsHash,
5175 }
5176 pub mod publish_revision {
5177 use super::runtime_types;
5178 pub type ItemId = runtime_types::pallet_content::pallet::ItemId;
5179 pub type Links = runtime_types::bounded_collections::bounded_vec::BoundedVec<
5180 runtime_types::pallet_content::pallet::ItemId,
5181 >;
5182 pub type Mentions = runtime_types::bounded_collections::bounded_vec::BoundedVec<
5183 ::subxt::utils::AccountId32,
5184 >;
5185 pub type IpfsHash = runtime_types::pallet_content::pallet::IpfsHash;
5186 }
5187 impl PublishRevision {
5188 const PALLET_NAME: &'static str = "Content";
5189 const CALL_NAME: &'static str = "publish_revision";
5190 }
5191 impl ::subxt::extrinsics::DecodeAsExtrinsic for PublishRevision {
5192 fn is_extrinsic(pallet_name: &str, call_name: &str) -> bool {
5193 pallet_name == Self::PALLET_NAME && call_name == Self::CALL_NAME
5194 }
5195 }
5196 #[derive(
5197 :: subxt :: ext :: scale_decode :: DecodeAsType,
5198 :: subxt :: ext :: scale_encode :: EncodeAsType,
5199 Debug,
5200 )]
5201 #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
5202 #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
5203 #[doc = "Marks an item as retracted."]
5204 #[doc = ""]
5205 #[doc = "Only the owner can retract, and only while the item still has the"]
5206 #[doc = "[`RETRACTABLE`] permission bit set."]
5207 pub struct RetractItem {
5208 pub item_id: retract_item::ItemId,
5209 }
5210 pub mod retract_item {
5211 use super::runtime_types;
5212 pub type ItemId = runtime_types::pallet_content::pallet::ItemId;
5213 }
5214 impl RetractItem {
5215 const PALLET_NAME: &'static str = "Content";
5216 const CALL_NAME: &'static str = "retract_item";
5217 }
5218 impl ::subxt::extrinsics::DecodeAsExtrinsic for RetractItem {
5219 fn is_extrinsic(pallet_name: &str, call_name: &str) -> bool {
5220 pallet_name == Self::PALLET_NAME && call_name == Self::CALL_NAME
5221 }
5222 }
5223 #[derive(
5224 :: subxt :: ext :: scale_decode :: DecodeAsType,
5225 :: subxt :: ext :: scale_encode :: EncodeAsType,
5226 Debug,
5227 )]
5228 #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
5229 #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
5230 #[doc = "Permanently disables future revisions for an item."]
5231 pub struct SetNotRevisionable {
5232 pub item_id: set_not_revisionable::ItemId,
5233 }
5234 pub mod set_not_revisionable {
5235 use super::runtime_types;
5236 pub type ItemId = runtime_types::pallet_content::pallet::ItemId;
5237 }
5238 impl SetNotRevisionable {
5239 const PALLET_NAME: &'static str = "Content";
5240 const CALL_NAME: &'static str = "set_not_revisionable";
5241 }
5242 impl ::subxt::extrinsics::DecodeAsExtrinsic for SetNotRevisionable {
5243 fn is_extrinsic(pallet_name: &str, call_name: &str) -> bool {
5244 pallet_name == Self::PALLET_NAME && call_name == Self::CALL_NAME
5245 }
5246 }
5247 #[derive(
5248 :: subxt :: ext :: scale_decode :: DecodeAsType,
5249 :: subxt :: ext :: scale_encode :: EncodeAsType,
5250 Debug,
5251 )]
5252 #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
5253 #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
5254 #[doc = "Permanently disables future retraction for an item."]
5255 pub struct SetNotRetractable {
5256 pub item_id: set_not_retractable::ItemId,
5257 }
5258 pub mod set_not_retractable {
5259 use super::runtime_types;
5260 pub type ItemId = runtime_types::pallet_content::pallet::ItemId;
5261 }
5262 impl SetNotRetractable {
5263 const PALLET_NAME: &'static str = "Content";
5264 const CALL_NAME: &'static str = "set_not_retractable";
5265 }
5266 impl ::subxt::extrinsics::DecodeAsExtrinsic for SetNotRetractable {
5267 fn is_extrinsic(pallet_name: &str, call_name: &str) -> bool {
5268 pallet_name == Self::PALLET_NAME && call_name == Self::CALL_NAME
5269 }
5270 }
5271 pub mod api {
5272 pub struct TransactionApi;
5273 impl TransactionApi {
5274 #[must_use]
5275 #[doc = "Publishes a new item and its initial revision."]
5276 #[doc = ""]
5277 #[doc = "The item id is derived from the signer, the supplied [`Nonce`], and"]
5278 #[doc = "[`Config::ItemIdNamespace`]. The call persists only ownership,"]
5279 #[doc = "revision, and flag metadata; graph edges and the payload reference are"]
5280 #[doc = "emitted in events for off-chain indexing."]
5281 pub fn publish_item(
5282 &self,
5283 nonce: super::publish_item::Nonce,
5284 parents: super::publish_item::Parents,
5285 flags: super::publish_item::Flags,
5286 links: super::publish_item::Links,
5287 mentions: super::publish_item::Mentions,
5288 ipfs_hash: super::publish_item::IpfsHash,
5289 ) -> ::subxt::transactions::StaticPayload<super::PublishItem>
5290 {
5291 ::subxt::transactions::StaticPayload::new_static(
5292 "Content",
5293 "publish_item",
5294 super::PublishItem {
5295 nonce,
5296 parents,
5297 flags,
5298 links,
5299 mentions,
5300 ipfs_hash,
5301 },
5302 [
5303 98u8, 55u8, 244u8, 208u8, 252u8, 15u8, 38u8, 238u8, 253u8, 198u8,
5304 71u8, 227u8, 117u8, 20u8, 111u8, 17u8, 61u8, 25u8, 115u8, 3u8,
5305 226u8, 217u8, 217u8, 112u8, 156u8, 99u8, 82u8, 25u8, 59u8, 13u8,
5306 11u8, 126u8,
5307 ],
5308 )
5309 }
5310 #[must_use]
5311 #[doc = "Publishes a new revision for an existing item."]
5312 #[doc = ""]
5313 #[doc = "Only the current item owner can publish revisions, and only while the"]
5314 #[doc = "item is marked [`REVISIONABLE`] and not [`RETRACTED`]."]
5315 pub fn publish_revision(
5316 &self,
5317 item_id: super::publish_revision::ItemId,
5318 links: super::publish_revision::Links,
5319 mentions: super::publish_revision::Mentions,
5320 ipfs_hash: super::publish_revision::IpfsHash,
5321 ) -> ::subxt::transactions::StaticPayload<super::PublishRevision>
5322 {
5323 ::subxt::transactions::StaticPayload::new_static(
5324 "Content",
5325 "publish_revision",
5326 super::PublishRevision {
5327 item_id,
5328 links,
5329 mentions,
5330 ipfs_hash,
5331 },
5332 [
5333 37u8, 244u8, 138u8, 22u8, 203u8, 42u8, 23u8, 185u8, 246u8, 166u8,
5334 139u8, 169u8, 224u8, 189u8, 62u8, 62u8, 179u8, 86u8, 95u8, 49u8,
5335 196u8, 173u8, 242u8, 59u8, 11u8, 223u8, 53u8, 219u8, 113u8, 147u8,
5336 243u8, 69u8,
5337 ],
5338 )
5339 }
5340 #[must_use]
5341 #[doc = "Marks an item as retracted."]
5342 #[doc = ""]
5343 #[doc = "Only the owner can retract, and only while the item still has the"]
5344 #[doc = "[`RETRACTABLE`] permission bit set."]
5345 pub fn retract_item(
5346 &self,
5347 item_id: super::retract_item::ItemId,
5348 ) -> ::subxt::transactions::StaticPayload<super::RetractItem>
5349 {
5350 ::subxt::transactions::StaticPayload::new_static(
5351 "Content",
5352 "retract_item",
5353 super::RetractItem { item_id },
5354 [
5355 93u8, 195u8, 37u8, 230u8, 168u8, 73u8, 76u8, 220u8, 7u8, 241u8,
5356 82u8, 16u8, 160u8, 41u8, 251u8, 192u8, 220u8, 87u8, 159u8, 237u8,
5357 110u8, 160u8, 221u8, 85u8, 129u8, 57u8, 73u8, 70u8, 42u8, 130u8,
5358 149u8, 155u8,
5359 ],
5360 )
5361 }
5362 #[must_use]
5363 #[doc = "Permanently disables future revisions for an item."]
5364 pub fn set_not_revisionable(
5365 &self,
5366 item_id: super::set_not_revisionable::ItemId,
5367 ) -> ::subxt::transactions::StaticPayload<super::SetNotRevisionable>
5368 {
5369 ::subxt::transactions::StaticPayload::new_static(
5370 "Content",
5371 "set_not_revisionable",
5372 super::SetNotRevisionable { item_id },
5373 [
5374 37u8, 142u8, 218u8, 51u8, 254u8, 62u8, 166u8, 236u8, 55u8, 23u8,
5375 18u8, 163u8, 95u8, 203u8, 208u8, 96u8, 91u8, 135u8, 221u8, 35u8,
5376 211u8, 114u8, 1u8, 230u8, 230u8, 220u8, 65u8, 184u8, 131u8, 136u8,
5377 174u8, 54u8,
5378 ],
5379 )
5380 }
5381 #[must_use]
5382 #[doc = "Permanently disables future retraction for an item."]
5383 pub fn set_not_retractable(
5384 &self,
5385 item_id: super::set_not_retractable::ItemId,
5386 ) -> ::subxt::transactions::StaticPayload<super::SetNotRetractable>
5387 {
5388 ::subxt::transactions::StaticPayload::new_static(
5389 "Content",
5390 "set_not_retractable",
5391 super::SetNotRetractable { item_id },
5392 [
5393 123u8, 93u8, 147u8, 205u8, 96u8, 42u8, 226u8, 181u8, 146u8, 199u8,
5394 182u8, 150u8, 27u8, 192u8, 210u8, 74u8, 152u8, 73u8, 47u8, 100u8,
5395 236u8, 145u8, 19u8, 102u8, 38u8, 81u8, 20u8, 134u8, 197u8, 79u8,
5396 98u8, 187u8,
5397 ],
5398 )
5399 }
5400 }
5401 }
5402 }
5403 #[doc = "The `Event` enum of this pallet"]
5404 pub type Event = runtime_types::pallet_content::pallet::Event;
5405 pub mod events {
5406 use super::runtime_types;
5407 #[derive(
5408 :: subxt :: ext :: scale_decode :: DecodeAsType,
5409 :: subxt :: ext :: scale_encode :: EncodeAsType,
5410 Debug,
5411 )]
5412 #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
5413 #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
5414 #[doc = "A new item was created."]
5415 pub struct PublishItem {
5416 pub item_id: publish_item::ItemId,
5417 pub owner: publish_item::Owner,
5418 pub parents: publish_item::Parents,
5419 pub flags: publish_item::Flags,
5420 }
5421 pub mod publish_item {
5422 use super::runtime_types;
5423 pub type ItemId = runtime_types::pallet_content::pallet::ItemId;
5424 pub type Owner = ::subxt::utils::AccountId32;
5425 pub type Parents = runtime_types::bounded_collections::bounded_vec::BoundedVec<
5426 runtime_types::pallet_content::pallet::ItemId,
5427 >;
5428 pub type Flags = ::core::primitive::u8;
5429 }
5430 impl PublishItem {
5431 const PALLET_NAME: &'static str = "Content";
5432 const EVENT_NAME: &'static str = "PublishItem";
5433 }
5434 impl ::subxt::events::DecodeAsEvent for PublishItem {
5435 fn is_event(pallet_name: &str, event_name: &str) -> bool {
5436 pallet_name == Self::PALLET_NAME && event_name == Self::EVENT_NAME
5437 }
5438 }
5439 #[derive(
5440 :: subxt :: ext :: scale_decode :: DecodeAsType,
5441 :: subxt :: ext :: scale_encode :: EncodeAsType,
5442 Debug,
5443 )]
5444 #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
5445 #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
5446 #[doc = "A new revision was published for an item."]
5447 pub struct PublishRevision {
5448 pub item_id: publish_revision::ItemId,
5449 pub owner: publish_revision::Owner,
5450 pub revision_id: publish_revision::RevisionId,
5451 pub links: publish_revision::Links,
5452 pub mentions: publish_revision::Mentions,
5453 pub ipfs_hash: publish_revision::IpfsHash,
5454 }
5455 pub mod publish_revision {
5456 use super::runtime_types;
5457 pub type ItemId = runtime_types::pallet_content::pallet::ItemId;
5458 pub type Owner = ::subxt::utils::AccountId32;
5459 pub type RevisionId = ::core::primitive::u32;
5460 pub type Links = runtime_types::bounded_collections::bounded_vec::BoundedVec<
5461 runtime_types::pallet_content::pallet::ItemId,
5462 >;
5463 pub type Mentions = runtime_types::bounded_collections::bounded_vec::BoundedVec<
5464 ::subxt::utils::AccountId32,
5465 >;
5466 pub type IpfsHash = runtime_types::pallet_content::pallet::IpfsHash;
5467 }
5468 impl PublishRevision {
5469 const PALLET_NAME: &'static str = "Content";
5470 const EVENT_NAME: &'static str = "PublishRevision";
5471 }
5472 impl ::subxt::events::DecodeAsEvent for PublishRevision {
5473 fn is_event(pallet_name: &str, event_name: &str) -> bool {
5474 pallet_name == Self::PALLET_NAME && event_name == Self::EVENT_NAME
5475 }
5476 }
5477 #[derive(
5478 :: subxt :: ext :: scale_decode :: DecodeAsType,
5479 :: subxt :: ext :: scale_encode :: EncodeAsType,
5480 Debug,
5481 )]
5482 #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
5483 #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
5484 #[doc = "An item was marked as retracted."]
5485 pub struct RetractItem {
5486 pub item_id: retract_item::ItemId,
5487 pub owner: retract_item::Owner,
5488 }
5489 pub mod retract_item {
5490 use super::runtime_types;
5491 pub type ItemId = runtime_types::pallet_content::pallet::ItemId;
5492 pub type Owner = ::subxt::utils::AccountId32;
5493 }
5494 impl RetractItem {
5495 const PALLET_NAME: &'static str = "Content";
5496 const EVENT_NAME: &'static str = "RetractItem";
5497 }
5498 impl ::subxt::events::DecodeAsEvent for RetractItem {
5499 fn is_event(pallet_name: &str, event_name: &str) -> bool {
5500 pallet_name == Self::PALLET_NAME && event_name == Self::EVENT_NAME
5501 }
5502 }
5503 #[derive(
5504 :: subxt :: ext :: scale_decode :: DecodeAsType,
5505 :: subxt :: ext :: scale_encode :: EncodeAsType,
5506 Debug,
5507 )]
5508 #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
5509 #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
5510 #[doc = "Revision publishing was permanently disabled for an item."]
5511 pub struct SetNotRevsionable {
5512 pub item_id: set_not_revsionable::ItemId,
5513 pub owner: set_not_revsionable::Owner,
5514 }
5515 pub mod set_not_revsionable {
5516 use super::runtime_types;
5517 pub type ItemId = runtime_types::pallet_content::pallet::ItemId;
5518 pub type Owner = ::subxt::utils::AccountId32;
5519 }
5520 impl SetNotRevsionable {
5521 const PALLET_NAME: &'static str = "Content";
5522 const EVENT_NAME: &'static str = "SetNotRevsionable";
5523 }
5524 impl ::subxt::events::DecodeAsEvent for SetNotRevsionable {
5525 fn is_event(pallet_name: &str, event_name: &str) -> bool {
5526 pallet_name == Self::PALLET_NAME && event_name == Self::EVENT_NAME
5527 }
5528 }
5529 #[derive(
5530 :: subxt :: ext :: scale_decode :: DecodeAsType,
5531 :: subxt :: ext :: scale_encode :: EncodeAsType,
5532 Debug,
5533 )]
5534 #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
5535 #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
5536 #[doc = "Retraction was permanently disabled for an item."]
5537 pub struct SetNotRetractable {
5538 pub item_id: set_not_retractable::ItemId,
5539 pub owner: set_not_retractable::Owner,
5540 }
5541 pub mod set_not_retractable {
5542 use super::runtime_types;
5543 pub type ItemId = runtime_types::pallet_content::pallet::ItemId;
5544 pub type Owner = ::subxt::utils::AccountId32;
5545 }
5546 impl SetNotRetractable {
5547 const PALLET_NAME: &'static str = "Content";
5548 const EVENT_NAME: &'static str = "SetNotRetractable";
5549 }
5550 impl ::subxt::events::DecodeAsEvent for SetNotRetractable {
5551 fn is_event(pallet_name: &str, event_name: &str) -> bool {
5552 pallet_name == Self::PALLET_NAME && event_name == Self::EVENT_NAME
5553 }
5554 }
5555 }
5556 pub mod storage {
5557 use super::root_mod;
5558 use super::runtime_types;
5559 pub struct StorageApi;
5560 impl StorageApi {
5561 #[must_use]
5562 #[doc = " Canonical item metadata keyed by deterministic [`ItemId`]."]
5563 pub fn item_state(
5564 &self,
5565 ) -> ::subxt::storage::StaticAddress<
5566 (item_state::input::Param0,),
5567 item_state::Output,
5568 ::subxt::utils::Maybe,
5569 > {
5570 ::subxt::storage::StaticAddress::new_static(
5571 "Content",
5572 "ItemState",
5573 [
5574 210u8, 114u8, 33u8, 44u8, 133u8, 254u8, 83u8, 162u8, 168u8, 225u8,
5575 212u8, 67u8, 60u8, 176u8, 240u8, 231u8, 93u8, 59u8, 157u8, 138u8, 19u8,
5576 241u8, 112u8, 75u8, 153u8, 45u8, 29u8, 243u8, 213u8, 110u8, 211u8,
5577 110u8,
5578 ],
5579 )
5580 }
5581 }
5582 pub mod item_state {
5583 use super::root_mod;
5584 use super::runtime_types;
5585 pub mod input {
5586 use super::runtime_types;
5587 pub type Param0 = runtime_types::pallet_content::pallet::ItemId;
5588 }
5589 pub type Output =
5590 runtime_types::pallet_content::pallet::Item<::subxt::utils::AccountId32>;
5591 }
5592 }
5593 }
5594 pub mod account_content {
5595 use super::root_mod;
5596 use super::runtime_types;
5597 #[doc = "Errors returned by the account-content pallet."]
5598 pub type Error = runtime_types::pallet_account_content::pallet::Error;
5599 #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."]
5600 pub type Call = runtime_types::pallet_account_content::pallet::Call;
5601 pub mod calls {
5602 use super::root_mod;
5603 use super::runtime_types;
5604 #[derive(
5605 :: subxt :: ext :: scale_decode :: DecodeAsType,
5606 :: subxt :: ext :: scale_encode :: EncodeAsType,
5607 Debug,
5608 )]
5609 #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
5610 #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
5611 #[doc = "Adds a content item to the caller's ordered list."]
5612 #[doc = ""]
5613 #[doc = "The referenced item must exist in `pallet-content`, must not be"]
5614 #[doc = "retracted, and must currently be owned by the caller."]
5615 pub struct AddItem {
5616 pub item_id: add_item::ItemId,
5617 }
5618 pub mod add_item {
5619 use super::runtime_types;
5620 pub type ItemId = runtime_types::pallet_content::pallet::ItemId;
5621 }
5622 impl AddItem {
5623 const PALLET_NAME: &'static str = "AccountContent";
5624 const CALL_NAME: &'static str = "add_item";
5625 }
5626 impl ::subxt::extrinsics::DecodeAsExtrinsic for AddItem {
5627 fn is_extrinsic(pallet_name: &str, call_name: &str) -> bool {
5628 pallet_name == Self::PALLET_NAME && call_name == Self::CALL_NAME
5629 }
5630 }
5631 #[derive(
5632 :: subxt :: ext :: scale_decode :: DecodeAsType,
5633 :: subxt :: ext :: scale_encode :: EncodeAsType,
5634 Debug,
5635 )]
5636 #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
5637 #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
5638 #[doc = "Removes a content item from the caller's ordered list."]
5639 #[doc = ""]
5640 #[doc = "Removal uses swap-with-last semantics so membership checks and"]
5641 #[doc = "deletions stay O(1)."]
5642 pub struct RemoveItem {
5643 pub item_id: remove_item::ItemId,
5644 }
5645 pub mod remove_item {
5646 use super::runtime_types;
5647 pub type ItemId = runtime_types::pallet_content::pallet::ItemId;
5648 }
5649 impl RemoveItem {
5650 const PALLET_NAME: &'static str = "AccountContent";
5651 const CALL_NAME: &'static str = "remove_item";
5652 }
5653 impl ::subxt::extrinsics::DecodeAsExtrinsic for RemoveItem {
5654 fn is_extrinsic(pallet_name: &str, call_name: &str) -> bool {
5655 pallet_name == Self::PALLET_NAME && call_name == Self::CALL_NAME
5656 }
5657 }
5658 pub mod api {
5659 pub struct TransactionApi;
5660 impl TransactionApi {
5661 #[must_use]
5662 #[doc = "Adds a content item to the caller's ordered list."]
5663 #[doc = ""]
5664 #[doc = "The referenced item must exist in `pallet-content`, must not be"]
5665 #[doc = "retracted, and must currently be owned by the caller."]
5666 pub fn add_item(
5667 &self,
5668 item_id: super::add_item::ItemId,
5669 ) -> ::subxt::transactions::StaticPayload<super::AddItem> {
5670 ::subxt::transactions::StaticPayload::new_static(
5671 "AccountContent",
5672 "add_item",
5673 super::AddItem { item_id },
5674 [
5675 59u8, 102u8, 18u8, 164u8, 144u8, 124u8, 247u8, 3u8, 135u8, 56u8,
5676 175u8, 190u8, 133u8, 161u8, 132u8, 242u8, 80u8, 70u8, 245u8, 67u8,
5677 94u8, 155u8, 222u8, 28u8, 96u8, 222u8, 84u8, 207u8, 17u8, 146u8,
5678 227u8, 107u8,
5679 ],
5680 )
5681 }
5682 #[must_use]
5683 #[doc = "Removes a content item from the caller's ordered list."]
5684 #[doc = ""]
5685 #[doc = "Removal uses swap-with-last semantics so membership checks and"]
5686 #[doc = "deletions stay O(1)."]
5687 pub fn remove_item(
5688 &self,
5689 item_id: super::remove_item::ItemId,
5690 ) -> ::subxt::transactions::StaticPayload<super::RemoveItem>
5691 {
5692 ::subxt::transactions::StaticPayload::new_static(
5693 "AccountContent",
5694 "remove_item",
5695 super::RemoveItem { item_id },
5696 [
5697 37u8, 99u8, 101u8, 133u8, 225u8, 233u8, 134u8, 50u8, 79u8, 119u8,
5698 246u8, 230u8, 8u8, 201u8, 229u8, 22u8, 178u8, 231u8, 75u8, 232u8,
5699 100u8, 104u8, 9u8, 129u8, 217u8, 227u8, 37u8, 22u8, 182u8, 1u8,
5700 198u8, 212u8,
5701 ],
5702 )
5703 }
5704 }
5705 }
5706 }
5707 #[doc = "The `Event` enum of this pallet"]
5708 pub type Event = runtime_types::pallet_account_content::pallet::Event;
5709 pub mod events {
5710 use super::runtime_types;
5711 #[derive(
5712 :: subxt :: ext :: scale_decode :: DecodeAsType,
5713 :: subxt :: ext :: scale_encode :: EncodeAsType,
5714 Debug,
5715 )]
5716 #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
5717 #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
5718 #[doc = "An item was added to an account list."]
5719 pub struct AddItem {
5720 pub account: add_item::Account,
5721 pub item_id: add_item::ItemId,
5722 }
5723 pub mod add_item {
5724 use super::runtime_types;
5725 pub type Account = ::subxt::utils::AccountId32;
5726 pub type ItemId = runtime_types::pallet_content::pallet::ItemId;
5727 }
5728 impl AddItem {
5729 const PALLET_NAME: &'static str = "AccountContent";
5730 const EVENT_NAME: &'static str = "AddItem";
5731 }
5732 impl ::subxt::events::DecodeAsEvent for AddItem {
5733 fn is_event(pallet_name: &str, event_name: &str) -> bool {
5734 pallet_name == Self::PALLET_NAME && event_name == Self::EVENT_NAME
5735 }
5736 }
5737 #[derive(
5738 :: subxt :: ext :: scale_decode :: DecodeAsType,
5739 :: subxt :: ext :: scale_encode :: EncodeAsType,
5740 Debug,
5741 )]
5742 #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
5743 #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
5744 #[doc = "An item was removed from an account list."]
5745 pub struct RemoveItem {
5746 pub account: remove_item::Account,
5747 pub item_id: remove_item::ItemId,
5748 }
5749 pub mod remove_item {
5750 use super::runtime_types;
5751 pub type Account = ::subxt::utils::AccountId32;
5752 pub type ItemId = runtime_types::pallet_content::pallet::ItemId;
5753 }
5754 impl RemoveItem {
5755 const PALLET_NAME: &'static str = "AccountContent";
5756 const EVENT_NAME: &'static str = "RemoveItem";
5757 }
5758 impl ::subxt::events::DecodeAsEvent for RemoveItem {
5759 fn is_event(pallet_name: &str, event_name: &str) -> bool {
5760 pallet_name == Self::PALLET_NAME && event_name == Self::EVENT_NAME
5761 }
5762 }
5763 }
5764 pub mod storage {
5765 use super::root_mod;
5766 use super::runtime_types;
5767 pub struct StorageApi;
5768 impl StorageApi {
5769 #[must_use]
5770 #[doc = " Ordered content item ids keyed by account."]
5771 pub fn account_item_ids(
5772 &self,
5773 ) -> ::subxt::storage::StaticAddress<
5774 (account_item_ids::input::Param0,),
5775 account_item_ids::Output,
5776 ::subxt::utils::Maybe,
5777 > {
5778 ::subxt::storage::StaticAddress::new_static(
5779 "AccountContent",
5780 "AccountItemIds",
5781 [
5782 177u8, 171u8, 57u8, 83u8, 249u8, 193u8, 189u8, 204u8, 155u8, 99u8,
5783 99u8, 40u8, 88u8, 214u8, 172u8, 184u8, 45u8, 120u8, 206u8, 97u8, 173u8,
5784 162u8, 86u8, 83u8, 124u8, 3u8, 212u8, 79u8, 73u8, 233u8, 106u8, 139u8,
5785 ],
5786 )
5787 }
5788 #[must_use]
5789 #[doc = " Reverse lookup from `(account, item_id)` to `index + 1` in [`AccountItemIds`]."]
5790 pub fn account_item_id_index(
5791 &self,
5792 ) -> ::subxt::storage::StaticAddress<
5793 (
5794 account_item_id_index::input::Param0,
5795 account_item_id_index::input::Param1,
5796 ),
5797 account_item_id_index::Output,
5798 ::subxt::utils::Maybe,
5799 > {
5800 ::subxt::storage::StaticAddress::new_static(
5801 "AccountContent",
5802 "AccountItemIdIndex",
5803 [
5804 192u8, 31u8, 104u8, 105u8, 139u8, 245u8, 198u8, 66u8, 42u8, 147u8,
5805 102u8, 160u8, 171u8, 178u8, 217u8, 243u8, 55u8, 227u8, 70u8, 124u8,
5806 234u8, 92u8, 126u8, 157u8, 218u8, 199u8, 203u8, 83u8, 84u8, 103u8,
5807 194u8, 16u8,
5808 ],
5809 )
5810 }
5811 }
5812 pub mod account_item_ids {
5813 use super::root_mod;
5814 use super::runtime_types;
5815 pub mod input {
5816 use super::runtime_types;
5817 pub type Param0 = ::subxt::utils::AccountId32;
5818 }
5819 pub type Output = runtime_types::bounded_collections::bounded_vec::BoundedVec<
5820 runtime_types::pallet_content::pallet::ItemId,
5821 >;
5822 }
5823 pub mod account_item_id_index {
5824 use super::root_mod;
5825 use super::runtime_types;
5826 pub mod input {
5827 use super::runtime_types;
5828 pub type Param0 = ::subxt::utils::AccountId32;
5829 pub type Param1 = runtime_types::pallet_content::pallet::ItemId;
5830 }
5831 pub type Output = ::core::primitive::u32;
5832 }
5833 }
5834 }
5835 pub mod account_profile {
5836 use super::root_mod;
5837 use super::runtime_types;
5838 #[doc = "Errors returned by the account-profile pallet."]
5839 pub type Error = runtime_types::pallet_account_profile::pallet::Error;
5840 #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."]
5841 pub type Call = runtime_types::pallet_account_profile::pallet::Call;
5842 pub mod calls {
5843 use super::root_mod;
5844 use super::runtime_types;
5845 #[derive(
5846 :: subxt :: ext :: scale_decode :: DecodeAsType,
5847 :: subxt :: ext :: scale_encode :: EncodeAsType,
5848 Debug,
5849 )]
5850 #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
5851 #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
5852 #[doc = "Sets or overwrites the caller's profile pointer."]
5853 #[doc = ""]
5854 #[doc = "The referenced item must exist in `pallet-content`, must not be"]
5855 #[doc = "retracted, and must currently be owned by the caller."]
5856 pub struct SetProfile {
5857 pub item_id: set_profile::ItemId,
5858 }
5859 pub mod set_profile {
5860 use super::runtime_types;
5861 pub type ItemId = runtime_types::pallet_content::pallet::ItemId;
5862 }
5863 impl SetProfile {
5864 const PALLET_NAME: &'static str = "AccountProfile";
5865 const CALL_NAME: &'static str = "set_profile";
5866 }
5867 impl ::subxt::extrinsics::DecodeAsExtrinsic for SetProfile {
5868 fn is_extrinsic(pallet_name: &str, call_name: &str) -> bool {
5869 pallet_name == Self::PALLET_NAME && call_name == Self::CALL_NAME
5870 }
5871 }
5872 pub mod api {
5873 pub struct TransactionApi;
5874 impl TransactionApi {
5875 #[must_use]
5876 #[doc = "Sets or overwrites the caller's profile pointer."]
5877 #[doc = ""]
5878 #[doc = "The referenced item must exist in `pallet-content`, must not be"]
5879 #[doc = "retracted, and must currently be owned by the caller."]
5880 pub fn set_profile(
5881 &self,
5882 item_id: super::set_profile::ItemId,
5883 ) -> ::subxt::transactions::StaticPayload<super::SetProfile>
5884 {
5885 ::subxt::transactions::StaticPayload::new_static(
5886 "AccountProfile",
5887 "set_profile",
5888 super::SetProfile { item_id },
5889 [
5890 53u8, 25u8, 84u8, 40u8, 183u8, 170u8, 36u8, 36u8, 212u8, 18u8, 7u8,
5891 6u8, 114u8, 81u8, 93u8, 47u8, 185u8, 87u8, 33u8, 146u8, 87u8, 49u8,
5892 7u8, 1u8, 176u8, 218u8, 97u8, 48u8, 63u8, 117u8, 165u8, 122u8,
5893 ],
5894 )
5895 }
5896 }
5897 }
5898 }
5899 #[doc = "The `Event` enum of this pallet"]
5900 pub type Event = runtime_types::pallet_account_profile::pallet::Event;
5901 pub mod events {
5902 use super::runtime_types;
5903 #[derive(
5904 :: subxt :: ext :: scale_decode :: DecodeAsType,
5905 :: subxt :: ext :: scale_encode :: EncodeAsType,
5906 Debug,
5907 )]
5908 #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
5909 #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
5910 #[doc = "A profile pointer was set or replaced."]
5911 pub struct ProfileSet {
5912 pub account: profile_set::Account,
5913 pub item_id: profile_set::ItemId,
5914 }
5915 pub mod profile_set {
5916 use super::runtime_types;
5917 pub type Account = ::subxt::utils::AccountId32;
5918 pub type ItemId = runtime_types::pallet_content::pallet::ItemId;
5919 }
5920 impl ProfileSet {
5921 const PALLET_NAME: &'static str = "AccountProfile";
5922 const EVENT_NAME: &'static str = "ProfileSet";
5923 }
5924 impl ::subxt::events::DecodeAsEvent for ProfileSet {
5925 fn is_event(pallet_name: &str, event_name: &str) -> bool {
5926 pallet_name == Self::PALLET_NAME && event_name == Self::EVENT_NAME
5927 }
5928 }
5929 }
5930 pub mod storage {
5931 use super::root_mod;
5932 use super::runtime_types;
5933 pub struct StorageApi;
5934 impl StorageApi {
5935 #[must_use]
5936 #[doc = " Profile content item currently associated with each account."]
5937 pub fn account_profile(
5938 &self,
5939 ) -> ::subxt::storage::StaticAddress<
5940 (account_profile::input::Param0,),
5941 account_profile::Output,
5942 ::subxt::utils::Maybe,
5943 > {
5944 ::subxt::storage::StaticAddress::new_static(
5945 "AccountProfile",
5946 "AccountProfile",
5947 [
5948 248u8, 161u8, 88u8, 60u8, 91u8, 148u8, 150u8, 234u8, 37u8, 94u8, 169u8,
5949 53u8, 132u8, 168u8, 109u8, 29u8, 208u8, 222u8, 12u8, 223u8, 59u8,
5950 248u8, 146u8, 74u8, 188u8, 192u8, 241u8, 25u8, 181u8, 31u8, 50u8,
5951 132u8,
5952 ],
5953 )
5954 }
5955 }
5956 pub mod account_profile {
5957 use super::root_mod;
5958 use super::runtime_types;
5959 pub mod input {
5960 use super::runtime_types;
5961 pub type Param0 = ::subxt::utils::AccountId32;
5962 }
5963 pub type Output = runtime_types::pallet_content::pallet::ItemId;
5964 }
5965 }
5966 }
5967 pub mod content_reactions {
5968 use super::root_mod;
5969 use super::runtime_types;
5970 #[doc = "Errors returned by the content-reactions pallet."]
5971 pub type Error = runtime_types::pallet_content_reactions::pallet::Error;
5972 #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."]
5973 pub type Call = runtime_types::pallet_content_reactions::pallet::Call;
5974 pub mod calls {
5975 use super::root_mod;
5976 use super::runtime_types;
5977 #[derive(
5978 :: subxt :: ext :: scale_decode :: DecodeAsType,
5979 :: subxt :: ext :: scale_encode :: EncodeAsType,
5980 Debug,
5981 )]
5982 #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
5983 #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
5984 #[doc = "Sets the caller's full reaction set for a specific item revision,"]
5985 #[doc = "replacing any prior reactions."]
5986 #[doc = ""]
5987 #[doc = "The entire reaction set is emitted in a single `SetReactions` event."]
5988 #[doc = "Duplicates within the provided set are rejected."]
5989 pub struct SetReactions {
5990 pub item_id: set_reactions::ItemId,
5991 pub revision_id: set_reactions::RevisionId,
5992 pub reactions: set_reactions::Reactions,
5993 }
5994 pub mod set_reactions {
5995 use super::runtime_types;
5996 pub type ItemId = runtime_types::pallet_content::pallet::ItemId;
5997 pub type RevisionId = ::core::primitive::u32;
5998 pub type Reactions = runtime_types::bounded_collections::bounded_vec::BoundedVec<
5999 runtime_types::pallet_content_reactions::pallet::Emoji,
6000 >;
6001 }
6002 impl SetReactions {
6003 const PALLET_NAME: &'static str = "ContentReactions";
6004 const CALL_NAME: &'static str = "set_reactions";
6005 }
6006 impl ::subxt::extrinsics::DecodeAsExtrinsic for SetReactions {
6007 fn is_extrinsic(pallet_name: &str, call_name: &str) -> bool {
6008 pallet_name == Self::PALLET_NAME && call_name == Self::CALL_NAME
6009 }
6010 }
6011 pub mod api {
6012 pub struct TransactionApi;
6013 impl TransactionApi {
6014 #[must_use]
6015 #[doc = "Sets the caller's full reaction set for a specific item revision,"]
6016 #[doc = "replacing any prior reactions."]
6017 #[doc = ""]
6018 #[doc = "The entire reaction set is emitted in a single `SetReactions` event."]
6019 #[doc = "Duplicates within the provided set are rejected."]
6020 pub fn set_reactions(
6021 &self,
6022 item_id: super::set_reactions::ItemId,
6023 revision_id: super::set_reactions::RevisionId,
6024 reactions: super::set_reactions::Reactions,
6025 ) -> ::subxt::transactions::StaticPayload<super::SetReactions>
6026 {
6027 ::subxt::transactions::StaticPayload::new_static(
6028 "ContentReactions",
6029 "set_reactions",
6030 super::SetReactions {
6031 item_id,
6032 revision_id,
6033 reactions,
6034 },
6035 [
6036 48u8, 125u8, 91u8, 239u8, 153u8, 94u8, 97u8, 71u8, 171u8, 78u8,
6037 211u8, 167u8, 101u8, 67u8, 1u8, 205u8, 16u8, 135u8, 139u8, 140u8,
6038 70u8, 237u8, 243u8, 1u8, 114u8, 131u8, 3u8, 83u8, 141u8, 55u8,
6039 14u8, 56u8,
6040 ],
6041 )
6042 }
6043 }
6044 }
6045 }
6046 #[doc = "The `Event` enum of this pallet"]
6047 pub type Event = runtime_types::pallet_content_reactions::pallet::Event;
6048 pub mod events {
6049 use super::runtime_types;
6050 #[derive(
6051 :: subxt :: ext :: scale_decode :: DecodeAsType,
6052 :: subxt :: ext :: scale_encode :: EncodeAsType,
6053 Debug,
6054 )]
6055 #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
6056 #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
6057 #[doc = "The caller's reaction set for a specific item revision was set."]
6058 pub struct SetReactions {
6059 pub item_id: set_reactions::ItemId,
6060 pub revision_id: set_reactions::RevisionId,
6061 pub item_owner: set_reactions::ItemOwner,
6062 pub reactor: set_reactions::Reactor,
6063 pub reactions: set_reactions::Reactions,
6064 }
6065 pub mod set_reactions {
6066 use super::runtime_types;
6067 pub type ItemId = runtime_types::pallet_content::pallet::ItemId;
6068 pub type RevisionId = ::core::primitive::u32;
6069 pub type ItemOwner = ::subxt::utils::AccountId32;
6070 pub type Reactor = ::subxt::utils::AccountId32;
6071 pub type Reactions = runtime_types::bounded_collections::bounded_vec::BoundedVec<
6072 runtime_types::pallet_content_reactions::pallet::Emoji,
6073 >;
6074 }
6075 impl SetReactions {
6076 const PALLET_NAME: &'static str = "ContentReactions";
6077 const EVENT_NAME: &'static str = "SetReactions";
6078 }
6079 impl ::subxt::events::DecodeAsEvent for SetReactions {
6080 fn is_event(pallet_name: &str, event_name: &str) -> bool {
6081 pallet_name == Self::PALLET_NAME && event_name == Self::EVENT_NAME
6082 }
6083 }
6084 }
6085 }
6086 pub mod utility {
6087 use super::root_mod;
6088 use super::runtime_types;
6089 #[doc = "The `Error` enum of this pallet."]
6090 pub type Error = runtime_types::pallet_utility::pallet::Error;
6091 #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."]
6092 pub type Call = runtime_types::pallet_utility::pallet::Call;
6093 pub mod calls {
6094 use super::root_mod;
6095 use super::runtime_types;
6096 #[derive(
6097 :: subxt :: ext :: scale_decode :: DecodeAsType,
6098 :: subxt :: ext :: scale_encode :: EncodeAsType,
6099 Debug,
6100 )]
6101 #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
6102 #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
6103 #[doc = "Send a batch of dispatch calls."]
6104 #[doc = ""]
6105 #[doc = "May be called from any origin except `None`."]
6106 #[doc = ""]
6107 #[doc = "- `calls`: The calls to be dispatched from the same origin. The number of call must not"]
6108 #[doc = " exceed the constant: `batched_calls_limit` (available in constant metadata)."]
6109 #[doc = ""]
6110 #[doc = "If origin is root then the calls are dispatched without checking origin filter. (This"]
6111 #[doc = "includes bypassing `frame_system::Config::BaseCallFilter`)."]
6112 #[doc = ""]
6113 #[doc = "## Complexity"]
6114 #[doc = "- O(C) where C is the number of calls to be batched."]
6115 #[doc = ""]
6116 #[doc = "This will return `Ok` in all circumstances. To determine the success of the batch, an"]
6117 #[doc = "event is deposited. If a call failed and the batch was interrupted, then the"]
6118 #[doc = "`BatchInterrupted` event is deposited, along with the number of successful calls made"]
6119 #[doc = "and the error of the failed call. If all were successful, then the `BatchCompleted`"]
6120 #[doc = "event is deposited."]
6121 pub struct Batch {
6122 pub calls: batch::Calls,
6123 }
6124 pub mod batch {
6125 use super::runtime_types;
6126 pub type Calls =
6127 ::subxt::alloc::vec::Vec<runtime_types::acuity_runtime::RuntimeCall>;
6128 }
6129 impl Batch {
6130 const PALLET_NAME: &'static str = "Utility";
6131 const CALL_NAME: &'static str = "batch";
6132 }
6133 impl ::subxt::extrinsics::DecodeAsExtrinsic for Batch {
6134 fn is_extrinsic(pallet_name: &str, call_name: &str) -> bool {
6135 pallet_name == Self::PALLET_NAME && call_name == Self::CALL_NAME
6136 }
6137 }
6138 #[derive(
6139 :: subxt :: ext :: scale_decode :: DecodeAsType,
6140 :: subxt :: ext :: scale_encode :: EncodeAsType,
6141 Debug,
6142 )]
6143 #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
6144 #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
6145 #[doc = "Send a call through an indexed pseudonym of the sender."]
6146 #[doc = ""]
6147 #[doc = "Filter from origin are passed along. The call will be dispatched with an origin which"]
6148 #[doc = "use the same filter as the origin of this call."]
6149 #[doc = ""]
6150 #[doc = "NOTE: If you need to ensure that any account-based filtering is not honored (i.e."]
6151 #[doc = "because you expect `proxy` to have been used prior in the call stack and you do not want"]
6152 #[doc = "the call restrictions to apply to any sub-accounts), then use `as_multi_threshold_1`"]
6153 #[doc = "in the Multisig pallet instead."]
6154 #[doc = ""]
6155 #[doc = "NOTE: Prior to version *12, this was called `as_limited_sub`."]
6156 #[doc = ""]
6157 #[doc = "The dispatch origin for this call must be _Signed_."]
6158 pub struct AsDerivative {
6159 pub index: as_derivative::Index,
6160 pub call: ::subxt::alloc::boxed::Box<as_derivative::Call>,
6161 }
6162 pub mod as_derivative {
6163 use super::runtime_types;
6164 pub type Index = ::core::primitive::u16;
6165 pub type Call = runtime_types::acuity_runtime::RuntimeCall;
6166 }
6167 impl AsDerivative {
6168 const PALLET_NAME: &'static str = "Utility";
6169 const CALL_NAME: &'static str = "as_derivative";
6170 }
6171 impl ::subxt::extrinsics::DecodeAsExtrinsic for AsDerivative {
6172 fn is_extrinsic(pallet_name: &str, call_name: &str) -> bool {
6173 pallet_name == Self::PALLET_NAME && call_name == Self::CALL_NAME
6174 }
6175 }
6176 #[derive(
6177 :: subxt :: ext :: scale_decode :: DecodeAsType,
6178 :: subxt :: ext :: scale_encode :: EncodeAsType,
6179 Debug,
6180 )]
6181 #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
6182 #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
6183 #[doc = "Send a batch of dispatch calls and atomically execute them."]
6184 #[doc = "The whole transaction will rollback and fail if any of the calls failed."]
6185 #[doc = ""]
6186 #[doc = "May be called from any origin except `None`."]
6187 #[doc = ""]
6188 #[doc = "- `calls`: The calls to be dispatched from the same origin. The number of call must not"]
6189 #[doc = " exceed the constant: `batched_calls_limit` (available in constant metadata)."]
6190 #[doc = ""]
6191 #[doc = "If origin is root then the calls are dispatched without checking origin filter. (This"]
6192 #[doc = "includes bypassing `frame_system::Config::BaseCallFilter`)."]
6193 #[doc = ""]
6194 #[doc = "## Complexity"]
6195 #[doc = "- O(C) where C is the number of calls to be batched."]
6196 pub struct BatchAll {
6197 pub calls: batch_all::Calls,
6198 }
6199 pub mod batch_all {
6200 use super::runtime_types;
6201 pub type Calls =
6202 ::subxt::alloc::vec::Vec<runtime_types::acuity_runtime::RuntimeCall>;
6203 }
6204 impl BatchAll {
6205 const PALLET_NAME: &'static str = "Utility";
6206 const CALL_NAME: &'static str = "batch_all";
6207 }
6208 impl ::subxt::extrinsics::DecodeAsExtrinsic for BatchAll {
6209 fn is_extrinsic(pallet_name: &str, call_name: &str) -> bool {
6210 pallet_name == Self::PALLET_NAME && call_name == Self::CALL_NAME
6211 }
6212 }
6213 #[derive(
6214 :: subxt :: ext :: scale_decode :: DecodeAsType,
6215 :: subxt :: ext :: scale_encode :: EncodeAsType,
6216 Debug,
6217 )]
6218 #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
6219 #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
6220 #[doc = "Dispatches a function call with a provided origin."]
6221 #[doc = ""]
6222 #[doc = "The dispatch origin for this call must be _Root_."]
6223 #[doc = ""]
6224 #[doc = "## Complexity"]
6225 #[doc = "- O(1)."]
6226 pub struct DispatchAs {
6227 pub as_origin: ::subxt::alloc::boxed::Box<dispatch_as::AsOrigin>,
6228 pub call: ::subxt::alloc::boxed::Box<dispatch_as::Call>,
6229 }
6230 pub mod dispatch_as {
6231 use super::runtime_types;
6232 pub type AsOrigin = runtime_types::acuity_runtime::OriginCaller;
6233 pub type Call = runtime_types::acuity_runtime::RuntimeCall;
6234 }
6235 impl DispatchAs {
6236 const PALLET_NAME: &'static str = "Utility";
6237 const CALL_NAME: &'static str = "dispatch_as";
6238 }
6239 impl ::subxt::extrinsics::DecodeAsExtrinsic for DispatchAs {
6240 fn is_extrinsic(pallet_name: &str, call_name: &str) -> bool {
6241 pallet_name == Self::PALLET_NAME && call_name == Self::CALL_NAME
6242 }
6243 }
6244 #[derive(
6245 :: subxt :: ext :: scale_decode :: DecodeAsType,
6246 :: subxt :: ext :: scale_encode :: EncodeAsType,
6247 Debug,
6248 )]
6249 #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
6250 #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
6251 #[doc = "Send a batch of dispatch calls."]
6252 #[doc = "Unlike `batch`, it allows errors and won't interrupt."]
6253 #[doc = ""]
6254 #[doc = "May be called from any origin except `None`."]
6255 #[doc = ""]
6256 #[doc = "- `calls`: The calls to be dispatched from the same origin. The number of call must not"]
6257 #[doc = " exceed the constant: `batched_calls_limit` (available in constant metadata)."]
6258 #[doc = ""]
6259 #[doc = "If origin is root then the calls are dispatch without checking origin filter. (This"]
6260 #[doc = "includes bypassing `frame_system::Config::BaseCallFilter`)."]
6261 #[doc = ""]
6262 #[doc = "## Complexity"]
6263 #[doc = "- O(C) where C is the number of calls to be batched."]
6264 pub struct ForceBatch {
6265 pub calls: force_batch::Calls,
6266 }
6267 pub mod force_batch {
6268 use super::runtime_types;
6269 pub type Calls =
6270 ::subxt::alloc::vec::Vec<runtime_types::acuity_runtime::RuntimeCall>;
6271 }
6272 impl ForceBatch {
6273 const PALLET_NAME: &'static str = "Utility";
6274 const CALL_NAME: &'static str = "force_batch";
6275 }
6276 impl ::subxt::extrinsics::DecodeAsExtrinsic for ForceBatch {
6277 fn is_extrinsic(pallet_name: &str, call_name: &str) -> bool {
6278 pallet_name == Self::PALLET_NAME && call_name == Self::CALL_NAME
6279 }
6280 }
6281 #[derive(
6282 :: subxt :: ext :: scale_decode :: DecodeAsType,
6283 :: subxt :: ext :: scale_encode :: EncodeAsType,
6284 Debug,
6285 )]
6286 #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
6287 #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
6288 #[doc = "Dispatch a function call with a specified weight."]
6289 #[doc = ""]
6290 #[doc = "This function does not check the weight of the call, and instead allows the"]
6291 #[doc = "Root origin to specify the weight of the call."]
6292 #[doc = ""]
6293 #[doc = "The dispatch origin for this call must be _Root_."]
6294 pub struct WithWeight {
6295 pub call: ::subxt::alloc::boxed::Box<with_weight::Call>,
6296 pub weight: with_weight::Weight,
6297 }
6298 pub mod with_weight {
6299 use super::runtime_types;
6300 pub type Call = runtime_types::acuity_runtime::RuntimeCall;
6301 pub type Weight = runtime_types::sp_weights::weight_v2::Weight;
6302 }
6303 impl WithWeight {
6304 const PALLET_NAME: &'static str = "Utility";
6305 const CALL_NAME: &'static str = "with_weight";
6306 }
6307 impl ::subxt::extrinsics::DecodeAsExtrinsic for WithWeight {
6308 fn is_extrinsic(pallet_name: &str, call_name: &str) -> bool {
6309 pallet_name == Self::PALLET_NAME && call_name == Self::CALL_NAME
6310 }
6311 }
6312 #[derive(
6313 :: subxt :: ext :: scale_decode :: DecodeAsType,
6314 :: subxt :: ext :: scale_encode :: EncodeAsType,
6315 Debug,
6316 )]
6317 #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
6318 #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
6319 #[doc = "Dispatch a fallback call in the event the main call fails to execute."]
6320 #[doc = "May be called from any origin except `None`."]
6321 #[doc = ""]
6322 #[doc = "This function first attempts to dispatch the `main` call."]
6323 #[doc = "If the `main` call fails, the `fallback` is attemted."]
6324 #[doc = "if the fallback is successfully dispatched, the weights of both calls"]
6325 #[doc = "are accumulated and an event containing the main call error is deposited."]
6326 #[doc = ""]
6327 #[doc = "In the event of a fallback failure the whole call fails"]
6328 #[doc = "with the weights returned."]
6329 #[doc = ""]
6330 #[doc = "- `main`: The main call to be dispatched. This is the primary action to execute."]
6331 #[doc = "- `fallback`: The fallback call to be dispatched in case the `main` call fails."]
6332 #[doc = ""]
6333 #[doc = "## Dispatch Logic"]
6334 #[doc = "- If the origin is `root`, both the main and fallback calls are executed without"]
6335 #[doc = " applying any origin filters."]
6336 #[doc = "- If the origin is not `root`, the origin filter is applied to both the `main` and"]
6337 #[doc = " `fallback` calls."]
6338 #[doc = ""]
6339 #[doc = "## Use Case"]
6340 #[doc = "- Some use cases might involve submitting a `batch` type call in either main, fallback"]
6341 #[doc = " or both."]
6342 pub struct IfElse {
6343 pub main: ::subxt::alloc::boxed::Box<if_else::Main>,
6344 pub fallback: ::subxt::alloc::boxed::Box<if_else::Fallback>,
6345 }
6346 pub mod if_else {
6347 use super::runtime_types;
6348 pub type Main = runtime_types::acuity_runtime::RuntimeCall;
6349 pub type Fallback = runtime_types::acuity_runtime::RuntimeCall;
6350 }
6351 impl IfElse {
6352 const PALLET_NAME: &'static str = "Utility";
6353 const CALL_NAME: &'static str = "if_else";
6354 }
6355 impl ::subxt::extrinsics::DecodeAsExtrinsic for IfElse {
6356 fn is_extrinsic(pallet_name: &str, call_name: &str) -> bool {
6357 pallet_name == Self::PALLET_NAME && call_name == Self::CALL_NAME
6358 }
6359 }
6360 #[derive(
6361 :: subxt :: ext :: scale_decode :: DecodeAsType,
6362 :: subxt :: ext :: scale_encode :: EncodeAsType,
6363 Debug,
6364 )]
6365 #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
6366 #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
6367 #[doc = "Dispatches a function call with a provided origin."]
6368 #[doc = ""]
6369 #[doc = "Almost the same as [`Pallet::dispatch_as`] but forwards any error of the inner call."]
6370 #[doc = ""]
6371 #[doc = "The dispatch origin for this call must be _Root_."]
6372 pub struct DispatchAsFallible {
6373 pub as_origin: ::subxt::alloc::boxed::Box<dispatch_as_fallible::AsOrigin>,
6374 pub call: ::subxt::alloc::boxed::Box<dispatch_as_fallible::Call>,
6375 }
6376 pub mod dispatch_as_fallible {
6377 use super::runtime_types;
6378 pub type AsOrigin = runtime_types::acuity_runtime::OriginCaller;
6379 pub type Call = runtime_types::acuity_runtime::RuntimeCall;
6380 }
6381 impl DispatchAsFallible {
6382 const PALLET_NAME: &'static str = "Utility";
6383 const CALL_NAME: &'static str = "dispatch_as_fallible";
6384 }
6385 impl ::subxt::extrinsics::DecodeAsExtrinsic for DispatchAsFallible {
6386 fn is_extrinsic(pallet_name: &str, call_name: &str) -> bool {
6387 pallet_name == Self::PALLET_NAME && call_name == Self::CALL_NAME
6388 }
6389 }
6390 pub mod api {
6391 pub struct TransactionApi;
6392 impl TransactionApi {
6393 #[must_use]
6394 #[doc = "Send a batch of dispatch calls."]
6395 #[doc = ""]
6396 #[doc = "May be called from any origin except `None`."]
6397 #[doc = ""]
6398 #[doc = "- `calls`: The calls to be dispatched from the same origin. The number of call must not"]
6399 #[doc = " exceed the constant: `batched_calls_limit` (available in constant metadata)."]
6400 #[doc = ""]
6401 #[doc = "If origin is root then the calls are dispatched without checking origin filter. (This"]
6402 #[doc = "includes bypassing `frame_system::Config::BaseCallFilter`)."]
6403 #[doc = ""]
6404 #[doc = "## Complexity"]
6405 #[doc = "- O(C) where C is the number of calls to be batched."]
6406 #[doc = ""]
6407 #[doc = "This will return `Ok` in all circumstances. To determine the success of the batch, an"]
6408 #[doc = "event is deposited. If a call failed and the batch was interrupted, then the"]
6409 #[doc = "`BatchInterrupted` event is deposited, along with the number of successful calls made"]
6410 #[doc = "and the error of the failed call. If all were successful, then the `BatchCompleted`"]
6411 #[doc = "event is deposited."]
6412 pub fn batch(
6413 &self,
6414 calls: super::batch::Calls,
6415 ) -> ::subxt::transactions::StaticPayload<super::Batch> {
6416 ::subxt::transactions::StaticPayload::new_static(
6417 "Utility",
6418 "batch",
6419 super::Batch { calls },
6420 [
6421 50u8, 212u8, 166u8, 222u8, 118u8, 135u8, 100u8, 146u8, 165u8,
6422 135u8, 195u8, 99u8, 151u8, 161u8, 102u8, 61u8, 166u8, 169u8, 56u8,
6423 120u8, 248u8, 200u8, 105u8, 51u8, 74u8, 111u8, 181u8, 76u8, 93u8,
6424 100u8, 161u8, 176u8,
6425 ],
6426 )
6427 }
6428 #[must_use]
6429 #[doc = "Send a call through an indexed pseudonym of the sender."]
6430 #[doc = ""]
6431 #[doc = "Filter from origin are passed along. The call will be dispatched with an origin which"]
6432 #[doc = "use the same filter as the origin of this call."]
6433 #[doc = ""]
6434 #[doc = "NOTE: If you need to ensure that any account-based filtering is not honored (i.e."]
6435 #[doc = "because you expect `proxy` to have been used prior in the call stack and you do not want"]
6436 #[doc = "the call restrictions to apply to any sub-accounts), then use `as_multi_threshold_1`"]
6437 #[doc = "in the Multisig pallet instead."]
6438 #[doc = ""]
6439 #[doc = "NOTE: Prior to version *12, this was called `as_limited_sub`."]
6440 #[doc = ""]
6441 #[doc = "The dispatch origin for this call must be _Signed_."]
6442 pub fn as_derivative(
6443 &self,
6444 index: super::as_derivative::Index,
6445 call: super::as_derivative::Call,
6446 ) -> ::subxt::transactions::StaticPayload<super::AsDerivative>
6447 {
6448 ::subxt::transactions::StaticPayload::new_static(
6449 "Utility",
6450 "as_derivative",
6451 super::AsDerivative {
6452 index,
6453 call: ::subxt::alloc::boxed::Box::new(call),
6454 },
6455 [
6456 48u8, 6u8, 35u8, 145u8, 92u8, 110u8, 202u8, 254u8, 133u8, 50u8,
6457 190u8, 166u8, 103u8, 203u8, 252u8, 43u8, 210u8, 42u8, 38u8, 88u8,
6458 25u8, 72u8, 13u8, 42u8, 211u8, 77u8, 193u8, 112u8, 176u8, 147u8,
6459 118u8, 29u8,
6460 ],
6461 )
6462 }
6463 #[must_use]
6464 #[doc = "Send a batch of dispatch calls and atomically execute them."]
6465 #[doc = "The whole transaction will rollback and fail if any of the calls failed."]
6466 #[doc = ""]
6467 #[doc = "May be called from any origin except `None`."]
6468 #[doc = ""]
6469 #[doc = "- `calls`: The calls to be dispatched from the same origin. The number of call must not"]
6470 #[doc = " exceed the constant: `batched_calls_limit` (available in constant metadata)."]
6471 #[doc = ""]
6472 #[doc = "If origin is root then the calls are dispatched without checking origin filter. (This"]
6473 #[doc = "includes bypassing `frame_system::Config::BaseCallFilter`)."]
6474 #[doc = ""]
6475 #[doc = "## Complexity"]
6476 #[doc = "- O(C) where C is the number of calls to be batched."]
6477 pub fn batch_all(
6478 &self,
6479 calls: super::batch_all::Calls,
6480 ) -> ::subxt::transactions::StaticPayload<super::BatchAll> {
6481 ::subxt::transactions::StaticPayload::new_static(
6482 "Utility",
6483 "batch_all",
6484 super::BatchAll { calls },
6485 [
6486 12u8, 57u8, 50u8, 160u8, 172u8, 192u8, 112u8, 42u8, 14u8, 58u8,
6487 44u8, 193u8, 85u8, 32u8, 109u8, 79u8, 163u8, 111u8, 21u8, 29u8,
6488 78u8, 88u8, 231u8, 20u8, 93u8, 49u8, 43u8, 182u8, 187u8, 147u8,
6489 51u8, 11u8,
6490 ],
6491 )
6492 }
6493 #[must_use]
6494 #[doc = "Dispatches a function call with a provided origin."]
6495 #[doc = ""]
6496 #[doc = "The dispatch origin for this call must be _Root_."]
6497 #[doc = ""]
6498 #[doc = "## Complexity"]
6499 #[doc = "- O(1)."]
6500 pub fn dispatch_as(
6501 &self,
6502 as_origin: super::dispatch_as::AsOrigin,
6503 call: super::dispatch_as::Call,
6504 ) -> ::subxt::transactions::StaticPayload<super::DispatchAs>
6505 {
6506 ::subxt::transactions::StaticPayload::new_static(
6507 "Utility",
6508 "dispatch_as",
6509 super::DispatchAs {
6510 as_origin: ::subxt::alloc::boxed::Box::new(as_origin),
6511 call: ::subxt::alloc::boxed::Box::new(call),
6512 },
6513 [
6514 54u8, 11u8, 106u8, 143u8, 91u8, 101u8, 45u8, 51u8, 127u8, 205u8,
6515 238u8, 244u8, 224u8, 233u8, 219u8, 213u8, 12u8, 188u8, 33u8, 157u8,
6516 220u8, 163u8, 145u8, 183u8, 114u8, 47u8, 52u8, 230u8, 154u8, 218u8,
6517 15u8, 9u8,
6518 ],
6519 )
6520 }
6521 #[must_use]
6522 #[doc = "Send a batch of dispatch calls."]
6523 #[doc = "Unlike `batch`, it allows errors and won't interrupt."]
6524 #[doc = ""]
6525 #[doc = "May be called from any origin except `None`."]
6526 #[doc = ""]
6527 #[doc = "- `calls`: The calls to be dispatched from the same origin. The number of call must not"]
6528 #[doc = " exceed the constant: `batched_calls_limit` (available in constant metadata)."]
6529 #[doc = ""]
6530 #[doc = "If origin is root then the calls are dispatch without checking origin filter. (This"]
6531 #[doc = "includes bypassing `frame_system::Config::BaseCallFilter`)."]
6532 #[doc = ""]
6533 #[doc = "## Complexity"]
6534 #[doc = "- O(C) where C is the number of calls to be batched."]
6535 pub fn force_batch(
6536 &self,
6537 calls: super::force_batch::Calls,
6538 ) -> ::subxt::transactions::StaticPayload<super::ForceBatch>
6539 {
6540 ::subxt::transactions::StaticPayload::new_static(
6541 "Utility",
6542 "force_batch",
6543 super::ForceBatch { calls },
6544 [
6545 119u8, 204u8, 230u8, 66u8, 178u8, 192u8, 128u8, 119u8, 131u8,
6546 245u8, 234u8, 147u8, 0u8, 106u8, 33u8, 181u8, 251u8, 184u8, 56u8,
6547 55u8, 219u8, 178u8, 180u8, 152u8, 59u8, 158u8, 214u8, 88u8, 246u8,
6548 48u8, 154u8, 253u8,
6549 ],
6550 )
6551 }
6552 #[must_use]
6553 #[doc = "Dispatch a function call with a specified weight."]
6554 #[doc = ""]
6555 #[doc = "This function does not check the weight of the call, and instead allows the"]
6556 #[doc = "Root origin to specify the weight of the call."]
6557 #[doc = ""]
6558 #[doc = "The dispatch origin for this call must be _Root_."]
6559 pub fn with_weight(
6560 &self,
6561 call: super::with_weight::Call,
6562 weight: super::with_weight::Weight,
6563 ) -> ::subxt::transactions::StaticPayload<super::WithWeight>
6564 {
6565 ::subxt::transactions::StaticPayload::new_static(
6566 "Utility",
6567 "with_weight",
6568 super::WithWeight {
6569 call: ::subxt::alloc::boxed::Box::new(call),
6570 weight,
6571 },
6572 [
6573 212u8, 91u8, 23u8, 70u8, 94u8, 167u8, 54u8, 234u8, 12u8, 82u8,
6574 204u8, 111u8, 211u8, 238u8, 202u8, 190u8, 253u8, 3u8, 180u8, 220u8,
6575 179u8, 103u8, 145u8, 46u8, 1u8, 192u8, 130u8, 181u8, 246u8, 44u8,
6576 153u8, 9u8,
6577 ],
6578 )
6579 }
6580 #[must_use]
6581 #[doc = "Dispatch a fallback call in the event the main call fails to execute."]
6582 #[doc = "May be called from any origin except `None`."]
6583 #[doc = ""]
6584 #[doc = "This function first attempts to dispatch the `main` call."]
6585 #[doc = "If the `main` call fails, the `fallback` is attemted."]
6586 #[doc = "if the fallback is successfully dispatched, the weights of both calls"]
6587 #[doc = "are accumulated and an event containing the main call error is deposited."]
6588 #[doc = ""]
6589 #[doc = "In the event of a fallback failure the whole call fails"]
6590 #[doc = "with the weights returned."]
6591 #[doc = ""]
6592 #[doc = "- `main`: The main call to be dispatched. This is the primary action to execute."]
6593 #[doc = "- `fallback`: The fallback call to be dispatched in case the `main` call fails."]
6594 #[doc = ""]
6595 #[doc = "## Dispatch Logic"]
6596 #[doc = "- If the origin is `root`, both the main and fallback calls are executed without"]
6597 #[doc = " applying any origin filters."]
6598 #[doc = "- If the origin is not `root`, the origin filter is applied to both the `main` and"]
6599 #[doc = " `fallback` calls."]
6600 #[doc = ""]
6601 #[doc = "## Use Case"]
6602 #[doc = "- Some use cases might involve submitting a `batch` type call in either main, fallback"]
6603 #[doc = " or both."]
6604 pub fn if_else(
6605 &self,
6606 main: super::if_else::Main,
6607 fallback: super::if_else::Fallback,
6608 ) -> ::subxt::transactions::StaticPayload<super::IfElse> {
6609 ::subxt::transactions::StaticPayload::new_static(
6610 "Utility",
6611 "if_else",
6612 super::IfElse {
6613 main: ::subxt::alloc::boxed::Box::new(main),
6614 fallback: ::subxt::alloc::boxed::Box::new(fallback),
6615 },
6616 [
6617 19u8, 244u8, 45u8, 109u8, 159u8, 48u8, 254u8, 244u8, 168u8, 221u8,
6618 167u8, 247u8, 74u8, 191u8, 28u8, 122u8, 224u8, 165u8, 223u8, 251u8,
6619 187u8, 53u8, 101u8, 166u8, 13u8, 28u8, 214u8, 217u8, 181u8, 32u8,
6620 136u8, 225u8,
6621 ],
6622 )
6623 }
6624 #[must_use]
6625 #[doc = "Dispatches a function call with a provided origin."]
6626 #[doc = ""]
6627 #[doc = "Almost the same as [`Pallet::dispatch_as`] but forwards any error of the inner call."]
6628 #[doc = ""]
6629 #[doc = "The dispatch origin for this call must be _Root_."]
6630 pub fn dispatch_as_fallible(
6631 &self,
6632 as_origin: super::dispatch_as_fallible::AsOrigin,
6633 call: super::dispatch_as_fallible::Call,
6634 ) -> ::subxt::transactions::StaticPayload<super::DispatchAsFallible>
6635 {
6636 ::subxt::transactions::StaticPayload::new_static(
6637 "Utility",
6638 "dispatch_as_fallible",
6639 super::DispatchAsFallible {
6640 as_origin: ::subxt::alloc::boxed::Box::new(as_origin),
6641 call: ::subxt::alloc::boxed::Box::new(call),
6642 },
6643 [
6644 169u8, 252u8, 242u8, 40u8, 56u8, 238u8, 35u8, 231u8, 138u8, 73u8,
6645 225u8, 58u8, 127u8, 24u8, 210u8, 143u8, 99u8, 208u8, 104u8, 13u8,
6646 54u8, 221u8, 37u8, 129u8, 193u8, 206u8, 196u8, 193u8, 229u8, 144u8,
6647 20u8, 129u8,
6648 ],
6649 )
6650 }
6651 }
6652 }
6653 }
6654 #[doc = "The `Event` enum of this pallet"]
6655 pub type Event = runtime_types::pallet_utility::pallet::Event;
6656 pub mod events {
6657 use super::runtime_types;
6658 #[derive(
6659 :: subxt :: ext :: scale_decode :: DecodeAsType,
6660 :: subxt :: ext :: scale_encode :: EncodeAsType,
6661 Debug,
6662 )]
6663 #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
6664 #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
6665 #[doc = "Batch of dispatches did not complete fully. Index of first failing dispatch given, as"]
6666 #[doc = "well as the error."]
6667 pub struct BatchInterrupted {
6668 pub index: batch_interrupted::Index,
6669 pub error: batch_interrupted::Error,
6670 }
6671 pub mod batch_interrupted {
6672 use super::runtime_types;
6673 pub type Index = ::core::primitive::u32;
6674 pub type Error = runtime_types::sp_runtime::DispatchError;
6675 }
6676 impl BatchInterrupted {
6677 const PALLET_NAME: &'static str = "Utility";
6678 const EVENT_NAME: &'static str = "BatchInterrupted";
6679 }
6680 impl ::subxt::events::DecodeAsEvent for BatchInterrupted {
6681 fn is_event(pallet_name: &str, event_name: &str) -> bool {
6682 pallet_name == Self::PALLET_NAME && event_name == Self::EVENT_NAME
6683 }
6684 }
6685 #[derive(
6686 :: subxt :: ext :: scale_decode :: DecodeAsType,
6687 :: subxt :: ext :: scale_encode :: EncodeAsType,
6688 Debug,
6689 )]
6690 #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
6691 #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
6692 #[doc = "Batch of dispatches completed fully with no error."]
6693 pub struct BatchCompleted;
6694 impl BatchCompleted {
6695 const PALLET_NAME: &'static str = "Utility";
6696 const EVENT_NAME: &'static str = "BatchCompleted";
6697 }
6698 impl ::subxt::events::DecodeAsEvent for BatchCompleted {
6699 fn is_event(pallet_name: &str, event_name: &str) -> bool {
6700 pallet_name == Self::PALLET_NAME && event_name == Self::EVENT_NAME
6701 }
6702 }
6703 #[derive(
6704 :: subxt :: ext :: scale_decode :: DecodeAsType,
6705 :: subxt :: ext :: scale_encode :: EncodeAsType,
6706 Debug,
6707 )]
6708 #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
6709 #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
6710 #[doc = "Batch of dispatches completed but has errors."]
6711 pub struct BatchCompletedWithErrors;
6712 impl BatchCompletedWithErrors {
6713 const PALLET_NAME: &'static str = "Utility";
6714 const EVENT_NAME: &'static str = "BatchCompletedWithErrors";
6715 }
6716 impl ::subxt::events::DecodeAsEvent for BatchCompletedWithErrors {
6717 fn is_event(pallet_name: &str, event_name: &str) -> bool {
6718 pallet_name == Self::PALLET_NAME && event_name == Self::EVENT_NAME
6719 }
6720 }
6721 #[derive(
6722 :: subxt :: ext :: scale_decode :: DecodeAsType,
6723 :: subxt :: ext :: scale_encode :: EncodeAsType,
6724 Debug,
6725 )]
6726 #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
6727 #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
6728 #[doc = "A single item within a Batch of dispatches has completed with no error."]
6729 pub struct ItemCompleted;
6730 impl ItemCompleted {
6731 const PALLET_NAME: &'static str = "Utility";
6732 const EVENT_NAME: &'static str = "ItemCompleted";
6733 }
6734 impl ::subxt::events::DecodeAsEvent for ItemCompleted {
6735 fn is_event(pallet_name: &str, event_name: &str) -> bool {
6736 pallet_name == Self::PALLET_NAME && event_name == Self::EVENT_NAME
6737 }
6738 }
6739 #[derive(
6740 :: subxt :: ext :: scale_decode :: DecodeAsType,
6741 :: subxt :: ext :: scale_encode :: EncodeAsType,
6742 Debug,
6743 )]
6744 #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
6745 #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
6746 #[doc = "A single item within a Batch of dispatches has completed with error."]
6747 pub struct ItemFailed {
6748 pub error: item_failed::Error,
6749 }
6750 pub mod item_failed {
6751 use super::runtime_types;
6752 pub type Error = runtime_types::sp_runtime::DispatchError;
6753 }
6754 impl ItemFailed {
6755 const PALLET_NAME: &'static str = "Utility";
6756 const EVENT_NAME: &'static str = "ItemFailed";
6757 }
6758 impl ::subxt::events::DecodeAsEvent for ItemFailed {
6759 fn is_event(pallet_name: &str, event_name: &str) -> bool {
6760 pallet_name == Self::PALLET_NAME && event_name == Self::EVENT_NAME
6761 }
6762 }
6763 #[derive(
6764 :: subxt :: ext :: scale_decode :: DecodeAsType,
6765 :: subxt :: ext :: scale_encode :: EncodeAsType,
6766 Debug,
6767 )]
6768 #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
6769 #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
6770 #[doc = "A call was dispatched."]
6771 pub struct DispatchedAs {
6772 pub result: dispatched_as::Result,
6773 }
6774 pub mod dispatched_as {
6775 use super::runtime_types;
6776 pub type Result =
6777 ::core::result::Result<(), runtime_types::sp_runtime::DispatchError>;
6778 }
6779 impl DispatchedAs {
6780 const PALLET_NAME: &'static str = "Utility";
6781 const EVENT_NAME: &'static str = "DispatchedAs";
6782 }
6783 impl ::subxt::events::DecodeAsEvent for DispatchedAs {
6784 fn is_event(pallet_name: &str, event_name: &str) -> bool {
6785 pallet_name == Self::PALLET_NAME && event_name == Self::EVENT_NAME
6786 }
6787 }
6788 #[derive(
6789 :: subxt :: ext :: scale_decode :: DecodeAsType,
6790 :: subxt :: ext :: scale_encode :: EncodeAsType,
6791 Debug,
6792 )]
6793 #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
6794 #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
6795 #[doc = "Main call was dispatched."]
6796 pub struct IfElseMainSuccess;
6797 impl IfElseMainSuccess {
6798 const PALLET_NAME: &'static str = "Utility";
6799 const EVENT_NAME: &'static str = "IfElseMainSuccess";
6800 }
6801 impl ::subxt::events::DecodeAsEvent for IfElseMainSuccess {
6802 fn is_event(pallet_name: &str, event_name: &str) -> bool {
6803 pallet_name == Self::PALLET_NAME && event_name == Self::EVENT_NAME
6804 }
6805 }
6806 #[derive(
6807 :: subxt :: ext :: scale_decode :: DecodeAsType,
6808 :: subxt :: ext :: scale_encode :: EncodeAsType,
6809 Debug,
6810 )]
6811 #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
6812 #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
6813 #[doc = "The fallback call was dispatched."]
6814 pub struct IfElseFallbackCalled {
6815 pub main_error: if_else_fallback_called::MainError,
6816 }
6817 pub mod if_else_fallback_called {
6818 use super::runtime_types;
6819 pub type MainError = runtime_types::sp_runtime::DispatchError;
6820 }
6821 impl IfElseFallbackCalled {
6822 const PALLET_NAME: &'static str = "Utility";
6823 const EVENT_NAME: &'static str = "IfElseFallbackCalled";
6824 }
6825 impl ::subxt::events::DecodeAsEvent for IfElseFallbackCalled {
6826 fn is_event(pallet_name: &str, event_name: &str) -> bool {
6827 pallet_name == Self::PALLET_NAME && event_name == Self::EVENT_NAME
6828 }
6829 }
6830 }
6831 pub mod constants {
6832 use super::runtime_types;
6833 pub struct ConstantsApi;
6834 impl ConstantsApi {
6835 #[must_use]
6836 #[doc = " The limit on the number of batched calls."]
6837 pub fn batched_calls_limit(
6838 &self,
6839 ) -> ::subxt::constants::StaticAddress<::core::primitive::u32> {
6840 ::subxt::constants::StaticAddress::new_static(
6841 "Utility",
6842 "batched_calls_limit",
6843 [
6844 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8,
6845 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8,
6846 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8,
6847 145u8,
6848 ],
6849 )
6850 }
6851 }
6852 }
6853 }
6854 pub mod runtime_types {
6855 use super::runtime_types;
6856 pub mod acuity_runtime {
6857 use super::runtime_types;
6858 #[derive(
6859 :: subxt :: ext :: scale_decode :: DecodeAsType,
6860 :: subxt :: ext :: scale_encode :: EncodeAsType,
6861 Debug,
6862 )]
6863 #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
6864 #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
6865 pub enum OriginCaller {
6866 #[codec(index = 0)]
6867 system(
6868 runtime_types::frame_support::dispatch::RawOrigin<::subxt::utils::AccountId32>,
6869 ),
6870 }
6871 #[derive(
6872 :: subxt :: ext :: scale_decode :: DecodeAsType,
6873 :: subxt :: ext :: scale_encode :: EncodeAsType,
6874 Debug,
6875 )]
6876 #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
6877 #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
6878 pub enum RuntimeCall {
6879 #[codec(index = 0)]
6880 System(runtime_types::frame_system::pallet::Call),
6881 #[codec(index = 1)]
6882 Timestamp(runtime_types::pallet_timestamp::pallet::Call),
6883 #[codec(index = 2)]
6884 ParachainSystem(runtime_types::staging_parachain_info::pallet::Call),
6885 #[codec(index = 4)]
6886 Balances(runtime_types::pallet_balances::pallet::Call),
6887 #[codec(index = 5)]
6888 Sudo(runtime_types::pallet_sudo::pallet::Call),
6889 #[codec(index = 7)]
6890 Content(runtime_types::pallet_content::pallet::Call),
6891 #[codec(index = 8)]
6892 AccountContent(runtime_types::pallet_account_content::pallet::Call),
6893 #[codec(index = 9)]
6894 AccountProfile(runtime_types::pallet_account_profile::pallet::Call),
6895 #[codec(index = 10)]
6896 ContentReactions(runtime_types::pallet_content_reactions::pallet::Call),
6897 #[codec(index = 11)]
6898 Utility(runtime_types::pallet_utility::pallet::Call),
6899 }
6900 #[derive(
6901 :: subxt :: ext :: scale_decode :: DecodeAsType,
6902 :: subxt :: ext :: scale_encode :: EncodeAsType,
6903 Debug,
6904 )]
6905 #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
6906 #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
6907 pub enum RuntimeError {
6908 #[codec(index = 0)]
6909 System(runtime_types::frame_system::pallet::Error),
6910 #[codec(index = 4)]
6911 Balances(runtime_types::pallet_balances::pallet::Error),
6912 #[codec(index = 5)]
6913 Sudo(runtime_types::pallet_sudo::pallet::Error),
6914 #[codec(index = 7)]
6915 Content(runtime_types::pallet_content::pallet::Error),
6916 #[codec(index = 8)]
6917 AccountContent(runtime_types::pallet_account_content::pallet::Error),
6918 #[codec(index = 9)]
6919 AccountProfile(runtime_types::pallet_account_profile::pallet::Error),
6920 #[codec(index = 10)]
6921 ContentReactions(runtime_types::pallet_content_reactions::pallet::Error),
6922 #[codec(index = 11)]
6923 Utility(runtime_types::pallet_utility::pallet::Error),
6924 }
6925 #[derive(
6926 :: subxt :: ext :: scale_decode :: DecodeAsType,
6927 :: subxt :: ext :: scale_encode :: EncodeAsType,
6928 Debug,
6929 )]
6930 #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
6931 #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
6932 pub enum RuntimeEvent {
6933 #[codec(index = 0)]
6934 System(runtime_types::frame_system::pallet::Event),
6935 #[codec(index = 4)]
6936 Balances(runtime_types::pallet_balances::pallet::Event),
6937 #[codec(index = 5)]
6938 Sudo(runtime_types::pallet_sudo::pallet::Event),
6939 #[codec(index = 6)]
6940 TransactionPayment(runtime_types::pallet_transaction_payment::pallet::Event),
6941 #[codec(index = 7)]
6942 Content(runtime_types::pallet_content::pallet::Event),
6943 #[codec(index = 8)]
6944 AccountContent(runtime_types::pallet_account_content::pallet::Event),
6945 #[codec(index = 9)]
6946 AccountProfile(runtime_types::pallet_account_profile::pallet::Event),
6947 #[codec(index = 10)]
6948 ContentReactions(runtime_types::pallet_content_reactions::pallet::Event),
6949 #[codec(index = 11)]
6950 Utility(runtime_types::pallet_utility::pallet::Event),
6951 }
6952 #[derive(
6953 :: subxt :: ext :: scale_decode :: DecodeAsType,
6954 :: subxt :: ext :: scale_encode :: EncodeAsType,
6955 Debug,
6956 )]
6957 #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
6958 #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
6959 pub enum RuntimeHoldReason {}
6960 }
6961 pub mod bounded_collections {
6962 use super::runtime_types;
6963 pub mod bounded_vec {
6964 use super::runtime_types;
6965 #[derive(
6966 :: subxt :: ext :: scale_decode :: DecodeAsType,
6967 :: subxt :: ext :: scale_encode :: EncodeAsType,
6968 Debug,
6969 )]
6970 #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
6971 #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
6972 pub struct BoundedVec<_0>(pub ::subxt::alloc::vec::Vec<_0>);
6973 }
6974 pub mod weak_bounded_vec {
6975 use super::runtime_types;
6976 #[derive(
6977 :: subxt :: ext :: scale_decode :: DecodeAsType,
6978 :: subxt :: ext :: scale_encode :: EncodeAsType,
6979 Debug,
6980 )]
6981 #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
6982 #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
6983 pub struct WeakBoundedVec<_0>(pub ::subxt::alloc::vec::Vec<_0>);
6984 }
6985 }
6986 pub mod frame_support {
6987 use super::runtime_types;
6988 pub mod dispatch {
6989 use super::runtime_types;
6990 #[derive(
6991 :: subxt :: ext :: scale_decode :: DecodeAsType,
6992 :: subxt :: ext :: scale_encode :: EncodeAsType,
6993 Debug,
6994 )]
6995 #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
6996 #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
6997 pub enum DispatchClass {
6998 #[codec(index = 0)]
6999 Normal,
7000 #[codec(index = 1)]
7001 Operational,
7002 #[codec(index = 2)]
7003 Mandatory,
7004 }
7005 #[derive(
7006 :: subxt :: ext :: scale_decode :: DecodeAsType,
7007 :: subxt :: ext :: scale_encode :: EncodeAsType,
7008 Debug,
7009 )]
7010 #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
7011 #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
7012 pub enum Pays {
7013 #[codec(index = 0)]
7014 Yes,
7015 #[codec(index = 1)]
7016 No,
7017 }
7018 #[derive(
7019 :: subxt :: ext :: scale_decode :: DecodeAsType,
7020 :: subxt :: ext :: scale_encode :: EncodeAsType,
7021 Debug,
7022 )]
7023 #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
7024 #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
7025 pub struct PerDispatchClass<_0> {
7026 pub normal: _0,
7027 pub operational: _0,
7028 pub mandatory: _0,
7029 }
7030 #[derive(
7031 :: subxt :: ext :: scale_decode :: DecodeAsType,
7032 :: subxt :: ext :: scale_encode :: EncodeAsType,
7033 Debug,
7034 )]
7035 #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
7036 #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
7037 pub enum RawOrigin<_0> {
7038 #[codec(index = 0)]
7039 Root,
7040 #[codec(index = 1)]
7041 Signed(_0),
7042 #[codec(index = 2)]
7043 None,
7044 #[codec(index = 3)]
7045 Authorized,
7046 }
7047 }
7048 pub mod traits {
7049 use super::runtime_types;
7050 pub mod storage {
7051 use super::runtime_types;
7052 #[derive(
7053 :: subxt :: ext :: scale_decode :: DecodeAsType,
7054 :: subxt :: ext :: scale_encode :: EncodeAsType,
7055 Debug,
7056 )]
7057 #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
7058 #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
7059 pub struct NoDrop<_0>(pub _0);
7060 }
7061 pub mod tokens {
7062 use super::runtime_types;
7063 pub mod fungible {
7064 use super::runtime_types;
7065 pub mod imbalance {
7066 use super::runtime_types;
7067 #[derive(
7068 :: subxt :: ext :: scale_decode :: DecodeAsType,
7069 :: subxt :: ext :: scale_encode :: EncodeAsType,
7070 Debug,
7071 )]
7072 #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
7073 #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
7074 pub struct Imbalance<_0> {
7075 pub amount: _0,
7076 }
7077 }
7078 }
7079 pub mod misc {
7080 use super::runtime_types;
7081 #[derive(
7082 :: subxt :: ext :: scale_decode :: DecodeAsType,
7083 :: subxt :: ext :: scale_encode :: EncodeAsType,
7084 Debug,
7085 )]
7086 #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
7087 #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
7088 pub enum BalanceStatus {
7089 #[codec(index = 0)]
7090 Free,
7091 #[codec(index = 1)]
7092 Reserved,
7093 }
7094 #[derive(
7095 :: subxt :: ext :: scale_decode :: DecodeAsType,
7096 :: subxt :: ext :: scale_encode :: EncodeAsType,
7097 Debug,
7098 )]
7099 #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
7100 #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
7101 pub struct IdAmount<_0, _1> {
7102 pub id: _0,
7103 pub amount: _1,
7104 }
7105 }
7106 }
7107 }
7108 }
7109 pub mod frame_system {
7110 use super::runtime_types;
7111 pub mod extensions {
7112 use super::runtime_types;
7113 pub mod authorize_call {
7114 use super::runtime_types;
7115 #[derive(
7116 :: subxt :: ext :: scale_decode :: DecodeAsType,
7117 :: subxt :: ext :: scale_encode :: EncodeAsType,
7118 Debug,
7119 )]
7120 #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
7121 #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
7122 pub struct AuthorizeCall;
7123 }
7124 pub mod check_genesis {
7125 use super::runtime_types;
7126 #[derive(
7127 :: subxt :: ext :: scale_decode :: DecodeAsType,
7128 :: subxt :: ext :: scale_encode :: EncodeAsType,
7129 Debug,
7130 )]
7131 #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
7132 #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
7133 pub struct CheckGenesis;
7134 }
7135 pub mod check_mortality {
7136 use super::runtime_types;
7137 #[derive(
7138 :: subxt :: ext :: scale_decode :: DecodeAsType,
7139 :: subxt :: ext :: scale_encode :: EncodeAsType,
7140 Debug,
7141 )]
7142 #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
7143 #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
7144 pub struct CheckMortality(pub runtime_types::sp_runtime::generic::era::Era);
7145 }
7146 pub mod check_non_zero_sender {
7147 use super::runtime_types;
7148 #[derive(
7149 :: subxt :: ext :: scale_decode :: DecodeAsType,
7150 :: subxt :: ext :: scale_encode :: EncodeAsType,
7151 Debug,
7152 )]
7153 #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
7154 #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
7155 pub struct CheckNonZeroSender;
7156 }
7157 pub mod check_nonce {
7158 use super::runtime_types;
7159 #[derive(
7160 :: subxt :: ext :: scale_decode :: DecodeAsType,
7161 :: subxt :: ext :: scale_encode :: EncodeAsType,
7162 Debug,
7163 )]
7164 #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
7165 #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
7166 pub struct CheckNonce(#[codec(compact)] pub ::core::primitive::u32);
7167 }
7168 pub mod check_spec_version {
7169 use super::runtime_types;
7170 #[derive(
7171 :: subxt :: ext :: scale_decode :: DecodeAsType,
7172 :: subxt :: ext :: scale_encode :: EncodeAsType,
7173 Debug,
7174 )]
7175 #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
7176 #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
7177 pub struct CheckSpecVersion;
7178 }
7179 pub mod check_tx_version {
7180 use super::runtime_types;
7181 #[derive(
7182 :: subxt :: ext :: scale_decode :: DecodeAsType,
7183 :: subxt :: ext :: scale_encode :: EncodeAsType,
7184 Debug,
7185 )]
7186 #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
7187 #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
7188 pub struct CheckTxVersion;
7189 }
7190 pub mod check_weight {
7191 use super::runtime_types;
7192 #[derive(
7193 :: subxt :: ext :: scale_decode :: DecodeAsType,
7194 :: subxt :: ext :: scale_encode :: EncodeAsType,
7195 Debug,
7196 )]
7197 #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
7198 #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
7199 pub struct CheckWeight;
7200 }
7201 pub mod weight_reclaim {
7202 use super::runtime_types;
7203 #[derive(
7204 :: subxt :: ext :: scale_decode :: DecodeAsType,
7205 :: subxt :: ext :: scale_encode :: EncodeAsType,
7206 Debug,
7207 )]
7208 #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
7209 #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
7210 pub struct WeightReclaim;
7211 }
7212 }
7213 pub mod limits {
7214 use super::runtime_types;
7215 #[derive(
7216 :: subxt :: ext :: scale_decode :: DecodeAsType,
7217 :: subxt :: ext :: scale_encode :: EncodeAsType,
7218 Debug,
7219 )]
7220 #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
7221 #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
7222 pub struct BlockLength {
7223 pub max: runtime_types::frame_support::dispatch::PerDispatchClass<
7224 ::core::primitive::u32,
7225 >,
7226 pub max_header_size: ::core::option::Option<::core::primitive::u32>,
7227 }
7228 #[derive(
7229 :: subxt :: ext :: scale_decode :: DecodeAsType,
7230 :: subxt :: ext :: scale_encode :: EncodeAsType,
7231 Debug,
7232 )]
7233 #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
7234 #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
7235 pub struct BlockWeights {
7236 pub base_block: runtime_types::sp_weights::weight_v2::Weight,
7237 pub max_block: runtime_types::sp_weights::weight_v2::Weight,
7238 pub per_class: runtime_types::frame_support::dispatch::PerDispatchClass<
7239 runtime_types::frame_system::limits::WeightsPerClass,
7240 >,
7241 }
7242 #[derive(
7243 :: subxt :: ext :: scale_decode :: DecodeAsType,
7244 :: subxt :: ext :: scale_encode :: EncodeAsType,
7245 Debug,
7246 )]
7247 #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
7248 #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
7249 pub struct WeightsPerClass {
7250 pub base_extrinsic: runtime_types::sp_weights::weight_v2::Weight,
7251 pub max_extrinsic:
7252 ::core::option::Option<runtime_types::sp_weights::weight_v2::Weight>,
7253 pub max_total:
7254 ::core::option::Option<runtime_types::sp_weights::weight_v2::Weight>,
7255 pub reserved:
7256 ::core::option::Option<runtime_types::sp_weights::weight_v2::Weight>,
7257 }
7258 }
7259 pub mod pallet {
7260 use super::runtime_types;
7261 #[derive(
7262 :: subxt :: ext :: scale_decode :: DecodeAsType,
7263 :: subxt :: ext :: scale_encode :: EncodeAsType,
7264 Debug,
7265 )]
7266 #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
7267 #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
7268 #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."]
7269 pub enum Call {
7270 #[codec(index = 0)]
7271 #[doc = "Make some on-chain remark."]
7272 #[doc = ""]
7273 #[doc = "Can be executed by every `origin`."]
7274 remark {
7275 remark: ::subxt::alloc::vec::Vec<::core::primitive::u8>,
7276 },
7277 #[codec(index = 1)]
7278 #[doc = "Set the number of pages in the WebAssembly environment's heap."]
7279 set_heap_pages { pages: ::core::primitive::u64 },
7280 #[codec(index = 2)]
7281 #[doc = "Set the new runtime code."]
7282 set_code {
7283 code: ::subxt::alloc::vec::Vec<::core::primitive::u8>,
7284 },
7285 #[codec(index = 3)]
7286 #[doc = "Set the new runtime code without doing any checks of the given `code`."]
7287 #[doc = ""]
7288 #[doc = "Note that runtime upgrades will not run if this is called with a not-increasing spec"]
7289 #[doc = "version!"]
7290 set_code_without_checks {
7291 code: ::subxt::alloc::vec::Vec<::core::primitive::u8>,
7292 },
7293 #[codec(index = 4)]
7294 #[doc = "Set some items of storage."]
7295 set_storage {
7296 items: ::subxt::alloc::vec::Vec<(
7297 ::subxt::alloc::vec::Vec<::core::primitive::u8>,
7298 ::subxt::alloc::vec::Vec<::core::primitive::u8>,
7299 )>,
7300 },
7301 #[codec(index = 5)]
7302 #[doc = "Kill some items from storage."]
7303 kill_storage {
7304 keys: ::subxt::alloc::vec::Vec<
7305 ::subxt::alloc::vec::Vec<::core::primitive::u8>,
7306 >,
7307 },
7308 #[codec(index = 6)]
7309 #[doc = "Kill all storage items with a key that starts with the given prefix."]
7310 #[doc = ""]
7311 #[doc = "**NOTE:** We rely on the Root origin to provide us the number of subkeys under"]
7312 #[doc = "the prefix we are removing to accurately calculate the weight of this function."]
7313 kill_prefix {
7314 prefix: ::subxt::alloc::vec::Vec<::core::primitive::u8>,
7315 subkeys: ::core::primitive::u32,
7316 },
7317 #[codec(index = 7)]
7318 #[doc = "Make some on-chain remark and emit event."]
7319 remark_with_event {
7320 remark: ::subxt::alloc::vec::Vec<::core::primitive::u8>,
7321 },
7322 #[codec(index = 9)]
7323 #[doc = "Authorize an upgrade to a given `code_hash` for the runtime. The runtime can be supplied"]
7324 #[doc = "later."]
7325 #[doc = ""]
7326 #[doc = "This call requires Root origin."]
7327 authorize_upgrade { code_hash: ::subxt::utils::H256 },
7328 #[codec(index = 10)]
7329 #[doc = "Authorize an upgrade to a given `code_hash` for the runtime. The runtime can be supplied"]
7330 #[doc = "later."]
7331 #[doc = ""]
7332 #[doc = "WARNING: This authorizes an upgrade that will take place without any safety checks, for"]
7333 #[doc = "example that the spec name remains the same and that the version number increases. Not"]
7334 #[doc = "recommended for normal use. Use `authorize_upgrade` instead."]
7335 #[doc = ""]
7336 #[doc = "This call requires Root origin."]
7337 authorize_upgrade_without_checks { code_hash: ::subxt::utils::H256 },
7338 #[codec(index = 11)]
7339 #[doc = "Provide the preimage (runtime binary) `code` for an upgrade that has been authorized."]
7340 #[doc = ""]
7341 #[doc = "If the authorization required a version check, this call will ensure the spec name"]
7342 #[doc = "remains unchanged and that the spec version has increased."]
7343 #[doc = ""]
7344 #[doc = "Depending on the runtime's `OnSetCode` configuration, this function may directly apply"]
7345 #[doc = "the new `code` in the same block or attempt to schedule the upgrade."]
7346 #[doc = ""]
7347 #[doc = "All origins are allowed."]
7348 apply_authorized_upgrade {
7349 code: ::subxt::alloc::vec::Vec<::core::primitive::u8>,
7350 },
7351 }
7352 #[derive(
7353 :: subxt :: ext :: scale_decode :: DecodeAsType,
7354 :: subxt :: ext :: scale_encode :: EncodeAsType,
7355 Debug,
7356 )]
7357 #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
7358 #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
7359 #[doc = "Error for the System pallet"]
7360 pub enum Error {
7361 #[codec(index = 0)]
7362 #[doc = "The name of specification does not match between the current runtime"]
7363 #[doc = "and the new runtime."]
7364 InvalidSpecName,
7365 #[codec(index = 1)]
7366 #[doc = "The specification version is not allowed to decrease between the current runtime"]
7367 #[doc = "and the new runtime."]
7368 SpecVersionNeedsToIncrease,
7369 #[codec(index = 2)]
7370 #[doc = "Failed to extract the runtime version from the new runtime."]
7371 #[doc = ""]
7372 #[doc = "Either calling `Core_version` or decoding `RuntimeVersion` failed."]
7373 FailedToExtractRuntimeVersion,
7374 #[codec(index = 3)]
7375 #[doc = "Suicide called when the account has non-default composite data."]
7376 NonDefaultComposite,
7377 #[codec(index = 4)]
7378 #[doc = "There is a non-zero reference count preventing the account from being purged."]
7379 NonZeroRefCount,
7380 #[codec(index = 5)]
7381 #[doc = "The origin filter prevent the call to be dispatched."]
7382 CallFiltered,
7383 #[codec(index = 6)]
7384 #[doc = "A multi-block migration is ongoing and prevents the current code from being replaced."]
7385 MultiBlockMigrationsOngoing,
7386 #[codec(index = 7)]
7387 #[doc = "No upgrade authorized."]
7388 NothingAuthorized,
7389 #[codec(index = 8)]
7390 #[doc = "The submitted code is not authorized."]
7391 Unauthorized,
7392 }
7393 #[derive(
7394 :: subxt :: ext :: scale_decode :: DecodeAsType,
7395 :: subxt :: ext :: scale_encode :: EncodeAsType,
7396 Debug,
7397 )]
7398 #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
7399 #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
7400 #[doc = "Event for the System pallet."]
7401 pub enum Event {
7402 #[codec(index = 0)]
7403 #[doc = "An extrinsic completed successfully."]
7404 ExtrinsicSuccess {
7405 dispatch_info: runtime_types::frame_system::DispatchEventInfo,
7406 },
7407 #[codec(index = 1)]
7408 #[doc = "An extrinsic failed."]
7409 ExtrinsicFailed {
7410 dispatch_error: runtime_types::sp_runtime::DispatchError,
7411 dispatch_info: runtime_types::frame_system::DispatchEventInfo,
7412 },
7413 #[codec(index = 2)]
7414 #[doc = "`:code` was updated to the code with the given hash."]
7415 CodeUpdated { hash: ::subxt::utils::H256 },
7416 #[codec(index = 3)]
7417 #[doc = "A new account was created."]
7418 NewAccount {
7419 account: ::subxt::utils::AccountId32,
7420 },
7421 #[codec(index = 4)]
7422 #[doc = "An account was reaped."]
7423 KilledAccount {
7424 account: ::subxt::utils::AccountId32,
7425 },
7426 #[codec(index = 5)]
7427 #[doc = "On on-chain remark happened."]
7428 Remarked {
7429 sender: ::subxt::utils::AccountId32,
7430 hash: ::subxt::utils::H256,
7431 },
7432 #[codec(index = 6)]
7433 #[doc = "An upgrade was authorized."]
7434 UpgradeAuthorized {
7435 code_hash: ::subxt::utils::H256,
7436 check_version: ::core::primitive::bool,
7437 },
7438 #[codec(index = 7)]
7439 #[doc = "An invalid authorized upgrade was rejected while trying to apply it."]
7440 RejectedInvalidAuthorizedUpgrade {
7441 code_hash: ::subxt::utils::H256,
7442 error: runtime_types::sp_runtime::DispatchError,
7443 },
7444 }
7445 }
7446 #[derive(
7447 :: subxt :: ext :: scale_decode :: DecodeAsType,
7448 :: subxt :: ext :: scale_encode :: EncodeAsType,
7449 Debug,
7450 )]
7451 #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
7452 #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
7453 pub struct AccountInfo<_0, _1> {
7454 pub nonce: _0,
7455 pub consumers: ::core::primitive::u32,
7456 pub providers: ::core::primitive::u32,
7457 pub sufficients: ::core::primitive::u32,
7458 pub data: _1,
7459 }
7460 #[derive(
7461 :: subxt :: ext :: scale_decode :: DecodeAsType,
7462 :: subxt :: ext :: scale_encode :: EncodeAsType,
7463 Debug,
7464 )]
7465 #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
7466 #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
7467 pub struct CodeUpgradeAuthorization {
7468 pub code_hash: ::subxt::utils::H256,
7469 pub check_version: ::core::primitive::bool,
7470 }
7471 #[derive(
7472 :: subxt :: ext :: scale_decode :: DecodeAsType,
7473 :: subxt :: ext :: scale_encode :: EncodeAsType,
7474 Debug,
7475 )]
7476 #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
7477 #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
7478 pub struct DispatchEventInfo {
7479 pub weight: runtime_types::sp_weights::weight_v2::Weight,
7480 pub class: runtime_types::frame_support::dispatch::DispatchClass,
7481 pub pays_fee: runtime_types::frame_support::dispatch::Pays,
7482 }
7483 #[derive(
7484 :: subxt :: ext :: scale_decode :: DecodeAsType,
7485 :: subxt :: ext :: scale_encode :: EncodeAsType,
7486 Debug,
7487 )]
7488 #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
7489 #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
7490 pub struct EventRecord<_0, _1> {
7491 pub phase: runtime_types::frame_system::Phase,
7492 pub event: _0,
7493 pub topics: ::subxt::alloc::vec::Vec<_1>,
7494 }
7495 #[derive(
7496 :: subxt :: ext :: scale_decode :: DecodeAsType,
7497 :: subxt :: ext :: scale_encode :: EncodeAsType,
7498 Debug,
7499 )]
7500 #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
7501 #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
7502 pub struct LastRuntimeUpgradeInfo {
7503 #[codec(compact)]
7504 pub spec_version: ::core::primitive::u32,
7505 pub spec_name: ::subxt::alloc::string::String,
7506 }
7507 #[derive(
7508 :: subxt :: ext :: scale_decode :: DecodeAsType,
7509 :: subxt :: ext :: scale_encode :: EncodeAsType,
7510 Debug,
7511 )]
7512 #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
7513 #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
7514 pub enum Phase {
7515 #[codec(index = 0)]
7516 ApplyExtrinsic(::core::primitive::u32),
7517 #[codec(index = 1)]
7518 Finalization,
7519 #[codec(index = 2)]
7520 Initialization,
7521 }
7522 }
7523 pub mod pallet_account_content {
7524 use super::runtime_types;
7525 pub mod pallet {
7526 use super::runtime_types;
7527 #[derive(
7528 :: subxt :: ext :: scale_decode :: DecodeAsType,
7529 :: subxt :: ext :: scale_encode :: EncodeAsType,
7530 Debug,
7531 )]
7532 #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
7533 #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
7534 #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."]
7535 pub enum Call {
7536 #[codec(index = 0)]
7537 #[doc = "Adds a content item to the caller's ordered list."]
7538 #[doc = ""]
7539 #[doc = "The referenced item must exist in `pallet-content`, must not be"]
7540 #[doc = "retracted, and must currently be owned by the caller."]
7541 add_item {
7542 item_id: runtime_types::pallet_content::pallet::ItemId,
7543 },
7544 #[codec(index = 1)]
7545 #[doc = "Removes a content item from the caller's ordered list."]
7546 #[doc = ""]
7547 #[doc = "Removal uses swap-with-last semantics so membership checks and"]
7548 #[doc = "deletions stay O(1)."]
7549 remove_item {
7550 item_id: runtime_types::pallet_content::pallet::ItemId,
7551 },
7552 }
7553 #[derive(
7554 :: subxt :: ext :: scale_decode :: DecodeAsType,
7555 :: subxt :: ext :: scale_encode :: EncodeAsType,
7556 Debug,
7557 )]
7558 #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
7559 #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
7560 #[doc = "Errors returned by the account-content pallet."]
7561 pub enum Error {
7562 #[codec(index = 0)]
7563 #[doc = "The item is already in the account list."]
7564 ItemAlreadyAdded,
7565 #[codec(index = 1)]
7566 #[doc = "The item is not in the account list."]
7567 ItemNotAdded,
7568 #[codec(index = 2)]
7569 #[doc = "The referenced content item could not be found."]
7570 ItemNotFound,
7571 #[codec(index = 3)]
7572 #[doc = "The referenced content item has been retracted."]
7573 ItemRetracted,
7574 #[codec(index = 4)]
7575 #[doc = "The signer does not own the referenced content item."]
7576 WrongAccount,
7577 #[codec(index = 5)]
7578 #[doc = "The account has reached the maximum supported number of items."]
7579 AccountItemsFull,
7580 #[codec(index = 6)]
7581 #[doc = "A stored index could not be converted on this platform."]
7582 IndexOverflow,
7583 }
7584 #[derive(
7585 :: subxt :: ext :: scale_decode :: DecodeAsType,
7586 :: subxt :: ext :: scale_encode :: EncodeAsType,
7587 Debug,
7588 )]
7589 #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
7590 #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
7591 #[doc = "The `Event` enum of this pallet"]
7592 pub enum Event {
7593 #[codec(index = 0)]
7594 #[doc = "An item was added to an account list."]
7595 AddItem {
7596 account: ::subxt::utils::AccountId32,
7597 item_id: runtime_types::pallet_content::pallet::ItemId,
7598 },
7599 #[codec(index = 1)]
7600 #[doc = "An item was removed from an account list."]
7601 RemoveItem {
7602 account: ::subxt::utils::AccountId32,
7603 item_id: runtime_types::pallet_content::pallet::ItemId,
7604 },
7605 }
7606 }
7607 }
7608 pub mod pallet_account_profile {
7609 use super::runtime_types;
7610 pub mod pallet {
7611 use super::runtime_types;
7612 #[derive(
7613 :: subxt :: ext :: scale_decode :: DecodeAsType,
7614 :: subxt :: ext :: scale_encode :: EncodeAsType,
7615 Debug,
7616 )]
7617 #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
7618 #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
7619 #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."]
7620 pub enum Call {
7621 #[codec(index = 0)]
7622 #[doc = "Sets or overwrites the caller's profile pointer."]
7623 #[doc = ""]
7624 #[doc = "The referenced item must exist in `pallet-content`, must not be"]
7625 #[doc = "retracted, and must currently be owned by the caller."]
7626 set_profile {
7627 item_id: runtime_types::pallet_content::pallet::ItemId,
7628 },
7629 }
7630 #[derive(
7631 :: subxt :: ext :: scale_decode :: DecodeAsType,
7632 :: subxt :: ext :: scale_encode :: EncodeAsType,
7633 Debug,
7634 )]
7635 #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
7636 #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
7637 #[doc = "Errors returned by the account-profile pallet."]
7638 pub enum Error {
7639 #[codec(index = 0)]
7640 #[doc = "The referenced content item could not be found."]
7641 ItemNotFound,
7642 #[codec(index = 1)]
7643 #[doc = "The referenced content item has been retracted."]
7644 ItemRetracted,
7645 #[codec(index = 2)]
7646 #[doc = "The signer does not own the referenced content item."]
7647 WrongAccount,
7648 }
7649 #[derive(
7650 :: subxt :: ext :: scale_decode :: DecodeAsType,
7651 :: subxt :: ext :: scale_encode :: EncodeAsType,
7652 Debug,
7653 )]
7654 #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
7655 #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
7656 #[doc = "The `Event` enum of this pallet"]
7657 pub enum Event {
7658 #[codec(index = 0)]
7659 #[doc = "A profile pointer was set or replaced."]
7660 ProfileSet {
7661 account: ::subxt::utils::AccountId32,
7662 item_id: runtime_types::pallet_content::pallet::ItemId,
7663 },
7664 }
7665 }
7666 }
7667 pub mod pallet_balances {
7668 use super::runtime_types;
7669 pub mod pallet {
7670 use super::runtime_types;
7671 #[derive(
7672 :: subxt :: ext :: scale_decode :: DecodeAsType,
7673 :: subxt :: ext :: scale_encode :: EncodeAsType,
7674 Debug,
7675 )]
7676 #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
7677 #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
7678 #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."]
7679 pub enum Call {
7680 #[codec(index = 0)]
7681 #[doc = "Transfer some liquid free balance to another account."]
7682 #[doc = ""]
7683 #[doc = "`transfer_allow_death` will set the `FreeBalance` of the sender and receiver."]
7684 #[doc = "If the sender's account is below the existential deposit as a result"]
7685 #[doc = "of the transfer, the account will be reaped."]
7686 #[doc = ""]
7687 #[doc = "The dispatch origin for this call must be `Signed` by the transactor."]
7688 transfer_allow_death {
7689 dest: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>,
7690 #[codec(compact)]
7691 value: ::core::primitive::u128,
7692 },
7693 #[codec(index = 2)]
7694 #[doc = "Exactly as `transfer_allow_death`, except the origin must be root and the source account"]
7695 #[doc = "may be specified."]
7696 force_transfer {
7697 source: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>,
7698 dest: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>,
7699 #[codec(compact)]
7700 value: ::core::primitive::u128,
7701 },
7702 #[codec(index = 3)]
7703 #[doc = "Same as the [`transfer_allow_death`] call, but with a check that the transfer will not"]
7704 #[doc = "kill the origin account."]
7705 #[doc = ""]
7706 #[doc = "99% of the time you want [`transfer_allow_death`] instead."]
7707 #[doc = ""]
7708 #[doc = "[`transfer_allow_death`]: struct.Pallet.html#method.transfer"]
7709 transfer_keep_alive {
7710 dest: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>,
7711 #[codec(compact)]
7712 value: ::core::primitive::u128,
7713 },
7714 #[codec(index = 4)]
7715 #[doc = "Transfer the entire transferable balance from the caller account."]
7716 #[doc = ""]
7717 #[doc = "NOTE: This function only attempts to transfer _transferable_ balances. This means that"]
7718 #[doc = "any locked, reserved, or existential deposits (when `keep_alive` is `true`), will not be"]
7719 #[doc = "transferred by this function. To ensure that this function results in a killed account,"]
7720 #[doc = "you might need to prepare the account by removing any reference counters, storage"]
7721 #[doc = "deposits, etc..."]
7722 #[doc = ""]
7723 #[doc = "The dispatch origin of this call must be Signed."]
7724 #[doc = ""]
7725 #[doc = "- `dest`: The recipient of the transfer."]
7726 #[doc = "- `keep_alive`: A boolean to determine if the `transfer_all` operation should send all"]
7727 #[doc = " of the funds the account has, causing the sender account to be killed (false), or"]
7728 #[doc = " transfer everything except at least the existential deposit, which will guarantee to"]
7729 #[doc = " keep the sender account alive (true)."]
7730 transfer_all {
7731 dest: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>,
7732 keep_alive: ::core::primitive::bool,
7733 },
7734 #[codec(index = 5)]
7735 #[doc = "Unreserve some balance from a user by force."]
7736 #[doc = ""]
7737 #[doc = "Can only be called by ROOT."]
7738 force_unreserve {
7739 who: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>,
7740 amount: ::core::primitive::u128,
7741 },
7742 #[codec(index = 6)]
7743 #[doc = "Upgrade a specified account."]
7744 #[doc = ""]
7745 #[doc = "- `origin`: Must be `Signed`."]
7746 #[doc = "- `who`: The account to be upgraded."]
7747 #[doc = ""]
7748 #[doc = "This will waive the transaction fee if at least all but 10% of the accounts needed to"]
7749 #[doc = "be upgraded. (We let some not have to be upgraded just in order to allow for the"]
7750 #[doc = "possibility of churn)."]
7751 upgrade_accounts {
7752 who: ::subxt::alloc::vec::Vec<::subxt::utils::AccountId32>,
7753 },
7754 #[codec(index = 8)]
7755 #[doc = "Set the regular balance of a given account."]
7756 #[doc = ""]
7757 #[doc = "The dispatch origin for this call is `root`."]
7758 force_set_balance {
7759 who: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>,
7760 #[codec(compact)]
7761 new_free: ::core::primitive::u128,
7762 },
7763 #[codec(index = 9)]
7764 #[doc = "Adjust the total issuance in a saturating way."]
7765 #[doc = ""]
7766 #[doc = "Can only be called by root and always needs a positive `delta`."]
7767 #[doc = ""]
7768 #[doc = "# Example"]
7769 force_adjust_total_issuance {
7770 direction: runtime_types::pallet_balances::types::AdjustmentDirection,
7771 #[codec(compact)]
7772 delta: ::core::primitive::u128,
7773 },
7774 #[codec(index = 10)]
7775 #[doc = "Burn the specified liquid free balance from the origin account."]
7776 #[doc = ""]
7777 #[doc = "If the origin's account ends up below the existential deposit as a result"]
7778 #[doc = "of the burn and `keep_alive` is false, the account will be reaped."]
7779 #[doc = ""]
7780 #[doc = "Unlike sending funds to a _burn_ address, which merely makes the funds inaccessible,"]
7781 #[doc = "this `burn` operation will reduce total issuance by the amount _burned_."]
7782 burn {
7783 #[codec(compact)]
7784 value: ::core::primitive::u128,
7785 keep_alive: ::core::primitive::bool,
7786 },
7787 }
7788 #[derive(
7789 :: subxt :: ext :: scale_decode :: DecodeAsType,
7790 :: subxt :: ext :: scale_encode :: EncodeAsType,
7791 Debug,
7792 )]
7793 #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
7794 #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
7795 #[doc = "The `Error` enum of this pallet."]
7796 pub enum Error {
7797 #[codec(index = 0)]
7798 #[doc = "Vesting balance too high to send value."]
7799 VestingBalance,
7800 #[codec(index = 1)]
7801 #[doc = "Account liquidity restrictions prevent withdrawal."]
7802 LiquidityRestrictions,
7803 #[codec(index = 2)]
7804 #[doc = "Balance too low to send value."]
7805 InsufficientBalance,
7806 #[codec(index = 3)]
7807 #[doc = "Value too low to create account due to existential deposit."]
7808 ExistentialDeposit,
7809 #[codec(index = 4)]
7810 #[doc = "Transfer/payment would kill account."]
7811 Expendability,
7812 #[codec(index = 5)]
7813 #[doc = "A vesting schedule already exists for this account."]
7814 ExistingVestingSchedule,
7815 #[codec(index = 6)]
7816 #[doc = "Beneficiary account must pre-exist."]
7817 DeadAccount,
7818 #[codec(index = 7)]
7819 #[doc = "Number of named reserves exceed `MaxReserves`."]
7820 TooManyReserves,
7821 #[codec(index = 8)]
7822 #[doc = "Number of holds exceed `VariantCountOf<T::RuntimeHoldReason>`."]
7823 TooManyHolds,
7824 #[codec(index = 9)]
7825 #[doc = "Number of freezes exceed `MaxFreezes`."]
7826 TooManyFreezes,
7827 #[codec(index = 10)]
7828 #[doc = "The issuance cannot be modified since it is already deactivated."]
7829 IssuanceDeactivated,
7830 #[codec(index = 11)]
7831 #[doc = "The delta cannot be zero."]
7832 DeltaZero,
7833 }
7834 #[derive(
7835 :: subxt :: ext :: scale_decode :: DecodeAsType,
7836 :: subxt :: ext :: scale_encode :: EncodeAsType,
7837 Debug,
7838 )]
7839 #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
7840 #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
7841 #[doc = "The `Event` enum of this pallet"]
7842 pub enum Event {
7843 #[codec(index = 0)]
7844 #[doc = "An account was created with some free balance."]
7845 Endowed {
7846 account: ::subxt::utils::AccountId32,
7847 free_balance: ::core::primitive::u128,
7848 },
7849 #[codec(index = 1)]
7850 #[doc = "An account was removed whose balance was non-zero but below `ExistentialDeposit`,"]
7851 #[doc = "resulting in an outright loss."]
7852 DustLost {
7853 account: ::subxt::utils::AccountId32,
7854 amount: ::core::primitive::u128,
7855 },
7856 #[codec(index = 2)]
7857 #[doc = "Transfer succeeded."]
7858 Transfer {
7859 from: ::subxt::utils::AccountId32,
7860 to: ::subxt::utils::AccountId32,
7861 amount: ::core::primitive::u128,
7862 },
7863 #[codec(index = 3)]
7864 #[doc = "A balance was set by root."]
7865 BalanceSet {
7866 who: ::subxt::utils::AccountId32,
7867 free: ::core::primitive::u128,
7868 },
7869 #[codec(index = 4)]
7870 #[doc = "Some balance was reserved (moved from free to reserved)."]
7871 Reserved {
7872 who: ::subxt::utils::AccountId32,
7873 amount: ::core::primitive::u128,
7874 },
7875 #[codec(index = 5)]
7876 #[doc = "Some balance was unreserved (moved from reserved to free)."]
7877 Unreserved {
7878 who: ::subxt::utils::AccountId32,
7879 amount: ::core::primitive::u128,
7880 },
7881 #[codec(index = 6)]
7882 #[doc = "Some balance was moved from the reserve of the first account to the second account."]
7883 #[doc = "Final argument indicates the destination balance type."]
7884 ReserveRepatriated {
7885 from: ::subxt::utils::AccountId32,
7886 to: ::subxt::utils::AccountId32,
7887 amount: ::core::primitive::u128,
7888 destination_status:
7889 runtime_types::frame_support::traits::tokens::misc::BalanceStatus,
7890 },
7891 #[codec(index = 7)]
7892 #[doc = "Some amount was deposited (e.g. for transaction fees)."]
7893 Deposit {
7894 who: ::subxt::utils::AccountId32,
7895 amount: ::core::primitive::u128,
7896 },
7897 #[codec(index = 8)]
7898 #[doc = "Some amount was withdrawn from the account (e.g. for transaction fees)."]
7899 Withdraw {
7900 who: ::subxt::utils::AccountId32,
7901 amount: ::core::primitive::u128,
7902 },
7903 #[codec(index = 9)]
7904 #[doc = "Some amount was removed from the account (e.g. for misbehavior)."]
7905 Slashed {
7906 who: ::subxt::utils::AccountId32,
7907 amount: ::core::primitive::u128,
7908 },
7909 #[codec(index = 10)]
7910 #[doc = "Some amount was minted into an account."]
7911 Minted {
7912 who: ::subxt::utils::AccountId32,
7913 amount: ::core::primitive::u128,
7914 },
7915 #[codec(index = 11)]
7916 #[doc = "Some credit was balanced and added to the `TotalIssuance`."]
7917 MintedCredit { amount: ::core::primitive::u128 },
7918 #[codec(index = 12)]
7919 #[doc = "Some amount was burned from an account."]
7920 Burned {
7921 who: ::subxt::utils::AccountId32,
7922 amount: ::core::primitive::u128,
7923 },
7924 #[codec(index = 13)]
7925 #[doc = "Some debt has been dropped from the Total Issuance."]
7926 BurnedDebt { amount: ::core::primitive::u128 },
7927 #[codec(index = 14)]
7928 #[doc = "Some amount was suspended from an account (it can be restored later)."]
7929 Suspended {
7930 who: ::subxt::utils::AccountId32,
7931 amount: ::core::primitive::u128,
7932 },
7933 #[codec(index = 15)]
7934 #[doc = "Some amount was restored into an account."]
7935 Restored {
7936 who: ::subxt::utils::AccountId32,
7937 amount: ::core::primitive::u128,
7938 },
7939 #[codec(index = 16)]
7940 #[doc = "An account was upgraded."]
7941 Upgraded { who: ::subxt::utils::AccountId32 },
7942 #[codec(index = 17)]
7943 #[doc = "Total issuance was increased by `amount`, creating a credit to be balanced."]
7944 Issued { amount: ::core::primitive::u128 },
7945 #[codec(index = 18)]
7946 #[doc = "Total issuance was decreased by `amount`, creating a debt to be balanced."]
7947 Rescinded { amount: ::core::primitive::u128 },
7948 #[codec(index = 19)]
7949 #[doc = "Some balance was locked."]
7950 Locked {
7951 who: ::subxt::utils::AccountId32,
7952 amount: ::core::primitive::u128,
7953 },
7954 #[codec(index = 20)]
7955 #[doc = "Some balance was unlocked."]
7956 Unlocked {
7957 who: ::subxt::utils::AccountId32,
7958 amount: ::core::primitive::u128,
7959 },
7960 #[codec(index = 21)]
7961 #[doc = "Some balance was frozen."]
7962 Frozen {
7963 who: ::subxt::utils::AccountId32,
7964 amount: ::core::primitive::u128,
7965 },
7966 #[codec(index = 22)]
7967 #[doc = "Some balance was thawed."]
7968 Thawed {
7969 who: ::subxt::utils::AccountId32,
7970 amount: ::core::primitive::u128,
7971 },
7972 #[codec(index = 23)]
7973 #[doc = "The `TotalIssuance` was forcefully changed."]
7974 TotalIssuanceForced {
7975 old: ::core::primitive::u128,
7976 new: ::core::primitive::u128,
7977 },
7978 #[codec(index = 24)]
7979 #[doc = "Some balance was placed on hold."]
7980 Held {
7981 reason: runtime_types::acuity_runtime::RuntimeHoldReason,
7982 who: ::subxt::utils::AccountId32,
7983 amount: ::core::primitive::u128,
7984 },
7985 #[codec(index = 25)]
7986 #[doc = "Held balance was burned from an account."]
7987 BurnedHeld {
7988 reason: runtime_types::acuity_runtime::RuntimeHoldReason,
7989 who: ::subxt::utils::AccountId32,
7990 amount: ::core::primitive::u128,
7991 },
7992 #[codec(index = 26)]
7993 #[doc = "A transfer of `amount` on hold from `source` to `dest` was initiated."]
7994 TransferOnHold {
7995 reason: runtime_types::acuity_runtime::RuntimeHoldReason,
7996 source: ::subxt::utils::AccountId32,
7997 dest: ::subxt::utils::AccountId32,
7998 amount: ::core::primitive::u128,
7999 },
8000 #[codec(index = 27)]
8001 #[doc = "The `transferred` balance is placed on hold at the `dest` account."]
8002 TransferAndHold {
8003 reason: runtime_types::acuity_runtime::RuntimeHoldReason,
8004 source: ::subxt::utils::AccountId32,
8005 dest: ::subxt::utils::AccountId32,
8006 transferred: ::core::primitive::u128,
8007 },
8008 #[codec(index = 28)]
8009 #[doc = "Some balance was released from hold."]
8010 Released {
8011 reason: runtime_types::acuity_runtime::RuntimeHoldReason,
8012 who: ::subxt::utils::AccountId32,
8013 amount: ::core::primitive::u128,
8014 },
8015 #[codec(index = 29)]
8016 #[doc = "An unexpected/defensive event was triggered."]
8017 Unexpected(runtime_types::pallet_balances::pallet::UnexpectedKind),
8018 }
8019 #[derive(
8020 :: subxt :: ext :: scale_decode :: DecodeAsType,
8021 :: subxt :: ext :: scale_encode :: EncodeAsType,
8022 Debug,
8023 )]
8024 #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
8025 #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
8026 pub enum UnexpectedKind {
8027 #[codec(index = 0)]
8028 BalanceUpdated,
8029 #[codec(index = 1)]
8030 FailedToMutateAccount,
8031 }
8032 }
8033 pub mod types {
8034 use super::runtime_types;
8035 #[derive(
8036 :: subxt :: ext :: scale_decode :: DecodeAsType,
8037 :: subxt :: ext :: scale_encode :: EncodeAsType,
8038 Debug,
8039 )]
8040 #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
8041 #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
8042 pub struct AccountData<_0> {
8043 pub free: _0,
8044 pub reserved: _0,
8045 pub frozen: _0,
8046 pub flags: runtime_types::pallet_balances::types::ExtraFlags,
8047 }
8048 #[derive(
8049 :: subxt :: ext :: scale_decode :: DecodeAsType,
8050 :: subxt :: ext :: scale_encode :: EncodeAsType,
8051 Debug,
8052 )]
8053 #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
8054 #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
8055 pub enum AdjustmentDirection {
8056 #[codec(index = 0)]
8057 Increase,
8058 #[codec(index = 1)]
8059 Decrease,
8060 }
8061 #[derive(
8062 :: subxt :: ext :: scale_decode :: DecodeAsType,
8063 :: subxt :: ext :: scale_encode :: EncodeAsType,
8064 Debug,
8065 )]
8066 #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
8067 #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
8068 pub struct BalanceLock<_0> {
8069 pub id: [::core::primitive::u8; 8usize],
8070 pub amount: _0,
8071 pub reasons: runtime_types::pallet_balances::types::Reasons,
8072 }
8073 #[derive(
8074 :: subxt :: ext :: scale_decode :: DecodeAsType,
8075 :: subxt :: ext :: scale_encode :: EncodeAsType,
8076 Debug,
8077 )]
8078 #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
8079 #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
8080 pub struct ExtraFlags(pub ::core::primitive::u128);
8081 #[derive(
8082 :: subxt :: ext :: scale_decode :: DecodeAsType,
8083 :: subxt :: ext :: scale_encode :: EncodeAsType,
8084 Debug,
8085 )]
8086 #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
8087 #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
8088 pub enum Reasons {
8089 #[codec(index = 0)]
8090 Fee,
8091 #[codec(index = 1)]
8092 Misc,
8093 #[codec(index = 2)]
8094 All,
8095 }
8096 #[derive(
8097 :: subxt :: ext :: scale_decode :: DecodeAsType,
8098 :: subxt :: ext :: scale_encode :: EncodeAsType,
8099 Debug,
8100 )]
8101 #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
8102 #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
8103 pub struct ReserveData<_0, _1> {
8104 pub id: _0,
8105 pub amount: _1,
8106 }
8107 }
8108 }
8109 pub mod pallet_content {
8110 use super::runtime_types;
8111 pub mod pallet {
8112 use super::runtime_types;
8113 #[derive(
8114 :: subxt :: ext :: scale_decode :: DecodeAsType,
8115 :: subxt :: ext :: scale_encode :: EncodeAsType,
8116 Debug,
8117 )]
8118 #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
8119 #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
8120 #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."]
8121 pub enum Call {
8122 #[codec(index = 0)]
8123 #[doc = "Publishes a new item and its initial revision."]
8124 #[doc = ""]
8125 #[doc = "The item id is derived from the signer, the supplied [`Nonce`], and"]
8126 #[doc = "[`Config::ItemIdNamespace`]. The call persists only ownership,"]
8127 #[doc = "revision, and flag metadata; graph edges and the payload reference are"]
8128 #[doc = "emitted in events for off-chain indexing."]
8129 publish_item {
8130 nonce: runtime_types::pallet_content::Nonce,
8131 parents: runtime_types::bounded_collections::bounded_vec::BoundedVec<
8132 runtime_types::pallet_content::pallet::ItemId,
8133 >,
8134 flags: ::core::primitive::u8,
8135 links: runtime_types::bounded_collections::bounded_vec::BoundedVec<
8136 runtime_types::pallet_content::pallet::ItemId,
8137 >,
8138 mentions: runtime_types::bounded_collections::bounded_vec::BoundedVec<
8139 ::subxt::utils::AccountId32,
8140 >,
8141 ipfs_hash: runtime_types::pallet_content::pallet::IpfsHash,
8142 },
8143 #[codec(index = 1)]
8144 #[doc = "Publishes a new revision for an existing item."]
8145 #[doc = ""]
8146 #[doc = "Only the current item owner can publish revisions, and only while the"]
8147 #[doc = "item is marked [`REVISIONABLE`] and not [`RETRACTED`]."]
8148 publish_revision {
8149 item_id: runtime_types::pallet_content::pallet::ItemId,
8150 links: runtime_types::bounded_collections::bounded_vec::BoundedVec<
8151 runtime_types::pallet_content::pallet::ItemId,
8152 >,
8153 mentions: runtime_types::bounded_collections::bounded_vec::BoundedVec<
8154 ::subxt::utils::AccountId32,
8155 >,
8156 ipfs_hash: runtime_types::pallet_content::pallet::IpfsHash,
8157 },
8158 #[codec(index = 2)]
8159 #[doc = "Marks an item as retracted."]
8160 #[doc = ""]
8161 #[doc = "Only the owner can retract, and only while the item still has the"]
8162 #[doc = "[`RETRACTABLE`] permission bit set."]
8163 retract_item {
8164 item_id: runtime_types::pallet_content::pallet::ItemId,
8165 },
8166 #[codec(index = 3)]
8167 #[doc = "Permanently disables future revisions for an item."]
8168 set_not_revisionable {
8169 item_id: runtime_types::pallet_content::pallet::ItemId,
8170 },
8171 #[codec(index = 4)]
8172 #[doc = "Permanently disables future retraction for an item."]
8173 set_not_retractable {
8174 item_id: runtime_types::pallet_content::pallet::ItemId,
8175 },
8176 }
8177 #[derive(
8178 :: subxt :: ext :: scale_decode :: DecodeAsType,
8179 :: subxt :: ext :: scale_encode :: EncodeAsType,
8180 Debug,
8181 )]
8182 #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
8183 #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
8184 #[doc = "Errors returned by the content pallet."]
8185 pub enum Error {
8186 #[codec(index = 0)]
8187 #[doc = "The item already exists."]
8188 ItemAlreadyExists,
8189 #[codec(index = 1)]
8190 #[doc = "The item could not be found."]
8191 ItemNotFound,
8192 #[codec(index = 2)]
8193 #[doc = "The item has been retracted."]
8194 ItemRetracted,
8195 #[codec(index = 3)]
8196 #[doc = "The item is not revisionable."]
8197 ItemNotRevisionable,
8198 #[codec(index = 4)]
8199 #[doc = "The item is not retractable."]
8200 ItemNotRetractable,
8201 #[codec(index = 5)]
8202 #[doc = "Wrong account."]
8203 WrongAccount,
8204 #[codec(index = 6)]
8205 #[doc = "Flags contain unsupported bits."]
8206 InvalidFlags,
8207 #[codec(index = 7)]
8208 #[doc = "Revision id overflowed."]
8209 RevisionIdOverflow,
8210 }
8211 #[derive(
8212 :: subxt :: ext :: scale_decode :: DecodeAsType,
8213 :: subxt :: ext :: scale_encode :: EncodeAsType,
8214 Debug,
8215 )]
8216 #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
8217 #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
8218 #[doc = "The `Event` enum of this pallet"]
8219 pub enum Event {
8220 #[codec(index = 0)]
8221 #[doc = "A new item was created."]
8222 PublishItem {
8223 item_id: runtime_types::pallet_content::pallet::ItemId,
8224 owner: ::subxt::utils::AccountId32,
8225 parents: runtime_types::bounded_collections::bounded_vec::BoundedVec<
8226 runtime_types::pallet_content::pallet::ItemId,
8227 >,
8228 flags: ::core::primitive::u8,
8229 },
8230 #[codec(index = 1)]
8231 #[doc = "A new revision was published for an item."]
8232 PublishRevision {
8233 item_id: runtime_types::pallet_content::pallet::ItemId,
8234 owner: ::subxt::utils::AccountId32,
8235 revision_id: ::core::primitive::u32,
8236 links: runtime_types::bounded_collections::bounded_vec::BoundedVec<
8237 runtime_types::pallet_content::pallet::ItemId,
8238 >,
8239 mentions: runtime_types::bounded_collections::bounded_vec::BoundedVec<
8240 ::subxt::utils::AccountId32,
8241 >,
8242 ipfs_hash: runtime_types::pallet_content::pallet::IpfsHash,
8243 },
8244 #[codec(index = 2)]
8245 #[doc = "An item was marked as retracted."]
8246 RetractItem {
8247 item_id: runtime_types::pallet_content::pallet::ItemId,
8248 owner: ::subxt::utils::AccountId32,
8249 },
8250 #[codec(index = 3)]
8251 #[doc = "Revision publishing was permanently disabled for an item."]
8252 SetNotRevsionable {
8253 item_id: runtime_types::pallet_content::pallet::ItemId,
8254 owner: ::subxt::utils::AccountId32,
8255 },
8256 #[codec(index = 4)]
8257 #[doc = "Retraction was permanently disabled for an item."]
8258 SetNotRetractable {
8259 item_id: runtime_types::pallet_content::pallet::ItemId,
8260 owner: ::subxt::utils::AccountId32,
8261 },
8262 }
8263 #[derive(
8264 :: subxt :: ext :: scale_decode :: DecodeAsType,
8265 :: subxt :: ext :: scale_encode :: EncodeAsType,
8266 Debug,
8267 )]
8268 #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
8269 #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
8270 pub struct IpfsHash(pub [::core::primitive::u8; 32usize]);
8271 #[derive(
8272 :: subxt :: ext :: scale_decode :: DecodeAsType,
8273 :: subxt :: ext :: scale_encode :: EncodeAsType,
8274 Debug,
8275 )]
8276 #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
8277 #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
8278 pub struct Item<_0> {
8279 pub owner: _0,
8280 pub revision_id: ::core::primitive::u32,
8281 pub flags: ::core::primitive::u8,
8282 }
8283 #[derive(
8284 :: subxt :: ext :: scale_decode :: DecodeAsType,
8285 :: subxt :: ext :: scale_encode :: EncodeAsType,
8286 Debug,
8287 )]
8288 #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
8289 #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
8290 pub struct ItemId(pub [::core::primitive::u8; 32usize]);
8291 }
8292 #[derive(
8293 :: subxt :: ext :: scale_decode :: DecodeAsType,
8294 :: subxt :: ext :: scale_encode :: EncodeAsType,
8295 Debug,
8296 )]
8297 #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
8298 #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
8299 pub struct Nonce(pub [::core::primitive::u8; 32usize]);
8300 }
8301 pub mod pallet_content_reactions {
8302 use super::runtime_types;
8303 pub mod pallet {
8304 use super::runtime_types;
8305 #[derive(
8306 :: subxt :: ext :: scale_decode :: DecodeAsType,
8307 :: subxt :: ext :: scale_encode :: EncodeAsType,
8308 Debug,
8309 )]
8310 #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
8311 #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
8312 #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."]
8313 pub enum Call {
8314 #[codec(index = 0)]
8315 #[doc = "Sets the caller's full reaction set for a specific item revision,"]
8316 #[doc = "replacing any prior reactions."]
8317 #[doc = ""]
8318 #[doc = "The entire reaction set is emitted in a single `SetReactions` event."]
8319 #[doc = "Duplicates within the provided set are rejected."]
8320 set_reactions {
8321 item_id: runtime_types::pallet_content::pallet::ItemId,
8322 revision_id: ::core::primitive::u32,
8323 reactions: runtime_types::bounded_collections::bounded_vec::BoundedVec<
8324 runtime_types::pallet_content_reactions::pallet::Emoji,
8325 >,
8326 },
8327 }
8328 #[derive(
8329 :: subxt :: ext :: scale_decode :: DecodeAsType,
8330 :: subxt :: ext :: scale_encode :: EncodeAsType,
8331 Debug,
8332 )]
8333 #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
8334 #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
8335 pub struct Emoji(pub ::core::primitive::u32);
8336 #[derive(
8337 :: subxt :: ext :: scale_decode :: DecodeAsType,
8338 :: subxt :: ext :: scale_encode :: EncodeAsType,
8339 Debug,
8340 )]
8341 #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
8342 #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
8343 #[doc = "Errors returned by the content-reactions pallet."]
8344 pub enum Error {
8345 #[codec(index = 0)]
8346 #[doc = "The referenced content item could not be found."]
8347 ItemNotFound,
8348 #[codec(index = 1)]
8349 #[doc = "The referenced content item has been retracted."]
8350 ItemRetracted,
8351 #[codec(index = 2)]
8352 #[doc = "The referenced revision could not be found for the item."]
8353 RevisionNotFound,
8354 #[codec(index = 3)]
8355 #[doc = "The provided emoji value is not a valid non-zero Unicode scalar value."]
8356 InvalidEmoji,
8357 #[codec(index = 4)]
8358 #[doc = "The provided reaction set contains duplicate emojis."]
8359 DuplicateEmoji,
8360 }
8361 #[derive(
8362 :: subxt :: ext :: scale_decode :: DecodeAsType,
8363 :: subxt :: ext :: scale_encode :: EncodeAsType,
8364 Debug,
8365 )]
8366 #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
8367 #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
8368 #[doc = "The `Event` enum of this pallet"]
8369 pub enum Event {
8370 #[codec(index = 0)]
8371 #[doc = "The caller's reaction set for a specific item revision was set."]
8372 SetReactions {
8373 item_id: runtime_types::pallet_content::pallet::ItemId,
8374 revision_id: ::core::primitive::u32,
8375 item_owner: ::subxt::utils::AccountId32,
8376 reactor: ::subxt::utils::AccountId32,
8377 reactions: runtime_types::bounded_collections::bounded_vec::BoundedVec<
8378 runtime_types::pallet_content_reactions::pallet::Emoji,
8379 >,
8380 },
8381 }
8382 }
8383 }
8384 pub mod pallet_sudo {
8385 use super::runtime_types;
8386 pub mod pallet {
8387 use super::runtime_types;
8388 #[derive(
8389 :: subxt :: ext :: scale_decode :: DecodeAsType,
8390 :: subxt :: ext :: scale_encode :: EncodeAsType,
8391 Debug,
8392 )]
8393 #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
8394 #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
8395 #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."]
8396 pub enum Call {
8397 #[codec(index = 0)]
8398 #[doc = "Authenticates the sudo key and dispatches a function call with `Root` origin."]
8399 sudo {
8400 call:
8401 ::subxt::alloc::boxed::Box<runtime_types::acuity_runtime::RuntimeCall>,
8402 },
8403 #[codec(index = 1)]
8404 #[doc = "Authenticates the sudo key and dispatches a function call with `Root` origin."]
8405 #[doc = "This function does not check the weight of the call, and instead allows the"]
8406 #[doc = "Sudo user to specify the weight of the call."]
8407 #[doc = ""]
8408 #[doc = "The dispatch origin for this call must be _Signed_."]
8409 sudo_unchecked_weight {
8410 call:
8411 ::subxt::alloc::boxed::Box<runtime_types::acuity_runtime::RuntimeCall>,
8412 weight: runtime_types::sp_weights::weight_v2::Weight,
8413 },
8414 #[codec(index = 2)]
8415 #[doc = "Authenticates the current sudo key and sets the given `AccountId` (`new`) as the new sudo"]
8416 #[doc = "key."]
8417 set_key {
8418 new: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>,
8419 },
8420 #[codec(index = 3)]
8421 #[doc = "Authenticates the sudo key and dispatches a function call with `Signed` origin from"]
8422 #[doc = "a given account."]
8423 #[doc = ""]
8424 #[doc = "The dispatch origin for this call must be _Signed_."]
8425 sudo_as {
8426 who: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>,
8427 call:
8428 ::subxt::alloc::boxed::Box<runtime_types::acuity_runtime::RuntimeCall>,
8429 },
8430 #[codec(index = 4)]
8431 #[doc = "Permanently removes the sudo key."]
8432 #[doc = ""]
8433 #[doc = "**This cannot be un-done.**"]
8434 remove_key,
8435 }
8436 #[derive(
8437 :: subxt :: ext :: scale_decode :: DecodeAsType,
8438 :: subxt :: ext :: scale_encode :: EncodeAsType,
8439 Debug,
8440 )]
8441 #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
8442 #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
8443 #[doc = "Error for the Sudo pallet."]
8444 pub enum Error {
8445 #[codec(index = 0)]
8446 #[doc = "Sender must be the Sudo account."]
8447 RequireSudo,
8448 }
8449 #[derive(
8450 :: subxt :: ext :: scale_decode :: DecodeAsType,
8451 :: subxt :: ext :: scale_encode :: EncodeAsType,
8452 Debug,
8453 )]
8454 #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
8455 #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
8456 #[doc = "The `Event` enum of this pallet"]
8457 pub enum Event {
8458 #[codec(index = 0)]
8459 #[doc = "A sudo call just took place."]
8460 Sudid {
8461 sudo_result:
8462 ::core::result::Result<(), runtime_types::sp_runtime::DispatchError>,
8463 },
8464 #[codec(index = 1)]
8465 #[doc = "The sudo key has been updated."]
8466 KeyChanged {
8467 old: ::core::option::Option<::subxt::utils::AccountId32>,
8468 new: ::subxt::utils::AccountId32,
8469 },
8470 #[codec(index = 2)]
8471 #[doc = "The key was permanently removed."]
8472 KeyRemoved,
8473 #[codec(index = 3)]
8474 #[doc = "A [sudo_as](Pallet::sudo_as) call just took place."]
8475 SudoAsDone {
8476 sudo_result:
8477 ::core::result::Result<(), runtime_types::sp_runtime::DispatchError>,
8478 },
8479 }
8480 }
8481 }
8482 pub mod pallet_timestamp {
8483 use super::runtime_types;
8484 pub mod pallet {
8485 use super::runtime_types;
8486 #[derive(
8487 :: subxt :: ext :: scale_decode :: DecodeAsType,
8488 :: subxt :: ext :: scale_encode :: EncodeAsType,
8489 Debug,
8490 )]
8491 #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
8492 #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
8493 #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."]
8494 pub enum Call {
8495 #[codec(index = 0)]
8496 #[doc = "Set the current time."]
8497 #[doc = ""]
8498 #[doc = "This call should be invoked exactly once per block. It will panic at the finalization"]
8499 #[doc = "phase, if this call hasn't been invoked by that time."]
8500 #[doc = ""]
8501 #[doc = "The timestamp should be greater than the previous one by the amount specified by"]
8502 #[doc = "[`Config::MinimumPeriod`]."]
8503 #[doc = ""]
8504 #[doc = "The dispatch origin for this call must be _None_."]
8505 #[doc = ""]
8506 #[doc = "This dispatch class is _Mandatory_ to ensure it gets executed in the block. Be aware"]
8507 #[doc = "that changing the complexity of this call could result exhausting the resources in a"]
8508 #[doc = "block to execute any other calls."]
8509 #[doc = ""]
8510 #[doc = "## Complexity"]
8511 #[doc = "- `O(1)` (Note that implementations of `OnTimestampSet` must also be `O(1)`)"]
8512 #[doc = "- 1 storage read and 1 storage mutation (codec `O(1)` because of `DidUpdate::take` in"]
8513 #[doc = " `on_finalize`)"]
8514 #[doc = "- 1 event handler `on_timestamp_set`. Must be `O(1)`."]
8515 set {
8516 #[codec(compact)]
8517 now: ::core::primitive::u64,
8518 },
8519 }
8520 }
8521 }
8522 pub mod pallet_transaction_payment {
8523 use super::runtime_types;
8524 pub mod pallet {
8525 use super::runtime_types;
8526 #[derive(
8527 :: subxt :: ext :: scale_decode :: DecodeAsType,
8528 :: subxt :: ext :: scale_encode :: EncodeAsType,
8529 Debug,
8530 )]
8531 #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
8532 #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
8533 #[doc = "The `Event` enum of this pallet"]
8534 pub enum Event {
8535 #[codec(index = 0)]
8536 #[doc = "A transaction fee `actual_fee`, of which `tip` was added to the minimum inclusion fee,"]
8537 #[doc = "has been paid by `who`."]
8538 TransactionFeePaid {
8539 who: ::subxt::utils::AccountId32,
8540 actual_fee: ::core::primitive::u128,
8541 tip: ::core::primitive::u128,
8542 },
8543 }
8544 }
8545 pub mod types {
8546 use super::runtime_types;
8547 #[derive(
8548 :: subxt :: ext :: scale_decode :: DecodeAsType,
8549 :: subxt :: ext :: scale_encode :: EncodeAsType,
8550 Debug,
8551 )]
8552 #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
8553 #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
8554 pub struct FeeDetails<_0> {
8555 pub inclusion_fee: ::core::option::Option<
8556 runtime_types::pallet_transaction_payment::types::InclusionFee<_0>,
8557 >,
8558 pub tip: _0,
8559 }
8560 #[derive(
8561 :: subxt :: ext :: scale_decode :: DecodeAsType,
8562 :: subxt :: ext :: scale_encode :: EncodeAsType,
8563 Debug,
8564 )]
8565 #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
8566 #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
8567 pub struct InclusionFee<_0> {
8568 pub base_fee: _0,
8569 pub len_fee: _0,
8570 pub adjusted_weight_fee: _0,
8571 }
8572 #[derive(
8573 :: subxt :: ext :: scale_decode :: DecodeAsType,
8574 :: subxt :: ext :: scale_encode :: EncodeAsType,
8575 Debug,
8576 )]
8577 #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
8578 #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
8579 pub struct RuntimeDispatchInfo<_0, _1> {
8580 pub weight: _1,
8581 pub class: runtime_types::frame_support::dispatch::DispatchClass,
8582 pub partial_fee: _0,
8583 }
8584 }
8585 #[derive(
8586 :: subxt :: ext :: scale_decode :: DecodeAsType,
8587 :: subxt :: ext :: scale_encode :: EncodeAsType,
8588 Debug,
8589 )]
8590 #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
8591 #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
8592 pub struct ChargeTransactionPayment(#[codec(compact)] pub ::core::primitive::u128);
8593 #[derive(
8594 :: subxt :: ext :: scale_decode :: DecodeAsType,
8595 :: subxt :: ext :: scale_encode :: EncodeAsType,
8596 Debug,
8597 )]
8598 #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
8599 #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
8600 pub enum Releases {
8601 #[codec(index = 0)]
8602 V1Ancient,
8603 #[codec(index = 1)]
8604 V2,
8605 }
8606 }
8607 pub mod pallet_utility {
8608 use super::runtime_types;
8609 pub mod pallet {
8610 use super::runtime_types;
8611 #[derive(
8612 :: subxt :: ext :: scale_decode :: DecodeAsType,
8613 :: subxt :: ext :: scale_encode :: EncodeAsType,
8614 Debug,
8615 )]
8616 #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
8617 #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
8618 #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."]
8619 pub enum Call {
8620 #[codec(index = 0)]
8621 #[doc = "Send a batch of dispatch calls."]
8622 #[doc = ""]
8623 #[doc = "May be called from any origin except `None`."]
8624 #[doc = ""]
8625 #[doc = "- `calls`: The calls to be dispatched from the same origin. The number of call must not"]
8626 #[doc = " exceed the constant: `batched_calls_limit` (available in constant metadata)."]
8627 #[doc = ""]
8628 #[doc = "If origin is root then the calls are dispatched without checking origin filter. (This"]
8629 #[doc = "includes bypassing `frame_system::Config::BaseCallFilter`)."]
8630 #[doc = ""]
8631 #[doc = "## Complexity"]
8632 #[doc = "- O(C) where C is the number of calls to be batched."]
8633 #[doc = ""]
8634 #[doc = "This will return `Ok` in all circumstances. To determine the success of the batch, an"]
8635 #[doc = "event is deposited. If a call failed and the batch was interrupted, then the"]
8636 #[doc = "`BatchInterrupted` event is deposited, along with the number of successful calls made"]
8637 #[doc = "and the error of the failed call. If all were successful, then the `BatchCompleted`"]
8638 #[doc = "event is deposited."]
8639 batch {
8640 calls: ::subxt::alloc::vec::Vec<runtime_types::acuity_runtime::RuntimeCall>,
8641 },
8642 #[codec(index = 1)]
8643 #[doc = "Send a call through an indexed pseudonym of the sender."]
8644 #[doc = ""]
8645 #[doc = "Filter from origin are passed along. The call will be dispatched with an origin which"]
8646 #[doc = "use the same filter as the origin of this call."]
8647 #[doc = ""]
8648 #[doc = "NOTE: If you need to ensure that any account-based filtering is not honored (i.e."]
8649 #[doc = "because you expect `proxy` to have been used prior in the call stack and you do not want"]
8650 #[doc = "the call restrictions to apply to any sub-accounts), then use `as_multi_threshold_1`"]
8651 #[doc = "in the Multisig pallet instead."]
8652 #[doc = ""]
8653 #[doc = "NOTE: Prior to version *12, this was called `as_limited_sub`."]
8654 #[doc = ""]
8655 #[doc = "The dispatch origin for this call must be _Signed_."]
8656 as_derivative {
8657 index: ::core::primitive::u16,
8658 call:
8659 ::subxt::alloc::boxed::Box<runtime_types::acuity_runtime::RuntimeCall>,
8660 },
8661 #[codec(index = 2)]
8662 #[doc = "Send a batch of dispatch calls and atomically execute them."]
8663 #[doc = "The whole transaction will rollback and fail if any of the calls failed."]
8664 #[doc = ""]
8665 #[doc = "May be called from any origin except `None`."]
8666 #[doc = ""]
8667 #[doc = "- `calls`: The calls to be dispatched from the same origin. The number of call must not"]
8668 #[doc = " exceed the constant: `batched_calls_limit` (available in constant metadata)."]
8669 #[doc = ""]
8670 #[doc = "If origin is root then the calls are dispatched without checking origin filter. (This"]
8671 #[doc = "includes bypassing `frame_system::Config::BaseCallFilter`)."]
8672 #[doc = ""]
8673 #[doc = "## Complexity"]
8674 #[doc = "- O(C) where C is the number of calls to be batched."]
8675 batch_all {
8676 calls: ::subxt::alloc::vec::Vec<runtime_types::acuity_runtime::RuntimeCall>,
8677 },
8678 #[codec(index = 3)]
8679 #[doc = "Dispatches a function call with a provided origin."]
8680 #[doc = ""]
8681 #[doc = "The dispatch origin for this call must be _Root_."]
8682 #[doc = ""]
8683 #[doc = "## Complexity"]
8684 #[doc = "- O(1)."]
8685 dispatch_as {
8686 as_origin:
8687 ::subxt::alloc::boxed::Box<runtime_types::acuity_runtime::OriginCaller>,
8688 call:
8689 ::subxt::alloc::boxed::Box<runtime_types::acuity_runtime::RuntimeCall>,
8690 },
8691 #[codec(index = 4)]
8692 #[doc = "Send a batch of dispatch calls."]
8693 #[doc = "Unlike `batch`, it allows errors and won't interrupt."]
8694 #[doc = ""]
8695 #[doc = "May be called from any origin except `None`."]
8696 #[doc = ""]
8697 #[doc = "- `calls`: The calls to be dispatched from the same origin. The number of call must not"]
8698 #[doc = " exceed the constant: `batched_calls_limit` (available in constant metadata)."]
8699 #[doc = ""]
8700 #[doc = "If origin is root then the calls are dispatch without checking origin filter. (This"]
8701 #[doc = "includes bypassing `frame_system::Config::BaseCallFilter`)."]
8702 #[doc = ""]
8703 #[doc = "## Complexity"]
8704 #[doc = "- O(C) where C is the number of calls to be batched."]
8705 force_batch {
8706 calls: ::subxt::alloc::vec::Vec<runtime_types::acuity_runtime::RuntimeCall>,
8707 },
8708 #[codec(index = 5)]
8709 #[doc = "Dispatch a function call with a specified weight."]
8710 #[doc = ""]
8711 #[doc = "This function does not check the weight of the call, and instead allows the"]
8712 #[doc = "Root origin to specify the weight of the call."]
8713 #[doc = ""]
8714 #[doc = "The dispatch origin for this call must be _Root_."]
8715 with_weight {
8716 call:
8717 ::subxt::alloc::boxed::Box<runtime_types::acuity_runtime::RuntimeCall>,
8718 weight: runtime_types::sp_weights::weight_v2::Weight,
8719 },
8720 #[codec(index = 6)]
8721 #[doc = "Dispatch a fallback call in the event the main call fails to execute."]
8722 #[doc = "May be called from any origin except `None`."]
8723 #[doc = ""]
8724 #[doc = "This function first attempts to dispatch the `main` call."]
8725 #[doc = "If the `main` call fails, the `fallback` is attemted."]
8726 #[doc = "if the fallback is successfully dispatched, the weights of both calls"]
8727 #[doc = "are accumulated and an event containing the main call error is deposited."]
8728 #[doc = ""]
8729 #[doc = "In the event of a fallback failure the whole call fails"]
8730 #[doc = "with the weights returned."]
8731 #[doc = ""]
8732 #[doc = "- `main`: The main call to be dispatched. This is the primary action to execute."]
8733 #[doc = "- `fallback`: The fallback call to be dispatched in case the `main` call fails."]
8734 #[doc = ""]
8735 #[doc = "## Dispatch Logic"]
8736 #[doc = "- If the origin is `root`, both the main and fallback calls are executed without"]
8737 #[doc = " applying any origin filters."]
8738 #[doc = "- If the origin is not `root`, the origin filter is applied to both the `main` and"]
8739 #[doc = " `fallback` calls."]
8740 #[doc = ""]
8741 #[doc = "## Use Case"]
8742 #[doc = "- Some use cases might involve submitting a `batch` type call in either main, fallback"]
8743 #[doc = " or both."]
8744 if_else {
8745 main:
8746 ::subxt::alloc::boxed::Box<runtime_types::acuity_runtime::RuntimeCall>,
8747 fallback:
8748 ::subxt::alloc::boxed::Box<runtime_types::acuity_runtime::RuntimeCall>,
8749 },
8750 #[codec(index = 7)]
8751 #[doc = "Dispatches a function call with a provided origin."]
8752 #[doc = ""]
8753 #[doc = "Almost the same as [`Pallet::dispatch_as`] but forwards any error of the inner call."]
8754 #[doc = ""]
8755 #[doc = "The dispatch origin for this call must be _Root_."]
8756 dispatch_as_fallible {
8757 as_origin:
8758 ::subxt::alloc::boxed::Box<runtime_types::acuity_runtime::OriginCaller>,
8759 call:
8760 ::subxt::alloc::boxed::Box<runtime_types::acuity_runtime::RuntimeCall>,
8761 },
8762 }
8763 #[derive(
8764 :: subxt :: ext :: scale_decode :: DecodeAsType,
8765 :: subxt :: ext :: scale_encode :: EncodeAsType,
8766 Debug,
8767 )]
8768 #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
8769 #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
8770 #[doc = "The `Error` enum of this pallet."]
8771 pub enum Error {
8772 #[codec(index = 0)]
8773 #[doc = "Too many calls batched."]
8774 TooManyCalls,
8775 }
8776 #[derive(
8777 :: subxt :: ext :: scale_decode :: DecodeAsType,
8778 :: subxt :: ext :: scale_encode :: EncodeAsType,
8779 Debug,
8780 )]
8781 #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
8782 #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
8783 #[doc = "The `Event` enum of this pallet"]
8784 pub enum Event {
8785 #[codec(index = 0)]
8786 #[doc = "Batch of dispatches did not complete fully. Index of first failing dispatch given, as"]
8787 #[doc = "well as the error."]
8788 BatchInterrupted {
8789 index: ::core::primitive::u32,
8790 error: runtime_types::sp_runtime::DispatchError,
8791 },
8792 #[codec(index = 1)]
8793 #[doc = "Batch of dispatches completed fully with no error."]
8794 BatchCompleted,
8795 #[codec(index = 2)]
8796 #[doc = "Batch of dispatches completed but has errors."]
8797 BatchCompletedWithErrors,
8798 #[codec(index = 3)]
8799 #[doc = "A single item within a Batch of dispatches has completed with no error."]
8800 ItemCompleted,
8801 #[codec(index = 4)]
8802 #[doc = "A single item within a Batch of dispatches has completed with error."]
8803 ItemFailed {
8804 error: runtime_types::sp_runtime::DispatchError,
8805 },
8806 #[codec(index = 5)]
8807 #[doc = "A call was dispatched."]
8808 DispatchedAs {
8809 result:
8810 ::core::result::Result<(), runtime_types::sp_runtime::DispatchError>,
8811 },
8812 #[codec(index = 6)]
8813 #[doc = "Main call was dispatched."]
8814 IfElseMainSuccess,
8815 #[codec(index = 7)]
8816 #[doc = "The fallback call was dispatched."]
8817 IfElseFallbackCalled {
8818 main_error: runtime_types::sp_runtime::DispatchError,
8819 },
8820 }
8821 }
8822 }
8823 pub mod polkadot_parachain_primitives {
8824 use super::runtime_types;
8825 pub mod primitives {
8826 use super::runtime_types;
8827 #[derive(
8828 :: subxt :: ext :: scale_decode :: DecodeAsType,
8829 :: subxt :: ext :: scale_encode :: EncodeAsType,
8830 Debug,
8831 )]
8832 #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
8833 #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
8834 pub struct Id(pub ::core::primitive::u32);
8835 }
8836 }
8837 pub mod sp_arithmetic {
8838 use super::runtime_types;
8839 pub mod fixed_point {
8840 use super::runtime_types;
8841 #[derive(
8842 :: subxt :: ext :: scale_decode :: DecodeAsType,
8843 :: subxt :: ext :: scale_encode :: EncodeAsType,
8844 Debug,
8845 )]
8846 #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
8847 #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
8848 pub struct FixedU128(pub ::core::primitive::u128);
8849 }
8850 #[derive(
8851 :: subxt :: ext :: scale_decode :: DecodeAsType,
8852 :: subxt :: ext :: scale_encode :: EncodeAsType,
8853 Debug,
8854 )]
8855 #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
8856 #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
8857 pub enum ArithmeticError {
8858 #[codec(index = 0)]
8859 Underflow,
8860 #[codec(index = 1)]
8861 Overflow,
8862 #[codec(index = 2)]
8863 DivisionByZero,
8864 }
8865 }
8866 pub mod sp_consensus_aura {
8867 use super::runtime_types;
8868 pub mod sr25519 {
8869 use super::runtime_types;
8870 pub mod app_sr25519 {
8871 use super::runtime_types;
8872 #[derive(
8873 :: subxt :: ext :: scale_decode :: DecodeAsType,
8874 :: subxt :: ext :: scale_encode :: EncodeAsType,
8875 Debug,
8876 )]
8877 #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
8878 #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
8879 pub struct Public(pub [::core::primitive::u8; 32usize]);
8880 }
8881 }
8882 }
8883 pub mod sp_consensus_slots {
8884 use super::runtime_types;
8885 #[derive(
8886 :: subxt :: ext :: scale_decode :: DecodeAsType,
8887 :: subxt :: ext :: scale_encode :: EncodeAsType,
8888 Debug,
8889 )]
8890 #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
8891 #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
8892 pub struct Slot(pub ::core::primitive::u64);
8893 #[derive(
8894 :: subxt :: ext :: scale_decode :: DecodeAsType,
8895 :: subxt :: ext :: scale_encode :: EncodeAsType,
8896 Debug,
8897 )]
8898 #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
8899 #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
8900 pub struct SlotDuration(pub ::core::primitive::u64);
8901 }
8902 pub mod sp_core {
8903 use super::runtime_types;
8904 pub mod crypto {
8905 use super::runtime_types;
8906 #[derive(
8907 :: subxt :: ext :: scale_decode :: DecodeAsType,
8908 :: subxt :: ext :: scale_encode :: EncodeAsType,
8909 Debug,
8910 )]
8911 #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
8912 #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
8913 pub struct KeyTypeId(pub [::core::primitive::u8; 4usize]);
8914 }
8915 #[derive(
8916 :: subxt :: ext :: scale_decode :: DecodeAsType,
8917 :: subxt :: ext :: scale_encode :: EncodeAsType,
8918 Debug,
8919 )]
8920 #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
8921 #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
8922 pub struct OpaqueMetadata(pub ::subxt::alloc::vec::Vec<::core::primitive::u8>);
8923 }
8924 pub mod sp_inherents {
8925 use super::runtime_types;
8926 #[derive(
8927 :: subxt :: ext :: scale_decode :: DecodeAsType,
8928 :: subxt :: ext :: scale_encode :: EncodeAsType,
8929 Debug,
8930 )]
8931 #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
8932 #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
8933 pub struct CheckInherentsResult {
8934 pub okay: ::core::primitive::bool,
8935 pub fatal_error: ::core::primitive::bool,
8936 pub errors: runtime_types::sp_inherents::InherentData,
8937 }
8938 #[derive(
8939 :: subxt :: ext :: scale_decode :: DecodeAsType,
8940 :: subxt :: ext :: scale_encode :: EncodeAsType,
8941 Debug,
8942 )]
8943 #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
8944 #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
8945 pub struct InherentData {
8946 pub data: ::subxt::utils::KeyedVec<
8947 [::core::primitive::u8; 8usize],
8948 ::subxt::alloc::vec::Vec<::core::primitive::u8>,
8949 >,
8950 }
8951 }
8952 pub mod sp_runtime {
8953 use super::runtime_types;
8954 pub mod generic {
8955 use super::runtime_types;
8956 pub mod block {
8957 use super::runtime_types;
8958 #[derive(
8959 :: subxt :: ext :: scale_decode :: DecodeAsType,
8960 :: subxt :: ext :: scale_encode :: EncodeAsType,
8961 Debug,
8962 )]
8963 #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
8964 #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
8965 pub struct Block<_0, _1> {
8966 pub header: _0,
8967 pub extrinsics: ::subxt::alloc::vec::Vec<_1>,
8968 }
8969 #[derive(
8970 :: subxt :: ext :: scale_decode :: DecodeAsType,
8971 :: subxt :: ext :: scale_encode :: EncodeAsType,
8972 Debug,
8973 )]
8974 #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
8975 #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
8976 pub struct LazyBlock<_0, _1> {
8977 pub header: _0,
8978 pub extrinsics:
8979 ::subxt::alloc::vec::Vec<runtime_types::sp_runtime::OpaqueExtrinsic>,
8980 #[codec(skip)]
8981 pub __ignore: ::core::marker::PhantomData<_1>,
8982 }
8983 }
8984 pub mod digest {
8985 use super::runtime_types;
8986 #[derive(
8987 :: subxt :: ext :: scale_decode :: DecodeAsType,
8988 :: subxt :: ext :: scale_encode :: EncodeAsType,
8989 Debug,
8990 )]
8991 #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
8992 #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
8993 pub struct Digest {
8994 pub logs: ::subxt::alloc::vec::Vec<
8995 runtime_types::sp_runtime::generic::digest::DigestItem,
8996 >,
8997 }
8998 #[derive(
8999 :: subxt :: ext :: scale_decode :: DecodeAsType,
9000 :: subxt :: ext :: scale_encode :: EncodeAsType,
9001 Debug,
9002 )]
9003 #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
9004 #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
9005 pub enum DigestItem {
9006 #[codec(index = 6)]
9007 PreRuntime(
9008 [::core::primitive::u8; 4usize],
9009 ::subxt::alloc::vec::Vec<::core::primitive::u8>,
9010 ),
9011 #[codec(index = 4)]
9012 Consensus(
9013 [::core::primitive::u8; 4usize],
9014 ::subxt::alloc::vec::Vec<::core::primitive::u8>,
9015 ),
9016 #[codec(index = 5)]
9017 Seal(
9018 [::core::primitive::u8; 4usize],
9019 ::subxt::alloc::vec::Vec<::core::primitive::u8>,
9020 ),
9021 #[codec(index = 0)]
9022 Other(::subxt::alloc::vec::Vec<::core::primitive::u8>),
9023 #[codec(index = 8)]
9024 RuntimeEnvironmentUpdated,
9025 }
9026 }
9027 pub mod era {
9028 use super::runtime_types;
9029 #[derive(
9030 :: subxt :: ext :: scale_decode :: DecodeAsType,
9031 :: subxt :: ext :: scale_encode :: EncodeAsType,
9032 Debug,
9033 )]
9034 #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
9035 #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
9036 pub enum Era {
9037 #[codec(index = 0)]
9038 Immortal,
9039 #[codec(index = 1)]
9040 Mortal1(::core::primitive::u8),
9041 #[codec(index = 2)]
9042 Mortal2(::core::primitive::u8),
9043 #[codec(index = 3)]
9044 Mortal3(::core::primitive::u8),
9045 #[codec(index = 4)]
9046 Mortal4(::core::primitive::u8),
9047 #[codec(index = 5)]
9048 Mortal5(::core::primitive::u8),
9049 #[codec(index = 6)]
9050 Mortal6(::core::primitive::u8),
9051 #[codec(index = 7)]
9052 Mortal7(::core::primitive::u8),
9053 #[codec(index = 8)]
9054 Mortal8(::core::primitive::u8),
9055 #[codec(index = 9)]
9056 Mortal9(::core::primitive::u8),
9057 #[codec(index = 10)]
9058 Mortal10(::core::primitive::u8),
9059 #[codec(index = 11)]
9060 Mortal11(::core::primitive::u8),
9061 #[codec(index = 12)]
9062 Mortal12(::core::primitive::u8),
9063 #[codec(index = 13)]
9064 Mortal13(::core::primitive::u8),
9065 #[codec(index = 14)]
9066 Mortal14(::core::primitive::u8),
9067 #[codec(index = 15)]
9068 Mortal15(::core::primitive::u8),
9069 #[codec(index = 16)]
9070 Mortal16(::core::primitive::u8),
9071 #[codec(index = 17)]
9072 Mortal17(::core::primitive::u8),
9073 #[codec(index = 18)]
9074 Mortal18(::core::primitive::u8),
9075 #[codec(index = 19)]
9076 Mortal19(::core::primitive::u8),
9077 #[codec(index = 20)]
9078 Mortal20(::core::primitive::u8),
9079 #[codec(index = 21)]
9080 Mortal21(::core::primitive::u8),
9081 #[codec(index = 22)]
9082 Mortal22(::core::primitive::u8),
9083 #[codec(index = 23)]
9084 Mortal23(::core::primitive::u8),
9085 #[codec(index = 24)]
9086 Mortal24(::core::primitive::u8),
9087 #[codec(index = 25)]
9088 Mortal25(::core::primitive::u8),
9089 #[codec(index = 26)]
9090 Mortal26(::core::primitive::u8),
9091 #[codec(index = 27)]
9092 Mortal27(::core::primitive::u8),
9093 #[codec(index = 28)]
9094 Mortal28(::core::primitive::u8),
9095 #[codec(index = 29)]
9096 Mortal29(::core::primitive::u8),
9097 #[codec(index = 30)]
9098 Mortal30(::core::primitive::u8),
9099 #[codec(index = 31)]
9100 Mortal31(::core::primitive::u8),
9101 #[codec(index = 32)]
9102 Mortal32(::core::primitive::u8),
9103 #[codec(index = 33)]
9104 Mortal33(::core::primitive::u8),
9105 #[codec(index = 34)]
9106 Mortal34(::core::primitive::u8),
9107 #[codec(index = 35)]
9108 Mortal35(::core::primitive::u8),
9109 #[codec(index = 36)]
9110 Mortal36(::core::primitive::u8),
9111 #[codec(index = 37)]
9112 Mortal37(::core::primitive::u8),
9113 #[codec(index = 38)]
9114 Mortal38(::core::primitive::u8),
9115 #[codec(index = 39)]
9116 Mortal39(::core::primitive::u8),
9117 #[codec(index = 40)]
9118 Mortal40(::core::primitive::u8),
9119 #[codec(index = 41)]
9120 Mortal41(::core::primitive::u8),
9121 #[codec(index = 42)]
9122 Mortal42(::core::primitive::u8),
9123 #[codec(index = 43)]
9124 Mortal43(::core::primitive::u8),
9125 #[codec(index = 44)]
9126 Mortal44(::core::primitive::u8),
9127 #[codec(index = 45)]
9128 Mortal45(::core::primitive::u8),
9129 #[codec(index = 46)]
9130 Mortal46(::core::primitive::u8),
9131 #[codec(index = 47)]
9132 Mortal47(::core::primitive::u8),
9133 #[codec(index = 48)]
9134 Mortal48(::core::primitive::u8),
9135 #[codec(index = 49)]
9136 Mortal49(::core::primitive::u8),
9137 #[codec(index = 50)]
9138 Mortal50(::core::primitive::u8),
9139 #[codec(index = 51)]
9140 Mortal51(::core::primitive::u8),
9141 #[codec(index = 52)]
9142 Mortal52(::core::primitive::u8),
9143 #[codec(index = 53)]
9144 Mortal53(::core::primitive::u8),
9145 #[codec(index = 54)]
9146 Mortal54(::core::primitive::u8),
9147 #[codec(index = 55)]
9148 Mortal55(::core::primitive::u8),
9149 #[codec(index = 56)]
9150 Mortal56(::core::primitive::u8),
9151 #[codec(index = 57)]
9152 Mortal57(::core::primitive::u8),
9153 #[codec(index = 58)]
9154 Mortal58(::core::primitive::u8),
9155 #[codec(index = 59)]
9156 Mortal59(::core::primitive::u8),
9157 #[codec(index = 60)]
9158 Mortal60(::core::primitive::u8),
9159 #[codec(index = 61)]
9160 Mortal61(::core::primitive::u8),
9161 #[codec(index = 62)]
9162 Mortal62(::core::primitive::u8),
9163 #[codec(index = 63)]
9164 Mortal63(::core::primitive::u8),
9165 #[codec(index = 64)]
9166 Mortal64(::core::primitive::u8),
9167 #[codec(index = 65)]
9168 Mortal65(::core::primitive::u8),
9169 #[codec(index = 66)]
9170 Mortal66(::core::primitive::u8),
9171 #[codec(index = 67)]
9172 Mortal67(::core::primitive::u8),
9173 #[codec(index = 68)]
9174 Mortal68(::core::primitive::u8),
9175 #[codec(index = 69)]
9176 Mortal69(::core::primitive::u8),
9177 #[codec(index = 70)]
9178 Mortal70(::core::primitive::u8),
9179 #[codec(index = 71)]
9180 Mortal71(::core::primitive::u8),
9181 #[codec(index = 72)]
9182 Mortal72(::core::primitive::u8),
9183 #[codec(index = 73)]
9184 Mortal73(::core::primitive::u8),
9185 #[codec(index = 74)]
9186 Mortal74(::core::primitive::u8),
9187 #[codec(index = 75)]
9188 Mortal75(::core::primitive::u8),
9189 #[codec(index = 76)]
9190 Mortal76(::core::primitive::u8),
9191 #[codec(index = 77)]
9192 Mortal77(::core::primitive::u8),
9193 #[codec(index = 78)]
9194 Mortal78(::core::primitive::u8),
9195 #[codec(index = 79)]
9196 Mortal79(::core::primitive::u8),
9197 #[codec(index = 80)]
9198 Mortal80(::core::primitive::u8),
9199 #[codec(index = 81)]
9200 Mortal81(::core::primitive::u8),
9201 #[codec(index = 82)]
9202 Mortal82(::core::primitive::u8),
9203 #[codec(index = 83)]
9204 Mortal83(::core::primitive::u8),
9205 #[codec(index = 84)]
9206 Mortal84(::core::primitive::u8),
9207 #[codec(index = 85)]
9208 Mortal85(::core::primitive::u8),
9209 #[codec(index = 86)]
9210 Mortal86(::core::primitive::u8),
9211 #[codec(index = 87)]
9212 Mortal87(::core::primitive::u8),
9213 #[codec(index = 88)]
9214 Mortal88(::core::primitive::u8),
9215 #[codec(index = 89)]
9216 Mortal89(::core::primitive::u8),
9217 #[codec(index = 90)]
9218 Mortal90(::core::primitive::u8),
9219 #[codec(index = 91)]
9220 Mortal91(::core::primitive::u8),
9221 #[codec(index = 92)]
9222 Mortal92(::core::primitive::u8),
9223 #[codec(index = 93)]
9224 Mortal93(::core::primitive::u8),
9225 #[codec(index = 94)]
9226 Mortal94(::core::primitive::u8),
9227 #[codec(index = 95)]
9228 Mortal95(::core::primitive::u8),
9229 #[codec(index = 96)]
9230 Mortal96(::core::primitive::u8),
9231 #[codec(index = 97)]
9232 Mortal97(::core::primitive::u8),
9233 #[codec(index = 98)]
9234 Mortal98(::core::primitive::u8),
9235 #[codec(index = 99)]
9236 Mortal99(::core::primitive::u8),
9237 #[codec(index = 100)]
9238 Mortal100(::core::primitive::u8),
9239 #[codec(index = 101)]
9240 Mortal101(::core::primitive::u8),
9241 #[codec(index = 102)]
9242 Mortal102(::core::primitive::u8),
9243 #[codec(index = 103)]
9244 Mortal103(::core::primitive::u8),
9245 #[codec(index = 104)]
9246 Mortal104(::core::primitive::u8),
9247 #[codec(index = 105)]
9248 Mortal105(::core::primitive::u8),
9249 #[codec(index = 106)]
9250 Mortal106(::core::primitive::u8),
9251 #[codec(index = 107)]
9252 Mortal107(::core::primitive::u8),
9253 #[codec(index = 108)]
9254 Mortal108(::core::primitive::u8),
9255 #[codec(index = 109)]
9256 Mortal109(::core::primitive::u8),
9257 #[codec(index = 110)]
9258 Mortal110(::core::primitive::u8),
9259 #[codec(index = 111)]
9260 Mortal111(::core::primitive::u8),
9261 #[codec(index = 112)]
9262 Mortal112(::core::primitive::u8),
9263 #[codec(index = 113)]
9264 Mortal113(::core::primitive::u8),
9265 #[codec(index = 114)]
9266 Mortal114(::core::primitive::u8),
9267 #[codec(index = 115)]
9268 Mortal115(::core::primitive::u8),
9269 #[codec(index = 116)]
9270 Mortal116(::core::primitive::u8),
9271 #[codec(index = 117)]
9272 Mortal117(::core::primitive::u8),
9273 #[codec(index = 118)]
9274 Mortal118(::core::primitive::u8),
9275 #[codec(index = 119)]
9276 Mortal119(::core::primitive::u8),
9277 #[codec(index = 120)]
9278 Mortal120(::core::primitive::u8),
9279 #[codec(index = 121)]
9280 Mortal121(::core::primitive::u8),
9281 #[codec(index = 122)]
9282 Mortal122(::core::primitive::u8),
9283 #[codec(index = 123)]
9284 Mortal123(::core::primitive::u8),
9285 #[codec(index = 124)]
9286 Mortal124(::core::primitive::u8),
9287 #[codec(index = 125)]
9288 Mortal125(::core::primitive::u8),
9289 #[codec(index = 126)]
9290 Mortal126(::core::primitive::u8),
9291 #[codec(index = 127)]
9292 Mortal127(::core::primitive::u8),
9293 #[codec(index = 128)]
9294 Mortal128(::core::primitive::u8),
9295 #[codec(index = 129)]
9296 Mortal129(::core::primitive::u8),
9297 #[codec(index = 130)]
9298 Mortal130(::core::primitive::u8),
9299 #[codec(index = 131)]
9300 Mortal131(::core::primitive::u8),
9301 #[codec(index = 132)]
9302 Mortal132(::core::primitive::u8),
9303 #[codec(index = 133)]
9304 Mortal133(::core::primitive::u8),
9305 #[codec(index = 134)]
9306 Mortal134(::core::primitive::u8),
9307 #[codec(index = 135)]
9308 Mortal135(::core::primitive::u8),
9309 #[codec(index = 136)]
9310 Mortal136(::core::primitive::u8),
9311 #[codec(index = 137)]
9312 Mortal137(::core::primitive::u8),
9313 #[codec(index = 138)]
9314 Mortal138(::core::primitive::u8),
9315 #[codec(index = 139)]
9316 Mortal139(::core::primitive::u8),
9317 #[codec(index = 140)]
9318 Mortal140(::core::primitive::u8),
9319 #[codec(index = 141)]
9320 Mortal141(::core::primitive::u8),
9321 #[codec(index = 142)]
9322 Mortal142(::core::primitive::u8),
9323 #[codec(index = 143)]
9324 Mortal143(::core::primitive::u8),
9325 #[codec(index = 144)]
9326 Mortal144(::core::primitive::u8),
9327 #[codec(index = 145)]
9328 Mortal145(::core::primitive::u8),
9329 #[codec(index = 146)]
9330 Mortal146(::core::primitive::u8),
9331 #[codec(index = 147)]
9332 Mortal147(::core::primitive::u8),
9333 #[codec(index = 148)]
9334 Mortal148(::core::primitive::u8),
9335 #[codec(index = 149)]
9336 Mortal149(::core::primitive::u8),
9337 #[codec(index = 150)]
9338 Mortal150(::core::primitive::u8),
9339 #[codec(index = 151)]
9340 Mortal151(::core::primitive::u8),
9341 #[codec(index = 152)]
9342 Mortal152(::core::primitive::u8),
9343 #[codec(index = 153)]
9344 Mortal153(::core::primitive::u8),
9345 #[codec(index = 154)]
9346 Mortal154(::core::primitive::u8),
9347 #[codec(index = 155)]
9348 Mortal155(::core::primitive::u8),
9349 #[codec(index = 156)]
9350 Mortal156(::core::primitive::u8),
9351 #[codec(index = 157)]
9352 Mortal157(::core::primitive::u8),
9353 #[codec(index = 158)]
9354 Mortal158(::core::primitive::u8),
9355 #[codec(index = 159)]
9356 Mortal159(::core::primitive::u8),
9357 #[codec(index = 160)]
9358 Mortal160(::core::primitive::u8),
9359 #[codec(index = 161)]
9360 Mortal161(::core::primitive::u8),
9361 #[codec(index = 162)]
9362 Mortal162(::core::primitive::u8),
9363 #[codec(index = 163)]
9364 Mortal163(::core::primitive::u8),
9365 #[codec(index = 164)]
9366 Mortal164(::core::primitive::u8),
9367 #[codec(index = 165)]
9368 Mortal165(::core::primitive::u8),
9369 #[codec(index = 166)]
9370 Mortal166(::core::primitive::u8),
9371 #[codec(index = 167)]
9372 Mortal167(::core::primitive::u8),
9373 #[codec(index = 168)]
9374 Mortal168(::core::primitive::u8),
9375 #[codec(index = 169)]
9376 Mortal169(::core::primitive::u8),
9377 #[codec(index = 170)]
9378 Mortal170(::core::primitive::u8),
9379 #[codec(index = 171)]
9380 Mortal171(::core::primitive::u8),
9381 #[codec(index = 172)]
9382 Mortal172(::core::primitive::u8),
9383 #[codec(index = 173)]
9384 Mortal173(::core::primitive::u8),
9385 #[codec(index = 174)]
9386 Mortal174(::core::primitive::u8),
9387 #[codec(index = 175)]
9388 Mortal175(::core::primitive::u8),
9389 #[codec(index = 176)]
9390 Mortal176(::core::primitive::u8),
9391 #[codec(index = 177)]
9392 Mortal177(::core::primitive::u8),
9393 #[codec(index = 178)]
9394 Mortal178(::core::primitive::u8),
9395 #[codec(index = 179)]
9396 Mortal179(::core::primitive::u8),
9397 #[codec(index = 180)]
9398 Mortal180(::core::primitive::u8),
9399 #[codec(index = 181)]
9400 Mortal181(::core::primitive::u8),
9401 #[codec(index = 182)]
9402 Mortal182(::core::primitive::u8),
9403 #[codec(index = 183)]
9404 Mortal183(::core::primitive::u8),
9405 #[codec(index = 184)]
9406 Mortal184(::core::primitive::u8),
9407 #[codec(index = 185)]
9408 Mortal185(::core::primitive::u8),
9409 #[codec(index = 186)]
9410 Mortal186(::core::primitive::u8),
9411 #[codec(index = 187)]
9412 Mortal187(::core::primitive::u8),
9413 #[codec(index = 188)]
9414 Mortal188(::core::primitive::u8),
9415 #[codec(index = 189)]
9416 Mortal189(::core::primitive::u8),
9417 #[codec(index = 190)]
9418 Mortal190(::core::primitive::u8),
9419 #[codec(index = 191)]
9420 Mortal191(::core::primitive::u8),
9421 #[codec(index = 192)]
9422 Mortal192(::core::primitive::u8),
9423 #[codec(index = 193)]
9424 Mortal193(::core::primitive::u8),
9425 #[codec(index = 194)]
9426 Mortal194(::core::primitive::u8),
9427 #[codec(index = 195)]
9428 Mortal195(::core::primitive::u8),
9429 #[codec(index = 196)]
9430 Mortal196(::core::primitive::u8),
9431 #[codec(index = 197)]
9432 Mortal197(::core::primitive::u8),
9433 #[codec(index = 198)]
9434 Mortal198(::core::primitive::u8),
9435 #[codec(index = 199)]
9436 Mortal199(::core::primitive::u8),
9437 #[codec(index = 200)]
9438 Mortal200(::core::primitive::u8),
9439 #[codec(index = 201)]
9440 Mortal201(::core::primitive::u8),
9441 #[codec(index = 202)]
9442 Mortal202(::core::primitive::u8),
9443 #[codec(index = 203)]
9444 Mortal203(::core::primitive::u8),
9445 #[codec(index = 204)]
9446 Mortal204(::core::primitive::u8),
9447 #[codec(index = 205)]
9448 Mortal205(::core::primitive::u8),
9449 #[codec(index = 206)]
9450 Mortal206(::core::primitive::u8),
9451 #[codec(index = 207)]
9452 Mortal207(::core::primitive::u8),
9453 #[codec(index = 208)]
9454 Mortal208(::core::primitive::u8),
9455 #[codec(index = 209)]
9456 Mortal209(::core::primitive::u8),
9457 #[codec(index = 210)]
9458 Mortal210(::core::primitive::u8),
9459 #[codec(index = 211)]
9460 Mortal211(::core::primitive::u8),
9461 #[codec(index = 212)]
9462 Mortal212(::core::primitive::u8),
9463 #[codec(index = 213)]
9464 Mortal213(::core::primitive::u8),
9465 #[codec(index = 214)]
9466 Mortal214(::core::primitive::u8),
9467 #[codec(index = 215)]
9468 Mortal215(::core::primitive::u8),
9469 #[codec(index = 216)]
9470 Mortal216(::core::primitive::u8),
9471 #[codec(index = 217)]
9472 Mortal217(::core::primitive::u8),
9473 #[codec(index = 218)]
9474 Mortal218(::core::primitive::u8),
9475 #[codec(index = 219)]
9476 Mortal219(::core::primitive::u8),
9477 #[codec(index = 220)]
9478 Mortal220(::core::primitive::u8),
9479 #[codec(index = 221)]
9480 Mortal221(::core::primitive::u8),
9481 #[codec(index = 222)]
9482 Mortal222(::core::primitive::u8),
9483 #[codec(index = 223)]
9484 Mortal223(::core::primitive::u8),
9485 #[codec(index = 224)]
9486 Mortal224(::core::primitive::u8),
9487 #[codec(index = 225)]
9488 Mortal225(::core::primitive::u8),
9489 #[codec(index = 226)]
9490 Mortal226(::core::primitive::u8),
9491 #[codec(index = 227)]
9492 Mortal227(::core::primitive::u8),
9493 #[codec(index = 228)]
9494 Mortal228(::core::primitive::u8),
9495 #[codec(index = 229)]
9496 Mortal229(::core::primitive::u8),
9497 #[codec(index = 230)]
9498 Mortal230(::core::primitive::u8),
9499 #[codec(index = 231)]
9500 Mortal231(::core::primitive::u8),
9501 #[codec(index = 232)]
9502 Mortal232(::core::primitive::u8),
9503 #[codec(index = 233)]
9504 Mortal233(::core::primitive::u8),
9505 #[codec(index = 234)]
9506 Mortal234(::core::primitive::u8),
9507 #[codec(index = 235)]
9508 Mortal235(::core::primitive::u8),
9509 #[codec(index = 236)]
9510 Mortal236(::core::primitive::u8),
9511 #[codec(index = 237)]
9512 Mortal237(::core::primitive::u8),
9513 #[codec(index = 238)]
9514 Mortal238(::core::primitive::u8),
9515 #[codec(index = 239)]
9516 Mortal239(::core::primitive::u8),
9517 #[codec(index = 240)]
9518 Mortal240(::core::primitive::u8),
9519 #[codec(index = 241)]
9520 Mortal241(::core::primitive::u8),
9521 #[codec(index = 242)]
9522 Mortal242(::core::primitive::u8),
9523 #[codec(index = 243)]
9524 Mortal243(::core::primitive::u8),
9525 #[codec(index = 244)]
9526 Mortal244(::core::primitive::u8),
9527 #[codec(index = 245)]
9528 Mortal245(::core::primitive::u8),
9529 #[codec(index = 246)]
9530 Mortal246(::core::primitive::u8),
9531 #[codec(index = 247)]
9532 Mortal247(::core::primitive::u8),
9533 #[codec(index = 248)]
9534 Mortal248(::core::primitive::u8),
9535 #[codec(index = 249)]
9536 Mortal249(::core::primitive::u8),
9537 #[codec(index = 250)]
9538 Mortal250(::core::primitive::u8),
9539 #[codec(index = 251)]
9540 Mortal251(::core::primitive::u8),
9541 #[codec(index = 252)]
9542 Mortal252(::core::primitive::u8),
9543 #[codec(index = 253)]
9544 Mortal253(::core::primitive::u8),
9545 #[codec(index = 254)]
9546 Mortal254(::core::primitive::u8),
9547 #[codec(index = 255)]
9548 Mortal255(::core::primitive::u8),
9549 }
9550 }
9551 pub mod header {
9552 use super::runtime_types;
9553 #[derive(
9554 :: subxt :: ext :: scale_decode :: DecodeAsType,
9555 :: subxt :: ext :: scale_encode :: EncodeAsType,
9556 Debug,
9557 )]
9558 #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
9559 #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
9560 pub struct Header<_0> {
9561 pub parent_hash: ::subxt::utils::H256,
9562 #[codec(compact)]
9563 pub number: _0,
9564 pub state_root: ::subxt::utils::H256,
9565 pub extrinsics_root: ::subxt::utils::H256,
9566 pub digest: runtime_types::sp_runtime::generic::digest::Digest,
9567 }
9568 }
9569 }
9570 pub mod proving_trie {
9571 use super::runtime_types;
9572 #[derive(
9573 :: subxt :: ext :: scale_decode :: DecodeAsType,
9574 :: subxt :: ext :: scale_encode :: EncodeAsType,
9575 Debug,
9576 )]
9577 #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
9578 #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
9579 pub enum TrieError {
9580 #[codec(index = 0)]
9581 InvalidStateRoot,
9582 #[codec(index = 1)]
9583 IncompleteDatabase,
9584 #[codec(index = 2)]
9585 ValueAtIncompleteKey,
9586 #[codec(index = 3)]
9587 DecoderError,
9588 #[codec(index = 4)]
9589 InvalidHash,
9590 #[codec(index = 5)]
9591 DuplicateKey,
9592 #[codec(index = 6)]
9593 ExtraneousNode,
9594 #[codec(index = 7)]
9595 ExtraneousValue,
9596 #[codec(index = 8)]
9597 ExtraneousHashReference,
9598 #[codec(index = 9)]
9599 InvalidChildReference,
9600 #[codec(index = 10)]
9601 ValueMismatch,
9602 #[codec(index = 11)]
9603 IncompleteProof,
9604 #[codec(index = 12)]
9605 RootMismatch,
9606 #[codec(index = 13)]
9607 DecodeError,
9608 }
9609 }
9610 pub mod traits {
9611 use super::runtime_types;
9612 #[derive(
9613 :: subxt :: ext :: scale_decode :: DecodeAsType,
9614 :: subxt :: ext :: scale_encode :: EncodeAsType,
9615 Debug,
9616 )]
9617 #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
9618 #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
9619 pub struct BlakeTwo256;
9620 }
9621 pub mod transaction_validity {
9622 use super::runtime_types;
9623 #[derive(
9624 :: subxt :: ext :: scale_decode :: DecodeAsType,
9625 :: subxt :: ext :: scale_encode :: EncodeAsType,
9626 Debug,
9627 )]
9628 #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
9629 #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
9630 pub enum InvalidTransaction {
9631 #[codec(index = 0)]
9632 Call,
9633 #[codec(index = 1)]
9634 Payment,
9635 #[codec(index = 2)]
9636 Future,
9637 #[codec(index = 3)]
9638 Stale,
9639 #[codec(index = 4)]
9640 BadProof,
9641 #[codec(index = 5)]
9642 AncientBirthBlock,
9643 #[codec(index = 6)]
9644 ExhaustsResources,
9645 #[codec(index = 7)]
9646 Custom(::core::primitive::u8),
9647 #[codec(index = 8)]
9648 BadMandatory,
9649 #[codec(index = 9)]
9650 MandatoryValidation,
9651 #[codec(index = 10)]
9652 BadSigner,
9653 #[codec(index = 11)]
9654 IndeterminateImplicit,
9655 #[codec(index = 12)]
9656 UnknownOrigin,
9657 }
9658 #[derive(
9659 :: subxt :: ext :: scale_decode :: DecodeAsType,
9660 :: subxt :: ext :: scale_encode :: EncodeAsType,
9661 Debug,
9662 )]
9663 #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
9664 #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
9665 pub enum TransactionSource {
9666 #[codec(index = 0)]
9667 InBlock,
9668 #[codec(index = 1)]
9669 Local,
9670 #[codec(index = 2)]
9671 External,
9672 }
9673 #[derive(
9674 :: subxt :: ext :: scale_decode :: DecodeAsType,
9675 :: subxt :: ext :: scale_encode :: EncodeAsType,
9676 Debug,
9677 )]
9678 #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
9679 #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
9680 pub enum TransactionValidityError {
9681 #[codec(index = 0)]
9682 Invalid(runtime_types::sp_runtime::transaction_validity::InvalidTransaction),
9683 #[codec(index = 1)]
9684 Unknown(runtime_types::sp_runtime::transaction_validity::UnknownTransaction),
9685 }
9686 #[derive(
9687 :: subxt :: ext :: scale_decode :: DecodeAsType,
9688 :: subxt :: ext :: scale_encode :: EncodeAsType,
9689 Debug,
9690 )]
9691 #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
9692 #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
9693 pub enum UnknownTransaction {
9694 #[codec(index = 0)]
9695 CannotLookup,
9696 #[codec(index = 1)]
9697 NoUnsignedValidator,
9698 #[codec(index = 2)]
9699 Custom(::core::primitive::u8),
9700 }
9701 #[derive(
9702 :: subxt :: ext :: scale_decode :: DecodeAsType,
9703 :: subxt :: ext :: scale_encode :: EncodeAsType,
9704 Debug,
9705 )]
9706 #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
9707 #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
9708 pub struct ValidTransaction {
9709 pub priority: ::core::primitive::u64,
9710 pub requires:
9711 ::subxt::alloc::vec::Vec<::subxt::alloc::vec::Vec<::core::primitive::u8>>,
9712 pub provides:
9713 ::subxt::alloc::vec::Vec<::subxt::alloc::vec::Vec<::core::primitive::u8>>,
9714 pub longevity: ::core::primitive::u64,
9715 pub propagate: ::core::primitive::bool,
9716 }
9717 }
9718 #[derive(
9719 :: subxt :: ext :: scale_decode :: DecodeAsType,
9720 :: subxt :: ext :: scale_encode :: EncodeAsType,
9721 Debug,
9722 )]
9723 #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
9724 #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
9725 pub enum DispatchError {
9726 #[codec(index = 0)]
9727 Other,
9728 #[codec(index = 1)]
9729 CannotLookup,
9730 #[codec(index = 2)]
9731 BadOrigin,
9732 #[codec(index = 3)]
9733 Module(runtime_types::sp_runtime::ModuleError),
9734 #[codec(index = 4)]
9735 ConsumerRemaining,
9736 #[codec(index = 5)]
9737 NoProviders,
9738 #[codec(index = 6)]
9739 TooManyConsumers,
9740 #[codec(index = 7)]
9741 Token(runtime_types::sp_runtime::TokenError),
9742 #[codec(index = 8)]
9743 Arithmetic(runtime_types::sp_arithmetic::ArithmeticError),
9744 #[codec(index = 9)]
9745 Transactional(runtime_types::sp_runtime::TransactionalError),
9746 #[codec(index = 10)]
9747 Exhausted,
9748 #[codec(index = 11)]
9749 Corruption,
9750 #[codec(index = 12)]
9751 Unavailable,
9752 #[codec(index = 13)]
9753 RootNotAllowed,
9754 #[codec(index = 14)]
9755 Trie(runtime_types::sp_runtime::proving_trie::TrieError),
9756 }
9757 #[derive(
9758 :: subxt :: ext :: scale_decode :: DecodeAsType,
9759 :: subxt :: ext :: scale_encode :: EncodeAsType,
9760 Debug,
9761 )]
9762 #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
9763 #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
9764 pub enum ExtrinsicInclusionMode {
9765 #[codec(index = 0)]
9766 AllExtrinsics,
9767 #[codec(index = 1)]
9768 OnlyInherents,
9769 }
9770 #[derive(
9771 :: subxt :: ext :: scale_decode :: DecodeAsType,
9772 :: subxt :: ext :: scale_encode :: EncodeAsType,
9773 Debug,
9774 )]
9775 #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
9776 #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
9777 pub struct ModuleError {
9778 pub index: ::core::primitive::u8,
9779 pub error: [::core::primitive::u8; 4usize],
9780 }
9781 #[derive(
9782 :: subxt :: ext :: scale_decode :: DecodeAsType,
9783 :: subxt :: ext :: scale_encode :: EncodeAsType,
9784 Debug,
9785 )]
9786 #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
9787 #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
9788 pub enum MultiSignature {
9789 #[codec(index = 0)]
9790 Ed25519([::core::primitive::u8; 64usize]),
9791 #[codec(index = 1)]
9792 Sr25519([::core::primitive::u8; 64usize]),
9793 #[codec(index = 2)]
9794 Ecdsa([::core::primitive::u8; 65usize]),
9795 #[codec(index = 3)]
9796 Eth([::core::primitive::u8; 65usize]),
9797 }
9798 #[derive(
9799 :: subxt :: ext :: scale_decode :: DecodeAsType,
9800 :: subxt :: ext :: scale_encode :: EncodeAsType,
9801 Debug,
9802 )]
9803 #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
9804 #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
9805 pub struct OpaqueExtrinsic(pub ::subxt::alloc::vec::Vec<::core::primitive::u8>);
9806 #[derive(
9807 :: subxt :: ext :: scale_decode :: DecodeAsType,
9808 :: subxt :: ext :: scale_encode :: EncodeAsType,
9809 Debug,
9810 )]
9811 #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
9812 #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
9813 pub enum TokenError {
9814 #[codec(index = 0)]
9815 FundsUnavailable,
9816 #[codec(index = 1)]
9817 OnlyProvider,
9818 #[codec(index = 2)]
9819 BelowMinimum,
9820 #[codec(index = 3)]
9821 CannotCreate,
9822 #[codec(index = 4)]
9823 UnknownAsset,
9824 #[codec(index = 5)]
9825 Frozen,
9826 #[codec(index = 6)]
9827 Unsupported,
9828 #[codec(index = 7)]
9829 CannotCreateHold,
9830 #[codec(index = 8)]
9831 NotExpendable,
9832 #[codec(index = 9)]
9833 Blocked,
9834 }
9835 #[derive(
9836 :: subxt :: ext :: scale_decode :: DecodeAsType,
9837 :: subxt :: ext :: scale_encode :: EncodeAsType,
9838 Debug,
9839 )]
9840 #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
9841 #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
9842 pub enum TransactionalError {
9843 #[codec(index = 0)]
9844 LimitReached,
9845 #[codec(index = 1)]
9846 NoLayer,
9847 }
9848 }
9849 pub mod sp_session {
9850 use super::runtime_types;
9851 pub mod runtime_api {
9852 use super::runtime_types;
9853 #[derive(
9854 :: subxt :: ext :: scale_decode :: DecodeAsType,
9855 :: subxt :: ext :: scale_encode :: EncodeAsType,
9856 Debug,
9857 )]
9858 #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
9859 #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
9860 pub struct OpaqueGeneratedSessionKeys {
9861 pub keys: ::subxt::alloc::vec::Vec<::core::primitive::u8>,
9862 pub proof: ::subxt::alloc::vec::Vec<::core::primitive::u8>,
9863 }
9864 }
9865 }
9866 pub mod sp_version {
9867 use super::runtime_types;
9868 #[derive(
9869 :: subxt :: ext :: scale_decode :: DecodeAsType,
9870 :: subxt :: ext :: scale_encode :: EncodeAsType,
9871 Debug,
9872 )]
9873 #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
9874 #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
9875 pub struct RuntimeVersion {
9876 pub spec_name: ::subxt::alloc::string::String,
9877 pub impl_name: ::subxt::alloc::string::String,
9878 pub authoring_version: ::core::primitive::u32,
9879 pub spec_version: ::core::primitive::u32,
9880 pub impl_version: ::core::primitive::u32,
9881 pub apis: ::subxt::alloc::vec::Vec<(
9882 [::core::primitive::u8; 8usize],
9883 ::core::primitive::u32,
9884 )>,
9885 pub transaction_version: ::core::primitive::u32,
9886 pub system_version: ::core::primitive::u8,
9887 }
9888 }
9889 pub mod sp_weights {
9890 use super::runtime_types;
9891 pub mod weight_v2 {
9892 use super::runtime_types;
9893 #[derive(
9894 :: subxt :: ext :: scale_decode :: DecodeAsType,
9895 :: subxt :: ext :: scale_encode :: EncodeAsType,
9896 Debug,
9897 )]
9898 #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
9899 #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
9900 pub struct Weight {
9901 #[codec(compact)]
9902 pub ref_time: ::core::primitive::u64,
9903 #[codec(compact)]
9904 pub proof_size: ::core::primitive::u64,
9905 }
9906 }
9907 #[derive(
9908 :: subxt :: ext :: scale_decode :: DecodeAsType,
9909 :: subxt :: ext :: scale_encode :: EncodeAsType,
9910 Debug,
9911 )]
9912 #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
9913 #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
9914 pub struct RuntimeDbWeight {
9915 pub read: ::core::primitive::u64,
9916 pub write: ::core::primitive::u64,
9917 }
9918 }
9919 pub mod staging_parachain_info {
9920 use super::runtime_types;
9921 pub mod pallet {
9922 use super::runtime_types;
9923 #[derive(
9924 :: subxt :: ext :: scale_decode :: DecodeAsType,
9925 :: subxt :: ext :: scale_encode :: EncodeAsType,
9926 Debug,
9927 )]
9928 #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
9929 #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
9930 #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."]
9931 pub enum Call {}
9932 }
9933 }
9934 }
9935}