diff --git a/Cargo.toml b/Cargo.toml index 18cac7d..a6d2cba 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -7,3 +7,6 @@ members = [ exclude = [ "examples/", ] + +[patch.crates-io] +scale-info = { git = "https://github.com/montekki/scale-info", branch = "fs-add-type-id" } diff --git a/core/Cargo.toml b/core/Cargo.toml index 821e4db..0d11ad2 100644 --- a/core/Cargo.toml +++ b/core/Cargo.toml @@ -5,21 +5,29 @@ authors = ["Andrew Jones "] edition = "2018" [dependencies] -frame-metadata = { package = "frame-metadata", git = "https://github.com/paritytech/frame-metadata", branch = "aj-substrate", default-features = false, features = ["v13"] } +bitvec = { version = "0.20.1", default-features = false, features = ["alloc"], optional = true } +frame-metadata = { package = "frame-metadata", git = "https://github.com/paritytech/frame-metadata", default-features = false, features = ["v14"] } heck = "0.3.1" proc-macro2 = "1.0" quote = "1" syn = { version = "1.0", features = ["parsing", "full"] } scale = { package = "parity-scale-codec", version = "2.0", default-features = false} -scale-info = { git = "https://github.com/paritytech/scale-info", branch = "aj-substrate", default-features = false, features = ["derive", "decode"] } +scale-info = { version = "0.10.0", default-features = false, features = ["derive", "decode"] } thiserror = "1.0.22" [features] -default = ["std"] +default = ["std", "bit-vec"] std = [ + "bitvec/std", "frame-metadata/std", "scale/std", "scale-info/std", "scale-info/serde", ] + +# enables type information for bitvec types +bit-vec = [ + "bitvec", + "scale-info/bit-vec" +] diff --git a/core/node-runtime.scale b/core/node-runtime.scale index 111581b..70953a2 100644 Binary files a/core/node-runtime.scale and b/core/node-runtime.scale differ diff --git a/core/src/generate_runtime.rs b/core/src/generate_runtime.rs index 2d1dfee..ed1b33d 100644 --- a/core/src/generate_runtime.rs +++ b/core/src/generate_runtime.rs @@ -1,17 +1,17 @@ use crate::{TokenStream2, TypeGenerator}; -use frame_metadata::{v13::RuntimeMetadataV13, RuntimeMetadata, RuntimeMetadataPrefixed}; +use frame_metadata::{v14::RuntimeMetadataV14, RuntimeMetadata, RuntimeMetadataPrefixed}; use heck::SnakeCase as _; use quote::{format_ident, quote}; use scale_info::prelude::string::ToString; pub struct RuntimeGenerator { - metadata: RuntimeMetadataV13, + metadata: RuntimeMetadataV14, } impl RuntimeGenerator { pub fn new(metadata: RuntimeMetadataPrefixed) -> Self { match metadata.1 { - RuntimeMetadata::V13(v13) => Self { metadata: v13 }, + RuntimeMetadata::V14(v14) => Self { metadata: v14 }, _ => panic!("Unsupported metadata version {:?}", metadata.1), } } @@ -22,29 +22,50 @@ impl RuntimeGenerator { let types_mod_ident = types_mod.ident(); let modules = self.metadata.pallets.iter().map(|pallet| { let mod_name = format_ident!("{}", pallet.name.to_string().to_snake_case()); - let calls = pallet - .calls - .as_ref() - .map_or(&Vec::new(), |call_metadata| &call_metadata.calls) - .iter() - .map(|call| { - use heck::CamelCase as _; - // todo: add free functions to Call mod and doc strings - let name = format_ident!("{}", call.name.to_string().to_camel_case()); - let args = call.arguments.iter().map(|arg| { - let name = format_ident!("{}", arg.name); - let ty = type_gen.resolve_type_path(arg.ty.id(), &[]); - // todo: add docs and #[compact] attr - quote! { #name: #ty } - }); - quote! { - #[derive(Debug, ::codec::Encode, ::codec::Decode)] - pub struct #name { - #( #args ),* - } + let mut calls = Vec::new(); + for call in &pallet.calls { + let ty = call.ty; + let name = type_gen.resolve_type_path(ty.id(), &[]); + use crate::generate_types::TypePath; + match name { + TypePath::Parameter(_) => unreachable!(), + TypePath::Type(ref ty) => { + let ty = ty.ty(); + + let type_def = ty.type_def(); + + let c = match type_def { + scale_info::TypeDef::Variant(var) => var + .variants() + .iter() + .map(|var| { + use heck::CamelCase; + let name = + format_ident!("{}", var.name().to_string().to_camel_case()); + let args = var.fields().iter().filter_map(|field| { + field.name().map(|name| { + let name = format_ident!("{}", name); + let ty = + type_gen.resolve_type_path(field.ty().id(), &[]); + quote! { #name: #ty } + }) + }); + + quote! { + #[derive(Debug, ::codec::Encode, ::codec::Decode)] + pub struct #name { + #( #args ),* + } + } + }) + .collect::>(), + _ => unreachable!(), + }; + calls.extend(c); } - }) - .collect::>(); + } + } + let event = if let Some(ref event) = pallet.event { let event_type = type_gen.resolve_type_path(event.ty.id(), &[]); quote! { diff --git a/core/src/generate_types.rs b/core/src/generate_types.rs index 8f67b1b..5863933 100644 --- a/core/src/generate_types.rs +++ b/core/src/generate_types.rs @@ -14,10 +14,7 @@ use proc_macro2::{Ident, Span, TokenStream as TokenStream2, TokenStream}; use quote::{format_ident, quote, ToTokens}; -use scale_info::{ - form::PortableForm, prelude::num::NonZeroU32, Field, PortableRegistry, Type, TypeDef, - TypeDefPrimitive, -}; +use scale_info::{form::PortableForm, Field, PortableRegistry, Type, TypeDef, TypeDefPrimitive}; use std::collections::{BTreeMap, HashSet}; #[derive(Debug)] @@ -40,15 +37,15 @@ impl<'a> TypeGenerator<'a> { pub fn generate_types_mod(&'a self) -> Module<'a> { let mut root_mod = Module::new(self.root_mod_ident.clone(), self.root_mod_ident.clone()); - for (id, ty) in self.type_registry.enumerate() { - if ty.path().namespace().is_empty() { + for (id, ty) in self.type_registry.types().iter().enumerate() { + if ty.ty().path().namespace().is_empty() { // prelude types e.g. Option/Result have no namespace, so we don't generate them continue; } self.insert_type( - ty.clone(), - id, - ty.path().namespace().to_vec(), + ty.ty().clone(), + id as u32, + ty.ty().path().namespace().to_vec(), &self.root_mod_ident, &mut root_mod, ) @@ -60,7 +57,7 @@ impl<'a> TypeGenerator<'a> { fn insert_type( &'a self, ty: Type, - id: NonZeroU32, + id: u32, path: Vec, root_mod_ident: &Ident, module: &mut Module<'a>, @@ -85,11 +82,7 @@ impl<'a> TypeGenerator<'a> { /// # Panics /// /// If no type with the given id found in the type registry. - pub fn resolve_type_path( - &self, - id: NonZeroU32, - parent_type_params: &[TypeParameter], - ) -> TypePath { + pub fn resolve_type_path(&self, id: u32, parent_type_params: &[TypeParameter]) -> TypePath { if let Some(parent_type_param) = parent_type_params .iter() .find(|tp| tp.concrete_type_id == id) @@ -106,7 +99,12 @@ impl<'a> TypeGenerator<'a> { let mut ty = resolve_type(id); if ty.path().ident() == Some("Cow".to_string()) { - ty = resolve_type(ty.type_params()[0].id()) + ty = resolve_type( + ty.type_params()[0] + .ty() + .expect("type parameters to Cow are not expected to be skipped; qed") + .id(), + ) } let params_type_ids = match ty.type_def() { @@ -114,8 +112,12 @@ impl<'a> TypeGenerator<'a> { TypeDef::Sequence(seq) => vec![seq.type_param().id()], TypeDef::Tuple(tuple) => tuple.fields().iter().map(|f| f.id()).collect(), TypeDef::Compact(compact) => vec![compact.type_param().id()], - TypeDef::Phantom(phantom) => vec![phantom.type_param().id()], - _ => ty.type_params().iter().map(|f| f.id()).collect(), + TypeDef::BitSequence(seq) => vec![seq.bit_order_type().id(), seq.bit_store_type().id()], + _ => ty + .type_params() + .iter() + .filter_map(|f| f.ty().map(|f| f.id())) + .collect(), }; let params = params_type_ids @@ -198,12 +200,15 @@ impl<'a> quote::ToTokens for ModuleType<'a> { .type_params() .iter() .enumerate() - .map(|(i, tp)| { - let tp_name = format_ident!("_{}", i); - TypeParameter { - concrete_type_id: tp.id(), - name: tp_name, + .filter_map(|(i, tp)| match tp.ty() { + Some(ty) => { + let tp_name = format_ident!("_{}", i); + Some(TypeParameter { + concrete_type_id: ty.id(), + name: tp_name, + }) } + None => None, }) .collect::>(); @@ -327,11 +332,12 @@ impl<'a> ModuleType<'a> { let mut fields_tokens = fields .iter() - .map(|(name, ty, ty_name)| { - let ty = ty_toks(ty_name, ty); - if is_struct { + .map(|(name, ty, ty_name)| match ty_name { + Some(ty_name) if is_struct => { + let ty = ty_toks(ty_name, ty); quote! { pub #name: #ty } - } else { + } + _ => { quote! { #name: #ty } } }) @@ -363,11 +369,12 @@ impl<'a> ModuleType<'a> { .collect::>(); let mut fields_tokens = type_paths .iter() - .map(|(ty, ty_name)| { - let ty = ty_toks(ty_name, ty); - if is_struct { + .map(|(ty, ty_name)| match ty_name { + Some(ty_name) if is_struct => { + let ty = ty_toks(ty_name, ty); quote! { pub #ty } - } else { + } + _ => { quote! { #ty } } }) @@ -410,7 +417,7 @@ impl quote::ToTokens for TypePath { } impl TypePath { - fn to_syn_type(&self) -> syn::Type { + pub(crate) fn to_syn_type(&self) -> syn::Type { match self { TypePath::Parameter(ty_param) => syn::Type::Path(syn::parse_quote! { #ty_param }), TypePath::Type(ty) => ty.to_syn_type(), @@ -444,6 +451,10 @@ pub struct TypePathType { } impl TypePathType { + pub(crate) fn ty(&self) -> &Type { + &self.ty + } + fn to_syn_type(&self) -> syn::Type { let params = &self.params; match self.ty.type_def() { @@ -505,20 +516,23 @@ impl TypePathType { let path = syn::parse_quote! { #ident }; syn::Type::Path(path) } - TypeDef::Phantom(_) => { - let type_param = params - .iter() - .next() - .expect("a phantom type should have a single type parameter"); - let type_path = syn::parse_quote! { core::marker::PhantomData<#type_param> }; - syn::Type::Path(type_path) - } TypeDef::Compact(_) => { // todo: change the return type of this method to include info that it is compact // and should be annotated with #[compact] for fields let compact_type = &self.params[0]; syn::Type::Path(syn::parse_quote! ( #compact_type )) } + TypeDef::BitSequence(_) => { + let bit_order_type = &self.params[0]; + let bit_store_type = &self.params[1]; + + let mut type_path: syn::punctuated::Punctuated = + syn::parse_quote! { bitvec::vec::BitVec<#bit_order_type, #bit_store_type> }; + type_path.insert(0, syn::PathSegment::from(self.root_mod_ident.clone())); + let type_path = syn::parse_quote! { #type_path }; + + syn::Type::Path(type_path) + } } } @@ -540,7 +554,7 @@ impl TypePathType { #[derive(Clone, Debug, Eq, PartialEq, Ord, PartialOrd, Hash)] pub struct TypeParameter { - concrete_type_id: NonZeroU32, + concrete_type_id: u32, name: proc_macro2::Ident, } @@ -896,6 +910,45 @@ mod tests { ) } + #[cfg(feature = "bit-vec")] + #[test] + fn generate_bitvec() { + use bitvec::{ + order::{Lsb0, Msb0}, + vec::BitVec, + }; + + #[allow(unused)] + #[derive(TypeInfo)] + struct S { + lsb: BitVec, + msb: BitVec, + } + + let mut registry = Registry::new(); + registry.register_type(&meta_type::()); + let portable_types: PortableRegistry = registry.into(); + + let type_gen = TypeGenerator::new(&portable_types, "root"); + let types = type_gen.generate_types_mod(); + let tests_mod = types.get_mod(MOD_PATH).unwrap(); + + assert_eq!( + tests_mod.into_token_stream().to_string(), + quote! { + pub mod tests { + use super::root; + #[derive(Debug, ::codec::Encode, ::codec::Decode)] + pub struct S { + pub lsb: root::bitvec::vec::BitVec, + pub msb: root::bitvec::vec::BitVec, + } + } + } + .to_string() + ) + } + #[test] fn generics_with_alias_adds_phantom_data_marker() { trait Trait { diff --git a/examples/codegen/src/substrate_node_runtime.rs b/examples/codegen/src/substrate_node_runtime.rs index cc04c48..632267f 100644 --- a/examples/codegen/src/substrate_node_runtime.rs +++ b/examples/codegen/src/substrate_node_runtime.rs @@ -62,6 +62,10 @@ pub mod node_runtime { Lottery(lottery::Event), #[codec(index = 37)] Gilt(gilt::Event), + #[codec(index = 38)] + Uniques(uniques::Event), + #[codec(index = 39)] + TransactionStorage(transaction_storage::Event), } pub mod system { use super::__runtime_types; @@ -110,8 +114,7 @@ pub mod node_runtime { remark: Vec, } } - pub type Event = - __runtime_types::frame_system::pallet::Event<__runtime_types::node_runtime::Runtime>; + pub type Event = __runtime_types::frame_system::pallet::Event; } pub mod utility { use super::__runtime_types; @@ -207,8 +210,7 @@ pub mod node_runtime { index: u32, } } - pub type Event = - __runtime_types::pallet_indices::pallet::Event<__runtime_types::node_runtime::Runtime>; + pub type Event = __runtime_types::pallet_indices::pallet::Event; } pub mod balances { use super::__runtime_types; @@ -251,11 +253,16 @@ pub mod node_runtime { >, value: u128, } + #[derive(Debug, :: codec :: Encode, :: codec :: Decode)] + pub struct TransferAll { + dest: __runtime_types::sp_runtime::multiaddress::MultiAddress< + __runtime_types::sp_core::crypto::AccountId32, + u32, + >, + keep_alive: bool, + } } - pub type Event = __runtime_types::pallet_balances::pallet::Event< - __runtime_types::node_runtime::Runtime, - (), - >; + pub type Event = __runtime_types::pallet_balances::pallet::Event; } pub mod transaction_payment { use super::__runtime_types; @@ -272,10 +279,28 @@ pub mod node_runtime { witness: __runtime_types::pallet_election_provider_multi_phase::SolutionOrSnapshotSize, } + #[derive(Debug, :: codec :: Encode, :: codec :: Decode)] + pub struct SetMinimumUntrustedScore { + maybe_next_score: Option<[u128; 3usize]>, + } + #[derive(Debug, :: codec :: Encode, :: codec :: Decode)] + pub struct SetEmergencyElectionResult { + supports: Vec<( + __runtime_types::sp_core::crypto::AccountId32, + __runtime_types::sp_npos_elections::Support< + __runtime_types::sp_core::crypto::AccountId32, + >, + )>, + } + #[derive(Debug, :: codec :: Encode, :: codec :: Decode)] + pub struct Submit { + solution: __runtime_types::pallet_election_provider_multi_phase::RawSolution< + __runtime_types::node_runtime::NposCompactSolution16, + >, + num_signed_submissions: u32, + } } - pub type Event = __runtime_types::pallet_election_provider_multi_phase::pallet::Event< - __runtime_types::node_runtime::Runtime, - >; + pub type Event = __runtime_types::pallet_election_provider_multi_phase::pallet::Event; } pub mod staking { use super::__runtime_types; @@ -392,11 +417,20 @@ pub mod node_runtime { >, >, } + #[derive(Debug, :: codec :: Encode, :: codec :: Decode)] + pub struct SetStakingLimits { + min_nominator_bond: u128, + min_validator_bond: u128, + max_nominator_count: Option, + max_validator_count: Option, + threshold: Option<__runtime_types::sp_arithmetic::per_things::Percent>, + } + #[derive(Debug, :: codec :: Encode, :: codec :: Decode)] + pub struct ChillOther { + controller: __runtime_types::sp_core::crypto::AccountId32, + } } - pub type Event = __runtime_types::pallet_staking::RawEvent< - u128, - __runtime_types::sp_core::crypto::AccountId32, - >; + pub type Event = __runtime_types::pallet_staking::pallet::pallet::Event; } pub mod session { use super::__runtime_types; @@ -524,12 +558,7 @@ pub mod node_runtime { prop_index: u32, } } - pub type Event = __runtime_types::pallet_democracy::RawEvent< - u128, - __runtime_types::sp_core::crypto::AccountId32, - __runtime_types::primitive_types::H256, - u32, - >; + pub type Event = __runtime_types::pallet_democracy::pallet::Event; } pub mod council { use super::__runtime_types; @@ -654,9 +683,7 @@ pub mod node_runtime { _num_defunct: u32, } } - pub type Event = __runtime_types::pallet_elections_phragmen::pallet::Event< - __runtime_types::node_runtime::Runtime, - >; + pub type Event = __runtime_types::pallet_elections_phragmen::pallet::Event; } pub mod technical_membership { use super::__runtime_types; @@ -722,7 +749,7 @@ pub mod node_runtime { best_finalized_block_number: u32, } } - pub type Event = __runtime_types::pallet_grandpa::Event; + pub type Event = __runtime_types::pallet_grandpa::pallet::Event; } pub mod treasury { use super::__runtime_types; @@ -745,23 +772,13 @@ pub mod node_runtime { proposal_id: u32, } } - pub type Event = __runtime_types::pallet_treasury::RawEvent< - u128, - __runtime_types::sp_core::crypto::AccountId32, - __runtime_types::pallet_treasury::DefaultInstance, - >; + pub type Event = __runtime_types::pallet_treasury::pallet::Event; } pub mod contracts { use super::__runtime_types; mod calls { use super::__runtime_types; #[derive(Debug, :: codec :: Encode, :: codec :: Decode)] - pub struct UpdateSchedule { - schedule: __runtime_types::pallet_contracts::schedule::Schedule< - __runtime_types::node_runtime::Runtime, - >, - } - #[derive(Debug, :: codec :: Encode, :: codec :: Decode)] pub struct Call { dest: __runtime_types::sp_runtime::multiaddress::MultiAddress< __runtime_types::sp_core::crypto::AccountId32, @@ -793,9 +810,7 @@ pub mod node_runtime { aux_sender: Option<__runtime_types::sp_core::crypto::AccountId32>, } } - pub type Event = __runtime_types::pallet_contracts::pallet::Event< - __runtime_types::node_runtime::Runtime, - >; + pub type Event = __runtime_types::pallet_contracts::pallet::Event; } pub mod sudo { use super::__runtime_types; @@ -826,8 +841,7 @@ pub mod node_runtime { call: __runtime_types::node_runtime::Call, } } - pub type Event = - __runtime_types::pallet_sudo::pallet::Event<__runtime_types::node_runtime::Runtime>; + pub type Event = __runtime_types::pallet_sudo::pallet::Event; } pub mod im_online { use super::__runtime_types; @@ -839,23 +853,14 @@ pub mod node_runtime { _signature: __runtime_types::pallet_im_online::sr25519::app_sr25519::Signature, } } - pub type Event = __runtime_types::pallet_im_online::RawEvent< - __runtime_types::pallet_im_online::sr25519::app_sr25519::Public, - ( - __runtime_types::sp_core::crypto::AccountId32, - __runtime_types::pallet_staking::Exposure< - __runtime_types::sp_core::crypto::AccountId32, - u128, - >, - ), - >; + pub type Event = __runtime_types::pallet_im_online::pallet::Event; } pub mod authority_discovery { use super::__runtime_types; } pub mod offences { use super::__runtime_types; - pub type Event = __runtime_types::pallet_offences::Event; + pub type Event = __runtime_types::pallet_offences::pallet::Event; } pub mod historical { use super::__runtime_types; @@ -873,13 +878,13 @@ pub mod node_runtime { } #[derive(Debug, :: codec :: Encode, :: codec :: Decode)] pub struct SetIdentity { - info: __runtime_types::pallet_identity::IdentityInfo, + info: __runtime_types::pallet_identity::types::IdentityInfo, } #[derive(Debug, :: codec :: Encode, :: codec :: Decode)] pub struct SetSubs { subs: Vec<( __runtime_types::sp_core::crypto::AccountId32, - __runtime_types::pallet_identity::Data, + __runtime_types::pallet_identity::types::Data, )>, } #[derive(Debug, :: codec :: Encode, :: codec :: Decode)] @@ -906,7 +911,9 @@ pub mod node_runtime { #[derive(Debug, :: codec :: Encode, :: codec :: Decode)] pub struct SetFields { index: u32, - fields: __runtime_types::pallet_identity::IdentityFields, + fields: __runtime_types::pallet_identity::types::BitFlags< + __runtime_types::pallet_identity::types::IdentityField, + >, } #[derive(Debug, :: codec :: Encode, :: codec :: Decode)] pub struct ProvideJudgement { @@ -915,7 +922,7 @@ pub mod node_runtime { __runtime_types::sp_core::crypto::AccountId32, u32, >, - judgement: __runtime_types::pallet_identity::Judgement, + judgement: __runtime_types::pallet_identity::types::Judgement, } #[derive(Debug, :: codec :: Encode, :: codec :: Decode)] pub struct KillIdentity { @@ -930,7 +937,7 @@ pub mod node_runtime { __runtime_types::sp_core::crypto::AccountId32, u32, >, - data: __runtime_types::pallet_identity::Data, + data: __runtime_types::pallet_identity::types::Data, } #[derive(Debug, :: codec :: Encode, :: codec :: Decode)] pub struct RenameSub { @@ -938,7 +945,7 @@ pub mod node_runtime { __runtime_types::sp_core::crypto::AccountId32, u32, >, - data: __runtime_types::pallet_identity::Data, + data: __runtime_types::pallet_identity::types::Data, } #[derive(Debug, :: codec :: Encode, :: codec :: Decode)] pub struct RemoveSub { @@ -950,8 +957,7 @@ pub mod node_runtime { #[derive(Debug, :: codec :: Encode, :: codec :: Decode)] pub struct QuitSub {} } - pub type Event = - __runtime_types::pallet_identity::pallet::Event<__runtime_types::node_runtime::Runtime>; + pub type Event = __runtime_types::pallet_identity::pallet::Event; } pub mod society { use super::__runtime_types; @@ -1062,9 +1068,7 @@ pub mod node_runtime { account: __runtime_types::sp_core::crypto::AccountId32, } } - pub type Event = __runtime_types::pallet_recovery::RawEvent< - __runtime_types::sp_core::crypto::AccountId32, - >; + pub type Event = __runtime_types::pallet_recovery::pallet::Event; } pub mod vesting { use super::__runtime_types; @@ -1100,8 +1104,7 @@ pub mod node_runtime { schedule: __runtime_types::pallet_vesting::VestingInfo, } } - pub type Event = - __runtime_types::pallet_vesting::pallet::Event<__runtime_types::node_runtime::Runtime>; + pub type Event = __runtime_types::pallet_vesting::pallet::Event; } pub mod scheduler { use super::__runtime_types; @@ -1147,7 +1150,7 @@ pub mod node_runtime { call: __runtime_types::node_runtime::Call, } } - pub type Event = __runtime_types::pallet_scheduler::RawEvent; + pub type Event = __runtime_types::pallet_scheduler::pallet::Event; } pub mod proxy { use super::__runtime_types; @@ -1210,8 +1213,7 @@ pub mod node_runtime { call: __runtime_types::node_runtime::Call, } } - pub type Event = - __runtime_types::pallet_proxy::pallet::Event<__runtime_types::node_runtime::Runtime>; + pub type Event = __runtime_types::pallet_proxy::pallet::Event; } pub mod multisig { use super::__runtime_types; @@ -1247,11 +1249,7 @@ pub mod node_runtime { call_hash: [u8; 32usize], } } - pub type Event = __runtime_types::pallet_multisig::RawEvent< - __runtime_types::sp_core::crypto::AccountId32, - u32, - [u8; 32usize], - >; + pub type Event = __runtime_types::pallet_multisig::pallet::Event; } pub mod bounties { use super::__runtime_types; @@ -1563,10 +1561,7 @@ pub mod node_runtime { amount: u64, } } - pub type Event = __runtime_types::pallet_assets::pallet::Event< - __runtime_types::node_runtime::Runtime, - (), - >; + pub type Event = __runtime_types::pallet_assets::pallet::Event; } pub mod mmr { use super::__runtime_types; @@ -1593,10 +1588,7 @@ pub mod node_runtime { #[derive(Debug, :: codec :: Encode, :: codec :: Decode)] pub struct StopRepeat {} } - pub type Event = __runtime_types::pallet_lottery::RawEvent< - __runtime_types::sp_core::crypto::AccountId32, - u128, - >; + pub type Event = __runtime_types::pallet_lottery::pallet::Event; } pub mod gilt { use super::__runtime_types; @@ -1621,15 +1613,214 @@ pub mod node_runtime { index: u32, } } - pub type Event = - __runtime_types::pallet_gilt::pallet::Event<__runtime_types::node_runtime::Runtime>; + pub type Event = __runtime_types::pallet_gilt::pallet::Event; + } + pub mod uniques { + use super::__runtime_types; + mod calls { + use super::__runtime_types; + #[derive(Debug, :: codec :: Encode, :: codec :: Decode)] + pub struct Create { + class: u32, + admin: __runtime_types::sp_runtime::multiaddress::MultiAddress< + __runtime_types::sp_core::crypto::AccountId32, + u32, + >, + } + #[derive(Debug, :: codec :: Encode, :: codec :: Decode)] + pub struct ForceCreate { + class: u32, + owner: __runtime_types::sp_runtime::multiaddress::MultiAddress< + __runtime_types::sp_core::crypto::AccountId32, + u32, + >, + free_holding: bool, + } + #[derive(Debug, :: codec :: Encode, :: codec :: Decode)] + pub struct Destroy { + class: u32, + witness: __runtime_types::pallet_uniques::types::DestroyWitness, + } + #[derive(Debug, :: codec :: Encode, :: codec :: Decode)] + pub struct Mint { + class: u32, + instance: u32, + owner: __runtime_types::sp_runtime::multiaddress::MultiAddress< + __runtime_types::sp_core::crypto::AccountId32, + u32, + >, + } + #[derive(Debug, :: codec :: Encode, :: codec :: Decode)] + pub struct Burn { + class: u32, + instance: u32, + check_owner: Option< + __runtime_types::sp_runtime::multiaddress::MultiAddress< + __runtime_types::sp_core::crypto::AccountId32, + u32, + >, + >, + } + #[derive(Debug, :: codec :: Encode, :: codec :: Decode)] + pub struct Transfer { + class: u32, + instance: u32, + dest: __runtime_types::sp_runtime::multiaddress::MultiAddress< + __runtime_types::sp_core::crypto::AccountId32, + u32, + >, + } + #[derive(Debug, :: codec :: Encode, :: codec :: Decode)] + pub struct Redeposit { + class: u32, + instances: Vec, + } + #[derive(Debug, :: codec :: Encode, :: codec :: Decode)] + pub struct Freeze { + class: u32, + instance: u32, + } + #[derive(Debug, :: codec :: Encode, :: codec :: Decode)] + pub struct Thaw { + class: u32, + instance: u32, + } + #[derive(Debug, :: codec :: Encode, :: codec :: Decode)] + pub struct FreezeClass { + class: u32, + } + #[derive(Debug, :: codec :: Encode, :: codec :: Decode)] + pub struct ThawClass { + class: u32, + } + #[derive(Debug, :: codec :: Encode, :: codec :: Decode)] + pub struct TransferOwnership { + class: u32, + owner: __runtime_types::sp_runtime::multiaddress::MultiAddress< + __runtime_types::sp_core::crypto::AccountId32, + u32, + >, + } + #[derive(Debug, :: codec :: Encode, :: codec :: Decode)] + pub struct SetTeam { + class: u32, + issuer: __runtime_types::sp_runtime::multiaddress::MultiAddress< + __runtime_types::sp_core::crypto::AccountId32, + u32, + >, + admin: __runtime_types::sp_runtime::multiaddress::MultiAddress< + __runtime_types::sp_core::crypto::AccountId32, + u32, + >, + freezer: __runtime_types::sp_runtime::multiaddress::MultiAddress< + __runtime_types::sp_core::crypto::AccountId32, + u32, + >, + } + #[derive(Debug, :: codec :: Encode, :: codec :: Decode)] + pub struct ApproveTransfer { + class: u32, + instance: u32, + delegate: __runtime_types::sp_runtime::multiaddress::MultiAddress< + __runtime_types::sp_core::crypto::AccountId32, + u32, + >, + } + #[derive(Debug, :: codec :: Encode, :: codec :: Decode)] + pub struct CancelApproval { + class: u32, + instance: u32, + maybe_check_delegate: Option< + __runtime_types::sp_runtime::multiaddress::MultiAddress< + __runtime_types::sp_core::crypto::AccountId32, + u32, + >, + >, + } + #[derive(Debug, :: codec :: Encode, :: codec :: Decode)] + pub struct ForceAssetStatus { + class: u32, + owner: __runtime_types::sp_runtime::multiaddress::MultiAddress< + __runtime_types::sp_core::crypto::AccountId32, + u32, + >, + issuer: __runtime_types::sp_runtime::multiaddress::MultiAddress< + __runtime_types::sp_core::crypto::AccountId32, + u32, + >, + admin: __runtime_types::sp_runtime::multiaddress::MultiAddress< + __runtime_types::sp_core::crypto::AccountId32, + u32, + >, + freezer: __runtime_types::sp_runtime::multiaddress::MultiAddress< + __runtime_types::sp_core::crypto::AccountId32, + u32, + >, + free_holding: bool, + is_frozen: bool, + } + #[derive(Debug, :: codec :: Encode, :: codec :: Decode)] + pub struct SetAttribute { + class: u32, + maybe_instance: Option, + key: __runtime_types::frame_support::storage::bounded_vec::BoundedVec, + value: __runtime_types::frame_support::storage::bounded_vec::BoundedVec, + } + #[derive(Debug, :: codec :: Encode, :: codec :: Decode)] + pub struct ClearAttribute { + class: u32, + maybe_instance: Option, + key: __runtime_types::frame_support::storage::bounded_vec::BoundedVec, + } + #[derive(Debug, :: codec :: Encode, :: codec :: Decode)] + pub struct SetMetadata { + class: u32, + instance: u32, + data: __runtime_types::frame_support::storage::bounded_vec::BoundedVec, + is_frozen: bool, + } + #[derive(Debug, :: codec :: Encode, :: codec :: Decode)] + pub struct ClearMetadata { + class: u32, + instance: u32, + } + #[derive(Debug, :: codec :: Encode, :: codec :: Decode)] + pub struct SetClassMetadata { + class: u32, + data: __runtime_types::frame_support::storage::bounded_vec::BoundedVec, + is_frozen: bool, + } + #[derive(Debug, :: codec :: Encode, :: codec :: Decode)] + pub struct ClearClassMetadata { + class: u32, + } + } + pub type Event = __runtime_types::pallet_uniques::pallet::Event; + } + pub mod transaction_storage { + use super::__runtime_types; + mod calls { + use super::__runtime_types; + #[derive(Debug, :: codec :: Encode, :: codec :: Decode)] + pub struct Store { + data: Vec, + } + #[derive(Debug, :: codec :: Encode, :: codec :: Decode)] + pub struct Renew { + block: u32, + index: u32, + } + #[derive(Debug, :: codec :: Encode, :: codec :: Decode)] + pub struct CheckProof { + proof: __runtime_types::sp_transaction_storage_proof::TransactionStorageProof, + } + } + pub type Event = __runtime_types::pallet_transaction_storage::pallet::Event; } pub mod __runtime_types { use super::__runtime_types; - use std::collections::BTreeMap; pub mod finality_grandpa { use super::__runtime_types; - use std::collections::BTreeMap; #[derive(Debug, :: codec :: Encode, :: codec :: Decode)] pub struct Equivocation<_0, _1, _2> { pub round_number: u64, @@ -1650,26 +1841,30 @@ pub mod node_runtime { } pub mod frame_support { use super::__runtime_types; - use std::collections::BTreeMap; pub mod storage { use super::__runtime_types; - use std::collections::BTreeMap; + pub mod bounded_btree_map { + use super::__runtime_types; + #[derive(Debug, :: codec :: Encode, :: codec :: Decode)] + pub struct BoundedBTreeMap<_0, _1>(pub std::collections::BTreeMap<_0, _1>); + } pub mod bounded_vec { use super::__runtime_types; - use std::collections::BTreeMap; #[derive(Debug, :: codec :: Encode, :: codec :: Decode)] - pub struct BoundedVec<_0, _1>(pub Vec<_0>, pub core::marker::PhantomData<_1>); + pub struct BoundedVec<_0>(pub Vec<_0>); + } + pub mod weak_bounded_vec { + use super::__runtime_types; + #[derive(Debug, :: codec :: Encode, :: codec :: Decode)] + pub struct WeakBoundedVec<_0>(pub Vec<_0>); } } pub mod traits { use super::__runtime_types; - use std::collections::BTreeMap; pub mod tokens { use super::__runtime_types; - use std::collections::BTreeMap; pub mod misc { use super::__runtime_types; - use std::collections::BTreeMap; #[derive(Debug, :: codec :: Encode, :: codec :: Decode)] pub enum BalanceStatus { Free, @@ -1680,7 +1875,6 @@ pub mod node_runtime { } pub mod weights { use super::__runtime_types; - use std::collections::BTreeMap; #[derive(Debug, :: codec :: Encode, :: codec :: Decode)] pub enum DispatchClass { Normal, @@ -1718,59 +1912,45 @@ pub mod node_runtime { } } #[derive(Debug, :: codec :: Encode, :: codec :: Decode)] - pub enum Never {} - #[derive(Debug, :: codec :: Encode, :: codec :: Decode)] pub struct PalletId(pub [u8; 8usize]); } pub mod frame_system { use super::__runtime_types; - use std::collections::BTreeMap; pub mod extensions { use super::__runtime_types; - use std::collections::BTreeMap; pub mod check_genesis { use super::__runtime_types; - use std::collections::BTreeMap; #[derive(Debug, :: codec :: Encode, :: codec :: Decode)] - pub struct CheckGenesis<_0>(pub core::marker::PhantomData<_0>); + pub struct CheckGenesis {} } pub mod check_mortality { use super::__runtime_types; - use std::collections::BTreeMap; #[derive(Debug, :: codec :: Encode, :: codec :: Decode)] - pub struct CheckMortality<_0>( - pub __runtime_types::sp_runtime::generic::era::Era, - pub core::marker::PhantomData<_0>, - ); + pub struct CheckMortality(pub __runtime_types::sp_runtime::generic::era::Era); } pub mod check_nonce { use super::__runtime_types; - use std::collections::BTreeMap; #[derive(Debug, :: codec :: Encode, :: codec :: Decode)] - pub struct CheckNonce<_0>(pub u32, pub core::marker::PhantomData<(_0,)>); + pub struct CheckNonce(pub u32); } pub mod check_spec_version { use super::__runtime_types; - use std::collections::BTreeMap; #[derive(Debug, :: codec :: Encode, :: codec :: Decode)] - pub struct CheckSpecVersion<_0>(pub core::marker::PhantomData<_0>); + pub struct CheckSpecVersion {} } pub mod check_tx_version { use super::__runtime_types; - use std::collections::BTreeMap; #[derive(Debug, :: codec :: Encode, :: codec :: Decode)] - pub struct CheckTxVersion<_0>(pub core::marker::PhantomData<_0>); + pub struct CheckTxVersion {} } pub mod check_weight { use super::__runtime_types; - use std::collections::BTreeMap; #[derive(Debug, :: codec :: Encode, :: codec :: Decode)] - pub struct CheckWeight<_0>(pub core::marker::PhantomData<_0>); + pub struct CheckWeight {} } } pub mod limits { use super::__runtime_types; - use std::collections::BTreeMap; #[derive(Debug, :: codec :: Encode, :: codec :: Decode)] pub struct BlockLength { pub max: __runtime_types::frame_support::weights::PerDispatchClass, @@ -1793,29 +1973,44 @@ pub mod node_runtime { } pub mod pallet { use super::__runtime_types; - use std::collections::BTreeMap; - #[derive(Debug, :: codec :: Encode, :: codec :: Decode)] - pub enum Call<_0> { - fill_block(__runtime_types::sp_arithmetic::per_things::Perbill), - remark(Vec), - set_heap_pages(u64), - set_code(Vec), - set_code_without_checks(Vec), - set_changes_trie_config( - Option<__runtime_types::sp_core::changes_trie::ChangesTrieConfiguration>, - ), - set_storage(Vec<(Vec, Vec)>), - kill_storage(Vec>), - kill_prefix(Vec, u32), - remark_with_event(Vec), - __Ignore(core::marker::PhantomData<(_0,)>), + #[derive(Debug, :: codec :: Encode, :: codec :: Decode)] + pub enum Call { + fill_block { + _ratio: __runtime_types::sp_arithmetic::per_things::Perbill, + }, + remark { + _remark: Vec, + }, + set_heap_pages { + pages: u64, + }, + set_code { + code: Vec, + }, + set_code_without_checks { + code: Vec, + }, + set_changes_trie_config { + changes_trie_config: Option< + __runtime_types::sp_core::changes_trie::ChangesTrieConfiguration, + >, + }, + set_storage { + items: Vec<(Vec, Vec)>, + }, + kill_storage { + keys: Vec>, + }, + kill_prefix { + prefix: Vec, + _subkeys: u32, + }, + remark_with_event { + remark: Vec, + }, } #[derive(Debug, :: codec :: Encode, :: codec :: Decode)] - pub enum Error<_0> { - __Ignore( - core::marker::PhantomData<_0>, - __runtime_types::frame_support::Never, - ), + pub enum Error { InvalidSpecName, SpecVersionNeedsToIncrease, FailedToExtractRuntimeVersion, @@ -1823,7 +2018,7 @@ pub mod node_runtime { NonZeroRefCount, } #[derive(Debug, :: codec :: Encode, :: codec :: Decode)] - pub enum Event<_0> { + pub enum Event { ExtrinsicSuccess(__runtime_types::frame_support::weights::DispatchInfo), ExtrinsicFailed( __runtime_types::sp_runtime::DispatchError, @@ -1836,7 +2031,6 @@ pub mod node_runtime { __runtime_types::sp_core::crypto::AccountId32, __runtime_types::primitive_types::H256, ), - __Ignore(core::marker::PhantomData<(_0,)>), } } #[derive(Debug, :: codec :: Encode, :: codec :: Decode)] @@ -1873,406 +2067,191 @@ pub mod node_runtime { } pub mod node_runtime { use super::__runtime_types; - use std::collections::BTreeMap; #[derive(Debug, :: codec :: Encode, :: codec :: Decode)] pub enum Call { - System( - __runtime_types::frame_system::pallet::Call< - __runtime_types::node_runtime::Runtime, - >, - ), - Utility( - __runtime_types::pallet_utility::pallet::Call< - __runtime_types::node_runtime::Runtime, - >, - ), - Babe( - __runtime_types::pallet_babe::pallet::Call< - __runtime_types::node_runtime::Runtime, - >, - ), - Timestamp( - __runtime_types::pallet_timestamp::pallet::Call< - __runtime_types::node_runtime::Runtime, - >, - ), - Authorship( - __runtime_types::pallet_authorship::pallet::Call< - __runtime_types::node_runtime::Runtime, - >, - ), - Indices( - __runtime_types::pallet_indices::pallet::Call< - __runtime_types::node_runtime::Runtime, - >, - ), - Balances( - __runtime_types::pallet_balances::pallet::Call< - __runtime_types::node_runtime::Runtime, - (), - >, - ), + System(__runtime_types::frame_system::pallet::Call), + Utility(__runtime_types::pallet_utility::pallet::Call), + Babe(__runtime_types::pallet_babe::pallet::Call), + Timestamp(__runtime_types::pallet_timestamp::pallet::Call), + Authorship(__runtime_types::pallet_authorship::pallet::Call), + Indices(__runtime_types::pallet_indices::pallet::Call), + Balances(__runtime_types::pallet_balances::pallet::Call), ElectionProviderMultiPhase( - __runtime_types::pallet_election_provider_multi_phase::pallet::Call< - __runtime_types::node_runtime::Runtime, - >, - ), - Staking( - __runtime_types::pallet_staking::Call<__runtime_types::node_runtime::Runtime>, + __runtime_types::pallet_election_provider_multi_phase::pallet::Call, ), - Session( - __runtime_types::pallet_session::Call<__runtime_types::node_runtime::Runtime>, - ), - Democracy( - __runtime_types::pallet_democracy::Call<__runtime_types::node_runtime::Runtime>, + Staking(__runtime_types::pallet_staking::pallet::pallet::Call), + Session(__runtime_types::pallet_session::Call), + Democracy(__runtime_types::pallet_democracy::pallet::Call), + Council(__runtime_types::pallet_collective::Call), + TechnicalCommittee(__runtime_types::pallet_collective::Call), + Elections(__runtime_types::pallet_elections_phragmen::pallet::Call), + TechnicalMembership(__runtime_types::pallet_membership::Call), + Grandpa(__runtime_types::pallet_grandpa::pallet::Call), + Treasury(__runtime_types::pallet_treasury::pallet::Call), + Contracts(__runtime_types::pallet_contracts::pallet::Call), + Sudo(__runtime_types::pallet_sudo::pallet::Call), + ImOnline(__runtime_types::pallet_im_online::pallet::Call), + Identity(__runtime_types::pallet_identity::pallet::Call), + Society(__runtime_types::pallet_society::Call), + Recovery(__runtime_types::pallet_recovery::pallet::Call), + Vesting(__runtime_types::pallet_vesting::pallet::Call), + Scheduler(__runtime_types::pallet_scheduler::pallet::Call), + Proxy(__runtime_types::pallet_proxy::pallet::Call), + Multisig(__runtime_types::pallet_multisig::pallet::Call), + Bounties(__runtime_types::pallet_bounties::Call), + Tips(__runtime_types::pallet_tips::Call), + Assets(__runtime_types::pallet_assets::pallet::Call), + Lottery(__runtime_types::pallet_lottery::pallet::Call), + Gilt(__runtime_types::pallet_gilt::pallet::Call), + Uniques(__runtime_types::pallet_uniques::pallet::Call), + TransactionStorage(__runtime_types::pallet_transaction_storage::pallet::Call), + } + #[derive(Debug, :: codec :: Encode, :: codec :: Decode)] + pub enum Event { + System(__runtime_types::frame_system::pallet::Event), + Utility(__runtime_types::pallet_utility::pallet::Event), + Indices(__runtime_types::pallet_indices::pallet::Event), + Balances(__runtime_types::pallet_balances::pallet::Event), + ElectionProviderMultiPhase( + __runtime_types::pallet_election_provider_multi_phase::pallet::Event, ), + Staking(__runtime_types::pallet_staking::pallet::pallet::Event), + Session(__runtime_types::pallet_session::Event), + Democracy(__runtime_types::pallet_democracy::pallet::Event), Council( - __runtime_types::pallet_collective::Call< - __runtime_types::node_runtime::Runtime, + __runtime_types::pallet_collective::RawEvent< + __runtime_types::primitive_types::H256, + __runtime_types::sp_core::crypto::AccountId32, __runtime_types::pallet_collective::Instance1, >, ), TechnicalCommittee( - __runtime_types::pallet_collective::Call< - __runtime_types::node_runtime::Runtime, + __runtime_types::pallet_collective::RawEvent< + __runtime_types::primitive_types::H256, + __runtime_types::sp_core::crypto::AccountId32, __runtime_types::pallet_collective::Instance2, >, ), - Elections( - __runtime_types::pallet_elections_phragmen::pallet::Call< - __runtime_types::node_runtime::Runtime, - >, - ), + Elections(__runtime_types::pallet_elections_phragmen::pallet::Event), TechnicalMembership( - __runtime_types::pallet_membership::Call< - __runtime_types::node_runtime::Runtime, + __runtime_types::pallet_membership::RawEvent< + __runtime_types::sp_core::crypto::AccountId32, + __runtime_types::node_runtime::Event, __runtime_types::pallet_membership::Instance1, >, ), - Grandpa( - __runtime_types::pallet_grandpa::Call<__runtime_types::node_runtime::Runtime>, - ), - Treasury( - __runtime_types::pallet_treasury::Call< - __runtime_types::node_runtime::Runtime, - __runtime_types::pallet_treasury::DefaultInstance, - >, - ), - Contracts( - __runtime_types::pallet_contracts::pallet::Call< - __runtime_types::node_runtime::Runtime, + Grandpa(__runtime_types::pallet_grandpa::pallet::Event), + Treasury(__runtime_types::pallet_treasury::pallet::Event), + Contracts(__runtime_types::pallet_contracts::pallet::Event), + Sudo(__runtime_types::pallet_sudo::pallet::Event), + ImOnline(__runtime_types::pallet_im_online::pallet::Event), + Offences(__runtime_types::pallet_offences::pallet::Event), + Identity(__runtime_types::pallet_identity::pallet::Event), + Society( + __runtime_types::pallet_society::RawEvent< + __runtime_types::sp_core::crypto::AccountId32, + u128, + __runtime_types::pallet_society::DefaultInstance, >, ), - Sudo( - __runtime_types::pallet_sudo::pallet::Call< - __runtime_types::node_runtime::Runtime, - >, - ), - ImOnline( - __runtime_types::pallet_im_online::Call<__runtime_types::node_runtime::Runtime>, - ), - AuthorityDiscovery( - __runtime_types::pallet_authority_discovery::pallet::Call< - __runtime_types::node_runtime::Runtime, - >, - ), - Offences( - __runtime_types::pallet_offences::Call<__runtime_types::node_runtime::Runtime>, - ), - RandomnessCollectiveFlip( - __runtime_types::pallet_randomness_collective_flip::Call< - __runtime_types::node_runtime::Runtime, - >, - ), - Identity( - __runtime_types::pallet_identity::pallet::Call< - __runtime_types::node_runtime::Runtime, - >, - ), - Society( - __runtime_types::pallet_society::Call< - __runtime_types::node_runtime::Runtime, - __runtime_types::pallet_society::DefaultInstance, - >, - ), - Recovery( - __runtime_types::pallet_recovery::Call<__runtime_types::node_runtime::Runtime>, - ), - Vesting( - __runtime_types::pallet_vesting::pallet::Call< - __runtime_types::node_runtime::Runtime, - >, - ), - Scheduler( - __runtime_types::pallet_scheduler::Call<__runtime_types::node_runtime::Runtime>, - ), - Proxy( - __runtime_types::pallet_proxy::pallet::Call< - __runtime_types::node_runtime::Runtime, - >, - ), - Multisig( - __runtime_types::pallet_multisig::Call<__runtime_types::node_runtime::Runtime>, - ), + Recovery(__runtime_types::pallet_recovery::pallet::Event), + Vesting(__runtime_types::pallet_vesting::pallet::Event), + Scheduler(__runtime_types::pallet_scheduler::pallet::Event), + Proxy(__runtime_types::pallet_proxy::pallet::Event), + Multisig(__runtime_types::pallet_multisig::pallet::Event), Bounties( - __runtime_types::pallet_bounties::Call<__runtime_types::node_runtime::Runtime>, - ), - Tips(__runtime_types::pallet_tips::Call<__runtime_types::node_runtime::Runtime>), - Assets( - __runtime_types::pallet_assets::pallet::Call< - __runtime_types::node_runtime::Runtime, - (), - >, - ), - Lottery( - __runtime_types::pallet_lottery::Call<__runtime_types::node_runtime::Runtime>, - ), - Gilt( - __runtime_types::pallet_gilt::pallet::Call< - __runtime_types::node_runtime::Runtime, - >, - ), - } - #[derive(Debug, :: codec :: Encode, :: codec :: Decode)] - pub struct CouncilMaxProposals(pub u32); - #[derive(Debug, :: codec :: Encode, :: codec :: Decode)] - pub enum Event { - frame_system( - __runtime_types::frame_system::pallet::Event< - __runtime_types::node_runtime::Runtime, - >, - ), - pallet_utility(__runtime_types::pallet_utility::pallet::Event), - pallet_indices( - __runtime_types::pallet_indices::pallet::Event< - __runtime_types::node_runtime::Runtime, - >, - ), - pallet_balances( - __runtime_types::pallet_balances::pallet::Event< - __runtime_types::node_runtime::Runtime, - (), - >, - ), - pallet_election_provider_multi_phase( - __runtime_types::pallet_election_provider_multi_phase::pallet::Event< - __runtime_types::node_runtime::Runtime, - >, - ), - pallet_staking( - __runtime_types::pallet_staking::RawEvent< - u128, - __runtime_types::sp_core::crypto::AccountId32, - >, - ), - pallet_session(__runtime_types::pallet_session::Event), - pallet_democracy( - __runtime_types::pallet_democracy::RawEvent< - u128, - __runtime_types::sp_core::crypto::AccountId32, - __runtime_types::primitive_types::H256, - u32, - >, - ), - pallet_collective_Instance1( - __runtime_types::pallet_collective::RawEvent< - __runtime_types::primitive_types::H256, - __runtime_types::sp_core::crypto::AccountId32, - __runtime_types::pallet_collective::Instance1, - >, - ), - pallet_collective_Instance2( - __runtime_types::pallet_collective::RawEvent< - __runtime_types::primitive_types::H256, - __runtime_types::sp_core::crypto::AccountId32, - __runtime_types::pallet_collective::Instance2, - >, - ), - pallet_elections_phragmen( - __runtime_types::pallet_elections_phragmen::pallet::Event< - __runtime_types::node_runtime::Runtime, - >, - ), - pallet_membership_Instance1( - __runtime_types::pallet_membership::RawEvent< - __runtime_types::sp_core::crypto::AccountId32, - __runtime_types::node_runtime::Event, - __runtime_types::pallet_membership::Instance1, - >, - ), - pallet_grandpa(__runtime_types::pallet_grandpa::Event), - pallet_treasury( - __runtime_types::pallet_treasury::RawEvent< - u128, - __runtime_types::sp_core::crypto::AccountId32, - __runtime_types::pallet_treasury::DefaultInstance, - >, - ), - pallet_contracts( - __runtime_types::pallet_contracts::pallet::Event< - __runtime_types::node_runtime::Runtime, - >, - ), - pallet_sudo( - __runtime_types::pallet_sudo::pallet::Event< - __runtime_types::node_runtime::Runtime, - >, - ), - pallet_im_online( - __runtime_types::pallet_im_online::RawEvent< - __runtime_types::pallet_im_online::sr25519::app_sr25519::Public, - ( - __runtime_types::sp_core::crypto::AccountId32, - __runtime_types::pallet_staking::Exposure< - __runtime_types::sp_core::crypto::AccountId32, - u128, - >, - ), - >, - ), - pallet_offences(__runtime_types::pallet_offences::Event), - pallet_identity( - __runtime_types::pallet_identity::pallet::Event< - __runtime_types::node_runtime::Runtime, - >, - ), - pallet_society( - __runtime_types::pallet_society::RawEvent< - __runtime_types::sp_core::crypto::AccountId32, - u128, - __runtime_types::pallet_society::DefaultInstance, - >, - ), - pallet_recovery( - __runtime_types::pallet_recovery::RawEvent< - __runtime_types::sp_core::crypto::AccountId32, - >, - ), - pallet_vesting( - __runtime_types::pallet_vesting::pallet::Event< - __runtime_types::node_runtime::Runtime, - >, - ), - pallet_scheduler(__runtime_types::pallet_scheduler::RawEvent), - pallet_proxy( - __runtime_types::pallet_proxy::pallet::Event< - __runtime_types::node_runtime::Runtime, - >, - ), - pallet_multisig( - __runtime_types::pallet_multisig::RawEvent< - __runtime_types::sp_core::crypto::AccountId32, - u32, - [u8; 32usize], - >, - ), - pallet_bounties( __runtime_types::pallet_bounties::RawEvent< u128, __runtime_types::sp_core::crypto::AccountId32, >, ), - pallet_tips( + Tips( __runtime_types::pallet_tips::RawEvent< u128, __runtime_types::sp_core::crypto::AccountId32, __runtime_types::primitive_types::H256, >, ), - pallet_assets( - __runtime_types::pallet_assets::pallet::Event< - __runtime_types::node_runtime::Runtime, - (), - >, - ), - pallet_lottery( - __runtime_types::pallet_lottery::RawEvent< - __runtime_types::sp_core::crypto::AccountId32, - u128, - >, - ), - pallet_gilt( - __runtime_types::pallet_gilt::pallet::Event< - __runtime_types::node_runtime::Runtime, - >, - ), + Assets(__runtime_types::pallet_assets::pallet::Event), + Lottery(__runtime_types::pallet_lottery::pallet::Event), + Gilt(__runtime_types::pallet_gilt::pallet::Event), + Uniques(__runtime_types::pallet_uniques::pallet::Event), + TransactionStorage(__runtime_types::pallet_transaction_storage::pallet::Event), } #[derive(Debug, :: codec :: Encode, :: codec :: Decode)] - pub struct MaxApprovals(pub u32); - #[derive(Debug, :: codec :: Encode, :: codec :: Decode)] pub struct NposCompactSolution16 { - pub votes1: Vec<(u32, u16)>, - pub votes2: Vec<( + votes1: Vec<(u32, u16)>, + votes2: Vec<( u32, (u16, __runtime_types::sp_arithmetic::per_things::PerU16), u16, )>, - pub votes3: Vec<( + votes3: Vec<( u32, [(u16, __runtime_types::sp_arithmetic::per_things::PerU16); 2usize], u16, )>, - pub votes4: Vec<( + votes4: Vec<( u32, [(u16, __runtime_types::sp_arithmetic::per_things::PerU16); 3usize], u16, )>, - pub votes5: Vec<( + votes5: Vec<( u32, [(u16, __runtime_types::sp_arithmetic::per_things::PerU16); 4usize], u16, )>, - pub votes6: Vec<( + votes6: Vec<( u32, [(u16, __runtime_types::sp_arithmetic::per_things::PerU16); 5usize], u16, )>, - pub votes7: Vec<( + votes7: Vec<( u32, [(u16, __runtime_types::sp_arithmetic::per_things::PerU16); 6usize], u16, )>, - pub votes8: Vec<( + votes8: Vec<( u32, [(u16, __runtime_types::sp_arithmetic::per_things::PerU16); 7usize], u16, )>, - pub votes9: Vec<( + votes9: Vec<( u32, [(u16, __runtime_types::sp_arithmetic::per_things::PerU16); 8usize], u16, )>, - pub votes10: Vec<( + votes10: Vec<( u32, [(u16, __runtime_types::sp_arithmetic::per_things::PerU16); 9usize], u16, )>, - pub votes11: Vec<( + votes11: Vec<( u32, [(u16, __runtime_types::sp_arithmetic::per_things::PerU16); 10usize], u16, )>, - pub votes12: Vec<( + votes12: Vec<( u32, [(u16, __runtime_types::sp_arithmetic::per_things::PerU16); 11usize], u16, )>, - pub votes13: Vec<( + votes13: Vec<( u32, [(u16, __runtime_types::sp_arithmetic::per_things::PerU16); 12usize], u16, )>, - pub votes14: Vec<( + votes14: Vec<( u32, [(u16, __runtime_types::sp_arithmetic::per_things::PerU16); 13usize], u16, )>, - pub votes15: Vec<( + votes15: Vec<( u32, [(u16, __runtime_types::sp_arithmetic::per_things::PerU16); 14usize], u16, )>, - pub votes16: Vec<( + votes16: Vec<( u32, [(u16, __runtime_types::sp_arithmetic::per_things::PerU16); 15usize], u16, @@ -2285,13 +2264,13 @@ pub mod node_runtime { __runtime_types::sp_core::crypto::AccountId32, >, ), - pallet_collective_Instance1( + Council( __runtime_types::pallet_collective::RawOrigin< __runtime_types::sp_core::crypto::AccountId32, __runtime_types::pallet_collective::Instance1, >, ), - pallet_collective_Instance2( + TechnicalCommittee( __runtime_types::pallet_collective::RawOrigin< __runtime_types::sp_core::crypto::AccountId32, __runtime_types::pallet_collective::Instance2, @@ -2307,197 +2286,208 @@ pub mod node_runtime { Staking, } #[derive(Debug, :: codec :: Encode, :: codec :: Decode)] - pub struct Runtime {} - #[derive(Debug, :: codec :: Encode, :: codec :: Decode)] pub struct SessionKeys { pub grandpa: __runtime_types::sp_finality_grandpa::app::Public, pub babe: __runtime_types::sp_consensus_babe::app::Public, pub im_online: __runtime_types::pallet_im_online::sr25519::app_sr25519::Public, pub authority_discovery: __runtime_types::sp_authority_discovery::app::Public, } - #[derive(Debug, :: codec :: Encode, :: codec :: Decode)] - pub struct TechnicalMaxProposals(pub u32); } pub mod pallet_assets { use super::__runtime_types; - use std::collections::BTreeMap; pub mod pallet { use super::__runtime_types; - use std::collections::BTreeMap; #[derive(Debug, :: codec :: Encode, :: codec :: Decode)] - pub enum Call<_0, _1> { - create( - u32, - __runtime_types::sp_runtime::multiaddress::MultiAddress< + pub enum Call { + create { + id: u32, + admin: __runtime_types::sp_runtime::multiaddress::MultiAddress< __runtime_types::sp_core::crypto::AccountId32, u32, >, - u64, - ), - force_create( - u32, - __runtime_types::sp_runtime::multiaddress::MultiAddress< + min_balance: u64, + }, + force_create { + id: u32, + owner: __runtime_types::sp_runtime::multiaddress::MultiAddress< __runtime_types::sp_core::crypto::AccountId32, u32, >, - bool, - u64, - ), - destroy(u32, __runtime_types::pallet_assets::types::DestroyWitness), - mint( - u32, - __runtime_types::sp_runtime::multiaddress::MultiAddress< + is_sufficient: bool, + min_balance: u64, + }, + destroy { + id: u32, + witness: __runtime_types::pallet_assets::types::DestroyWitness, + }, + mint { + id: u32, + beneficiary: __runtime_types::sp_runtime::multiaddress::MultiAddress< __runtime_types::sp_core::crypto::AccountId32, u32, >, - u64, - ), - burn( - u32, - __runtime_types::sp_runtime::multiaddress::MultiAddress< + amount: u64, + }, + burn { + id: u32, + who: __runtime_types::sp_runtime::multiaddress::MultiAddress< __runtime_types::sp_core::crypto::AccountId32, u32, >, - u64, - ), - transfer( - u32, - __runtime_types::sp_runtime::multiaddress::MultiAddress< + amount: u64, + }, + transfer { + id: u32, + target: __runtime_types::sp_runtime::multiaddress::MultiAddress< __runtime_types::sp_core::crypto::AccountId32, u32, >, - u64, - ), - transfer_keep_alive( - u32, - __runtime_types::sp_runtime::multiaddress::MultiAddress< + amount: u64, + }, + transfer_keep_alive { + id: u32, + target: __runtime_types::sp_runtime::multiaddress::MultiAddress< __runtime_types::sp_core::crypto::AccountId32, u32, >, - u64, - ), - force_transfer( - u32, - __runtime_types::sp_runtime::multiaddress::MultiAddress< + amount: u64, + }, + force_transfer { + id: u32, + source: __runtime_types::sp_runtime::multiaddress::MultiAddress< __runtime_types::sp_core::crypto::AccountId32, u32, >, - __runtime_types::sp_runtime::multiaddress::MultiAddress< + dest: __runtime_types::sp_runtime::multiaddress::MultiAddress< __runtime_types::sp_core::crypto::AccountId32, u32, >, - u64, - ), - freeze( - u32, - __runtime_types::sp_runtime::multiaddress::MultiAddress< + amount: u64, + }, + freeze { + id: u32, + who: __runtime_types::sp_runtime::multiaddress::MultiAddress< __runtime_types::sp_core::crypto::AccountId32, u32, >, - ), - thaw( - u32, - __runtime_types::sp_runtime::multiaddress::MultiAddress< + }, + thaw { + id: u32, + who: __runtime_types::sp_runtime::multiaddress::MultiAddress< __runtime_types::sp_core::crypto::AccountId32, u32, >, - ), - freeze_asset(u32), - thaw_asset(u32), - transfer_ownership( - u32, - __runtime_types::sp_runtime::multiaddress::MultiAddress< + }, + freeze_asset { + id: u32, + }, + thaw_asset { + id: u32, + }, + transfer_ownership { + id: u32, + owner: __runtime_types::sp_runtime::multiaddress::MultiAddress< __runtime_types::sp_core::crypto::AccountId32, u32, >, - ), - set_team( - u32, - __runtime_types::sp_runtime::multiaddress::MultiAddress< + }, + set_team { + id: u32, + issuer: __runtime_types::sp_runtime::multiaddress::MultiAddress< __runtime_types::sp_core::crypto::AccountId32, u32, >, - __runtime_types::sp_runtime::multiaddress::MultiAddress< + admin: __runtime_types::sp_runtime::multiaddress::MultiAddress< __runtime_types::sp_core::crypto::AccountId32, u32, >, - __runtime_types::sp_runtime::multiaddress::MultiAddress< + freezer: __runtime_types::sp_runtime::multiaddress::MultiAddress< __runtime_types::sp_core::crypto::AccountId32, u32, >, - ), - set_metadata(u32, Vec, Vec, u8), - clear_metadata(u32), - force_set_metadata(u32, Vec, Vec, u8, bool), - force_clear_metadata(u32), - force_asset_status( - u32, - __runtime_types::sp_runtime::multiaddress::MultiAddress< + }, + set_metadata { + id: u32, + name: Vec, + symbol: Vec, + decimals: u8, + }, + clear_metadata { + id: u32, + }, + force_set_metadata { + id: u32, + name: Vec, + symbol: Vec, + decimals: u8, + is_frozen: bool, + }, + force_clear_metadata { + id: u32, + }, + force_asset_status { + id: u32, + owner: __runtime_types::sp_runtime::multiaddress::MultiAddress< __runtime_types::sp_core::crypto::AccountId32, u32, >, - __runtime_types::sp_runtime::multiaddress::MultiAddress< + issuer: __runtime_types::sp_runtime::multiaddress::MultiAddress< __runtime_types::sp_core::crypto::AccountId32, u32, >, - __runtime_types::sp_runtime::multiaddress::MultiAddress< + admin: __runtime_types::sp_runtime::multiaddress::MultiAddress< __runtime_types::sp_core::crypto::AccountId32, u32, >, - __runtime_types::sp_runtime::multiaddress::MultiAddress< + freezer: __runtime_types::sp_runtime::multiaddress::MultiAddress< __runtime_types::sp_core::crypto::AccountId32, u32, >, - u64, - bool, - bool, - ), - approve_transfer( - u32, - __runtime_types::sp_runtime::multiaddress::MultiAddress< + min_balance: u64, + is_sufficient: bool, + is_frozen: bool, + }, + approve_transfer { + id: u32, + delegate: __runtime_types::sp_runtime::multiaddress::MultiAddress< __runtime_types::sp_core::crypto::AccountId32, u32, >, - u64, - ), - cancel_approval( - u32, - __runtime_types::sp_runtime::multiaddress::MultiAddress< + amount: u64, + }, + cancel_approval { + id: u32, + delegate: __runtime_types::sp_runtime::multiaddress::MultiAddress< __runtime_types::sp_core::crypto::AccountId32, u32, >, - ), - force_cancel_approval( - u32, - __runtime_types::sp_runtime::multiaddress::MultiAddress< + }, + force_cancel_approval { + id: u32, + owner: __runtime_types::sp_runtime::multiaddress::MultiAddress< __runtime_types::sp_core::crypto::AccountId32, u32, >, - __runtime_types::sp_runtime::multiaddress::MultiAddress< + delegate: __runtime_types::sp_runtime::multiaddress::MultiAddress< __runtime_types::sp_core::crypto::AccountId32, u32, >, - ), - transfer_approved( - u32, - __runtime_types::sp_runtime::multiaddress::MultiAddress< + }, + transfer_approved { + id: u32, + owner: __runtime_types::sp_runtime::multiaddress::MultiAddress< __runtime_types::sp_core::crypto::AccountId32, u32, >, - __runtime_types::sp_runtime::multiaddress::MultiAddress< + destination: __runtime_types::sp_runtime::multiaddress::MultiAddress< __runtime_types::sp_core::crypto::AccountId32, u32, >, - u64, - ), - __Ignore(core::marker::PhantomData<(_1, _0)>), + amount: u64, + }, } #[derive(Debug, :: codec :: Encode, :: codec :: Decode)] - pub enum Error<_0, _1> { - __Ignore( - core::marker::PhantomData<(_0, _1)>, - __runtime_types::frame_support::Never, - ), + pub enum Error { BalanceLow, BalanceZero, NoPermission, @@ -2506,14 +2496,13 @@ pub mod node_runtime { InUse, BadWitness, MinBalanceZero, - Overflow, NoProvider, BadMetadata, Unapproved, WouldDie, } #[derive(Debug, :: codec :: Encode, :: codec :: Decode)] - pub enum Event<_0, _1> { + pub enum Event { Created( u32, __runtime_types::sp_core::crypto::AccountId32, @@ -2561,23 +2550,16 @@ pub mod node_runtime { u64, ), AssetStatusChanged(u32), - __Ignore(core::marker::PhantomData<(_0, _1)>), } } pub mod types { use super::__runtime_types; - use std::collections::BTreeMap; #[derive(Debug, :: codec :: Encode, :: codec :: Decode)] pub struct Approval<_0, _1> { pub amount: _0, pub deposit: _1, } #[derive(Debug, :: codec :: Encode, :: codec :: Decode)] - pub struct ApprovalKey<_0> { - pub owner: _0, - pub delegate: _0, - } - #[derive(Debug, :: codec :: Encode, :: codec :: Decode)] pub struct AssetBalance<_0, _1> { pub balance: _0, pub is_frozen: bool, @@ -2600,10 +2582,10 @@ pub mod node_runtime { pub is_frozen: bool, } #[derive(Debug, :: codec :: Encode, :: codec :: Decode)] - pub struct AssetMetadata<_0> { + pub struct AssetMetadata<_0, _1> { pub deposit: _0, - pub name: Vec, - pub symbol: Vec, + pub name: _1, + pub symbol: _1, pub decimals: u8, pub is_frozen: bool, } @@ -2615,35 +2597,18 @@ pub mod node_runtime { } } } - pub mod pallet_authority_discovery { - use super::__runtime_types; - use std::collections::BTreeMap; - pub mod pallet { - use super::__runtime_types; - use std::collections::BTreeMap; - #[derive(Debug, :: codec :: Encode, :: codec :: Decode)] - pub enum Call<_0> { - __Ignore(core::marker::PhantomData<(_0,)>), - } - } - } pub mod pallet_authorship { use super::__runtime_types; - use std::collections::BTreeMap; pub mod pallet { use super::__runtime_types; - use std::collections::BTreeMap; #[derive(Debug, :: codec :: Encode, :: codec :: Decode)] - pub enum Call<_0> { - set_uncles(Vec<__runtime_types::sp_runtime::generic::header::Header>), - __Ignore(core::marker::PhantomData<(_0,)>), + pub enum Call { + set_uncles { + new_uncles: Vec<__runtime_types::sp_runtime::generic::header::Header>, + }, } #[derive(Debug, :: codec :: Encode, :: codec :: Decode)] - pub enum Error<_0> { - __Ignore( - core::marker::PhantomData<_0>, - __runtime_types::frame_support::Never, - ), + pub enum Error { InvalidUncleParent, UnclesAlreadySet, TooManyUncles, @@ -2661,37 +2626,30 @@ pub mod node_runtime { } pub mod pallet_babe { use super::__runtime_types; - use std::collections::BTreeMap; pub mod pallet { use super::__runtime_types; - use std::collections::BTreeMap; #[derive(Debug, :: codec :: Encode, :: codec :: Decode)] - pub enum Call<_0> { - report_equivocation( - __runtime_types::sp_consensus_slots::EquivocationProof< + pub enum Call { + report_equivocation { + equivocation_proof: __runtime_types::sp_consensus_slots::EquivocationProof< __runtime_types::sp_runtime::generic::header::Header, __runtime_types::sp_consensus_babe::app::Public, >, - __runtime_types::sp_session::MembershipProof, - ), - report_equivocation_unsigned( - __runtime_types::sp_consensus_slots::EquivocationProof< + key_owner_proof: __runtime_types::sp_session::MembershipProof, + }, + report_equivocation_unsigned { + equivocation_proof: __runtime_types::sp_consensus_slots::EquivocationProof< __runtime_types::sp_runtime::generic::header::Header, __runtime_types::sp_consensus_babe::app::Public, >, - __runtime_types::sp_session::MembershipProof, - ), - plan_config_change( - __runtime_types::sp_consensus_babe::digests::NextConfigDescriptor, - ), - __Ignore(core::marker::PhantomData<(_0,)>), + key_owner_proof: __runtime_types::sp_session::MembershipProof, + }, + plan_config_change { + config: __runtime_types::sp_consensus_babe::digests::NextConfigDescriptor, + }, } #[derive(Debug, :: codec :: Encode, :: codec :: Decode)] - pub enum Error<_0> { - __Ignore( - core::marker::PhantomData<_0>, - __runtime_types::frame_support::Never, - ), + pub enum Error { InvalidEquivocationProof, InvalidKeyOwnershipProof, DuplicateOffenceReport, @@ -2700,64 +2658,64 @@ pub mod node_runtime { } pub mod pallet_balances { use super::__runtime_types; - use std::collections::BTreeMap; pub mod pallet { use super::__runtime_types; - use std::collections::BTreeMap; #[derive(Debug, :: codec :: Encode, :: codec :: Decode)] - pub enum Call<_0, _1> { - transfer( - __runtime_types::sp_runtime::multiaddress::MultiAddress< + pub enum Call { + transfer { + dest: __runtime_types::sp_runtime::multiaddress::MultiAddress< __runtime_types::sp_core::crypto::AccountId32, u32, >, - u128, - ), - set_balance( - __runtime_types::sp_runtime::multiaddress::MultiAddress< + value: u128, + }, + set_balance { + who: __runtime_types::sp_runtime::multiaddress::MultiAddress< __runtime_types::sp_core::crypto::AccountId32, u32, >, - u128, - u128, - ), - force_transfer( - __runtime_types::sp_runtime::multiaddress::MultiAddress< + new_free: u128, + new_reserved: u128, + }, + force_transfer { + source: __runtime_types::sp_runtime::multiaddress::MultiAddress< __runtime_types::sp_core::crypto::AccountId32, u32, >, - __runtime_types::sp_runtime::multiaddress::MultiAddress< + dest: __runtime_types::sp_runtime::multiaddress::MultiAddress< __runtime_types::sp_core::crypto::AccountId32, u32, >, - u128, - ), - transfer_keep_alive( - __runtime_types::sp_runtime::multiaddress::MultiAddress< + value: u128, + }, + transfer_keep_alive { + dest: __runtime_types::sp_runtime::multiaddress::MultiAddress< __runtime_types::sp_core::crypto::AccountId32, u32, >, - u128, - ), - __Ignore(core::marker::PhantomData<(_0, _1)>), + value: u128, + }, + transfer_all { + dest: __runtime_types::sp_runtime::multiaddress::MultiAddress< + __runtime_types::sp_core::crypto::AccountId32, + u32, + >, + keep_alive: bool, + }, } #[derive(Debug, :: codec :: Encode, :: codec :: Decode)] - pub enum Error<_0, _1> { - __Ignore( - core::marker::PhantomData<(_0, _1)>, - __runtime_types::frame_support::Never, - ), + pub enum Error { VestingBalance, LiquidityRestrictions, - Overflow, InsufficientBalance, ExistentialDeposit, KeepAlive, ExistingVestingSchedule, DeadAccount, + TooManyReserves, } #[derive(Debug, :: codec :: Encode, :: codec :: Decode)] - pub enum Event<_0, _1> { + pub enum Event { Endowed(__runtime_types::sp_core::crypto::AccountId32, u128), DustLost(__runtime_types::sp_core::crypto::AccountId32, u128), Transfer( @@ -2775,7 +2733,6 @@ pub mod node_runtime { u128, __runtime_types::frame_support::traits::tokens::misc::BalanceStatus, ), - __Ignore(core::marker::PhantomData<(_1, _0)>), } } #[derive(Debug, :: codec :: Encode, :: codec :: Decode)] @@ -2802,10 +2759,14 @@ pub mod node_runtime { V1_0_0, V2_0_0, } + #[derive(Debug, :: codec :: Encode, :: codec :: Decode)] + pub struct ReserveData<_0, _1> { + pub id: _0, + pub amount: _1, + } } pub mod pallet_bounties { use super::__runtime_types; - use std::collections::BTreeMap; #[derive(Debug, :: codec :: Encode, :: codec :: Decode)] pub struct Bounty<_0, _1, _2> { pub proposer: _0, @@ -2834,37 +2795,48 @@ pub mod node_runtime { }, } #[derive(Debug, :: codec :: Encode, :: codec :: Decode)] - pub enum Call<_0> { - propose_bounty(u128, Vec), - approve_bounty(u32), - propose_curator( - u32, - __runtime_types::sp_runtime::multiaddress::MultiAddress< + pub enum Call { + propose_bounty { + value: u128, + description: Vec, + }, + approve_bounty { + bounty_id: u32, + }, + propose_curator { + bounty_id: u32, + curator: __runtime_types::sp_runtime::multiaddress::MultiAddress< __runtime_types::sp_core::crypto::AccountId32, u32, >, - u128, - ), - unassign_curator(u32), - accept_curator(u32), - award_bounty( - u32, - __runtime_types::sp_runtime::multiaddress::MultiAddress< + fee: u128, + }, + unassign_curator { + bounty_id: u32, + }, + accept_curator { + bounty_id: u32, + }, + award_bounty { + bounty_id: u32, + beneficiary: __runtime_types::sp_runtime::multiaddress::MultiAddress< __runtime_types::sp_core::crypto::AccountId32, u32, >, - ), - claim_bounty(u32), - close_bounty(u32), - extend_bounty_expiry(u32, Vec), - __Ignore(core::marker::PhantomData<(_0,)>), + }, + claim_bounty { + bounty_id: u32, + }, + close_bounty { + bounty_id: u32, + }, + extend_bounty_expiry { + bounty_id: u32, + _remark: Vec, + }, } #[derive(Debug, :: codec :: Encode, :: codec :: Decode)] - pub enum Error<_0> { - __Ignore( - core::marker::PhantomData<(_0,)>, - __runtime_types::frame_support::Never, - ), + pub enum Error { InsufficientProposersBalance, InvalidIndex, ReasonTooBig, @@ -2888,33 +2860,41 @@ pub mod node_runtime { } pub mod pallet_collective { use super::__runtime_types; - use std::collections::BTreeMap; - #[derive(Debug, :: codec :: Encode, :: codec :: Decode)] - pub enum Call<_0, _1> { - set_members( - Vec<__runtime_types::sp_core::crypto::AccountId32>, - Option<__runtime_types::sp_core::crypto::AccountId32>, - u32, - ), - execute(std::boxed::Box<__runtime_types::node_runtime::Call>, u32), - propose( - u32, - std::boxed::Box<__runtime_types::node_runtime::Call>, - u32, - ), - vote(__runtime_types::primitive_types::H256, u32, bool), - close(__runtime_types::primitive_types::H256, u32, u64, u32), - disapprove_proposal(__runtime_types::primitive_types::H256), - __Ignore(core::marker::PhantomData<(_0, _1)>), - } #[derive(Debug, :: codec :: Encode, :: codec :: Decode)] - pub enum Error<_0, _1> { - __Ignore( - core::marker::PhantomData<(_0, _1)>, - __runtime_types::frame_support::Never, - ), - NotMember, - DuplicateProposal, + pub enum Call { + set_members { + new_members: Vec<__runtime_types::sp_core::crypto::AccountId32>, + prime: Option<__runtime_types::sp_core::crypto::AccountId32>, + old_count: u32, + }, + execute { + proposal: __runtime_types::node_runtime::Call, + length_bound: u32, + }, + propose { + threshold: u32, + proposal: __runtime_types::node_runtime::Call, + length_bound: u32, + }, + vote { + proposal: __runtime_types::primitive_types::H256, + index: u32, + approve: bool, + }, + close { + proposal_hash: __runtime_types::primitive_types::H256, + index: u32, + proposal_weight_bound: u64, + length_bound: u32, + }, + disapprove_proposal { + proposal_hash: __runtime_types::primitive_types::H256, + }, + } + #[derive(Debug, :: codec :: Encode, :: codec :: Decode)] + pub enum Error { + NotMember, + DuplicateProposal, ProposalMissing, WrongIndex, DuplicateVote, @@ -2943,7 +2923,8 @@ pub mod node_runtime { pub enum RawOrigin<_0, _1> { Members(u32, u32), Member(_0), - _Phantom(core::marker::PhantomData<_1>), + _Phantom, + __Ignore(core::marker::PhantomData<(_1,)>), } #[derive(Debug, :: codec :: Encode, :: codec :: Decode)] pub struct Votes<_0, _1> { @@ -2956,41 +2937,40 @@ pub mod node_runtime { } pub mod pallet_contracts { use super::__runtime_types; - use std::collections::BTreeMap; pub mod pallet { use super::__runtime_types; - use std::collections::BTreeMap; #[derive(Debug, :: codec :: Encode, :: codec :: Decode)] - pub enum Call<_0> { - update_schedule(__runtime_types::pallet_contracts::schedule::Schedule<_0>), - call( - __runtime_types::sp_runtime::multiaddress::MultiAddress< + pub enum Call { + call { + dest: __runtime_types::sp_runtime::multiaddress::MultiAddress< __runtime_types::sp_core::crypto::AccountId32, u32, >, - u128, - u64, - Vec, - ), - instantiate_with_code(u128, u64, Vec, Vec, Vec), - instantiate( - u128, - u64, - __runtime_types::primitive_types::H256, - Vec, - Vec, - ), - claim_surcharge( - __runtime_types::sp_core::crypto::AccountId32, - Option<__runtime_types::sp_core::crypto::AccountId32>, - ), + value: u128, + gas_limit: u64, + data: Vec, + }, + instantiate_with_code { + endowment: u128, + gas_limit: u64, + code: Vec, + data: Vec, + salt: Vec, + }, + instantiate { + endowment: u128, + gas_limit: u64, + code_hash: __runtime_types::primitive_types::H256, + data: Vec, + salt: Vec, + }, + claim_surcharge { + dest: __runtime_types::sp_core::crypto::AccountId32, + aux_sender: Option<__runtime_types::sp_core::crypto::AccountId32>, + }, } #[derive(Debug, :: codec :: Encode, :: codec :: Decode)] - pub enum Error<_0> { - __Ignore( - core::marker::PhantomData<_0>, - __runtime_types::frame_support::Never, - ), + pub enum Error { InvalidScheduleVersion, InvalidSurchargeClaim, InvalidSourceContract, @@ -3003,15 +2983,17 @@ pub mod node_runtime { NewContractNotFunded, TransferFailed, MaxCallDepthReached, - NotCallable, + ContractNotFound, + ContractIsTombstone, + RentNotPaid, CodeTooLarge, CodeNotFound, OutOfBounds, DecodingFailed, ContractTrapped, ValueTooLarge, - ReentranceDenied, - InputAlreadyRead, + TerminatedWhileReentrant, + InputForwarded, RandomSubjectTooLong, TooManyTopics, DuplicateTopics, @@ -3020,9 +3002,12 @@ pub mod node_runtime { ContractNotEvictable, StorageExhausted, DuplicateContract, + TerminatedInConstructor, + DebugMessageInvalidUTF8, + ReentranceDenied, } #[derive(Debug, :: codec :: Encode, :: codec :: Decode)] - pub enum Event<_0> { + pub enum Event { Instantiated( __runtime_types::sp_core::crypto::AccountId32, __runtime_types::sp_core::crypto::AccountId32, @@ -3042,14 +3027,12 @@ pub mod node_runtime { ScheduleUpdated(u32), ContractEmitted(__runtime_types::sp_core::crypto::AccountId32, Vec), CodeRemoved(__runtime_types::primitive_types::H256), - __Ignore(core::marker::PhantomData<(_0,)>), } } pub mod schedule { use super::__runtime_types; - use std::collections::BTreeMap; #[derive(Debug, :: codec :: Encode, :: codec :: Decode)] - pub struct HostFnWeights<_0> { + pub struct HostFnWeights { pub caller: u64, pub address: u64, pub gas_left: u64, @@ -3067,15 +3050,13 @@ pub mod node_runtime { pub r#return: u64, pub return_per_byte: u64, pub terminate: u64, - pub terminate_per_code_byte: u64, pub restore_to: u64, - pub restore_to_per_caller_code_byte: u64, - pub restore_to_per_tombstone_code_byte: u64, pub restore_to_per_delta: u64, pub random: u64, pub deposit_event: u64, pub deposit_event_per_topic: u64, pub deposit_event_per_byte: u64, + pub debug_message: u64, pub set_rent_allowance: u64, pub set_storage: u64, pub set_storage_per_byte: u64, @@ -3084,12 +3065,10 @@ pub mod node_runtime { pub get_storage_per_byte: u64, pub transfer: u64, pub call: u64, - pub call_per_code_byte: u64, pub call_transfer_surcharge: u64, pub call_per_input_byte: u64, pub call_per_output_byte: u64, pub instantiate: u64, - pub instantiate_per_code_byte: u64, pub instantiate_per_input_byte: u64, pub instantiate_per_output_byte: u64, pub instantiate_per_salt_byte: u64, @@ -3101,11 +3080,10 @@ pub mod node_runtime { pub hash_blake2_256_per_byte: u64, pub hash_blake2_128: u64, pub hash_blake2_128_per_byte: u64, - pub rent_params: u64, - pub __chameleon_unused_type_params: core::marker::PhantomData<(_0,)>, } #[derive(Debug, :: codec :: Encode, :: codec :: Decode)] - pub struct InstructionWeights<_0> { + pub struct InstructionWeights { + pub version: u32, pub i64const: u32, pub i64load: u32, pub i64store: u32, @@ -3157,7 +3135,6 @@ pub mod node_runtime { pub i64shru: u32, pub i64rotl: u32, pub i64rotr: u32, - pub __chameleon_unused_type_params: core::marker::PhantomData<(_0,)>, } #[derive(Debug, :: codec :: Encode, :: codec :: Decode)] pub struct Limits { @@ -3169,23 +3146,22 @@ pub mod node_runtime { pub table_size: u32, pub br_table_size: u32, pub subject_len: u32, + pub call_depth: u32, + pub payload_len: u32, + pub code_len: u32, } #[derive(Debug, :: codec :: Encode, :: codec :: Decode)] - pub struct Schedule<_0> { - pub version: u32, - pub enable_println: bool, + pub struct Schedule { pub limits: __runtime_types::pallet_contracts::schedule::Limits, pub instruction_weights: - __runtime_types::pallet_contracts::schedule::InstructionWeights<_0>, - pub host_fn_weights: - __runtime_types::pallet_contracts::schedule::HostFnWeights<_0>, + __runtime_types::pallet_contracts::schedule::InstructionWeights, + pub host_fn_weights: __runtime_types::pallet_contracts::schedule::HostFnWeights, } } pub mod storage { use super::__runtime_types; - use std::collections::BTreeMap; #[derive(Debug, :: codec :: Encode, :: codec :: Decode)] - pub enum ContractInfo<_0> { + pub enum ContractInfo { Alive( __runtime_types::pallet_contracts::storage::RawAliveContractInfo< __runtime_types::primitive_types::H256, @@ -3199,7 +3175,6 @@ pub mod node_runtime { __runtime_types::sp_runtime::traits::BlakeTwo256, >, ), - __Ignore(core::marker::PhantomData<(_0,)>), } #[derive(Debug, :: codec :: Encode, :: codec :: Decode)] pub struct DeletedContract { @@ -3213,7 +3188,7 @@ pub mod node_runtime { pub pair_count: _2, pub code_hash: _0, pub rent_allowance: _1, - pub rent_payed: _1, + pub rent_paid: _1, pub deduct_block: _2, pub last_write: Option<_2>, pub _reserved: Option<()>, @@ -3221,31 +3196,27 @@ pub mod node_runtime { #[derive(Debug, :: codec :: Encode, :: codec :: Decode)] pub struct RawTombstoneContractInfo<_0, _1>( pub _0, - pub core::marker::PhantomData<_1>, + pub core::marker::PhantomData<(_1)>, ); } pub mod wasm { use super::__runtime_types; - use std::collections::BTreeMap; #[derive(Debug, :: codec :: Encode, :: codec :: Decode)] - pub struct PrefabWasmModule<_0> { - pub schedule_version: u32, + pub struct PrefabWasmModule { + pub instruction_weights_version: u32, pub initial: u32, pub maximum: u32, pub refcount: u64, pub _reserved: Option<()>, pub code: Vec, pub original_code_len: u32, - pub __chameleon_unused_type_params: core::marker::PhantomData<(_0,)>, } } } pub mod pallet_democracy { use super::__runtime_types; - use std::collections::BTreeMap; pub mod conviction { use super::__runtime_types; - use std::collections::BTreeMap; #[derive(Debug, :: codec :: Encode, :: codec :: Decode)] pub enum Conviction { None, @@ -3257,9 +3228,180 @@ pub mod node_runtime { Locked6x, } } + pub mod pallet { + use super::__runtime_types; + #[derive(Debug, :: codec :: Encode, :: codec :: Decode)] + pub enum Call { + propose { + proposal_hash: __runtime_types::primitive_types::H256, + value: u128, + }, + second { + proposal: u32, + seconds_upper_bound: u32, + }, + vote { + ref_index: u32, + vote: __runtime_types::pallet_democracy::vote::AccountVote, + }, + emergency_cancel { + ref_index: u32, + }, + external_propose { + proposal_hash: __runtime_types::primitive_types::H256, + }, + external_propose_majority { + proposal_hash: __runtime_types::primitive_types::H256, + }, + external_propose_default { + proposal_hash: __runtime_types::primitive_types::H256, + }, + fast_track { + proposal_hash: __runtime_types::primitive_types::H256, + voting_period: u32, + delay: u32, + }, + veto_external { + proposal_hash: __runtime_types::primitive_types::H256, + }, + cancel_referendum { + ref_index: u32, + }, + cancel_queued { + which: u32, + }, + delegate { + to: __runtime_types::sp_core::crypto::AccountId32, + conviction: __runtime_types::pallet_democracy::conviction::Conviction, + balance: u128, + }, + undelegate, + clear_public_proposals, + note_preimage { + encoded_proposal: Vec, + }, + note_preimage_operational { + encoded_proposal: Vec, + }, + note_imminent_preimage { + encoded_proposal: Vec, + }, + note_imminent_preimage_operational { + encoded_proposal: Vec, + }, + reap_preimage { + proposal_hash: __runtime_types::primitive_types::H256, + proposal_len_upper_bound: u32, + }, + unlock { + target: __runtime_types::sp_core::crypto::AccountId32, + }, + remove_vote { + index: u32, + }, + remove_other_vote { + target: __runtime_types::sp_core::crypto::AccountId32, + index: u32, + }, + enact_proposal { + proposal_hash: __runtime_types::primitive_types::H256, + index: u32, + }, + blacklist { + proposal_hash: __runtime_types::primitive_types::H256, + maybe_ref_index: Option, + }, + cancel_proposal { + prop_index: u32, + }, + } + #[derive(Debug, :: codec :: Encode, :: codec :: Decode)] + pub enum Error { + ValueLow, + ProposalMissing, + BadIndex, + AlreadyCanceled, + DuplicateProposal, + ProposalBlacklisted, + NotSimpleMajority, + InvalidHash, + NoProposal, + AlreadyVetoed, + NotDelegated, + DuplicatePreimage, + NotImminent, + TooEarly, + Imminent, + PreimageMissing, + ReferendumInvalid, + PreimageInvalid, + NoneWaiting, + NotLocked, + NotExpired, + NotVoter, + NoPermission, + AlreadyDelegating, + InsufficientFunds, + NotDelegating, + VotesExist, + InstantNotAllowed, + Nonsense, + WrongUpperBound, + MaxVotesReached, + InvalidWitness, + TooManyProposals, + } + #[derive(Debug, :: codec :: Encode, :: codec :: Decode)] + pub enum Event { + Proposed(u32, u128), + Tabled( + u32, + u128, + Vec<__runtime_types::sp_core::crypto::AccountId32>, + ), + ExternalTabled, + Started( + u32, + __runtime_types::pallet_democracy::vote_threshold::VoteThreshold, + ), + Passed(u32), + NotPassed(u32), + Cancelled(u32), + Executed(u32, Result<(), __runtime_types::sp_runtime::DispatchError>), + Delegated( + __runtime_types::sp_core::crypto::AccountId32, + __runtime_types::sp_core::crypto::AccountId32, + ), + Undelegated(__runtime_types::sp_core::crypto::AccountId32), + Vetoed( + __runtime_types::sp_core::crypto::AccountId32, + __runtime_types::primitive_types::H256, + u32, + ), + PreimageNoted( + __runtime_types::primitive_types::H256, + __runtime_types::sp_core::crypto::AccountId32, + u128, + ), + PreimageUsed( + __runtime_types::primitive_types::H256, + __runtime_types::sp_core::crypto::AccountId32, + u128, + ), + PreimageInvalid(__runtime_types::primitive_types::H256, u32), + PreimageMissing(__runtime_types::primitive_types::H256, u32), + PreimageReaped( + __runtime_types::primitive_types::H256, + __runtime_types::sp_core::crypto::AccountId32, + u128, + __runtime_types::sp_core::crypto::AccountId32, + ), + Unlocked(__runtime_types::sp_core::crypto::AccountId32), + Blacklisted(__runtime_types::primitive_types::H256), + } + } pub mod types { use super::__runtime_types; - use std::collections::BTreeMap; #[derive(Debug, :: codec :: Encode, :: codec :: Decode)] pub struct Delegations<_0> { pub votes: _0, @@ -3287,7 +3429,6 @@ pub mod node_runtime { } pub mod vote { use super::__runtime_types; - use std::collections::BTreeMap; #[derive(Debug, :: codec :: Encode, :: codec :: Decode)] pub enum AccountVote<_0> { Standard { @@ -3302,10 +3443,7 @@ pub mod node_runtime { #[derive(Debug, :: codec :: Encode, :: codec :: Decode)] pub struct PriorLock<_0, _1>(pub _0, pub _1); #[derive(Debug, :: codec :: Encode, :: codec :: Decode)] - pub struct Vote { - pub aye: bool, - pub conviction: __runtime_types::pallet_democracy::conviction::Conviction, - } + pub struct Vote(u8); #[derive(Debug, :: codec :: Encode, :: codec :: Decode)] pub enum Voting<_0, _1, _2> { Direct { @@ -3324,7 +3462,6 @@ pub mod node_runtime { } pub mod vote_threshold { use super::__runtime_types; - use std::collections::BTreeMap; #[derive(Debug, :: codec :: Encode, :: codec :: Decode)] pub enum VoteThreshold { SuperMajorityApprove, @@ -3333,84 +3470,6 @@ pub mod node_runtime { } } #[derive(Debug, :: codec :: Encode, :: codec :: Decode)] - pub enum Call<_0> { - propose(__runtime_types::primitive_types::H256, u128), - second(u32, u32), - vote( - u32, - __runtime_types::pallet_democracy::vote::AccountVote, - ), - emergency_cancel(u32), - external_propose(__runtime_types::primitive_types::H256), - external_propose_majority(__runtime_types::primitive_types::H256), - external_propose_default(__runtime_types::primitive_types::H256), - fast_track(__runtime_types::primitive_types::H256, u32, u32), - veto_external(__runtime_types::primitive_types::H256), - cancel_referendum(u32), - cancel_queued(u32), - delegate( - __runtime_types::sp_core::crypto::AccountId32, - __runtime_types::pallet_democracy::conviction::Conviction, - u128, - ), - undelegate, - clear_public_proposals, - note_preimage(Vec), - note_preimage_operational(Vec), - note_imminent_preimage(Vec), - note_imminent_preimage_operational(Vec), - reap_preimage(__runtime_types::primitive_types::H256, u32), - unlock(__runtime_types::sp_core::crypto::AccountId32), - remove_vote(u32), - remove_other_vote(__runtime_types::sp_core::crypto::AccountId32, u32), - enact_proposal(__runtime_types::primitive_types::H256, u32), - blacklist(__runtime_types::primitive_types::H256, Option), - cancel_proposal(u32), - __Ignore(core::marker::PhantomData<(_0,)>), - } - #[derive(Debug, :: codec :: Encode, :: codec :: Decode)] - pub enum Error<_0> { - __Ignore( - core::marker::PhantomData<(_0,)>, - __runtime_types::frame_support::Never, - ), - ValueLow, - ProposalMissing, - BadIndex, - AlreadyCanceled, - DuplicateProposal, - ProposalBlacklisted, - NotSimpleMajority, - InvalidHash, - NoProposal, - AlreadyVetoed, - NotDelegated, - DuplicatePreimage, - NotImminent, - TooEarly, - Imminent, - PreimageMissing, - ReferendumInvalid, - PreimageInvalid, - NoneWaiting, - NotLocked, - NotExpired, - NotVoter, - NoPermission, - AlreadyDelegating, - Overflow, - Underflow, - InsufficientFunds, - NotDelegating, - VotesExist, - InstantNotAllowed, - Nonsense, - WrongUpperBound, - MaxVotesReached, - InvalidWitness, - TooManyProposals, - } - #[derive(Debug, :: codec :: Encode, :: codec :: Decode)] pub enum PreimageStatus<_0, _1, _2> { Missing(_2), Available { @@ -3422,69 +3481,57 @@ pub mod node_runtime { }, } #[derive(Debug, :: codec :: Encode, :: codec :: Decode)] - pub enum RawEvent<_0, _1, _2, _3> { - Proposed(_3, _0), - Tabled(_3, _0, Vec<_1>), - ExternalTabled, - Started( - _3, - __runtime_types::pallet_democracy::vote_threshold::VoteThreshold, - ), - Passed(_3), - NotPassed(_3), - Cancelled(_3), - Executed(_3, bool), - Delegated(_1, _1), - Undelegated(_1), - Vetoed(_1, _2, _3), - PreimageNoted(_2, _1, _0), - PreimageUsed(_2, _1, _0), - PreimageInvalid(_2, _3), - PreimageMissing(_2, _3), - PreimageReaped(_2, _1, _0, _1), - Unlocked(_1), - Blacklisted(_2), - } - #[derive(Debug, :: codec :: Encode, :: codec :: Decode)] pub enum Releases { V1, } } pub mod pallet_election_provider_multi_phase { use super::__runtime_types; - use std::collections::BTreeMap; pub mod pallet { use super::__runtime_types; - use std::collections::BTreeMap; #[derive(Debug, :: codec :: Encode, :: codec :: Decode)] - pub enum Call<_0> { - submit_unsigned (__runtime_types :: pallet_election_provider_multi_phase :: RawSolution < __runtime_types :: node_runtime :: NposCompactSolution16 > , __runtime_types :: pallet_election_provider_multi_phase :: SolutionOrSnapshotSize ,) , __Ignore (core :: marker :: PhantomData < (_0 ,) >) , } + pub enum Call { + submit_unsigned { solution : __runtime_types :: pallet_election_provider_multi_phase :: RawSolution < __runtime_types :: node_runtime :: NposCompactSolution16 > , witness : __runtime_types :: pallet_election_provider_multi_phase :: SolutionOrSnapshotSize , } , set_minimum_untrusted_score { maybe_next_score : Option < [u128 ; 3usize] > , } , set_emergency_election_result { supports : Vec < (__runtime_types :: sp_core :: crypto :: AccountId32 , __runtime_types :: sp_npos_elections :: Support < __runtime_types :: sp_core :: crypto :: AccountId32 > ,) > , } , submit { solution : __runtime_types :: pallet_election_provider_multi_phase :: RawSolution < __runtime_types :: node_runtime :: NposCompactSolution16 > , num_signed_submissions : u32 , } , } #[derive(Debug, :: codec :: Encode, :: codec :: Decode)] - pub enum Error<_0> { - __Ignore( - core::marker::PhantomData<_0>, - __runtime_types::frame_support::Never, - ), + pub enum Error { PreDispatchEarlySubmission, PreDispatchWrongWinnerCount, PreDispatchWeakSubmission, + SignedQueueFull, + SignedCannotPayDeposit, + SignedInvalidWitness, + SignedTooMuchWeight, OcwCallWrongEra, + MissingSnapshotMetadata, + InvalidSubmissionIndex, + CallNotAllowed, } #[derive(Debug, :: codec :: Encode, :: codec :: Decode)] - pub enum Event<_0> { + pub enum Event { SolutionStored( __runtime_types::pallet_election_provider_multi_phase::ElectionCompute, + bool, ), ElectionFinalized( Option< __runtime_types::pallet_election_provider_multi_phase::ElectionCompute, >, ), - Rewarded(__runtime_types::sp_core::crypto::AccountId32), - Slashed(__runtime_types::sp_core::crypto::AccountId32), + Rewarded(__runtime_types::sp_core::crypto::AccountId32, u128), + Slashed(__runtime_types::sp_core::crypto::AccountId32, u128), SignedPhaseStarted(u32), UnsignedPhaseStarted(u32), - __Ignore(core::marker::PhantomData<(_0,)>), + } + } + pub mod signed { + use super::__runtime_types; + #[derive(Debug, :: codec :: Encode, :: codec :: Decode)] + pub struct SignedSubmission<_0, _1, _2> { + pub who: _0, + pub deposit: _1, + pub solution: + __runtime_types::pallet_election_provider_multi_phase::RawSolution<_2>, + pub reward: _1, } } #[derive(Debug, :: codec :: Encode, :: codec :: Decode)] @@ -3492,12 +3539,14 @@ pub mod node_runtime { OnChain, Signed, Unsigned, + Emergency, } #[derive(Debug, :: codec :: Encode, :: codec :: Decode)] pub enum Phase<_0> { Off, Signed, Unsigned((bool, _0)), + Emergency, } #[derive(Debug, :: codec :: Encode, :: codec :: Decode)] pub struct RawSolution<_0> { @@ -3524,32 +3573,35 @@ pub mod node_runtime { } pub mod pallet_elections_phragmen { use super::__runtime_types; - use std::collections::BTreeMap; pub mod pallet { use super::__runtime_types; - use std::collections::BTreeMap; #[derive(Debug, :: codec :: Encode, :: codec :: Decode)] - pub enum Call<_0> { - vote(Vec<__runtime_types::sp_core::crypto::AccountId32>, u128), + pub enum Call { + vote { + votes: Vec<__runtime_types::sp_core::crypto::AccountId32>, + value: u128, + }, remove_voter, - submit_candidacy(u32), - renounce_candidacy(__runtime_types::pallet_elections_phragmen::Renouncing), - remove_member( - __runtime_types::sp_runtime::multiaddress::MultiAddress< + submit_candidacy { + candidate_count: u32, + }, + renounce_candidacy { + renouncing: __runtime_types::pallet_elections_phragmen::Renouncing, + }, + remove_member { + who: __runtime_types::sp_runtime::multiaddress::MultiAddress< __runtime_types::sp_core::crypto::AccountId32, u32, >, - bool, - ), - clean_defunct_voters(u32, u32), - __Ignore(core::marker::PhantomData<(_0,)>), + has_replacement: bool, + }, + clean_defunct_voters { + _num_voters: u32, + _num_defunct: u32, + }, } #[derive(Debug, :: codec :: Encode, :: codec :: Decode)] - pub enum Error<_0> { - __Ignore( - core::marker::PhantomData<_0>, - __runtime_types::frame_support::Never, - ), + pub enum Error { UnableToVote, NoVotes, TooManyVotes, @@ -3569,7 +3621,7 @@ pub mod node_runtime { InvalidReplacement, } #[derive(Debug, :: codec :: Encode, :: codec :: Decode)] - pub enum Event<_0> { + pub enum Event { NewTerm(Vec<(__runtime_types::sp_core::crypto::AccountId32, u128)>), EmptyTerm, ElectionError, @@ -3577,7 +3629,6 @@ pub mod node_runtime { Renounced(__runtime_types::sp_core::crypto::AccountId32), CandidateSlashed(__runtime_types::sp_core::crypto::AccountId32, u128), SeatHolderSlashed(__runtime_types::sp_core::crypto::AccountId32, u128), - __Ignore(core::marker::PhantomData<(_0,)>), } } #[derive(Debug, :: codec :: Encode, :: codec :: Decode)] @@ -3601,10 +3652,8 @@ pub mod node_runtime { } pub mod pallet_gilt { use super::__runtime_types; - use std::collections::BTreeMap; pub mod pallet { use super::__runtime_types; - use std::collections::BTreeMap; #[derive(Debug, :: codec :: Encode, :: codec :: Decode)] pub struct ActiveGilt<_0, _1, _2> { pub proportion: __runtime_types::sp_arithmetic::per_things::Perquintill, @@ -3620,19 +3669,24 @@ pub mod node_runtime { pub target: __runtime_types::sp_arithmetic::per_things::Perquintill, } #[derive(Debug, :: codec :: Encode, :: codec :: Decode)] - pub enum Call<_0> { - place_bid(u128, u32), - retract_bid(u128, u32), - set_target(__runtime_types::sp_arithmetic::per_things::Perquintill), - thaw(u32), - __Ignore(core::marker::PhantomData<(_0,)>), + pub enum Call { + place_bid { + amount: u128, + duration: u32, + }, + retract_bid { + amount: u128, + duration: u32, + }, + set_target { + target: __runtime_types::sp_arithmetic::per_things::Perquintill, + }, + thaw { + index: u32, + }, } #[derive(Debug, :: codec :: Encode, :: codec :: Decode)] - pub enum Error<_0> { - __Ignore( - core::marker::PhantomData<_0>, - __runtime_types::frame_support::Never, - ), + pub enum Error { DurationTooSmall, DurationTooBig, AmountTooSmall, @@ -3643,7 +3697,7 @@ pub mod node_runtime { NotFound, } #[derive(Debug, :: codec :: Encode, :: codec :: Decode)] - pub enum Event<_0> { + pub enum Event { BidPlaced(__runtime_types::sp_core::crypto::AccountId32, u128, u32), BidRetracted(__runtime_types::sp_core::crypto::AccountId32, u128, u32), GiltIssued( @@ -3658,7 +3712,6 @@ pub mod node_runtime { u128, u128, ), - __Ignore(core::marker::PhantomData<(_0,)>), } #[derive(Debug, :: codec :: Encode, :: codec :: Decode)] pub struct GiltBid<_0, _1> { @@ -3669,45 +3722,45 @@ pub mod node_runtime { } pub mod pallet_grandpa { use super::__runtime_types; - use std::collections::BTreeMap; - #[derive(Debug, :: codec :: Encode, :: codec :: Decode)] - pub enum Call<_0> { - report_equivocation( - __runtime_types::sp_finality_grandpa::EquivocationProof< - __runtime_types::primitive_types::H256, - u32, - >, - __runtime_types::sp_session::MembershipProof, - ), - report_equivocation_unsigned( - __runtime_types::sp_finality_grandpa::EquivocationProof< - __runtime_types::primitive_types::H256, - u32, - >, - __runtime_types::sp_session::MembershipProof, - ), - note_stalled(u32, u32), - __Ignore(core::marker::PhantomData<(_0,)>), - } - #[derive(Debug, :: codec :: Encode, :: codec :: Decode)] - pub enum Error<_0> { - __Ignore( - core::marker::PhantomData<(_0,)>, - __runtime_types::frame_support::Never, - ), - PauseFailed, - ResumeFailed, - ChangePending, - TooSoon, - InvalidKeyOwnershipProof, - InvalidEquivocationProof, - DuplicateOffenceReport, - } - #[derive(Debug, :: codec :: Encode, :: codec :: Decode)] - pub enum Event { - NewAuthorities(Vec<(__runtime_types::sp_finality_grandpa::app::Public, u64)>), - Paused, - Resumed, + pub mod pallet { + use super::__runtime_types; + #[derive(Debug, :: codec :: Encode, :: codec :: Decode)] + pub enum Call { + report_equivocation { + equivocation_proof: __runtime_types::sp_finality_grandpa::EquivocationProof< + __runtime_types::primitive_types::H256, + u32, + >, + key_owner_proof: __runtime_types::sp_session::MembershipProof, + }, + report_equivocation_unsigned { + equivocation_proof: __runtime_types::sp_finality_grandpa::EquivocationProof< + __runtime_types::primitive_types::H256, + u32, + >, + key_owner_proof: __runtime_types::sp_session::MembershipProof, + }, + note_stalled { + delay: u32, + best_finalized_block_number: u32, + }, + } + #[derive(Debug, :: codec :: Encode, :: codec :: Decode)] + pub enum Error { + PauseFailed, + ResumeFailed, + ChangePending, + TooSoon, + InvalidKeyOwnershipProof, + InvalidEquivocationProof, + DuplicateOffenceReport, + } + #[derive(Debug, :: codec :: Encode, :: codec :: Decode)] + pub enum Event { + NewAuthorities(Vec<(__runtime_types::sp_finality_grandpa::app::Public, u64)>), + Paused, + Resumed, + } } #[derive(Debug, :: codec :: Encode, :: codec :: Decode)] pub struct StoredPendingChange<_0> { @@ -3726,69 +3779,82 @@ pub mod node_runtime { } pub mod pallet_identity { use super::__runtime_types; - use std::collections::BTreeMap; pub mod pallet { use super::__runtime_types; - use std::collections::BTreeMap; #[derive(Debug, :: codec :: Encode, :: codec :: Decode)] - pub enum Call<_0> { - add_registrar(__runtime_types::sp_core::crypto::AccountId32), - set_identity(__runtime_types::pallet_identity::IdentityInfo), - set_subs( - Vec<( + pub enum Call { + add_registrar { + account: __runtime_types::sp_core::crypto::AccountId32, + }, + set_identity { + info: __runtime_types::pallet_identity::types::IdentityInfo, + }, + set_subs { + subs: Vec<( __runtime_types::sp_core::crypto::AccountId32, - __runtime_types::pallet_identity::Data, + __runtime_types::pallet_identity::types::Data, )>, - ), + }, clear_identity, - request_judgement(u32, u128), - cancel_request(u32), - set_fee(u32, u128), - set_account_id(u32, __runtime_types::sp_core::crypto::AccountId32), - set_fields(u32, __runtime_types::pallet_identity::IdentityFields), - provide_judgement( - u32, - __runtime_types::sp_runtime::multiaddress::MultiAddress< + request_judgement { + reg_index: u32, + max_fee: u128, + }, + cancel_request { + reg_index: u32, + }, + set_fee { + index: u32, + fee: u128, + }, + set_account_id { + index: u32, + new: __runtime_types::sp_core::crypto::AccountId32, + }, + set_fields { + index: u32, + fields: __runtime_types::pallet_identity::types::BitFlags< + __runtime_types::pallet_identity::types::IdentityField, + >, + }, + provide_judgement { + reg_index: u32, + target: __runtime_types::sp_runtime::multiaddress::MultiAddress< __runtime_types::sp_core::crypto::AccountId32, u32, >, - __runtime_types::pallet_identity::Judgement, - ), - kill_identity( - __runtime_types::sp_runtime::multiaddress::MultiAddress< + judgement: __runtime_types::pallet_identity::types::Judgement, + }, + kill_identity { + target: __runtime_types::sp_runtime::multiaddress::MultiAddress< __runtime_types::sp_core::crypto::AccountId32, u32, >, - ), - add_sub( - __runtime_types::sp_runtime::multiaddress::MultiAddress< + }, + add_sub { + sub: __runtime_types::sp_runtime::multiaddress::MultiAddress< __runtime_types::sp_core::crypto::AccountId32, u32, >, - __runtime_types::pallet_identity::Data, - ), - rename_sub( - __runtime_types::sp_runtime::multiaddress::MultiAddress< + data: __runtime_types::pallet_identity::types::Data, + }, + rename_sub { + sub: __runtime_types::sp_runtime::multiaddress::MultiAddress< __runtime_types::sp_core::crypto::AccountId32, u32, >, - __runtime_types::pallet_identity::Data, - ), - remove_sub( - __runtime_types::sp_runtime::multiaddress::MultiAddress< + data: __runtime_types::pallet_identity::types::Data, + }, + remove_sub { + sub: __runtime_types::sp_runtime::multiaddress::MultiAddress< __runtime_types::sp_core::crypto::AccountId32, u32, >, - ), + }, quit_sub, - __Ignore(core::marker::PhantomData<(_0,)>), } #[derive(Debug, :: codec :: Encode, :: codec :: Decode)] - pub enum Error<_0> { - __Ignore( - core::marker::PhantomData<_0>, - __runtime_types::frame_support::Never, - ), + pub enum Error { TooManySubAccounts, NotFound, NotNamed, @@ -3807,7 +3873,7 @@ pub mod node_runtime { NotOwned, } #[derive(Debug, :: codec :: Encode, :: codec :: Decode)] - pub enum Event<_0> { + pub enum Event { IdentitySet(__runtime_types::sp_core::crypto::AccountId32), IdentityCleared(__runtime_types::sp_core::crypto::AccountId32, u128), IdentityKilled(__runtime_types::sp_core::crypto::AccountId32, u128), @@ -3830,67 +3896,148 @@ pub mod node_runtime { __runtime_types::sp_core::crypto::AccountId32, u128, ), - __Ignore(core::marker::PhantomData<(_0,)>), } } - #[derive(Debug, :: codec :: Encode, :: codec :: Decode)] - pub enum Data { - None, - Raw(Vec), - BlakeTwo256([u8; 32usize]), - Sha256([u8; 32usize]), - Keccak256([u8; 32usize]), - ShaThree256([u8; 32usize]), - } - #[derive(Debug, :: codec :: Encode, :: codec :: Decode)] - pub struct IdentityFields(pub u64); - #[derive(Debug, :: codec :: Encode, :: codec :: Decode)] - pub struct IdentityInfo { - pub additional: Vec<( - __runtime_types::pallet_identity::Data, - __runtime_types::pallet_identity::Data, - )>, - pub display: __runtime_types::pallet_identity::Data, - pub legal: __runtime_types::pallet_identity::Data, - pub web: __runtime_types::pallet_identity::Data, - pub riot: __runtime_types::pallet_identity::Data, - pub email: __runtime_types::pallet_identity::Data, - pub pgp_fingerprint: Option<[u8; 20usize]>, - pub image: __runtime_types::pallet_identity::Data, - pub twitter: __runtime_types::pallet_identity::Data, - } - #[derive(Debug, :: codec :: Encode, :: codec :: Decode)] - pub enum Judgement<_0> { - Unknown, - FeePaid(_0), - Reasonable, - KnownGood, - OutOfDate, - LowQuality, - Erroneous, - } - #[derive(Debug, :: codec :: Encode, :: codec :: Decode)] - pub struct RegistrarInfo<_0, _1> { - pub account: _1, - pub fee: _0, - pub fields: __runtime_types::pallet_identity::IdentityFields, - } - #[derive(Debug, :: codec :: Encode, :: codec :: Decode)] - pub struct Registration<_0> { - pub judgements: Vec<(u32, __runtime_types::pallet_identity::Judgement<_0>)>, - pub deposit: _0, - pub info: __runtime_types::pallet_identity::IdentityInfo, + pub mod types { + use super::__runtime_types; + #[derive(Debug, :: codec :: Encode, :: codec :: Decode)] + pub struct BitFlags<_0>(pub u64, pub core::marker::PhantomData<(_0)>); + #[derive(Debug, :: codec :: Encode, :: codec :: Decode)] + pub enum Data { + None, + Raw0([u8; 0usize]), + Raw1([u8; 1usize]), + Raw2([u8; 2usize]), + Raw3([u8; 3usize]), + Raw4([u8; 4usize]), + Raw5([u8; 5usize]), + Raw6([u8; 6usize]), + Raw7([u8; 7usize]), + Raw8([u8; 8usize]), + Raw9([u8; 9usize]), + Raw10([u8; 10usize]), + Raw11([u8; 11usize]), + Raw12([u8; 12usize]), + Raw13([u8; 13usize]), + Raw14([u8; 14usize]), + Raw15([u8; 15usize]), + Raw16([u8; 16usize]), + Raw17([u8; 17usize]), + Raw18([u8; 18usize]), + Raw19([u8; 19usize]), + Raw20([u8; 20usize]), + Raw21([u8; 21usize]), + Raw22([u8; 22usize]), + Raw23([u8; 23usize]), + Raw24([u8; 24usize]), + Raw25([u8; 25usize]), + Raw26([u8; 26usize]), + Raw27([u8; 27usize]), + Raw28([u8; 28usize]), + Raw29([u8; 29usize]), + Raw30([u8; 30usize]), + Raw31([u8; 31usize]), + Raw32([u8; 32usize]), + BlakeTwo256([u8; 32usize]), + Sha256([u8; 32usize]), + Keccak256([u8; 32usize]), + ShaThree256([u8; 32usize]), + } + #[derive(Debug, :: codec :: Encode, :: codec :: Decode)] + pub enum IdentityField { + Display, + Legal, + Web, + Riot, + Email, + PgpFingerprint, + Image, + Twitter, + } + #[derive(Debug, :: codec :: Encode, :: codec :: Decode)] + pub struct IdentityInfo { + pub additional: + __runtime_types::frame_support::storage::bounded_vec::BoundedVec<( + __runtime_types::pallet_identity::types::Data, + __runtime_types::pallet_identity::types::Data, + )>, + pub display: __runtime_types::pallet_identity::types::Data, + pub legal: __runtime_types::pallet_identity::types::Data, + pub web: __runtime_types::pallet_identity::types::Data, + pub riot: __runtime_types::pallet_identity::types::Data, + pub email: __runtime_types::pallet_identity::types::Data, + pub pgp_fingerprint: Option<[u8; 20usize]>, + pub image: __runtime_types::pallet_identity::types::Data, + pub twitter: __runtime_types::pallet_identity::types::Data, + } + #[derive(Debug, :: codec :: Encode, :: codec :: Decode)] + pub enum Judgement<_0> { + Unknown, + FeePaid(_0), + Reasonable, + KnownGood, + OutOfDate, + LowQuality, + Erroneous, + } + #[derive(Debug, :: codec :: Encode, :: codec :: Decode)] + pub struct RegistrarInfo<_0, _1> { + pub account: _1, + pub fee: _0, + pub fields: __runtime_types::pallet_identity::types::BitFlags< + __runtime_types::pallet_identity::types::IdentityField, + >, + } + #[derive(Debug, :: codec :: Encode, :: codec :: Decode)] + pub struct Registration<_0> { + pub judgements: + __runtime_types::frame_support::storage::bounded_vec::BoundedVec<( + u32, + __runtime_types::pallet_identity::types::Judgement<_0>, + )>, + pub deposit: _0, + pub info: __runtime_types::pallet_identity::types::IdentityInfo, + } } } pub mod pallet_im_online { use super::__runtime_types; - use std::collections::BTreeMap; + pub mod pallet { + use super::__runtime_types; + #[derive(Debug, :: codec :: Encode, :: codec :: Decode)] + pub enum Call { + heartbeat { + heartbeat: __runtime_types::pallet_im_online::Heartbeat, + _signature: + __runtime_types::pallet_im_online::sr25519::app_sr25519::Signature, + }, + } + #[derive(Debug, :: codec :: Encode, :: codec :: Decode)] + pub enum Error { + InvalidKey, + DuplicatedHeartbeat, + } + #[derive(Debug, :: codec :: Encode, :: codec :: Decode)] + pub enum Event { + HeartbeatReceived( + __runtime_types::pallet_im_online::sr25519::app_sr25519::Public, + ), + AllGood, + SomeOffline( + Vec<( + __runtime_types::sp_core::crypto::AccountId32, + __runtime_types::pallet_staking::Exposure< + __runtime_types::sp_core::crypto::AccountId32, + u128, + >, + )>, + ), + } + } pub mod sr25519 { use super::__runtime_types; - use std::collections::BTreeMap; pub mod app_sr25519 { use super::__runtime_types; - use std::collections::BTreeMap; #[derive(Debug, :: codec :: Encode, :: codec :: Decode)] pub struct Public(pub __runtime_types::sp_core::sr25519::Public); #[derive(Debug, :: codec :: Encode, :: codec :: Decode)] @@ -3898,23 +4045,6 @@ pub mod node_runtime { } } #[derive(Debug, :: codec :: Encode, :: codec :: Decode)] - pub enum Call<_0> { - heartbeat( - __runtime_types::pallet_im_online::Heartbeat, - __runtime_types::pallet_im_online::sr25519::app_sr25519::Signature, - ), - __Ignore(core::marker::PhantomData<(_0,)>), - } - #[derive(Debug, :: codec :: Encode, :: codec :: Decode)] - pub enum Error<_0> { - __Ignore( - core::marker::PhantomData<(_0,)>, - __runtime_types::frame_support::Never, - ), - InvalidKey, - DuplicatedHeartbeat, - } - #[derive(Debug, :: codec :: Encode, :: codec :: Decode)] pub struct Heartbeat<_0> { pub block_number: _0, pub network_state: __runtime_types::sp_core::offchain::OpaqueNetworkState, @@ -3922,34 +4052,34 @@ pub mod node_runtime { pub authority_index: _0, pub validators_len: _0, } - #[derive(Debug, :: codec :: Encode, :: codec :: Decode)] - pub enum RawEvent<_0, _1> { - HeartbeatReceived(_0), - AllGood, - SomeOffline(Vec<_1>), - } } pub mod pallet_indices { use super::__runtime_types; - use std::collections::BTreeMap; pub mod pallet { use super::__runtime_types; - use std::collections::BTreeMap; #[derive(Debug, :: codec :: Encode, :: codec :: Decode)] - pub enum Call<_0> { - claim(u32), - transfer(__runtime_types::sp_core::crypto::AccountId32, u32), - free(u32), - force_transfer(__runtime_types::sp_core::crypto::AccountId32, u32, bool), - freeze(u32), - __Ignore(core::marker::PhantomData<(_0,)>), + pub enum Call { + claim { + index: u32, + }, + transfer { + new: __runtime_types::sp_core::crypto::AccountId32, + index: u32, + }, + free { + index: u32, + }, + force_transfer { + new: __runtime_types::sp_core::crypto::AccountId32, + index: u32, + freeze: bool, + }, + freeze { + index: u32, + }, } #[derive(Debug, :: codec :: Encode, :: codec :: Decode)] - pub enum Error<_0> { - __Ignore( - core::marker::PhantomData<_0>, - __runtime_types::frame_support::Never, - ), + pub enum Error { NotAssigned, NotOwner, InUse, @@ -3957,39 +4087,50 @@ pub mod node_runtime { Permanent, } #[derive(Debug, :: codec :: Encode, :: codec :: Decode)] - pub enum Event<_0> { + pub enum Event { IndexAssigned(__runtime_types::sp_core::crypto::AccountId32, u32), IndexFreed(u32), IndexFrozen(u32, __runtime_types::sp_core::crypto::AccountId32), - __Ignore(core::marker::PhantomData<(_0,)>), } } } pub mod pallet_lottery { use super::__runtime_types; - use std::collections::BTreeMap; - #[derive(Debug, :: codec :: Encode, :: codec :: Decode)] - pub enum Call<_0> { - buy_ticket(std::boxed::Box<__runtime_types::node_runtime::Call>), - set_calls(Vec<__runtime_types::node_runtime::Call>), - start_lottery(u128, u32, u32, bool), - stop_repeat, - __Ignore(core::marker::PhantomData<(_0,)>), - } - #[derive(Debug, :: codec :: Encode, :: codec :: Decode)] - pub enum Error<_0> { - __Ignore( - core::marker::PhantomData<(_0,)>, - __runtime_types::frame_support::Never, - ), - Overflow, - NotConfigured, - InProgress, - AlreadyEnded, - InvalidCall, - AlreadyParticipating, - TooManyCalls, - EncodingFailed, + pub mod pallet { + use super::__runtime_types; + #[derive(Debug, :: codec :: Encode, :: codec :: Decode)] + pub enum Call { + buy_ticket { + call: __runtime_types::node_runtime::Call, + }, + set_calls { + calls: Vec<__runtime_types::node_runtime::Call>, + }, + start_lottery { + price: u128, + length: u32, + delay: u32, + repeat: bool, + }, + stop_repeat, + } + #[derive(Debug, :: codec :: Encode, :: codec :: Decode)] + pub enum Error { + NotConfigured, + InProgress, + AlreadyEnded, + InvalidCall, + AlreadyParticipating, + TooManyCalls, + EncodingFailed, + } + #[derive(Debug, :: codec :: Encode, :: codec :: Decode)] + pub enum Event { + LotteryStarted, + CallsUpdated, + Winner(__runtime_types::sp_core::crypto::AccountId32, u128), + TicketBought(__runtime_types::sp_core::crypto::AccountId32, (u8, u8)), + } } #[derive(Debug, :: codec :: Encode, :: codec :: Decode)] pub struct LotteryConfig<_0, _1> { @@ -3999,37 +4140,34 @@ pub mod node_runtime { pub delay: _0, pub repeat: bool, } - #[derive(Debug, :: codec :: Encode, :: codec :: Decode)] - pub enum RawEvent<_0, _1> { - LotteryStarted, - CallsUpdated, - Winner(_0, _1), - TicketBought(_0, (u8, u8)), - } } pub mod pallet_membership { use super::__runtime_types; - use std::collections::BTreeMap; #[derive(Debug, :: codec :: Encode, :: codec :: Decode)] - pub enum Call<_0, _1> { - add_member(__runtime_types::sp_core::crypto::AccountId32), - remove_member(__runtime_types::sp_core::crypto::AccountId32), - swap_member( - __runtime_types::sp_core::crypto::AccountId32, - __runtime_types::sp_core::crypto::AccountId32, - ), - reset_members(Vec<__runtime_types::sp_core::crypto::AccountId32>), - change_key(__runtime_types::sp_core::crypto::AccountId32), - set_prime(__runtime_types::sp_core::crypto::AccountId32), + pub enum Call { + add_member { + who: __runtime_types::sp_core::crypto::AccountId32, + }, + remove_member { + who: __runtime_types::sp_core::crypto::AccountId32, + }, + swap_member { + remove: __runtime_types::sp_core::crypto::AccountId32, + add: __runtime_types::sp_core::crypto::AccountId32, + }, + reset_members { + members: Vec<__runtime_types::sp_core::crypto::AccountId32>, + }, + change_key { + new: __runtime_types::sp_core::crypto::AccountId32, + }, + set_prime { + who: __runtime_types::sp_core::crypto::AccountId32, + }, clear_prime, - __Ignore(core::marker::PhantomData<(_1, _0)>), } #[derive(Debug, :: codec :: Encode, :: codec :: Decode)] - pub enum Error<_0, _1> { - __Ignore( - core::marker::PhantomData<(_0, _1)>, - __runtime_types::frame_support::Never, - ), + pub enum Error { AlreadyMember, NotMember, } @@ -4042,62 +4180,86 @@ pub mod node_runtime { MembersSwapped, MembersReset, KeyChanged, - Dummy(core::marker::PhantomData<(_0, _1)>), - __Ignore(core::marker::PhantomData<(_2,)>), + Dummy, + __Ignore(core::marker::PhantomData<(_2, _0, _1)>), } } pub mod pallet_multisig { use super::__runtime_types; - use std::collections::BTreeMap; - #[derive(Debug, :: codec :: Encode, :: codec :: Decode)] - pub enum Call<_0> { - as_multi_threshold_1( - Vec<__runtime_types::sp_core::crypto::AccountId32>, - std::boxed::Box<__runtime_types::node_runtime::Call>, - ), - as_multi( - u16, - Vec<__runtime_types::sp_core::crypto::AccountId32>, - Option<__runtime_types::pallet_multisig::Timepoint>, - Vec, - bool, - u64, - ), - approve_as_multi( - u16, - Vec<__runtime_types::sp_core::crypto::AccountId32>, - Option<__runtime_types::pallet_multisig::Timepoint>, - [u8; 32usize], - u64, - ), - cancel_as_multi( - u16, - Vec<__runtime_types::sp_core::crypto::AccountId32>, - __runtime_types::pallet_multisig::Timepoint, - [u8; 32usize], - ), - __Ignore(core::marker::PhantomData<(_0,)>), - } - #[derive(Debug, :: codec :: Encode, :: codec :: Decode)] - pub enum Error<_0> { - __Ignore( - core::marker::PhantomData<(_0,)>, - __runtime_types::frame_support::Never, - ), - MinimumThreshold, - AlreadyApproved, - NoApprovalsNeeded, - TooFewSignatories, - TooManySignatories, - SignatoriesOutOfOrder, - SenderInSignatories, - NotFound, - NotOwner, - NoTimepoint, - WrongTimepoint, - UnexpectedTimepoint, - MaxWeightTooLow, - AlreadyStored, + pub mod pallet { + use super::__runtime_types; + #[derive(Debug, :: codec :: Encode, :: codec :: Decode)] + pub enum Call { + as_multi_threshold_1 { + other_signatories: Vec<__runtime_types::sp_core::crypto::AccountId32>, + call: __runtime_types::node_runtime::Call, + }, + as_multi { + threshold: u16, + other_signatories: Vec<__runtime_types::sp_core::crypto::AccountId32>, + maybe_timepoint: Option<__runtime_types::pallet_multisig::Timepoint>, + call: Vec, + store_call: bool, + max_weight: u64, + }, + approve_as_multi { + threshold: u16, + other_signatories: Vec<__runtime_types::sp_core::crypto::AccountId32>, + maybe_timepoint: Option<__runtime_types::pallet_multisig::Timepoint>, + call_hash: [u8; 32usize], + max_weight: u64, + }, + cancel_as_multi { + threshold: u16, + other_signatories: Vec<__runtime_types::sp_core::crypto::AccountId32>, + timepoint: __runtime_types::pallet_multisig::Timepoint, + call_hash: [u8; 32usize], + }, + } + #[derive(Debug, :: codec :: Encode, :: codec :: Decode)] + pub enum Error { + MinimumThreshold, + AlreadyApproved, + NoApprovalsNeeded, + TooFewSignatories, + TooManySignatories, + SignatoriesOutOfOrder, + SenderInSignatories, + NotFound, + NotOwner, + NoTimepoint, + WrongTimepoint, + UnexpectedTimepoint, + MaxWeightTooLow, + AlreadyStored, + } + #[derive(Debug, :: codec :: Encode, :: codec :: Decode)] + pub enum Event { + NewMultisig( + __runtime_types::sp_core::crypto::AccountId32, + __runtime_types::sp_core::crypto::AccountId32, + [u8; 32usize], + ), + MultisigApproval( + __runtime_types::sp_core::crypto::AccountId32, + __runtime_types::pallet_multisig::Timepoint, + __runtime_types::sp_core::crypto::AccountId32, + [u8; 32usize], + ), + MultisigExecuted( + __runtime_types::sp_core::crypto::AccountId32, + __runtime_types::pallet_multisig::Timepoint, + __runtime_types::sp_core::crypto::AccountId32, + [u8; 32usize], + Result<(), __runtime_types::sp_runtime::DispatchError>, + ), + MultisigCancelled( + __runtime_types::sp_core::crypto::AccountId32, + __runtime_types::pallet_multisig::Timepoint, + __runtime_types::sp_core::crypto::AccountId32, + [u8; 32usize], + ), + } } #[derive(Debug, :: codec :: Encode, :: codec :: Decode)] pub struct Multisig<_0, _1, _2> { @@ -4107,19 +4269,6 @@ pub mod node_runtime { pub approvals: Vec<_2>, } #[derive(Debug, :: codec :: Encode, :: codec :: Decode)] - pub enum RawEvent<_0, _1, _2> { - NewMultisig(_0, _0, _2), - MultisigApproval(_0, __runtime_types::pallet_multisig::Timepoint<_1>, _0, _2), - MultisigExecuted( - _0, - __runtime_types::pallet_multisig::Timepoint<_1>, - _0, - _2, - Result<(), __runtime_types::sp_runtime::DispatchError>, - ), - MultisigCancelled(_0, __runtime_types::pallet_multisig::Timepoint<_1>, _0, _2), - } - #[derive(Debug, :: codec :: Encode, :: codec :: Decode)] pub struct Timepoint<_0> { pub height: _0, pub index: _0, @@ -4127,74 +4276,69 @@ pub mod node_runtime { } pub mod pallet_offences { use super::__runtime_types; - use std::collections::BTreeMap; - #[derive(Debug, :: codec :: Encode, :: codec :: Decode)] - pub enum Call<_0> { - __Ignore(core::marker::PhantomData<(_0,)>), - } - #[derive(Debug, :: codec :: Encode, :: codec :: Decode)] - pub enum Event { - Offence([u8; 16usize], Vec), + pub mod pallet { + use super::__runtime_types; + #[derive(Debug, :: codec :: Encode, :: codec :: Decode)] + pub enum Event { + Offence([u8; 16usize], Vec), + } } } pub mod pallet_proxy { use super::__runtime_types; - use std::collections::BTreeMap; pub mod pallet { use super::__runtime_types; - use std::collections::BTreeMap; #[derive(Debug, :: codec :: Encode, :: codec :: Decode)] - pub enum Call<_0> { - proxy( - __runtime_types::sp_core::crypto::AccountId32, - Option<__runtime_types::node_runtime::ProxyType>, - std::boxed::Box<__runtime_types::node_runtime::Call>, - ), - add_proxy( - __runtime_types::sp_core::crypto::AccountId32, - __runtime_types::node_runtime::ProxyType, - u32, - ), - remove_proxy( - __runtime_types::sp_core::crypto::AccountId32, - __runtime_types::node_runtime::ProxyType, - u32, - ), + pub enum Call { + proxy { + real: __runtime_types::sp_core::crypto::AccountId32, + force_proxy_type: Option<__runtime_types::node_runtime::ProxyType>, + call: __runtime_types::node_runtime::Call, + }, + add_proxy { + delegate: __runtime_types::sp_core::crypto::AccountId32, + proxy_type: __runtime_types::node_runtime::ProxyType, + delay: u32, + }, + remove_proxy { + delegate: __runtime_types::sp_core::crypto::AccountId32, + proxy_type: __runtime_types::node_runtime::ProxyType, + delay: u32, + }, remove_proxies, - anonymous(__runtime_types::node_runtime::ProxyType, u32, u16), - kill_anonymous( - __runtime_types::sp_core::crypto::AccountId32, - __runtime_types::node_runtime::ProxyType, - u16, - u32, - u32, - ), - announce( - __runtime_types::sp_core::crypto::AccountId32, - __runtime_types::primitive_types::H256, - ), - remove_announcement( - __runtime_types::sp_core::crypto::AccountId32, - __runtime_types::primitive_types::H256, - ), - reject_announcement( - __runtime_types::sp_core::crypto::AccountId32, - __runtime_types::primitive_types::H256, - ), - proxy_announced( - __runtime_types::sp_core::crypto::AccountId32, - __runtime_types::sp_core::crypto::AccountId32, - Option<__runtime_types::node_runtime::ProxyType>, - std::boxed::Box<__runtime_types::node_runtime::Call>, - ), - __Ignore(core::marker::PhantomData<(_0,)>), + anonymous { + proxy_type: __runtime_types::node_runtime::ProxyType, + delay: u32, + index: u16, + }, + kill_anonymous { + spawner: __runtime_types::sp_core::crypto::AccountId32, + proxy_type: __runtime_types::node_runtime::ProxyType, + index: u16, + height: u32, + ext_index: u32, + }, + announce { + real: __runtime_types::sp_core::crypto::AccountId32, + call_hash: __runtime_types::primitive_types::H256, + }, + remove_announcement { + real: __runtime_types::sp_core::crypto::AccountId32, + call_hash: __runtime_types::primitive_types::H256, + }, + reject_announcement { + delegate: __runtime_types::sp_core::crypto::AccountId32, + call_hash: __runtime_types::primitive_types::H256, + }, + proxy_announced { + delegate: __runtime_types::sp_core::crypto::AccountId32, + real: __runtime_types::sp_core::crypto::AccountId32, + force_proxy_type: Option<__runtime_types::node_runtime::ProxyType>, + call: __runtime_types::node_runtime::Call, + }, } #[derive(Debug, :: codec :: Encode, :: codec :: Decode)] - pub enum Error<_0> { - __Ignore( - core::marker::PhantomData<_0>, - __runtime_types::frame_support::Never, - ), + pub enum Error { TooMany, NotFound, NotProxy, @@ -4205,7 +4349,7 @@ pub mod node_runtime { NoSelfProxy, } #[derive(Debug, :: codec :: Encode, :: codec :: Decode)] - pub enum Event<_0> { + pub enum Event { ProxyExecuted(Result<(), __runtime_types::sp_runtime::DispatchError>), AnonymousCreated( __runtime_types::sp_core::crypto::AccountId32, @@ -4218,7 +4362,6 @@ pub mod node_runtime { __runtime_types::sp_core::crypto::AccountId32, __runtime_types::primitive_types::H256, ), - __Ignore(core::marker::PhantomData<(_0,)>), } } #[derive(Debug, :: codec :: Encode, :: codec :: Decode)] @@ -4234,17 +4377,85 @@ pub mod node_runtime { pub delay: _2, } } - pub mod pallet_randomness_collective_flip { - use super::__runtime_types; - use std::collections::BTreeMap; - #[derive(Debug, :: codec :: Encode, :: codec :: Decode)] - pub enum Call<_0> { - __Ignore(core::marker::PhantomData<(_0,)>), - } - } pub mod pallet_recovery { use super::__runtime_types; - use std::collections::BTreeMap; + pub mod pallet { + use super::__runtime_types; + #[derive(Debug, :: codec :: Encode, :: codec :: Decode)] + pub enum Call { + as_recovered { + account: __runtime_types::sp_core::crypto::AccountId32, + call: __runtime_types::node_runtime::Call, + }, + set_recovered { + lost: __runtime_types::sp_core::crypto::AccountId32, + rescuer: __runtime_types::sp_core::crypto::AccountId32, + }, + create_recovery { + friends: Vec<__runtime_types::sp_core::crypto::AccountId32>, + threshold: u16, + delay_period: u32, + }, + initiate_recovery { + account: __runtime_types::sp_core::crypto::AccountId32, + }, + vouch_recovery { + lost: __runtime_types::sp_core::crypto::AccountId32, + rescuer: __runtime_types::sp_core::crypto::AccountId32, + }, + claim_recovery { + account: __runtime_types::sp_core::crypto::AccountId32, + }, + close_recovery { + rescuer: __runtime_types::sp_core::crypto::AccountId32, + }, + remove_recovery, + cancel_recovered { + account: __runtime_types::sp_core::crypto::AccountId32, + }, + } + #[derive(Debug, :: codec :: Encode, :: codec :: Decode)] + pub enum Error { + NotAllowed, + ZeroThreshold, + NotEnoughFriends, + MaxFriends, + NotSorted, + NotRecoverable, + AlreadyRecoverable, + AlreadyStarted, + NotStarted, + NotFriend, + DelayPeriod, + AlreadyVouched, + Threshold, + StillActive, + AlreadyProxy, + BadState, + } + #[derive(Debug, :: codec :: Encode, :: codec :: Decode)] + pub enum Event { + RecoveryCreated(__runtime_types::sp_core::crypto::AccountId32), + RecoveryInitiated( + __runtime_types::sp_core::crypto::AccountId32, + __runtime_types::sp_core::crypto::AccountId32, + ), + RecoveryVouched( + __runtime_types::sp_core::crypto::AccountId32, + __runtime_types::sp_core::crypto::AccountId32, + __runtime_types::sp_core::crypto::AccountId32, + ), + RecoveryClosed( + __runtime_types::sp_core::crypto::AccountId32, + __runtime_types::sp_core::crypto::AccountId32, + ), + AccountRecovered( + __runtime_types::sp_core::crypto::AccountId32, + __runtime_types::sp_core::crypto::AccountId32, + ), + RecoveryRemoved(__runtime_types::sp_core::crypto::AccountId32), + } + } #[derive(Debug, :: codec :: Encode, :: codec :: Decode)] pub struct ActiveRecovery<_0, _1, _2> { pub created: _0, @@ -4252,61 +4463,6 @@ pub mod node_runtime { pub friends: Vec<_2>, } #[derive(Debug, :: codec :: Encode, :: codec :: Decode)] - pub enum Call<_0> { - as_recovered( - __runtime_types::sp_core::crypto::AccountId32, - std::boxed::Box<__runtime_types::node_runtime::Call>, - ), - set_recovered( - __runtime_types::sp_core::crypto::AccountId32, - __runtime_types::sp_core::crypto::AccountId32, - ), - create_recovery(Vec<__runtime_types::sp_core::crypto::AccountId32>, u16, u32), - initiate_recovery(__runtime_types::sp_core::crypto::AccountId32), - vouch_recovery( - __runtime_types::sp_core::crypto::AccountId32, - __runtime_types::sp_core::crypto::AccountId32, - ), - claim_recovery(__runtime_types::sp_core::crypto::AccountId32), - close_recovery(__runtime_types::sp_core::crypto::AccountId32), - remove_recovery, - cancel_recovered(__runtime_types::sp_core::crypto::AccountId32), - __Ignore(core::marker::PhantomData<(_0,)>), - } - #[derive(Debug, :: codec :: Encode, :: codec :: Decode)] - pub enum Error<_0> { - __Ignore( - core::marker::PhantomData<(_0,)>, - __runtime_types::frame_support::Never, - ), - NotAllowed, - ZeroThreshold, - NotEnoughFriends, - MaxFriends, - NotSorted, - NotRecoverable, - AlreadyRecoverable, - AlreadyStarted, - NotStarted, - NotFriend, - DelayPeriod, - AlreadyVouched, - Threshold, - StillActive, - Overflow, - AlreadyProxy, - BadState, - } - #[derive(Debug, :: codec :: Encode, :: codec :: Decode)] - pub enum RawEvent<_0> { - RecoveryCreated(_0), - RecoveryInitiated(_0, _0), - RecoveryVouched(_0, _0, _0), - RecoveryClosed(_0, _0), - AccountRecovered(_0, _0), - RecoveryRemoved(_0), - } - #[derive(Debug, :: codec :: Encode, :: codec :: Decode)] pub struct RecoveryConfig<_0, _1, _2> { pub delay_period: _0, pub deposit: _1, @@ -4316,59 +4472,61 @@ pub mod node_runtime { } pub mod pallet_scheduler { use super::__runtime_types; - use std::collections::BTreeMap; - #[derive(Debug, :: codec :: Encode, :: codec :: Decode)] - pub enum Call<_0> { - schedule( - u32, - Option<(u32, u32)>, - u8, - std::boxed::Box<__runtime_types::node_runtime::Call>, - ), - cancel(u32, u32), - schedule_named( - Vec, - u32, - Option<(u32, u32)>, - u8, - std::boxed::Box<__runtime_types::node_runtime::Call>, - ), - cancel_named(Vec), - schedule_after( - u32, - Option<(u32, u32)>, - u8, - std::boxed::Box<__runtime_types::node_runtime::Call>, - ), - schedule_named_after( - Vec, - u32, - Option<(u32, u32)>, - u8, - std::boxed::Box<__runtime_types::node_runtime::Call>, - ), - __Ignore(core::marker::PhantomData<(_0,)>), - } - #[derive(Debug, :: codec :: Encode, :: codec :: Decode)] - pub enum Error<_0> { - __Ignore( - core::marker::PhantomData<(_0,)>, - __runtime_types::frame_support::Never, - ), - FailedToSchedule, - NotFound, - TargetBlockNumberInPast, - RescheduleNoChange, - } - #[derive(Debug, :: codec :: Encode, :: codec :: Decode)] - pub enum RawEvent<_0> { - Scheduled(_0, _0), - Canceled(_0, _0), - Dispatched( - (_0, _0), - Option>, - Result<(), __runtime_types::sp_runtime::DispatchError>, - ), + pub mod pallet { + use super::__runtime_types; + #[derive(Debug, :: codec :: Encode, :: codec :: Decode)] + pub enum Call { + schedule { + when: u32, + maybe_periodic: Option<(u32, u32)>, + priority: u8, + call: __runtime_types::node_runtime::Call, + }, + cancel { + when: u32, + index: u32, + }, + schedule_named { + id: Vec, + when: u32, + maybe_periodic: Option<(u32, u32)>, + priority: u8, + call: __runtime_types::node_runtime::Call, + }, + cancel_named { + id: Vec, + }, + schedule_after { + after: u32, + maybe_periodic: Option<(u32, u32)>, + priority: u8, + call: __runtime_types::node_runtime::Call, + }, + schedule_named_after { + id: Vec, + after: u32, + maybe_periodic: Option<(u32, u32)>, + priority: u8, + call: __runtime_types::node_runtime::Call, + }, + } + #[derive(Debug, :: codec :: Encode, :: codec :: Decode)] + pub enum Error { + FailedToSchedule, + NotFound, + TargetBlockNumberInPast, + RescheduleNoChange, + } + #[derive(Debug, :: codec :: Encode, :: codec :: Decode)] + pub enum Event { + Scheduled(u32, u32), + Canceled(u32, u32), + Dispatched( + (u32, u32), + Option>, + Result<(), __runtime_types::sp_runtime::DispatchError>, + ), + } } #[derive(Debug, :: codec :: Encode, :: codec :: Decode)] pub enum Releases { @@ -4382,24 +4540,21 @@ pub mod node_runtime { pub call: _0, pub maybe_periodic: Option<(_1, _1)>, pub origin: _2, - pub _phantom: core::marker::PhantomData<_3>, + pub __chameleon_unused_type_params: core::marker::PhantomData<(_3,)>, } } pub mod pallet_session { use super::__runtime_types; - use std::collections::BTreeMap; #[derive(Debug, :: codec :: Encode, :: codec :: Decode)] - pub enum Call<_0> { - set_keys(__runtime_types::node_runtime::SessionKeys, Vec), + pub enum Call { + set_keys { + keys: __runtime_types::node_runtime::SessionKeys, + proof: Vec, + }, purge_keys, - __Ignore(core::marker::PhantomData<(_0,)>), } #[derive(Debug, :: codec :: Encode, :: codec :: Decode)] - pub enum Error<_0> { - __Ignore( - core::marker::PhantomData<(_0,)>, - __runtime_types::frame_support::Never, - ), + pub enum Error { InvalidProof, NoAssociatedValidatorId, DuplicatedKey, @@ -4413,7 +4568,6 @@ pub mod node_runtime { } pub mod pallet_society { use super::__runtime_types; - use std::collections::BTreeMap; #[derive(Debug, :: codec :: Encode, :: codec :: Decode)] pub struct Bid<_0, _1> { pub who: _0, @@ -4426,38 +4580,54 @@ pub mod node_runtime { Vouch(_0, _1), } #[derive(Debug, :: codec :: Encode, :: codec :: Decode)] - pub enum Call<_0, _1> { - bid(u128), - unbid(u32), - vouch(__runtime_types::sp_core::crypto::AccountId32, u128, u128), - unvouch(u32), - vote( - __runtime_types::sp_runtime::multiaddress::MultiAddress< + pub enum Call { + bid { + value: u128, + }, + unbid { + pos: u32, + }, + vouch { + who: __runtime_types::sp_core::crypto::AccountId32, + value: u128, + tip: u128, + }, + unvouch { + pos: u32, + }, + vote { + candidate: __runtime_types::sp_runtime::multiaddress::MultiAddress< __runtime_types::sp_core::crypto::AccountId32, u32, >, - bool, - ), - defender_vote(bool), + approve: bool, + }, + defender_vote { + approve: bool, + }, payout, - found(__runtime_types::sp_core::crypto::AccountId32, u32, Vec), + found { + founder: __runtime_types::sp_core::crypto::AccountId32, + max_members: u32, + rules: Vec, + }, unfound, - judge_suspended_member(__runtime_types::sp_core::crypto::AccountId32, bool), - judge_suspended_candidate( - __runtime_types::sp_core::crypto::AccountId32, - __runtime_types::pallet_society::Judgement, - ), - set_max_members(u32), - __Ignore(core::marker::PhantomData<(_0, _1)>), + judge_suspended_member { + who: __runtime_types::sp_core::crypto::AccountId32, + forgive: bool, + }, + judge_suspended_candidate { + who: __runtime_types::sp_core::crypto::AccountId32, + judgement: __runtime_types::pallet_society::Judgement, + }, + set_max_members { + max: u32, + }, } #[derive(Debug, :: codec :: Encode, :: codec :: Decode)] pub struct DefaultInstance {} #[derive(Debug, :: codec :: Encode, :: codec :: Decode)] - pub enum Error<_0, _1> { - __Ignore( - core::marker::PhantomData<(_0, _1)>, - __runtime_types::frame_support::Never, - ), + pub enum Error { BadPosition, NotMember, AlreadyMember, @@ -4517,10 +4687,159 @@ pub mod node_runtime { } pub mod pallet_staking { use super::__runtime_types; - use std::collections::BTreeMap; + pub mod pallet { + use super::__runtime_types; + pub mod pallet { + use super::__runtime_types; + #[derive(Debug, :: codec :: Encode, :: codec :: Decode)] + pub enum Call { + bond { + controller: __runtime_types::sp_runtime::multiaddress::MultiAddress< + __runtime_types::sp_core::crypto::AccountId32, + u32, + >, + value: u128, + payee: __runtime_types::pallet_staking::RewardDestination< + __runtime_types::sp_core::crypto::AccountId32, + >, + }, + bond_extra { + max_additional: u128, + }, + unbond { + value: u128, + }, + withdraw_unbonded { + num_slashing_spans: u32, + }, + validate { + prefs: __runtime_types::pallet_staking::ValidatorPrefs, + }, + nominate { + targets: Vec< + __runtime_types::sp_runtime::multiaddress::MultiAddress< + __runtime_types::sp_core::crypto::AccountId32, + u32, + >, + >, + }, + chill, + set_payee { + payee: __runtime_types::pallet_staking::RewardDestination< + __runtime_types::sp_core::crypto::AccountId32, + >, + }, + set_controller { + controller: __runtime_types::sp_runtime::multiaddress::MultiAddress< + __runtime_types::sp_core::crypto::AccountId32, + u32, + >, + }, + set_validator_count { + new: u32, + }, + increase_validator_count { + additional: u32, + }, + scale_validator_count { + factor: __runtime_types::sp_arithmetic::per_things::Percent, + }, + force_no_eras, + force_new_era, + set_invulnerables { + invulnerables: Vec<__runtime_types::sp_core::crypto::AccountId32>, + }, + force_unstake { + stash: __runtime_types::sp_core::crypto::AccountId32, + num_slashing_spans: u32, + }, + force_new_era_always, + cancel_deferred_slash { + era: u32, + slash_indices: Vec, + }, + payout_stakers { + validator_stash: __runtime_types::sp_core::crypto::AccountId32, + era: u32, + }, + rebond { + value: u128, + }, + set_history_depth { + new_history_depth: u32, + _era_items_deleted: u32, + }, + reap_stash { + stash: __runtime_types::sp_core::crypto::AccountId32, + num_slashing_spans: u32, + }, + kick { + who: Vec< + __runtime_types::sp_runtime::multiaddress::MultiAddress< + __runtime_types::sp_core::crypto::AccountId32, + u32, + >, + >, + }, + set_staking_limits { + min_nominator_bond: u128, + min_validator_bond: u128, + max_nominator_count: Option, + max_validator_count: Option, + threshold: Option<__runtime_types::sp_arithmetic::per_things::Percent>, + }, + chill_other { + controller: __runtime_types::sp_core::crypto::AccountId32, + }, + } + #[derive(Debug, :: codec :: Encode, :: codec :: Decode)] + pub enum Error { + NotController, + NotStash, + AlreadyBonded, + AlreadyPaired, + EmptyTargets, + DuplicateIndex, + InvalidSlashIndex, + InsufficientBond, + NoMoreChunks, + NoUnlockChunk, + FundedTarget, + InvalidEraToReward, + InvalidNumberOfNominations, + NotSortedAndUnique, + AlreadyClaimed, + IncorrectHistoryDepth, + IncorrectSlashingSpans, + BadState, + TooManyTargets, + BadTarget, + CannotChillOther, + TooManyNominators, + TooManyValidators, + } + #[derive(Debug, :: codec :: Encode, :: codec :: Decode)] + pub enum Event { + EraPaid(u32, u128, u128), + Rewarded(__runtime_types::sp_core::crypto::AccountId32, u128), + Slashed(__runtime_types::sp_core::crypto::AccountId32, u128), + OldSlashingReportDiscarded(u32), + StakersElected, + Bonded(__runtime_types::sp_core::crypto::AccountId32, u128), + Unbonded(__runtime_types::sp_core::crypto::AccountId32, u128), + Withdrawn(__runtime_types::sp_core::crypto::AccountId32, u128), + Kicked( + __runtime_types::sp_core::crypto::AccountId32, + __runtime_types::sp_core::crypto::AccountId32, + ), + StakingElectionFailed, + Chilled(__runtime_types::sp_core::crypto::AccountId32), + PayoutStarted(u32, __runtime_types::sp_core::crypto::AccountId32), + } + } + } pub mod slashing { use super::__runtime_types; - use std::collections::BTreeMap; #[derive(Debug, :: codec :: Encode, :: codec :: Decode)] pub struct SlashingSpans { pub span_index: u32, @@ -4534,101 +4853,15 @@ pub mod node_runtime { pub paid_out: _0, } } - #[derive(Debug, :: codec :: Encode, :: codec :: Decode)] - pub struct ActiveEraInfo { - pub index: u32, - pub start: Option, - } - #[derive(Debug, :: codec :: Encode, :: codec :: Decode)] - pub enum Call<_0> { - bond( - __runtime_types::sp_runtime::multiaddress::MultiAddress< - __runtime_types::sp_core::crypto::AccountId32, - u32, - >, - u128, - __runtime_types::pallet_staking::RewardDestination< - __runtime_types::sp_core::crypto::AccountId32, - >, - ), - bond_extra(u128), - unbond(u128), - withdraw_unbonded(u32), - validate(__runtime_types::pallet_staking::ValidatorPrefs), - nominate( - Vec< - __runtime_types::sp_runtime::multiaddress::MultiAddress< - __runtime_types::sp_core::crypto::AccountId32, - u32, - >, - >, - ), - chill, - set_payee( - __runtime_types::pallet_staking::RewardDestination< - __runtime_types::sp_core::crypto::AccountId32, - >, - ), - set_controller( - __runtime_types::sp_runtime::multiaddress::MultiAddress< - __runtime_types::sp_core::crypto::AccountId32, - u32, - >, - ), - set_validator_count(u32), - increase_validator_count(u32), - scale_validator_count(__runtime_types::sp_arithmetic::per_things::Percent), - force_no_eras, - force_new_era, - set_invulnerables(Vec<__runtime_types::sp_core::crypto::AccountId32>), - force_unstake(__runtime_types::sp_core::crypto::AccountId32, u32), - force_new_era_always, - cancel_deferred_slash(u32, Vec), - payout_stakers(__runtime_types::sp_core::crypto::AccountId32, u32), - rebond(u128), - set_history_depth(u32, u32), - reap_stash(__runtime_types::sp_core::crypto::AccountId32, u32), - kick( - Vec< - __runtime_types::sp_runtime::multiaddress::MultiAddress< - __runtime_types::sp_core::crypto::AccountId32, - u32, - >, - >, - ), - __Ignore(core::marker::PhantomData<(_0,)>), + #[derive(Debug, :: codec :: Encode, :: codec :: Decode)] + pub struct ActiveEraInfo { + pub index: u32, + pub start: Option, } #[derive(Debug, :: codec :: Encode, :: codec :: Decode)] pub struct EraRewardPoints<_0> { pub total: u32, - pub individual: BTreeMap<_0, u32>, - } - #[derive(Debug, :: codec :: Encode, :: codec :: Decode)] - pub enum Error<_0> { - __Ignore( - core::marker::PhantomData<(_0,)>, - __runtime_types::frame_support::Never, - ), - NotController, - NotStash, - AlreadyBonded, - AlreadyPaired, - EmptyTargets, - DuplicateIndex, - InvalidSlashIndex, - InsufficientValue, - NoMoreChunks, - NoUnlockChunk, - FundedTarget, - InvalidEraToReward, - InvalidNumberOfNominations, - NotSortedAndUnique, - AlreadyClaimed, - IncorrectHistoryDepth, - IncorrectSlashingSpans, - BadState, - TooManyTargets, - BadTarget, + pub individual: std::collections::BTreeMap<_0, u32>, } #[derive(Debug, :: codec :: Encode, :: codec :: Decode)] pub struct Exposure<_0, _1> { @@ -4655,18 +4888,6 @@ pub mod node_runtime { pub suppressed: bool, } #[derive(Debug, :: codec :: Encode, :: codec :: Decode)] - pub enum RawEvent<_0, _1> { - EraPayout(u32, _0, _0), - Reward(_1, _0), - Slash(_1, _0), - OldSlashingReportDiscarded(u32), - StakingElection, - Bonded(_1, _0), - Unbonded(_1, _0), - Withdrawn(_1, _0), - Kicked(_1, _1), - } - #[derive(Debug, :: codec :: Encode, :: codec :: Decode)] pub enum Releases { V1_0_0Ancient, V2_0_0, @@ -4674,6 +4895,7 @@ pub mod node_runtime { V4_0_0, V5_0_0, V6_0_0, + V7_0_0, } #[derive(Debug, :: codec :: Encode, :: codec :: Decode)] pub enum RewardDestination<_0> { @@ -4712,81 +4934,82 @@ pub mod node_runtime { } pub mod pallet_sudo { use super::__runtime_types; - use std::collections::BTreeMap; pub mod pallet { use super::__runtime_types; - use std::collections::BTreeMap; #[derive(Debug, :: codec :: Encode, :: codec :: Decode)] - pub enum Call<_0> { - sudo(std::boxed::Box<__runtime_types::node_runtime::Call>), - sudo_unchecked_weight( - std::boxed::Box<__runtime_types::node_runtime::Call>, - u64, - ), - set_key( - __runtime_types::sp_runtime::multiaddress::MultiAddress< + pub enum Call { + sudo { + call: __runtime_types::node_runtime::Call, + }, + sudo_unchecked_weight { + call: __runtime_types::node_runtime::Call, + _weight: u64, + }, + set_key { + new: __runtime_types::sp_runtime::multiaddress::MultiAddress< __runtime_types::sp_core::crypto::AccountId32, u32, >, - ), - sudo_as( - __runtime_types::sp_runtime::multiaddress::MultiAddress< + }, + sudo_as { + who: __runtime_types::sp_runtime::multiaddress::MultiAddress< __runtime_types::sp_core::crypto::AccountId32, u32, >, - std::boxed::Box<__runtime_types::node_runtime::Call>, - ), - __Ignore(core::marker::PhantomData<(_0,)>), + call: __runtime_types::node_runtime::Call, + }, } #[derive(Debug, :: codec :: Encode, :: codec :: Decode)] - pub enum Error<_0> { - __Ignore( - core::marker::PhantomData<_0>, - __runtime_types::frame_support::Never, - ), + pub enum Error { RequireSudo, } #[derive(Debug, :: codec :: Encode, :: codec :: Decode)] - pub enum Event<_0> { + pub enum Event { Sudid(Result<(), __runtime_types::sp_runtime::DispatchError>), KeyChanged(__runtime_types::sp_core::crypto::AccountId32), SudoAsDone(Result<(), __runtime_types::sp_runtime::DispatchError>), - __Ignore(core::marker::PhantomData<(_0,)>), } } } pub mod pallet_timestamp { use super::__runtime_types; - use std::collections::BTreeMap; pub mod pallet { use super::__runtime_types; - use std::collections::BTreeMap; #[derive(Debug, :: codec :: Encode, :: codec :: Decode)] - pub enum Call<_0> { - set(u64), - __Ignore(core::marker::PhantomData<(_0,)>), + pub enum Call { + set { now: u64 }, } } } pub mod pallet_tips { use super::__runtime_types; - use std::collections::BTreeMap; - #[derive(Debug, :: codec :: Encode, :: codec :: Decode)] - pub enum Call<_0> { - report_awesome(Vec, __runtime_types::sp_core::crypto::AccountId32), - retract_tip(__runtime_types::primitive_types::H256), - tip_new(Vec, __runtime_types::sp_core::crypto::AccountId32, u128), - tip(__runtime_types::primitive_types::H256, u128), - close_tip(__runtime_types::primitive_types::H256), - slash_tip(__runtime_types::primitive_types::H256), - __Ignore(core::marker::PhantomData<(_0,)>), - } - #[derive(Debug, :: codec :: Encode, :: codec :: Decode)] - pub enum Error<_0> { - __Ignore( - core::marker::PhantomData<(_0,)>, - __runtime_types::frame_support::Never, - ), + #[derive(Debug, :: codec :: Encode, :: codec :: Decode)] + pub enum Call { + report_awesome { + reason: Vec, + who: __runtime_types::sp_core::crypto::AccountId32, + }, + retract_tip { + hash: __runtime_types::primitive_types::H256, + }, + tip_new { + reason: Vec, + who: __runtime_types::sp_core::crypto::AccountId32, + tip_value: u128, + }, + tip { + hash: __runtime_types::primitive_types::H256, + tip_value: u128, + }, + close_tip { + hash: __runtime_types::primitive_types::H256, + }, + slash_tip { + hash: __runtime_types::primitive_types::H256, + }, + } + #[derive(Debug, :: codec :: Encode, :: codec :: Decode)] + pub enum Error { ReasonTooBig, AlreadyKnown, UnknownTip, @@ -4815,42 +5038,99 @@ pub mod node_runtime { } pub mod pallet_transaction_payment { use super::__runtime_types; - use std::collections::BTreeMap; #[derive(Debug, :: codec :: Encode, :: codec :: Decode)] - pub struct ChargeTransactionPayment<_0>(pub u128, pub core::marker::PhantomData<(_0,)>); + pub struct ChargeTransactionPayment(pub u128); #[derive(Debug, :: codec :: Encode, :: codec :: Decode)] pub enum Releases { V1Ancient, V2, } } - pub mod pallet_treasury { + pub mod pallet_transaction_storage { use super::__runtime_types; - use std::collections::BTreeMap; - #[derive(Debug, :: codec :: Encode, :: codec :: Decode)] - pub enum Call<_0, _1> { - propose_spend( - u128, - __runtime_types::sp_runtime::multiaddress::MultiAddress< - __runtime_types::sp_core::crypto::AccountId32, - u32, - >, - ), - reject_proposal(u32), - approve_proposal(u32), - __Ignore(core::marker::PhantomData<(_0, _1)>), + pub mod pallet { + use super::__runtime_types; + #[derive(Debug, :: codec :: Encode, :: codec :: Decode)] + pub enum Call { + store { + data: Vec, + }, + renew { + block: u32, + index: u32, + }, + check_proof { + proof: + __runtime_types::sp_transaction_storage_proof::TransactionStorageProof, + }, + } + #[derive(Debug, :: codec :: Encode, :: codec :: Decode)] + pub enum Error { + InsufficientFunds, + NotConfigured, + RenewedNotFound, + EmptyTransaction, + UnexpectedProof, + InvalidProof, + MissingProof, + MissingStateData, + DoubleCheck, + ProofNotChecked, + TransactionTooLarge, + TooManyTransactions, + BadContext, + } + #[derive(Debug, :: codec :: Encode, :: codec :: Decode)] + pub enum Event { + Stored(u32), + Renewed(u32), + ProofChecked, + } } #[derive(Debug, :: codec :: Encode, :: codec :: Decode)] - pub struct DefaultInstance {} - #[derive(Debug, :: codec :: Encode, :: codec :: Decode)] - pub enum Error<_0, _1> { - __Ignore( - core::marker::PhantomData<(_0, _1)>, - __runtime_types::frame_support::Never, - ), - InsufficientProposersBalance, - InvalidIndex, - TooManyApprovals, + pub struct TransactionInfo { + pub chunk_root: __runtime_types::primitive_types::H256, + pub content_hash: __runtime_types::primitive_types::H256, + pub size: u32, + pub block_chunks: u32, + } + } + pub mod pallet_treasury { + use super::__runtime_types; + pub mod pallet { + use super::__runtime_types; + #[derive(Debug, :: codec :: Encode, :: codec :: Decode)] + pub enum Call { + propose_spend { + value: u128, + beneficiary: __runtime_types::sp_runtime::multiaddress::MultiAddress< + __runtime_types::sp_core::crypto::AccountId32, + u32, + >, + }, + reject_proposal { + proposal_id: u32, + }, + approve_proposal { + proposal_id: u32, + }, + } + #[derive(Debug, :: codec :: Encode, :: codec :: Decode)] + pub enum Error { + InsufficientProposersBalance, + InvalidIndex, + TooManyApprovals, + } + #[derive(Debug, :: codec :: Encode, :: codec :: Decode)] + pub enum Event { + Proposed(u32), + Spending(u128), + Awarded(u32, u128, __runtime_types::sp_core::crypto::AccountId32), + Rejected(u32, u128), + Burnt(u128), + Rollover(u128), + Deposit(u128), + } } #[derive(Debug, :: codec :: Encode, :: codec :: Decode)] pub struct Proposal<_0, _1> { @@ -4859,88 +5139,357 @@ pub mod node_runtime { pub beneficiary: _0, pub bond: _1, } - #[derive(Debug, :: codec :: Encode, :: codec :: Decode)] - pub enum RawEvent<_0, _1, _2> { - Proposed(u32), - Spending(_0), - Awarded(u32, _0, _1), - Rejected(u32, _0), - Burnt(_0), - Rollover(_0), - Deposit(_0), - __Ignore(core::marker::PhantomData<(_2,)>), + } + pub mod pallet_uniques { + use super::__runtime_types; + pub mod pallet { + use super::__runtime_types; + #[derive(Debug, :: codec :: Encode, :: codec :: Decode)] + pub enum Call { + create { + class: u32, + admin: __runtime_types::sp_runtime::multiaddress::MultiAddress< + __runtime_types::sp_core::crypto::AccountId32, + u32, + >, + }, + force_create { + class: u32, + owner: __runtime_types::sp_runtime::multiaddress::MultiAddress< + __runtime_types::sp_core::crypto::AccountId32, + u32, + >, + free_holding: bool, + }, + destroy { + class: u32, + witness: __runtime_types::pallet_uniques::types::DestroyWitness, + }, + mint { + class: u32, + instance: u32, + owner: __runtime_types::sp_runtime::multiaddress::MultiAddress< + __runtime_types::sp_core::crypto::AccountId32, + u32, + >, + }, + burn { + class: u32, + instance: u32, + check_owner: Option< + __runtime_types::sp_runtime::multiaddress::MultiAddress< + __runtime_types::sp_core::crypto::AccountId32, + u32, + >, + >, + }, + transfer { + class: u32, + instance: u32, + dest: __runtime_types::sp_runtime::multiaddress::MultiAddress< + __runtime_types::sp_core::crypto::AccountId32, + u32, + >, + }, + redeposit { + class: u32, + instances: Vec, + }, + freeze { + class: u32, + instance: u32, + }, + thaw { + class: u32, + instance: u32, + }, + freeze_class { + class: u32, + }, + thaw_class { + class: u32, + }, + transfer_ownership { + class: u32, + owner: __runtime_types::sp_runtime::multiaddress::MultiAddress< + __runtime_types::sp_core::crypto::AccountId32, + u32, + >, + }, + set_team { + class: u32, + issuer: __runtime_types::sp_runtime::multiaddress::MultiAddress< + __runtime_types::sp_core::crypto::AccountId32, + u32, + >, + admin: __runtime_types::sp_runtime::multiaddress::MultiAddress< + __runtime_types::sp_core::crypto::AccountId32, + u32, + >, + freezer: __runtime_types::sp_runtime::multiaddress::MultiAddress< + __runtime_types::sp_core::crypto::AccountId32, + u32, + >, + }, + approve_transfer { + class: u32, + instance: u32, + delegate: __runtime_types::sp_runtime::multiaddress::MultiAddress< + __runtime_types::sp_core::crypto::AccountId32, + u32, + >, + }, + cancel_approval { + class: u32, + instance: u32, + maybe_check_delegate: Option< + __runtime_types::sp_runtime::multiaddress::MultiAddress< + __runtime_types::sp_core::crypto::AccountId32, + u32, + >, + >, + }, + force_asset_status { + class: u32, + owner: __runtime_types::sp_runtime::multiaddress::MultiAddress< + __runtime_types::sp_core::crypto::AccountId32, + u32, + >, + issuer: __runtime_types::sp_runtime::multiaddress::MultiAddress< + __runtime_types::sp_core::crypto::AccountId32, + u32, + >, + admin: __runtime_types::sp_runtime::multiaddress::MultiAddress< + __runtime_types::sp_core::crypto::AccountId32, + u32, + >, + freezer: __runtime_types::sp_runtime::multiaddress::MultiAddress< + __runtime_types::sp_core::crypto::AccountId32, + u32, + >, + free_holding: bool, + is_frozen: bool, + }, + set_attribute { + class: u32, + maybe_instance: Option, + key: __runtime_types::frame_support::storage::bounded_vec::BoundedVec, + value: __runtime_types::frame_support::storage::bounded_vec::BoundedVec, + }, + clear_attribute { + class: u32, + maybe_instance: Option, + key: __runtime_types::frame_support::storage::bounded_vec::BoundedVec, + }, + set_metadata { + class: u32, + instance: u32, + data: __runtime_types::frame_support::storage::bounded_vec::BoundedVec, + is_frozen: bool, + }, + clear_metadata { + class: u32, + instance: u32, + }, + set_class_metadata { + class: u32, + data: __runtime_types::frame_support::storage::bounded_vec::BoundedVec, + is_frozen: bool, + }, + clear_class_metadata { + class: u32, + }, + } + #[derive(Debug, :: codec :: Encode, :: codec :: Decode)] + pub enum Error { + NoPermission, + Unknown, + AlreadyExists, + WrongOwner, + BadWitness, + InUse, + Frozen, + WrongDelegate, + NoDelegate, + Unapproved, + } + #[derive(Debug, :: codec :: Encode, :: codec :: Decode)] + pub enum Event { + Created( + u32, + __runtime_types::sp_core::crypto::AccountId32, + __runtime_types::sp_core::crypto::AccountId32, + ), + ForceCreated(u32, __runtime_types::sp_core::crypto::AccountId32), + Destroyed(u32), + Issued(u32, u32, __runtime_types::sp_core::crypto::AccountId32), + Transferred( + u32, + u32, + __runtime_types::sp_core::crypto::AccountId32, + __runtime_types::sp_core::crypto::AccountId32, + ), + Burned(u32, u32, __runtime_types::sp_core::crypto::AccountId32), + Frozen(u32, u32), + Thawed(u32, u32), + ClassFrozen(u32), + ClassThawed(u32), + OwnerChanged(u32, __runtime_types::sp_core::crypto::AccountId32), + TeamChanged( + u32, + __runtime_types::sp_core::crypto::AccountId32, + __runtime_types::sp_core::crypto::AccountId32, + __runtime_types::sp_core::crypto::AccountId32, + ), + ApprovedTransfer( + u32, + u32, + __runtime_types::sp_core::crypto::AccountId32, + __runtime_types::sp_core::crypto::AccountId32, + ), + ApprovalCancelled( + u32, + u32, + __runtime_types::sp_core::crypto::AccountId32, + __runtime_types::sp_core::crypto::AccountId32, + ), + AssetStatusChanged(u32), + ClassMetadataSet( + u32, + __runtime_types::frame_support::storage::bounded_vec::BoundedVec, + bool, + ), + ClassMetadataCleared(u32), + MetadataSet( + u32, + u32, + __runtime_types::frame_support::storage::bounded_vec::BoundedVec, + bool, + ), + MetadataCleared(u32, u32), + Redeposited(u32, Vec), + AttributeSet( + u32, + Option, + __runtime_types::frame_support::storage::bounded_vec::BoundedVec, + __runtime_types::frame_support::storage::bounded_vec::BoundedVec, + ), + AttributeCleared( + u32, + Option, + __runtime_types::frame_support::storage::bounded_vec::BoundedVec, + ), + } + } + pub mod types { + use super::__runtime_types; + #[derive(Debug, :: codec :: Encode, :: codec :: Decode)] + pub struct ClassDetails<_0, _1> { + pub owner: _0, + pub issuer: _0, + pub admin: _0, + pub freezer: _0, + pub total_deposit: _1, + pub free_holding: bool, + pub instances: u32, + pub instance_metadatas: u32, + pub attributes: u32, + pub is_frozen: bool, + } + #[derive(Debug, :: codec :: Encode, :: codec :: Decode)] + pub struct ClassMetadata<_0> { + pub deposit: _0, + pub data: __runtime_types::frame_support::storage::bounded_vec::BoundedVec, + pub is_frozen: bool, + } + #[derive(Debug, :: codec :: Encode, :: codec :: Decode)] + pub struct DestroyWitness { + pub instances: u32, + pub instance_metadatas: u32, + pub attributes: u32, + } + #[derive(Debug, :: codec :: Encode, :: codec :: Decode)] + pub struct InstanceDetails<_0, _1> { + pub owner: _0, + pub approved: Option<_0>, + pub is_frozen: bool, + pub deposit: _1, + } + #[derive(Debug, :: codec :: Encode, :: codec :: Decode)] + pub struct InstanceMetadata<_0> { + pub deposit: _0, + pub data: __runtime_types::frame_support::storage::bounded_vec::BoundedVec, + pub is_frozen: bool, + } } } pub mod pallet_utility { use super::__runtime_types; - use std::collections::BTreeMap; pub mod pallet { use super::__runtime_types; - use std::collections::BTreeMap; #[derive(Debug, :: codec :: Encode, :: codec :: Decode)] - pub enum Call<_0> { - batch(Vec<__runtime_types::node_runtime::Call>), - as_derivative(u16, std::boxed::Box<__runtime_types::node_runtime::Call>), - batch_all(Vec<__runtime_types::node_runtime::Call>), - __Ignore(core::marker::PhantomData<(_0,)>), + pub enum Call { + batch { + calls: Vec<__runtime_types::node_runtime::Call>, + }, + as_derivative { + index: u16, + call: __runtime_types::node_runtime::Call, + }, + batch_all { + calls: Vec<__runtime_types::node_runtime::Call>, + }, } #[derive(Debug, :: codec :: Encode, :: codec :: Decode)] pub enum Event { BatchInterrupted(u32, __runtime_types::sp_runtime::DispatchError), BatchCompleted, + ItemCompleted, } } } pub mod pallet_vesting { use super::__runtime_types; - use std::collections::BTreeMap; pub mod pallet { use super::__runtime_types; - use std::collections::BTreeMap; #[derive(Debug, :: codec :: Encode, :: codec :: Decode)] - pub enum Call<_0> { + pub enum Call { vest, - vest_other( - __runtime_types::sp_runtime::multiaddress::MultiAddress< + vest_other { + target: __runtime_types::sp_runtime::multiaddress::MultiAddress< __runtime_types::sp_core::crypto::AccountId32, u32, >, - ), - vested_transfer( - __runtime_types::sp_runtime::multiaddress::MultiAddress< + }, + vested_transfer { + target: __runtime_types::sp_runtime::multiaddress::MultiAddress< __runtime_types::sp_core::crypto::AccountId32, u32, >, - __runtime_types::pallet_vesting::VestingInfo, - ), - force_vested_transfer( - __runtime_types::sp_runtime::multiaddress::MultiAddress< + schedule: __runtime_types::pallet_vesting::VestingInfo, + }, + force_vested_transfer { + source: __runtime_types::sp_runtime::multiaddress::MultiAddress< __runtime_types::sp_core::crypto::AccountId32, u32, >, - __runtime_types::sp_runtime::multiaddress::MultiAddress< + target: __runtime_types::sp_runtime::multiaddress::MultiAddress< __runtime_types::sp_core::crypto::AccountId32, u32, >, - __runtime_types::pallet_vesting::VestingInfo, - ), - __Ignore(core::marker::PhantomData<(_0,)>), + schedule: __runtime_types::pallet_vesting::VestingInfo, + }, } #[derive(Debug, :: codec :: Encode, :: codec :: Decode)] - pub enum Error<_0> { - __Ignore( - core::marker::PhantomData<_0>, - __runtime_types::frame_support::Never, - ), + pub enum Error { NotVesting, ExistingVestingSchedule, AmountLow, } #[derive(Debug, :: codec :: Encode, :: codec :: Decode)] - pub enum Event<_0> { + pub enum Event { VestingUpdated(__runtime_types::sp_core::crypto::AccountId32, u128), VestingCompleted(__runtime_types::sp_core::crypto::AccountId32), - __Ignore(core::marker::PhantomData<(_0,)>), } } #[derive(Debug, :: codec :: Encode, :: codec :: Decode)] @@ -4952,22 +5501,18 @@ pub mod node_runtime { } pub mod primitive_types { use super::__runtime_types; - use std::collections::BTreeMap; #[derive(Debug, :: codec :: Encode, :: codec :: Decode)] pub struct H256(pub [u8; 32usize]); } pub mod sp_arithmetic { use super::__runtime_types; - use std::collections::BTreeMap; pub mod fixed_point { use super::__runtime_types; - use std::collections::BTreeMap; #[derive(Debug, :: codec :: Encode, :: codec :: Decode)] pub struct FixedU128(pub u128); } pub mod per_things { use super::__runtime_types; - use std::collections::BTreeMap; #[derive(Debug, :: codec :: Encode, :: codec :: Decode)] pub struct PerU16(pub u16); #[derive(Debug, :: codec :: Encode, :: codec :: Decode)] @@ -4982,26 +5527,21 @@ pub mod node_runtime { } pub mod sp_authority_discovery { use super::__runtime_types; - use std::collections::BTreeMap; pub mod app { use super::__runtime_types; - use std::collections::BTreeMap; #[derive(Debug, :: codec :: Encode, :: codec :: Decode)] pub struct Public(pub __runtime_types::sp_core::sr25519::Public); } } pub mod sp_consensus_babe { use super::__runtime_types; - use std::collections::BTreeMap; pub mod app { use super::__runtime_types; - use std::collections::BTreeMap; #[derive(Debug, :: codec :: Encode, :: codec :: Decode)] pub struct Public(pub __runtime_types::sp_core::sr25519::Public); } pub mod digests { use super::__runtime_types; - use std::collections::BTreeMap; #[derive(Debug, :: codec :: Encode, :: codec :: Decode)] pub enum NextConfigDescriptor { V1 { @@ -5024,7 +5564,6 @@ pub mod node_runtime { } pub mod sp_consensus_slots { use super::__runtime_types; - use std::collections::BTreeMap; #[derive(Debug, :: codec :: Encode, :: codec :: Decode)] pub struct EquivocationProof<_0, _1> { pub offender: _1, @@ -5037,10 +5576,8 @@ pub mod node_runtime { } pub mod sp_core { use super::__runtime_types; - use std::collections::BTreeMap; pub mod changes_trie { use super::__runtime_types; - use std::collections::BTreeMap; #[derive(Debug, :: codec :: Encode, :: codec :: Decode)] pub struct ChangesTrieConfiguration { pub digest_interval: u32, @@ -5049,7 +5586,6 @@ pub mod node_runtime { } pub mod crypto { use super::__runtime_types; - use std::collections::BTreeMap; #[derive(Debug, :: codec :: Encode, :: codec :: Decode)] pub struct AccountId32(pub [u8; 32usize]); #[derive(Debug, :: codec :: Encode, :: codec :: Decode)] @@ -5057,7 +5593,6 @@ pub mod node_runtime { } pub mod ed25519 { use super::__runtime_types; - use std::collections::BTreeMap; #[derive(Debug, :: codec :: Encode, :: codec :: Decode)] pub struct Public(pub [u8; 32usize]); #[derive(Debug, :: codec :: Encode, :: codec :: Decode)] @@ -5065,7 +5600,6 @@ pub mod node_runtime { } pub mod offchain { use super::__runtime_types; - use std::collections::BTreeMap; #[derive(Debug, :: codec :: Encode, :: codec :: Decode)] pub struct OpaqueMultiaddr(pub Vec); #[derive(Debug, :: codec :: Encode, :: codec :: Decode)] @@ -5077,7 +5611,6 @@ pub mod node_runtime { } pub mod sr25519 { use super::__runtime_types; - use std::collections::BTreeMap; #[derive(Debug, :: codec :: Encode, :: codec :: Decode)] pub struct Public(pub [u8; 32usize]); #[derive(Debug, :: codec :: Encode, :: codec :: Decode)] @@ -5090,10 +5623,8 @@ pub mod node_runtime { } pub mod sp_finality_grandpa { use super::__runtime_types; - use std::collections::BTreeMap; pub mod app { use super::__runtime_types; - use std::collections::BTreeMap; #[derive(Debug, :: codec :: Encode, :: codec :: Decode)] pub struct Public(pub __runtime_types::sp_core::ed25519::Public); #[derive(Debug, :: codec :: Encode, :: codec :: Decode)] @@ -5124,7 +5655,6 @@ pub mod node_runtime { } pub mod sp_npos_elections { use super::__runtime_types; - use std::collections::BTreeMap; #[derive(Debug, :: codec :: Encode, :: codec :: Decode)] pub struct Support<_0> { pub total: u128, @@ -5133,13 +5663,10 @@ pub mod node_runtime { } pub mod sp_runtime { use super::__runtime_types; - use std::collections::BTreeMap; pub mod generic { use super::__runtime_types; - use std::collections::BTreeMap; pub mod digest { use super::__runtime_types; - use std::collections::BTreeMap; #[derive(Debug, :: codec :: Encode, :: codec :: Decode)] pub enum ChangesTrieSignal { NewConfiguration( @@ -5166,23 +5693,287 @@ pub mod node_runtime { } pub mod era { use super::__runtime_types; - use std::collections::BTreeMap; #[derive(Debug, :: codec :: Encode, :: codec :: Decode)] pub enum Era { Immortal, - Mortal(u64, u64), + Mortal1(u8), + Mortal2(u8), + Mortal3(u8), + Mortal4(u8), + Mortal5(u8), + Mortal6(u8), + Mortal7(u8), + Mortal8(u8), + Mortal9(u8), + Mortal10(u8), + Mortal11(u8), + Mortal12(u8), + Mortal13(u8), + Mortal14(u8), + Mortal15(u8), + Mortal16(u8), + Mortal17(u8), + Mortal18(u8), + Mortal19(u8), + Mortal20(u8), + Mortal21(u8), + Mortal22(u8), + Mortal23(u8), + Mortal24(u8), + Mortal25(u8), + Mortal26(u8), + Mortal27(u8), + Mortal28(u8), + Mortal29(u8), + Mortal30(u8), + Mortal31(u8), + Mortal32(u8), + Mortal33(u8), + Mortal34(u8), + Mortal35(u8), + Mortal36(u8), + Mortal37(u8), + Mortal38(u8), + Mortal39(u8), + Mortal40(u8), + Mortal41(u8), + Mortal42(u8), + Mortal43(u8), + Mortal44(u8), + Mortal45(u8), + Mortal46(u8), + Mortal47(u8), + Mortal48(u8), + Mortal49(u8), + Mortal50(u8), + Mortal51(u8), + Mortal52(u8), + Mortal53(u8), + Mortal54(u8), + Mortal55(u8), + Mortal56(u8), + Mortal57(u8), + Mortal58(u8), + Mortal59(u8), + Mortal60(u8), + Mortal61(u8), + Mortal62(u8), + Mortal63(u8), + Mortal64(u8), + Mortal65(u8), + Mortal66(u8), + Mortal67(u8), + Mortal68(u8), + Mortal69(u8), + Mortal70(u8), + Mortal71(u8), + Mortal72(u8), + Mortal73(u8), + Mortal74(u8), + Mortal75(u8), + Mortal76(u8), + Mortal77(u8), + Mortal78(u8), + Mortal79(u8), + Mortal80(u8), + Mortal81(u8), + Mortal82(u8), + Mortal83(u8), + Mortal84(u8), + Mortal85(u8), + Mortal86(u8), + Mortal87(u8), + Mortal88(u8), + Mortal89(u8), + Mortal90(u8), + Mortal91(u8), + Mortal92(u8), + Mortal93(u8), + Mortal94(u8), + Mortal95(u8), + Mortal96(u8), + Mortal97(u8), + Mortal98(u8), + Mortal99(u8), + Mortal100(u8), + Mortal101(u8), + Mortal102(u8), + Mortal103(u8), + Mortal104(u8), + Mortal105(u8), + Mortal106(u8), + Mortal107(u8), + Mortal108(u8), + Mortal109(u8), + Mortal110(u8), + Mortal111(u8), + Mortal112(u8), + Mortal113(u8), + Mortal114(u8), + Mortal115(u8), + Mortal116(u8), + Mortal117(u8), + Mortal118(u8), + Mortal119(u8), + Mortal120(u8), + Mortal121(u8), + Mortal122(u8), + Mortal123(u8), + Mortal124(u8), + Mortal125(u8), + Mortal126(u8), + Mortal127(u8), + Mortal128(u8), + Mortal129(u8), + Mortal130(u8), + Mortal131(u8), + Mortal132(u8), + Mortal133(u8), + Mortal134(u8), + Mortal135(u8), + Mortal136(u8), + Mortal137(u8), + Mortal138(u8), + Mortal139(u8), + Mortal140(u8), + Mortal141(u8), + Mortal142(u8), + Mortal143(u8), + Mortal144(u8), + Mortal145(u8), + Mortal146(u8), + Mortal147(u8), + Mortal148(u8), + Mortal149(u8), + Mortal150(u8), + Mortal151(u8), + Mortal152(u8), + Mortal153(u8), + Mortal154(u8), + Mortal155(u8), + Mortal156(u8), + Mortal157(u8), + Mortal158(u8), + Mortal159(u8), + Mortal160(u8), + Mortal161(u8), + Mortal162(u8), + Mortal163(u8), + Mortal164(u8), + Mortal165(u8), + Mortal166(u8), + Mortal167(u8), + Mortal168(u8), + Mortal169(u8), + Mortal170(u8), + Mortal171(u8), + Mortal172(u8), + Mortal173(u8), + Mortal174(u8), + Mortal175(u8), + Mortal176(u8), + Mortal177(u8), + Mortal178(u8), + Mortal179(u8), + Mortal180(u8), + Mortal181(u8), + Mortal182(u8), + Mortal183(u8), + Mortal184(u8), + Mortal185(u8), + Mortal186(u8), + Mortal187(u8), + Mortal188(u8), + Mortal189(u8), + Mortal190(u8), + Mortal191(u8), + Mortal192(u8), + Mortal193(u8), + Mortal194(u8), + Mortal195(u8), + Mortal196(u8), + Mortal197(u8), + Mortal198(u8), + Mortal199(u8), + Mortal200(u8), + Mortal201(u8), + Mortal202(u8), + Mortal203(u8), + Mortal204(u8), + Mortal205(u8), + Mortal206(u8), + Mortal207(u8), + Mortal208(u8), + Mortal209(u8), + Mortal210(u8), + Mortal211(u8), + Mortal212(u8), + Mortal213(u8), + Mortal214(u8), + Mortal215(u8), + Mortal216(u8), + Mortal217(u8), + Mortal218(u8), + Mortal219(u8), + Mortal220(u8), + Mortal221(u8), + Mortal222(u8), + Mortal223(u8), + Mortal224(u8), + Mortal225(u8), + Mortal226(u8), + Mortal227(u8), + Mortal228(u8), + Mortal229(u8), + Mortal230(u8), + Mortal231(u8), + Mortal232(u8), + Mortal233(u8), + Mortal234(u8), + Mortal235(u8), + Mortal236(u8), + Mortal237(u8), + Mortal238(u8), + Mortal239(u8), + Mortal240(u8), + Mortal241(u8), + Mortal242(u8), + Mortal243(u8), + Mortal244(u8), + Mortal245(u8), + Mortal246(u8), + Mortal247(u8), + Mortal248(u8), + Mortal249(u8), + Mortal250(u8), + Mortal251(u8), + Mortal252(u8), + Mortal253(u8), + Mortal254(u8), + Mortal255(u8), } } pub mod header { use super::__runtime_types; - use std::collections::BTreeMap; #[derive(Debug, :: codec :: Encode, :: codec :: Decode)] - pub struct Header {} + pub struct Header { + pub parent_hash: __runtime_types::primitive_types::H256, + pub number: u32, + pub state_root: __runtime_types::primitive_types::H256, + pub extrinsics_root: __runtime_types::primitive_types::H256, + pub digest: __runtime_types::sp_runtime::generic::digest::Digest< + __runtime_types::primitive_types::H256, + >, + } + } + pub mod unchecked_extrinsic { + use super::__runtime_types; + #[derive(Debug, :: codec :: Encode, :: codec :: Decode)] + pub struct UncheckedExtrinsic(Vec); } } pub mod multiaddress { use super::__runtime_types; - use std::collections::BTreeMap; #[derive(Debug, :: codec :: Encode, :: codec :: Decode)] pub enum MultiAddress<_0, _1> { Id(_0), @@ -5194,11 +5985,16 @@ pub mod node_runtime { } pub mod traits { use super::__runtime_types; - use std::collections::BTreeMap; #[derive(Debug, :: codec :: Encode, :: codec :: Decode)] pub struct BlakeTwo256 {} } #[derive(Debug, :: codec :: Encode, :: codec :: Decode)] + pub enum ArithmeticError { + Underflow, + Overflow, + DivisionByZero, + } + #[derive(Debug, :: codec :: Encode, :: codec :: Decode)] pub enum DispatchError { Other, CannotLookup, @@ -5207,6 +6003,7 @@ pub mod node_runtime { ConsumerRemaining, NoProviders, Token(__runtime_types::sp_runtime::TokenError), + Arithmetic(__runtime_types::sp_runtime::ArithmeticError), } #[derive(Debug, :: codec :: Encode, :: codec :: Decode)] pub enum TokenError { @@ -5216,13 +6013,11 @@ pub mod node_runtime { CannotCreate, UnknownAsset, Frozen, - Underflow, - Overflow, + Unsupported, } } pub mod sp_session { use super::__runtime_types; - use std::collections::BTreeMap; #[derive(Debug, :: codec :: Encode, :: codec :: Decode)] pub struct MembershipProof { pub session: u32, @@ -5232,10 +6027,8 @@ pub mod node_runtime { } pub mod sp_staking { use super::__runtime_types; - use std::collections::BTreeMap; pub mod offence { use super::__runtime_types; - use std::collections::BTreeMap; #[derive(Debug, :: codec :: Encode, :: codec :: Decode)] pub struct OffenceDetails<_0, _1> { pub offender: _1, @@ -5243,9 +6036,16 @@ pub mod node_runtime { } } } + pub mod sp_transaction_storage_proof { + use super::__runtime_types; + #[derive(Debug, :: codec :: Encode, :: codec :: Decode)] + pub struct TransactionStorageProof { + pub chunk: Vec, + pub proof: Vec>, + } + } pub mod sp_version { use super::__runtime_types; - use std::collections::BTreeMap; #[derive(Debug, :: codec :: Encode, :: codec :: Decode)] pub struct RuntimeVersion { pub spec_name: String,