From 02b83f652dce20ad872950f69666df53d05956dd Mon Sep 17 00:00:00 2001 From: kostekIV <27210860+kostekIV@users.noreply.github.com> Date: Tue, 5 Mar 2024 07:42:45 +0100 Subject: [PATCH] Update metadata (#1639) --- aleph-client/src/aleph_zero.rs | 331 ++++++++++++++++++------ aleph-client/src/aleph_zero_liminal.rs | 337 +++++++++++++++++++------ benches/payout-stakers/Cargo.lock | 2 +- bin/cliain/Cargo.lock | 2 +- bin/finalizer/Cargo.lock | 2 +- bin/runtime/src/lib.rs | 1 + flooder/Cargo.lock | 2 +- 7 files changed, 518 insertions(+), 159 deletions(-) diff --git a/aleph-client/src/aleph_zero.rs b/aleph-client/src/aleph_zero.rs index 543f2e6c21..45ca0ec63f 100644 --- a/aleph-client/src/aleph_zero.rs +++ b/aleph-client/src/aleph_zero.rs @@ -6,7 +6,7 @@ pub mod api { mod root_mod { pub use super::*; } - pub static PALLETS: [&str; 23usize] = [ + pub static PALLETS: [&str; 24usize] = [ "System", "RandomnessCollectiveFlip", "Scheduler", @@ -30,8 +30,9 @@ pub mod api { "Identity", "CommitteeManagement", "Proxy", + "Operations", ]; - pub static RUNTIME_APIS: [&str; 12usize] = [ + pub static RUNTIME_APIS: [&str; 13usize] = [ "Core", "Metadata", "BlockBuilder", @@ -43,6 +44,7 @@ pub mod api { "TransactionPaymentApi", "AlephSessionApi", "NominationPoolsApi", + "StakingApi", "ContractsApi", ]; #[doc = r" The error type returned when there is a runtime issue."] @@ -108,6 +110,9 @@ pub mod api { pub fn nomination_pools_api(&self) -> nomination_pools_api::NominationPoolsApi { nomination_pools_api::NominationPoolsApi } + pub fn staking_api(&self) -> staking_api::StakingApi { + staking_api::StakingApi + } pub fn contracts_api(&self) -> contracts_api::ContractsApi { contracts_api::ContractsApi } @@ -1441,6 +1446,49 @@ pub mod api { } } } + pub mod staking_api { + use super::{root_mod, runtime_types}; + pub struct StakingApi; + impl StakingApi { + #[doc = " Returns the nominations quota for a nominator with a given balance."] + pub fn nominations_quota( + &self, + balance: ::core::primitive::u128, + ) -> ::subxt::runtime_api::Payload + { + ::subxt::runtime_api::Payload::new_static( + "StakingApi", + "nominations_quota", + types::NominationsQuota { balance }, + [ + 221u8, 113u8, 50u8, 150u8, 51u8, 181u8, 158u8, 235u8, 25u8, 160u8, + 135u8, 47u8, 196u8, 129u8, 90u8, 137u8, 157u8, 167u8, 212u8, 104u8, + 33u8, 48u8, 83u8, 106u8, 84u8, 220u8, 62u8, 85u8, 25u8, 151u8, 189u8, + 114u8, + ], + ) + } + } + pub mod types { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct NominationsQuota { + pub balance: ::core::primitive::u128, + } + } + } pub mod contracts_api { use super::{root_mod, runtime_types}; #[doc = " The API used to dry-run contract interactions."] @@ -1483,9 +1531,9 @@ pub mod api { input_data, }, [ - 48u8, 27u8, 127u8, 126u8, 217u8, 58u8, 116u8, 97u8, 147u8, 29u8, 60u8, - 140u8, 6u8, 11u8, 94u8, 153u8, 191u8, 102u8, 11u8, 243u8, 37u8, 192u8, - 144u8, 129u8, 3u8, 192u8, 175u8, 150u8, 176u8, 129u8, 41u8, 178u8, + 127u8, 45u8, 187u8, 130u8, 196u8, 179u8, 248u8, 43u8, 199u8, 222u8, + 104u8, 177u8, 248u8, 162u8, 1u8, 198u8, 66u8, 38u8, 205u8, 240u8, 83u8, + 250u8, 237u8, 202u8, 154u8, 3u8, 168u8, 119u8, 69u8, 48u8, 89u8, 161u8, ], ) } @@ -1530,10 +1578,9 @@ pub mod api { salt, }, [ - 98u8, 103u8, 155u8, 152u8, 164u8, 77u8, 45u8, 16u8, 106u8, 244u8, - 248u8, 254u8, 219u8, 246u8, 236u8, 231u8, 230u8, 239u8, 53u8, 237u8, - 249u8, 48u8, 210u8, 162u8, 90u8, 76u8, 73u8, 233u8, 170u8, 78u8, 103u8, - 234u8, + 49u8, 208u8, 82u8, 151u8, 127u8, 29u8, 197u8, 2u8, 191u8, 175u8, 156u8, + 2u8, 144u8, 4u8, 32u8, 243u8, 107u8, 209u8, 232u8, 251u8, 200u8, 245u8, + 153u8, 124u8, 34u8, 33u8, 138u8, 137u8, 208u8, 37u8, 49u8, 147u8, ], ) } @@ -1867,6 +1914,9 @@ pub mod api { pub fn proxy(&self) -> proxy::calls::TransactionApi { proxy::calls::TransactionApi } + pub fn operations(&self) -> operations::calls::TransactionApi { + operations::calls::TransactionApi + } } #[doc = r" check whether the metadata provided is aligned with this statically generated code."] pub fn is_codegen_valid_for(metadata: &::subxt::Metadata) -> bool { @@ -1877,9 +1927,9 @@ pub mod api { .hash(); runtime_metadata_hash == [ - 4u8, 230u8, 67u8, 48u8, 189u8, 134u8, 165u8, 85u8, 80u8, 11u8, 104u8, 90u8, 184u8, - 19u8, 205u8, 182u8, 58u8, 17u8, 198u8, 105u8, 223u8, 214u8, 127u8, 20u8, 91u8, - 75u8, 28u8, 255u8, 141u8, 88u8, 216u8, 165u8, + 225u8, 54u8, 9u8, 37u8, 228u8, 179u8, 120u8, 70u8, 131u8, 163u8, 133u8, 228u8, + 76u8, 215u8, 4u8, 3u8, 79u8, 9u8, 95u8, 222u8, 94u8, 1u8, 37u8, 134u8, 234u8, + 168u8, 6u8, 172u8, 199u8, 28u8, 37u8, 77u8, ] } pub mod system { @@ -2637,10 +2687,10 @@ pub mod api { "Events", vec![], [ - 190u8, 197u8, 157u8, 180u8, 227u8, 46u8, 61u8, 103u8, 241u8, 111u8, - 96u8, 176u8, 36u8, 109u8, 55u8, 179u8, 132u8, 229u8, 23u8, 246u8, - 240u8, 128u8, 204u8, 23u8, 213u8, 102u8, 230u8, 215u8, 238u8, 181u8, - 143u8, 14u8, + 235u8, 74u8, 28u8, 32u8, 183u8, 156u8, 199u8, 111u8, 123u8, 148u8, + 90u8, 17u8, 36u8, 107u8, 110u8, 238u8, 207u8, 250u8, 18u8, 71u8, 4u8, + 132u8, 113u8, 203u8, 116u8, 131u8, 248u8, 120u8, 144u8, 226u8, 214u8, + 188u8, ], ) } @@ -3126,9 +3176,10 @@ pub mod api { call: ::std::boxed::Box::new(call), }, [ - 157u8, 86u8, 4u8, 117u8, 27u8, 202u8, 234u8, 78u8, 105u8, 147u8, 180u8, - 56u8, 25u8, 143u8, 26u8, 242u8, 127u8, 99u8, 253u8, 147u8, 27u8, 90u8, - 178u8, 163u8, 230u8, 168u8, 2u8, 197u8, 40u8, 76u8, 173u8, 33u8, + 170u8, 83u8, 230u8, 19u8, 116u8, 34u8, 77u8, 122u8, 208u8, 114u8, + 131u8, 18u8, 113u8, 3u8, 246u8, 198u8, 237u8, 198u8, 72u8, 106u8, 75u8, + 166u8, 200u8, 176u8, 173u8, 170u8, 206u8, 246u8, 43u8, 81u8, 216u8, + 217u8, ], ) } @@ -3173,9 +3224,10 @@ pub mod api { call: ::std::boxed::Box::new(call), }, [ - 206u8, 53u8, 113u8, 122u8, 214u8, 161u8, 56u8, 3u8, 107u8, 59u8, 97u8, - 156u8, 201u8, 81u8, 189u8, 136u8, 26u8, 205u8, 201u8, 127u8, 245u8, - 159u8, 162u8, 82u8, 142u8, 152u8, 64u8, 83u8, 87u8, 228u8, 32u8, 10u8, + 159u8, 141u8, 39u8, 70u8, 125u8, 217u8, 211u8, 84u8, 47u8, 154u8, + 249u8, 47u8, 219u8, 124u8, 153u8, 13u8, 26u8, 178u8, 201u8, 219u8, + 20u8, 59u8, 165u8, 195u8, 23u8, 194u8, 136u8, 45u8, 3u8, 189u8, 89u8, + 49u8, ], ) } @@ -3216,10 +3268,10 @@ pub mod api { call: ::std::boxed::Box::new(call), }, [ - 61u8, 242u8, 153u8, 178u8, 40u8, 84u8, 210u8, 148u8, 70u8, 215u8, - 254u8, 181u8, 201u8, 54u8, 178u8, 200u8, 72u8, 38u8, 58u8, 141u8, - 164u8, 160u8, 10u8, 218u8, 129u8, 55u8, 135u8, 236u8, 243u8, 220u8, - 113u8, 125u8, + 166u8, 98u8, 65u8, 133u8, 30u8, 243u8, 234u8, 109u8, 117u8, 230u8, + 131u8, 119u8, 77u8, 96u8, 105u8, 209u8, 155u8, 187u8, 27u8, 176u8, + 107u8, 35u8, 105u8, 111u8, 0u8, 218u8, 70u8, 132u8, 33u8, 113u8, 122u8, + 162u8, ], ) } @@ -3246,9 +3298,9 @@ pub mod api { call: ::std::boxed::Box::new(call), }, [ - 119u8, 81u8, 78u8, 235u8, 110u8, 155u8, 221u8, 5u8, 84u8, 21u8, 219u8, - 238u8, 32u8, 174u8, 216u8, 232u8, 106u8, 111u8, 153u8, 1u8, 197u8, - 167u8, 235u8, 44u8, 103u8, 214u8, 85u8, 71u8, 176u8, 7u8, 121u8, 42u8, + 90u8, 99u8, 245u8, 199u8, 66u8, 6u8, 239u8, 72u8, 28u8, 178u8, 90u8, + 156u8, 174u8, 8u8, 82u8, 240u8, 154u8, 106u8, 131u8, 56u8, 168u8, 85u8, + 90u8, 157u8, 254u8, 118u8, 155u8, 198u8, 91u8, 86u8, 91u8, 93u8, ], ) } @@ -8767,9 +8819,10 @@ pub mod api { "NextAuthorities", vec![], [ - 158u8, 32u8, 170u8, 111u8, 136u8, 1u8, 244u8, 56u8, 246u8, 170u8, - 174u8, 207u8, 117u8, 7u8, 93u8, 254u8, 245u8, 23u8, 236u8, 233u8, 22u8, - 24u8, 175u8, 98u8, 247u8, 141u8, 253u8, 221u8, 11u8, 66u8, 73u8, 207u8, + 255u8, 204u8, 212u8, 118u8, 101u8, 64u8, 162u8, 46u8, 60u8, 57u8, + 146u8, 160u8, 119u8, 54u8, 122u8, 81u8, 250u8, 185u8, 157u8, 89u8, + 28u8, 64u8, 166u8, 96u8, 183u8, 104u8, 39u8, 175u8, 244u8, 223u8, + 179u8, 15u8, ], ) } @@ -10444,10 +10497,9 @@ pub mod api { "batch", types::Batch { calls }, [ - 168u8, 216u8, 65u8, 221u8, 89u8, 26u8, 127u8, 18u8, 242u8, 185u8, - 252u8, 206u8, 105u8, 184u8, 173u8, 71u8, 139u8, 152u8, 134u8, 2u8, 0u8, - 150u8, 186u8, 102u8, 123u8, 223u8, 104u8, 225u8, 241u8, 110u8, 234u8, - 202u8, + 228u8, 134u8, 105u8, 142u8, 233u8, 120u8, 4u8, 18u8, 171u8, 213u8, + 227u8, 212u8, 18u8, 109u8, 7u8, 245u8, 251u8, 244u8, 85u8, 161u8, 49u8, + 158u8, 163u8, 191u8, 75u8, 246u8, 169u8, 59u8, 40u8, 148u8, 7u8, 58u8, ], ) } @@ -10465,9 +10517,9 @@ pub mod api { call: ::std::boxed::Box::new(call), }, [ - 90u8, 106u8, 62u8, 133u8, 92u8, 200u8, 87u8, 51u8, 95u8, 128u8, 0u8, - 109u8, 128u8, 99u8, 95u8, 21u8, 235u8, 98u8, 66u8, 215u8, 108u8, 132u8, - 239u8, 216u8, 142u8, 112u8, 27u8, 94u8, 222u8, 26u8, 163u8, 171u8, + 129u8, 148u8, 25u8, 233u8, 148u8, 92u8, 56u8, 237u8, 117u8, 64u8, 8u8, + 76u8, 110u8, 255u8, 107u8, 159u8, 16u8, 120u8, 235u8, 241u8, 231u8, + 211u8, 36u8, 238u8, 80u8, 176u8, 45u8, 151u8, 8u8, 11u8, 123u8, 144u8, ], ) } @@ -10481,10 +10533,9 @@ pub mod api { "batch_all", types::BatchAll { calls }, [ - 50u8, 110u8, 195u8, 229u8, 58u8, 91u8, 167u8, 5u8, 121u8, 95u8, 13u8, - 28u8, 10u8, 142u8, 202u8, 236u8, 168u8, 231u8, 94u8, 101u8, 158u8, - 255u8, 131u8, 192u8, 168u8, 180u8, 242u8, 134u8, 141u8, 75u8, 96u8, - 239u8, + 155u8, 43u8, 142u8, 186u8, 193u8, 132u8, 188u8, 36u8, 25u8, 163u8, 9u8, + 229u8, 108u8, 167u8, 35u8, 120u8, 157u8, 228u8, 32u8, 10u8, 3u8, 120u8, + 34u8, 224u8, 181u8, 224u8, 12u8, 59u8, 59u8, 174u8, 9u8, 228u8, ], ) } @@ -10502,9 +10553,9 @@ pub mod api { call: ::std::boxed::Box::new(call), }, [ - 9u8, 122u8, 146u8, 220u8, 173u8, 168u8, 23u8, 34u8, 52u8, 44u8, 186u8, - 68u8, 74u8, 178u8, 170u8, 192u8, 115u8, 112u8, 140u8, 150u8, 158u8, - 195u8, 230u8, 19u8, 50u8, 248u8, 117u8, 19u8, 24u8, 76u8, 194u8, 11u8, + 14u8, 10u8, 58u8, 50u8, 166u8, 58u8, 37u8, 249u8, 201u8, 70u8, 225u8, + 25u8, 185u8, 215u8, 17u8, 174u8, 102u8, 233u8, 169u8, 205u8, 221u8, + 228u8, 159u8, 195u8, 98u8, 130u8, 50u8, 18u8, 17u8, 155u8, 97u8, 193u8, ], ) } @@ -10518,10 +10569,9 @@ pub mod api { "force_batch", types::ForceBatch { calls }, [ - 199u8, 116u8, 163u8, 143u8, 54u8, 139u8, 191u8, 20u8, 53u8, 135u8, - 107u8, 9u8, 196u8, 244u8, 247u8, 249u8, 205u8, 247u8, 69u8, 230u8, - 230u8, 1u8, 179u8, 234u8, 250u8, 104u8, 116u8, 181u8, 233u8, 136u8, - 230u8, 250u8, + 118u8, 153u8, 49u8, 113u8, 219u8, 13u8, 14u8, 232u8, 176u8, 45u8, 11u8, + 61u8, 38u8, 199u8, 117u8, 41u8, 225u8, 48u8, 208u8, 207u8, 252u8, 99u8, + 209u8, 139u8, 9u8, 36u8, 38u8, 91u8, 87u8, 80u8, 169u8, 68u8, ], ) } @@ -10539,9 +10589,9 @@ pub mod api { weight, }, [ - 98u8, 61u8, 152u8, 32u8, 44u8, 229u8, 34u8, 75u8, 194u8, 53u8, 70u8, - 37u8, 44u8, 45u8, 1u8, 58u8, 23u8, 59u8, 87u8, 4u8, 147u8, 220u8, - 135u8, 88u8, 222u8, 255u8, 175u8, 253u8, 224u8, 192u8, 74u8, 215u8, + 232u8, 128u8, 83u8, 189u8, 133u8, 213u8, 101u8, 115u8, 222u8, 12u8, + 150u8, 177u8, 66u8, 0u8, 69u8, 176u8, 164u8, 216u8, 81u8, 77u8, 87u8, + 62u8, 29u8, 53u8, 177u8, 55u8, 74u8, 101u8, 125u8, 89u8, 80u8, 153u8, ], ) } @@ -10831,9 +10881,9 @@ pub mod api { call: ::std::boxed::Box::new(call), }, [ - 198u8, 120u8, 44u8, 237u8, 50u8, 201u8, 79u8, 128u8, 110u8, 46u8, 33u8, - 223u8, 58u8, 165u8, 23u8, 18u8, 59u8, 61u8, 166u8, 17u8, 65u8, 96u8, - 175u8, 218u8, 248u8, 176u8, 176u8, 12u8, 222u8, 157u8, 210u8, 22u8, + 253u8, 21u8, 14u8, 124u8, 102u8, 121u8, 220u8, 27u8, 223u8, 14u8, 28u8, + 230u8, 235u8, 8u8, 0u8, 215u8, 28u8, 254u8, 38u8, 121u8, 56u8, 209u8, + 154u8, 177u8, 26u8, 39u8, 126u8, 180u8, 217u8, 203u8, 250u8, 85u8, ], ) } @@ -10861,10 +10911,9 @@ pub mod api { max_weight, }, [ - 223u8, 221u8, 40u8, 171u8, 124u8, 105u8, 180u8, 140u8, 71u8, 117u8, - 44u8, 170u8, 205u8, 140u8, 129u8, 187u8, 169u8, 122u8, 140u8, 253u8, - 207u8, 184u8, 10u8, 220u8, 163u8, 216u8, 189u8, 192u8, 14u8, 62u8, - 193u8, 240u8, + 121u8, 181u8, 7u8, 49u8, 157u8, 203u8, 68u8, 117u8, 239u8, 84u8, 110u8, + 226u8, 150u8, 213u8, 152u8, 151u8, 90u8, 73u8, 44u8, 150u8, 23u8, 31u8, + 238u8, 126u8, 43u8, 101u8, 6u8, 3u8, 246u8, 122u8, 245u8, 227u8, ], ) } @@ -11259,9 +11308,10 @@ pub mod api { call: ::std::boxed::Box::new(call), }, [ - 206u8, 47u8, 158u8, 18u8, 22u8, 233u8, 168u8, 52u8, 23u8, 219u8, 21u8, - 233u8, 137u8, 180u8, 119u8, 229u8, 241u8, 159u8, 196u8, 67u8, 62u8, - 180u8, 4u8, 167u8, 194u8, 63u8, 99u8, 72u8, 218u8, 227u8, 92u8, 195u8, + 182u8, 168u8, 141u8, 52u8, 177u8, 146u8, 253u8, 172u8, 50u8, 129u8, + 241u8, 110u8, 159u8, 126u8, 108u8, 141u8, 225u8, 200u8, 82u8, 57u8, + 12u8, 229u8, 185u8, 227u8, 15u8, 36u8, 10u8, 160u8, 208u8, 196u8, 36u8, + 246u8, ], ) } @@ -11279,9 +11329,9 @@ pub mod api { weight, }, [ - 227u8, 41u8, 4u8, 99u8, 246u8, 103u8, 86u8, 40u8, 200u8, 49u8, 195u8, - 224u8, 60u8, 34u8, 85u8, 232u8, 26u8, 13u8, 115u8, 176u8, 191u8, 9u8, - 45u8, 191u8, 98u8, 32u8, 216u8, 39u8, 172u8, 167u8, 140u8, 149u8, + 135u8, 29u8, 179u8, 199u8, 180u8, 236u8, 63u8, 209u8, 80u8, 87u8, 96u8, + 207u8, 249u8, 144u8, 121u8, 101u8, 192u8, 25u8, 32u8, 80u8, 243u8, + 84u8, 80u8, 74u8, 71u8, 191u8, 203u8, 59u8, 42u8, 190u8, 77u8, 245u8, ], ) } @@ -11321,9 +11371,9 @@ pub mod api { call: ::std::boxed::Box::new(call), }, [ - 91u8, 30u8, 163u8, 84u8, 130u8, 63u8, 188u8, 106u8, 173u8, 40u8, 142u8, - 199u8, 114u8, 199u8, 146u8, 47u8, 129u8, 79u8, 79u8, 196u8, 16u8, 89u8, - 112u8, 210u8, 219u8, 14u8, 29u8, 128u8, 40u8, 2u8, 228u8, 186u8, + 113u8, 121u8, 11u8, 181u8, 201u8, 184u8, 216u8, 83u8, 254u8, 248u8, + 124u8, 104u8, 3u8, 220u8, 126u8, 165u8, 32u8, 1u8, 161u8, 229u8, 182u8, + 100u8, 4u8, 238u8, 220u8, 130u8, 167u8, 48u8, 255u8, 246u8, 28u8, 17u8, ], ) } @@ -16709,9 +16759,9 @@ pub mod api { call: ::std::boxed::Box::new(call), }, [ - 132u8, 103u8, 211u8, 246u8, 147u8, 108u8, 116u8, 221u8, 138u8, 47u8, - 62u8, 51u8, 137u8, 232u8, 226u8, 179u8, 12u8, 187u8, 88u8, 155u8, 49u8, - 231u8, 97u8, 31u8, 152u8, 58u8, 97u8, 74u8, 164u8, 42u8, 61u8, 6u8, + 209u8, 252u8, 250u8, 123u8, 93u8, 215u8, 12u8, 125u8, 47u8, 166u8, + 96u8, 113u8, 44u8, 95u8, 244u8, 71u8, 3u8, 82u8, 123u8, 237u8, 219u8, + 11u8, 49u8, 152u8, 94u8, 43u8, 252u8, 241u8, 79u8, 198u8, 123u8, 95u8, ], ) } @@ -16923,10 +16973,9 @@ pub mod api { call: ::std::boxed::Box::new(call), }, [ - 216u8, 171u8, 86u8, 149u8, 6u8, 53u8, 27u8, 194u8, 160u8, 255u8, 153u8, - 24u8, 158u8, 248u8, 161u8, 155u8, 138u8, 99u8, 93u8, 176u8, 246u8, - 214u8, 82u8, 222u8, 44u8, 163u8, 220u8, 127u8, 182u8, 113u8, 150u8, - 233u8, + 230u8, 9u8, 188u8, 73u8, 7u8, 59u8, 139u8, 214u8, 24u8, 20u8, 169u8, + 172u8, 144u8, 197u8, 111u8, 247u8, 85u8, 171u8, 198u8, 210u8, 153u8, + 55u8, 7u8, 31u8, 56u8, 245u8, 73u8, 57u8, 177u8, 197u8, 50u8, 14u8, ], ) } @@ -17296,6 +17345,84 @@ pub mod api { } } } + pub mod operations { + use super::{root_mod, runtime_types}; + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] + pub type Call = runtime_types::pallet_operations::pallet::Call; + pub mod calls { + use super::{root_mod, runtime_types}; + type DispatchError = runtime_types::sp_runtime::DispatchError; + pub mod types { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct FixAccountsConsumersUnderflow { + pub who: ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, + } + impl ::subxt::blocks::StaticExtrinsic for FixAccountsConsumersUnderflow { + const PALLET: &'static str = "Operations"; + const CALL: &'static str = "fix_accounts_consumers_underflow"; + } + } + pub struct TransactionApi; + impl TransactionApi { + #[doc = "See [`Pallet::fix_accounts_consumers_underflow`]."] + pub fn fix_accounts_consumers_underflow( + &self, + who: ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Operations", + "fix_accounts_consumers_underflow", + types::FixAccountsConsumersUnderflow { who }, + [ + 18u8, 37u8, 232u8, 229u8, 198u8, 30u8, 150u8, 132u8, 232u8, 136u8, + 122u8, 15u8, 98u8, 177u8, 98u8, 10u8, 86u8, 155u8, 215u8, 140u8, 72u8, + 214u8, 147u8, 91u8, 249u8, 163u8, 59u8, 178u8, 150u8, 222u8, 250u8, + 188u8, + ], + ) + } + } + } + #[doc = "The `Event` enum of this pallet"] + pub type Event = runtime_types::pallet_operations::pallet::Event; + pub mod events { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "An account has fixed its consumers counter underflow"] + pub struct ConsumersUnderflowFixed { + pub who: ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, + } + impl ::subxt::events::StaticEvent for ConsumersUnderflowFixed { + const PALLET: &'static str = "Operations"; + const EVENT: &'static str = "ConsumersUnderflowFixed"; + } + } + } pub mod runtime_types { use super::runtime_types; pub mod aleph_runtime { @@ -17410,6 +17537,8 @@ pub mod api { CommitteeManagement(runtime_types::pallet_committee_management::pallet::Call), #[codec(index = 22)] Proxy(runtime_types::pallet_proxy::pallet::Call), + #[codec(index = 255)] + Operations(runtime_types::pallet_operations::pallet::Call), } #[derive( :: subxt :: ext :: codec :: Decode, @@ -17508,6 +17637,8 @@ pub mod api { CommitteeManagement(runtime_types::pallet_committee_management::pallet::Event), #[codec(index = 22)] Proxy(runtime_types::pallet_proxy::pallet::Event), + #[codec(index = 255)] + Operations(runtime_types::pallet_operations::pallet::Event), } #[derive( :: subxt :: ext :: codec :: Decode, @@ -21199,6 +21330,54 @@ pub mod api { pub balance: ::core::primitive::u128, } } + pub mod pallet_operations { + use super::runtime_types; + pub mod pallet { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] + pub enum Call { + #[codec(index = 0)] + #[doc = "See [`Pallet::fix_accounts_consumers_underflow`]."] + fix_accounts_consumers_underflow { + who: ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, + }, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "The `Event` enum of this pallet"] + pub enum Event { + #[codec(index = 0)] + #[doc = "An account has fixed its consumers counter underflow"] + ConsumersUnderflowFixed { + who: ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, + }, + } + } + } pub mod pallet_proxy { use super::runtime_types; pub mod pallet { diff --git a/aleph-client/src/aleph_zero_liminal.rs b/aleph-client/src/aleph_zero_liminal.rs index eabf169c6f..cdc3f66bbb 100644 --- a/aleph-client/src/aleph_zero_liminal.rs +++ b/aleph-client/src/aleph_zero_liminal.rs @@ -6,7 +6,7 @@ pub mod api { mod root_mod { pub use super::*; } - pub static PALLETS: [&str; 24usize] = [ + pub static PALLETS: [&str; 25usize] = [ "System", "RandomnessCollectiveFlip", "Scheduler", @@ -31,8 +31,9 @@ pub mod api { "CommitteeManagement", "Proxy", "BabyLiminal", + "Operations", ]; - pub static RUNTIME_APIS: [&str; 12usize] = [ + pub static RUNTIME_APIS: [&str; 13usize] = [ "Core", "Metadata", "BlockBuilder", @@ -44,6 +45,7 @@ pub mod api { "TransactionPaymentApi", "AlephSessionApi", "NominationPoolsApi", + "StakingApi", "ContractsApi", ]; #[doc = r" The error type returned when there is a runtime issue."] @@ -109,6 +111,9 @@ pub mod api { pub fn nomination_pools_api(&self) -> nomination_pools_api::NominationPoolsApi { nomination_pools_api::NominationPoolsApi } + pub fn staking_api(&self) -> staking_api::StakingApi { + staking_api::StakingApi + } pub fn contracts_api(&self) -> contracts_api::ContractsApi { contracts_api::ContractsApi } @@ -1442,6 +1447,49 @@ pub mod api { } } } + pub mod staking_api { + use super::{root_mod, runtime_types}; + pub struct StakingApi; + impl StakingApi { + #[doc = " Returns the nominations quota for a nominator with a given balance."] + pub fn nominations_quota( + &self, + balance: ::core::primitive::u128, + ) -> ::subxt::runtime_api::Payload + { + ::subxt::runtime_api::Payload::new_static( + "StakingApi", + "nominations_quota", + types::NominationsQuota { balance }, + [ + 221u8, 113u8, 50u8, 150u8, 51u8, 181u8, 158u8, 235u8, 25u8, 160u8, + 135u8, 47u8, 196u8, 129u8, 90u8, 137u8, 157u8, 167u8, 212u8, 104u8, + 33u8, 48u8, 83u8, 106u8, 84u8, 220u8, 62u8, 85u8, 25u8, 151u8, 189u8, + 114u8, + ], + ) + } + } + pub mod types { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct NominationsQuota { + pub balance: ::core::primitive::u128, + } + } + } pub mod contracts_api { use super::{root_mod, runtime_types}; #[doc = " The API used to dry-run contract interactions."] @@ -1484,10 +1532,9 @@ pub mod api { input_data, }, [ - 191u8, 1u8, 157u8, 112u8, 18u8, 1u8, 144u8, 47u8, 176u8, 208u8, 118u8, - 166u8, 104u8, 180u8, 118u8, 141u8, 202u8, 231u8, 23u8, 119u8, 31u8, - 220u8, 180u8, 210u8, 55u8, 175u8, 216u8, 14u8, 140u8, 177u8, 255u8, - 176u8, + 59u8, 233u8, 232u8, 4u8, 11u8, 23u8, 137u8, 41u8, 100u8, 88u8, 28u8, + 143u8, 2u8, 115u8, 121u8, 210u8, 201u8, 92u8, 203u8, 15u8, 2u8, 98u8, + 165u8, 1u8, 249u8, 86u8, 93u8, 82u8, 155u8, 216u8, 122u8, 179u8, ], ) } @@ -1532,10 +1579,10 @@ pub mod api { salt, }, [ - 18u8, 127u8, 23u8, 30u8, 182u8, 52u8, 67u8, 145u8, 224u8, 49u8, 68u8, - 74u8, 245u8, 226u8, 122u8, 244u8, 163u8, 114u8, 102u8, 34u8, 81u8, - 31u8, 24u8, 227u8, 22u8, 152u8, 187u8, 174u8, 181u8, 76u8, 159u8, - 124u8, + 227u8, 22u8, 38u8, 39u8, 35u8, 108u8, 124u8, 121u8, 68u8, 191u8, 135u8, + 227u8, 144u8, 92u8, 206u8, 254u8, 92u8, 55u8, 225u8, 237u8, 224u8, + 154u8, 29u8, 204u8, 123u8, 241u8, 57u8, 84u8, 36u8, 164u8, 153u8, + 251u8, ], ) } @@ -1878,6 +1925,9 @@ pub mod api { pub fn baby_liminal(&self) -> baby_liminal::calls::TransactionApi { baby_liminal::calls::TransactionApi } + pub fn operations(&self) -> operations::calls::TransactionApi { + operations::calls::TransactionApi + } } #[doc = r" check whether the metadata provided is aligned with this statically generated code."] pub fn is_codegen_valid_for(metadata: &::subxt::Metadata) -> bool { @@ -1888,9 +1938,9 @@ pub mod api { .hash(); runtime_metadata_hash == [ - 204u8, 218u8, 194u8, 96u8, 223u8, 225u8, 172u8, 66u8, 209u8, 119u8, 83u8, 60u8, - 200u8, 147u8, 230u8, 252u8, 236u8, 159u8, 246u8, 143u8, 235u8, 136u8, 40u8, 0u8, - 124u8, 176u8, 132u8, 116u8, 37u8, 245u8, 137u8, 248u8, + 242u8, 200u8, 216u8, 211u8, 199u8, 148u8, 142u8, 64u8, 98u8, 173u8, 26u8, 151u8, + 55u8, 88u8, 153u8, 100u8, 41u8, 99u8, 83u8, 46u8, 133u8, 176u8, 143u8, 130u8, + 105u8, 64u8, 172u8, 149u8, 26u8, 220u8, 21u8, 152u8, ] } pub mod system { @@ -2648,9 +2698,10 @@ pub mod api { "Events", vec![], [ - 186u8, 166u8, 66u8, 15u8, 185u8, 72u8, 44u8, 174u8, 211u8, 14u8, 103u8, - 214u8, 110u8, 169u8, 29u8, 179u8, 95u8, 93u8, 40u8, 3u8, 99u8, 244u8, - 58u8, 224u8, 185u8, 126u8, 48u8, 183u8, 208u8, 144u8, 45u8, 91u8, + 32u8, 208u8, 23u8, 183u8, 119u8, 125u8, 34u8, 246u8, 131u8, 47u8, + 101u8, 142u8, 139u8, 237u8, 92u8, 136u8, 177u8, 62u8, 138u8, 181u8, + 77u8, 192u8, 207u8, 93u8, 92u8, 131u8, 181u8, 8u8, 134u8, 135u8, 52u8, + 69u8, ], ) } @@ -3136,10 +3187,10 @@ pub mod api { call: ::std::boxed::Box::new(call), }, [ - 130u8, 206u8, 221u8, 103u8, 14u8, 230u8, 223u8, 214u8, 31u8, 26u8, - 235u8, 2u8, 85u8, 80u8, 173u8, 231u8, 134u8, 51u8, 27u8, 53u8, 185u8, - 85u8, 169u8, 220u8, 128u8, 174u8, 204u8, 103u8, 124u8, 244u8, 224u8, - 235u8, + 100u8, 158u8, 164u8, 228u8, 74u8, 71u8, 131u8, 135u8, 195u8, 199u8, + 173u8, 46u8, 77u8, 169u8, 134u8, 179u8, 246u8, 255u8, 162u8, 136u8, + 121u8, 103u8, 5u8, 30u8, 247u8, 52u8, 113u8, 26u8, 159u8, 65u8, 39u8, + 246u8, ], ) } @@ -3184,9 +3235,10 @@ pub mod api { call: ::std::boxed::Box::new(call), }, [ - 39u8, 206u8, 217u8, 57u8, 177u8, 20u8, 98u8, 23u8, 253u8, 99u8, 23u8, - 243u8, 69u8, 22u8, 22u8, 210u8, 38u8, 199u8, 100u8, 81u8, 107u8, 96u8, - 229u8, 247u8, 242u8, 43u8, 216u8, 177u8, 33u8, 44u8, 145u8, 4u8, + 104u8, 3u8, 243u8, 87u8, 26u8, 198u8, 126u8, 110u8, 6u8, 241u8, 228u8, + 233u8, 73u8, 183u8, 230u8, 190u8, 115u8, 125u8, 66u8, 180u8, 157u8, + 90u8, 153u8, 105u8, 12u8, 160u8, 231u8, 246u8, 155u8, 176u8, 209u8, + 231u8, ], ) } @@ -3227,9 +3279,9 @@ pub mod api { call: ::std::boxed::Box::new(call), }, [ - 226u8, 253u8, 163u8, 66u8, 188u8, 141u8, 78u8, 96u8, 137u8, 110u8, - 169u8, 161u8, 156u8, 210u8, 216u8, 227u8, 7u8, 23u8, 124u8, 97u8, 67u8, - 82u8, 60u8, 142u8, 27u8, 152u8, 132u8, 12u8, 105u8, 21u8, 233u8, 3u8, + 251u8, 9u8, 116u8, 2u8, 201u8, 68u8, 113u8, 8u8, 60u8, 164u8, 47u8, + 53u8, 67u8, 49u8, 198u8, 20u8, 173u8, 111u8, 137u8, 63u8, 78u8, 241u8, + 48u8, 29u8, 88u8, 200u8, 61u8, 131u8, 95u8, 174u8, 253u8, 65u8, ], ) } @@ -3256,10 +3308,9 @@ pub mod api { call: ::std::boxed::Box::new(call), }, [ - 164u8, 124u8, 69u8, 60u8, 245u8, 187u8, 73u8, 155u8, 43u8, 157u8, - 167u8, 65u8, 187u8, 184u8, 21u8, 165u8, 82u8, 8u8, 161u8, 169u8, 82u8, - 118u8, 14u8, 9u8, 197u8, 55u8, 151u8, 155u8, 192u8, 183u8, 155u8, - 165u8, + 18u8, 195u8, 107u8, 149u8, 3u8, 41u8, 218u8, 54u8, 177u8, 188u8, 243u8, + 75u8, 93u8, 41u8, 53u8, 52u8, 146u8, 46u8, 44u8, 249u8, 61u8, 104u8, + 243u8, 101u8, 144u8, 59u8, 65u8, 121u8, 143u8, 113u8, 150u8, 7u8, ], ) } @@ -8778,10 +8829,10 @@ pub mod api { "NextAuthorities", vec![], [ - 49u8, 198u8, 135u8, 204u8, 27u8, 114u8, 70u8, 234u8, 79u8, 188u8, - 112u8, 164u8, 80u8, 102u8, 134u8, 102u8, 67u8, 242u8, 247u8, 249u8, - 18u8, 220u8, 97u8, 228u8, 90u8, 22u8, 203u8, 189u8, 245u8, 153u8, 84u8, - 103u8, + 54u8, 249u8, 134u8, 114u8, 135u8, 224u8, 83u8, 106u8, 136u8, 71u8, + 50u8, 117u8, 242u8, 250u8, 244u8, 84u8, 113u8, 179u8, 170u8, 12u8, + 159u8, 49u8, 81u8, 248u8, 112u8, 165u8, 90u8, 117u8, 105u8, 238u8, + 206u8, 141u8, ], ) } @@ -10456,9 +10507,9 @@ pub mod api { "batch", types::Batch { calls }, [ - 163u8, 130u8, 193u8, 155u8, 232u8, 16u8, 204u8, 147u8, 128u8, 78u8, - 129u8, 68u8, 92u8, 7u8, 146u8, 162u8, 173u8, 253u8, 89u8, 119u8, 192u8, - 221u8, 218u8, 26u8, 235u8, 71u8, 89u8, 88u8, 155u8, 96u8, 17u8, 153u8, + 42u8, 65u8, 58u8, 156u8, 32u8, 12u8, 83u8, 197u8, 14u8, 248u8, 196u8, + 96u8, 153u8, 218u8, 24u8, 81u8, 174u8, 98u8, 172u8, 176u8, 107u8, 42u8, + 121u8, 195u8, 223u8, 152u8, 171u8, 92u8, 195u8, 173u8, 187u8, 133u8, ], ) } @@ -10476,9 +10527,9 @@ pub mod api { call: ::std::boxed::Box::new(call), }, [ - 164u8, 237u8, 72u8, 53u8, 120u8, 235u8, 99u8, 175u8, 122u8, 48u8, 19u8, - 220u8, 34u8, 38u8, 54u8, 4u8, 74u8, 218u8, 169u8, 33u8, 121u8, 17u8, - 23u8, 20u8, 0u8, 215u8, 69u8, 34u8, 214u8, 135u8, 129u8, 70u8, + 170u8, 105u8, 176u8, 133u8, 168u8, 146u8, 36u8, 40u8, 28u8, 46u8, + 207u8, 230u8, 120u8, 226u8, 78u8, 61u8, 96u8, 8u8, 74u8, 65u8, 149u8, + 237u8, 48u8, 37u8, 57u8, 58u8, 43u8, 145u8, 174u8, 93u8, 203u8, 21u8, ], ) } @@ -10492,10 +10543,9 @@ pub mod api { "batch_all", types::BatchAll { calls }, [ - 184u8, 187u8, 229u8, 37u8, 76u8, 231u8, 13u8, 239u8, 249u8, 156u8, - 153u8, 104u8, 31u8, 175u8, 197u8, 61u8, 7u8, 201u8, 184u8, 85u8, 239u8, - 215u8, 101u8, 56u8, 118u8, 80u8, 213u8, 26u8, 159u8, 218u8, 216u8, - 203u8, + 212u8, 176u8, 94u8, 153u8, 233u8, 77u8, 126u8, 132u8, 83u8, 202u8, + 194u8, 20u8, 84u8, 226u8, 7u8, 87u8, 69u8, 247u8, 217u8, 105u8, 246u8, + 12u8, 242u8, 192u8, 198u8, 108u8, 92u8, 200u8, 14u8, 194u8, 75u8, 91u8, ], ) } @@ -10513,9 +10563,9 @@ pub mod api { call: ::std::boxed::Box::new(call), }, [ - 54u8, 111u8, 11u8, 17u8, 214u8, 5u8, 135u8, 162u8, 64u8, 207u8, 236u8, - 116u8, 75u8, 189u8, 131u8, 47u8, 54u8, 246u8, 127u8, 94u8, 179u8, - 251u8, 16u8, 83u8, 188u8, 119u8, 155u8, 246u8, 233u8, 72u8, 7u8, 31u8, + 248u8, 13u8, 98u8, 57u8, 110u8, 8u8, 113u8, 141u8, 69u8, 45u8, 178u8, + 110u8, 145u8, 154u8, 220u8, 247u8, 214u8, 157u8, 110u8, 174u8, 70u8, + 173u8, 227u8, 17u8, 77u8, 9u8, 35u8, 16u8, 100u8, 141u8, 47u8, 159u8, ], ) } @@ -10529,9 +10579,10 @@ pub mod api { "force_batch", types::ForceBatch { calls }, [ - 9u8, 175u8, 203u8, 112u8, 247u8, 223u8, 147u8, 149u8, 235u8, 55u8, - 89u8, 74u8, 220u8, 161u8, 194u8, 216u8, 128u8, 247u8, 5u8, 182u8, 54u8, - 82u8, 55u8, 173u8, 7u8, 116u8, 39u8, 0u8, 158u8, 149u8, 146u8, 14u8, + 105u8, 180u8, 220u8, 228u8, 217u8, 155u8, 228u8, 74u8, 72u8, 165u8, + 225u8, 198u8, 133u8, 62u8, 252u8, 122u8, 14u8, 81u8, 42u8, 6u8, 115u8, + 122u8, 83u8, 43u8, 68u8, 221u8, 249u8, 142u8, 131u8, 208u8, 71u8, + 196u8, ], ) } @@ -10549,10 +10600,10 @@ pub mod api { weight, }, [ - 127u8, 98u8, 202u8, 66u8, 72u8, 140u8, 183u8, 222u8, 108u8, 191u8, - 191u8, 68u8, 139u8, 241u8, 51u8, 70u8, 154u8, 158u8, 245u8, 12u8, - 238u8, 180u8, 34u8, 24u8, 167u8, 8u8, 108u8, 178u8, 210u8, 114u8, - 190u8, 185u8, + 220u8, 72u8, 239u8, 92u8, 117u8, 196u8, 88u8, 125u8, 248u8, 50u8, + 135u8, 183u8, 221u8, 225u8, 32u8, 225u8, 211u8, 175u8, 214u8, 229u8, + 87u8, 3u8, 4u8, 26u8, 196u8, 76u8, 217u8, 181u8, 33u8, 184u8, 53u8, + 98u8, ], ) } @@ -10842,10 +10893,10 @@ pub mod api { call: ::std::boxed::Box::new(call), }, [ - 87u8, 222u8, 67u8, 67u8, 47u8, 211u8, 74u8, 29u8, 224u8, 65u8, 120u8, - 249u8, 234u8, 230u8, 29u8, 159u8, 199u8, 112u8, 141u8, 109u8, 186u8, - 172u8, 11u8, 194u8, 61u8, 189u8, 136u8, 77u8, 187u8, 11u8, 133u8, - 127u8, + 16u8, 27u8, 165u8, 144u8, 248u8, 203u8, 195u8, 7u8, 192u8, 182u8, + 156u8, 47u8, 0u8, 155u8, 231u8, 151u8, 179u8, 205u8, 33u8, 254u8, + 229u8, 185u8, 10u8, 186u8, 94u8, 244u8, 226u8, 19u8, 76u8, 79u8, 97u8, + 34u8, ], ) } @@ -10873,9 +10924,9 @@ pub mod api { max_weight, }, [ - 89u8, 89u8, 183u8, 66u8, 15u8, 48u8, 123u8, 249u8, 168u8, 16u8, 156u8, - 32u8, 180u8, 155u8, 202u8, 130u8, 94u8, 189u8, 158u8, 253u8, 153u8, - 94u8, 59u8, 178u8, 90u8, 131u8, 130u8, 2u8, 2u8, 141u8, 75u8, 2u8, + 124u8, 3u8, 181u8, 13u8, 18u8, 180u8, 124u8, 209u8, 54u8, 134u8, 21u8, + 43u8, 153u8, 59u8, 9u8, 228u8, 55u8, 249u8, 101u8, 39u8, 123u8, 42u8, + 185u8, 207u8, 216u8, 95u8, 70u8, 77u8, 137u8, 104u8, 146u8, 147u8, ], ) } @@ -11270,9 +11321,9 @@ pub mod api { call: ::std::boxed::Box::new(call), }, [ - 83u8, 24u8, 86u8, 148u8, 133u8, 173u8, 73u8, 4u8, 27u8, 24u8, 11u8, - 95u8, 110u8, 244u8, 217u8, 99u8, 64u8, 173u8, 73u8, 243u8, 71u8, 54u8, - 248u8, 162u8, 129u8, 69u8, 110u8, 190u8, 60u8, 72u8, 49u8, 156u8, + 112u8, 117u8, 228u8, 173u8, 96u8, 203u8, 47u8, 140u8, 27u8, 131u8, + 14u8, 122u8, 169u8, 94u8, 102u8, 210u8, 253u8, 50u8, 48u8, 92u8, 2u8, + 63u8, 159u8, 35u8, 219u8, 150u8, 176u8, 48u8, 218u8, 27u8, 191u8, 47u8, ], ) } @@ -11290,10 +11341,10 @@ pub mod api { weight, }, [ - 24u8, 249u8, 171u8, 212u8, 25u8, 123u8, 181u8, 26u8, 213u8, 159u8, - 162u8, 252u8, 124u8, 166u8, 162u8, 199u8, 69u8, 217u8, 251u8, 0u8, - 180u8, 166u8, 104u8, 53u8, 65u8, 155u8, 92u8, 147u8, 115u8, 199u8, - 163u8, 82u8, + 64u8, 207u8, 86u8, 210u8, 223u8, 18u8, 134u8, 193u8, 172u8, 97u8, + 233u8, 48u8, 121u8, 207u8, 234u8, 81u8, 215u8, 83u8, 160u8, 20u8, + 151u8, 206u8, 177u8, 66u8, 189u8, 230u8, 223u8, 167u8, 16u8, 230u8, + 237u8, 155u8, ], ) } @@ -11333,10 +11384,9 @@ pub mod api { call: ::std::boxed::Box::new(call), }, [ - 144u8, 120u8, 246u8, 249u8, 126u8, 138u8, 121u8, 74u8, 21u8, 16u8, - 70u8, 156u8, 132u8, 129u8, 58u8, 231u8, 38u8, 134u8, 253u8, 81u8, 93u8, - 228u8, 18u8, 138u8, 45u8, 160u8, 104u8, 172u8, 38u8, 200u8, 71u8, - 122u8, + 212u8, 126u8, 44u8, 41u8, 71u8, 80u8, 69u8, 111u8, 244u8, 170u8, 197u8, + 157u8, 218u8, 148u8, 249u8, 196u8, 209u8, 200u8, 244u8, 171u8, 219u8, + 121u8, 190u8, 123u8, 11u8, 93u8, 124u8, 20u8, 48u8, 119u8, 39u8, 81u8, ], ) } @@ -16722,9 +16772,9 @@ pub mod api { call: ::std::boxed::Box::new(call), }, [ - 233u8, 91u8, 8u8, 131u8, 90u8, 200u8, 188u8, 104u8, 91u8, 103u8, 195u8, - 27u8, 184u8, 242u8, 77u8, 94u8, 127u8, 163u8, 92u8, 92u8, 15u8, 246u8, - 65u8, 89u8, 61u8, 51u8, 132u8, 62u8, 239u8, 250u8, 30u8, 91u8, + 17u8, 212u8, 166u8, 246u8, 193u8, 51u8, 105u8, 124u8, 250u8, 168u8, + 8u8, 110u8, 206u8, 12u8, 163u8, 120u8, 144u8, 90u8, 182u8, 83u8, 167u8, + 80u8, 62u8, 16u8, 17u8, 109u8, 109u8, 160u8, 9u8, 253u8, 252u8, 177u8, ], ) } @@ -16936,10 +16986,9 @@ pub mod api { call: ::std::boxed::Box::new(call), }, [ - 189u8, 35u8, 47u8, 176u8, 207u8, 219u8, 206u8, 113u8, 70u8, 40u8, - 185u8, 131u8, 238u8, 234u8, 107u8, 194u8, 136u8, 212u8, 172u8, 144u8, - 42u8, 199u8, 253u8, 31u8, 253u8, 67u8, 92u8, 210u8, 120u8, 178u8, - 207u8, 200u8, + 98u8, 21u8, 196u8, 134u8, 13u8, 19u8, 228u8, 167u8, 232u8, 151u8, + 231u8, 15u8, 31u8, 69u8, 82u8, 126u8, 57u8, 189u8, 93u8, 101u8, 237u8, + 107u8, 97u8, 147u8, 11u8, 69u8, 191u8, 220u8, 187u8, 168u8, 116u8, 1u8, ], ) } @@ -17778,6 +17827,84 @@ pub mod api { } } } + pub mod operations { + use super::{root_mod, runtime_types}; + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] + pub type Call = runtime_types::pallet_operations::pallet::Call; + pub mod calls { + use super::{root_mod, runtime_types}; + type DispatchError = runtime_types::sp_runtime::DispatchError; + pub mod types { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct FixAccountsConsumersUnderflow { + pub who: ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, + } + impl ::subxt::blocks::StaticExtrinsic for FixAccountsConsumersUnderflow { + const PALLET: &'static str = "Operations"; + const CALL: &'static str = "fix_accounts_consumers_underflow"; + } + } + pub struct TransactionApi; + impl TransactionApi { + #[doc = "See [`Pallet::fix_accounts_consumers_underflow`]."] + pub fn fix_accounts_consumers_underflow( + &self, + who: ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Operations", + "fix_accounts_consumers_underflow", + types::FixAccountsConsumersUnderflow { who }, + [ + 18u8, 37u8, 232u8, 229u8, 198u8, 30u8, 150u8, 132u8, 232u8, 136u8, + 122u8, 15u8, 98u8, 177u8, 98u8, 10u8, 86u8, 155u8, 215u8, 140u8, 72u8, + 214u8, 147u8, 91u8, 249u8, 163u8, 59u8, 178u8, 150u8, 222u8, 250u8, + 188u8, + ], + ) + } + } + } + #[doc = "The `Event` enum of this pallet"] + pub type Event = runtime_types::pallet_operations::pallet::Event; + pub mod events { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "An account has fixed its consumers counter underflow"] + pub struct ConsumersUnderflowFixed { + pub who: ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, + } + impl ::subxt::events::StaticEvent for ConsumersUnderflowFixed { + const PALLET: &'static str = "Operations"; + const EVENT: &'static str = "ConsumersUnderflowFixed"; + } + } + } pub mod runtime_types { use super::runtime_types; pub mod aleph_runtime { @@ -17894,6 +18021,8 @@ pub mod api { Proxy(runtime_types::pallet_proxy::pallet::Call), #[codec(index = 41)] BabyLiminal(runtime_types::pallet_baby_liminal::pallet::Call), + #[codec(index = 255)] + Operations(runtime_types::pallet_operations::pallet::Call), } #[derive( :: subxt :: ext :: codec :: Decode, @@ -17996,6 +18125,8 @@ pub mod api { Proxy(runtime_types::pallet_proxy::pallet::Event), #[codec(index = 41)] BabyLiminal(runtime_types::pallet_baby_liminal::pallet::Event), + #[codec(index = 255)] + Operations(runtime_types::pallet_operations::pallet::Event), } #[derive( :: subxt :: ext :: codec :: Decode, @@ -21827,6 +21958,54 @@ pub mod api { pub balance: ::core::primitive::u128, } } + pub mod pallet_operations { + use super::runtime_types; + pub mod pallet { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] + pub enum Call { + #[codec(index = 0)] + #[doc = "See [`Pallet::fix_accounts_consumers_underflow`]."] + fix_accounts_consumers_underflow { + who: ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, + }, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "The `Event` enum of this pallet"] + pub enum Event { + #[codec(index = 0)] + #[doc = "An account has fixed its consumers counter underflow"] + ConsumersUnderflowFixed { + who: ::subxt::utils::Static<::subxt::ext::sp_core::crypto::AccountId32>, + }, + } + } + } pub mod pallet_proxy { use super::runtime_types; pub mod pallet { diff --git a/benches/payout-stakers/Cargo.lock b/benches/payout-stakers/Cargo.lock index 63356d3c81..a31330ddf5 100644 --- a/benches/payout-stakers/Cargo.lock +++ b/benches/payout-stakers/Cargo.lock @@ -106,7 +106,7 @@ dependencies = [ [[package]] name = "aleph_client" -version = "3.7.2" +version = "3.7.3" dependencies = [ "anyhow", "async-trait", diff --git a/bin/cliain/Cargo.lock b/bin/cliain/Cargo.lock index 7cb2da8f66..ea259fc329 100644 --- a/bin/cliain/Cargo.lock +++ b/bin/cliain/Cargo.lock @@ -106,7 +106,7 @@ dependencies = [ [[package]] name = "aleph_client" -version = "3.7.2" +version = "3.7.3" dependencies = [ "anyhow", "async-trait", diff --git a/bin/finalizer/Cargo.lock b/bin/finalizer/Cargo.lock index 4fb1f7fa11..d5c73802e6 100644 --- a/bin/finalizer/Cargo.lock +++ b/bin/finalizer/Cargo.lock @@ -106,7 +106,7 @@ dependencies = [ [[package]] name = "aleph_client" -version = "3.7.2" +version = "3.7.3" dependencies = [ "anyhow", "async-trait", diff --git a/bin/runtime/src/lib.rs b/bin/runtime/src/lib.rs index 783ded6025..0bfdcde1fe 100644 --- a/bin/runtime/src/lib.rs +++ b/bin/runtime/src/lib.rs @@ -950,6 +950,7 @@ construct_runtime!( CommitteeManagement: pallet_committee_management = 21, Proxy: pallet_proxy = 22, BabyLiminal: pallet_baby_liminal = 41, + Operations: pallet_operations = 255, } ); diff --git a/flooder/Cargo.lock b/flooder/Cargo.lock index 834b9b3297..405263587e 100644 --- a/flooder/Cargo.lock +++ b/flooder/Cargo.lock @@ -106,7 +106,7 @@ dependencies = [ [[package]] name = "aleph_client" -version = "3.7.2" +version = "3.7.3" dependencies = [ "anyhow", "async-trait",