#[allow(dead_code, unused_imports, non_camel_case_types)] #[allow(clippy::all)] #[allow(rustdoc::broken_intra_doc_links)] pub mod api { #[allow(unused_imports)] mod root_mod { pub use super::*; } pub static PALLETS: [&str; 57usize] = [ "System", "Scheduler", "Preimage", "Babe", "Timestamp", "Indices", "Balances", "TransactionPayment", "Authorship", "Staking", "Offences", "Historical", "Session", "Grandpa", "ImOnline", "AuthorityDiscovery", "Democracy", "Council", "TechnicalCommittee", "PhragmenElection", "TechnicalMembership", "Treasury", "ConvictionVoting", "Referenda", "Whitelist", "Claims", "Vesting", "Utility", "Identity", "Proxy", "Multisig", "Bounties", "ChildBounties", "Tips", "ElectionProviderMultiPhase", "VoterList", "NominationPools", "FastUnstake", "ParachainsOrigin", "Configuration", "ParasShared", "ParaInclusion", "ParaInherent", "ParaScheduler", "Paras", "Initializer", "Dmp", "Ump", "Hrmp", "ParaSessionInfo", "ParasDisputes", "ParasSlashing", "Registrar", "Slots", "Auctions", "Crowdloan", "XcmPallet", ]; pub static RUNTIME_APIS: [&str; 17usize] = [ "Core", "Metadata", "BlockBuilder", "NominationPoolsApi", "StakingApi", "TaggedTransactionQueue", "OffchainWorkerApi", "ParachainHost", "BeefyApi", "MmrApi", "GrandpaApi", "BabeApi", "AuthorityDiscoveryApi", "SessionKeys", "AccountNonceApi", "TransactionPaymentApi", "TransactionPaymentCallApi", ]; #[doc = r" The error type returned when there is a runtime issue."] pub type DispatchError = runtime_types::sp_runtime::DispatchError; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum Event { #[codec(index = 0)] System(system::Event), #[codec(index = 1)] Scheduler(scheduler::Event), #[codec(index = 10)] Preimage(preimage::Event), #[codec(index = 4)] Indices(indices::Event), #[codec(index = 5)] Balances(balances::Event), #[codec(index = 32)] TransactionPayment(transaction_payment::Event), #[codec(index = 7)] Staking(staking::Event), #[codec(index = 8)] Offences(offences::Event), #[codec(index = 9)] Session(session::Event), #[codec(index = 11)] Grandpa(grandpa::Event), #[codec(index = 12)] ImOnline(im_online::Event), #[codec(index = 14)] Democracy(democracy::Event), #[codec(index = 15)] Council(council::Event), #[codec(index = 16)] TechnicalCommittee(technical_committee::Event), #[codec(index = 17)] PhragmenElection(phragmen_election::Event), #[codec(index = 18)] TechnicalMembership(technical_membership::Event), #[codec(index = 19)] Treasury(treasury::Event), #[codec(index = 20)] ConvictionVoting(conviction_voting::Event), #[codec(index = 21)] Referenda(referenda::Event), #[codec(index = 23)] Whitelist(whitelist::Event), #[codec(index = 24)] Claims(claims::Event), #[codec(index = 25)] Vesting(vesting::Event), #[codec(index = 26)] Utility(utility::Event), #[codec(index = 28)] Identity(identity::Event), #[codec(index = 29)] Proxy(proxy::Event), #[codec(index = 30)] Multisig(multisig::Event), #[codec(index = 34)] Bounties(bounties::Event), #[codec(index = 38)] ChildBounties(child_bounties::Event), #[codec(index = 35)] Tips(tips::Event), #[codec(index = 36)] ElectionProviderMultiPhase(election_provider_multi_phase::Event), #[codec(index = 37)] VoterList(voter_list::Event), #[codec(index = 39)] NominationPools(nomination_pools::Event), #[codec(index = 40)] FastUnstake(fast_unstake::Event), #[codec(index = 53)] ParaInclusion(para_inclusion::Event), #[codec(index = 56)] Paras(paras::Event), #[codec(index = 59)] Ump(ump::Event), #[codec(index = 60)] Hrmp(hrmp::Event), #[codec(index = 62)] ParasDisputes(paras_disputes::Event), #[codec(index = 70)] Registrar(registrar::Event), #[codec(index = 71)] Slots(slots::Event), #[codec(index = 72)] Auctions(auctions::Event), #[codec(index = 73)] Crowdloan(crowdloan::Event), #[codec(index = 99)] XcmPallet(xcm_pallet::Event), } impl ::subxt::events::RootEvent for Event { fn root_event( pallet_bytes: &[u8], pallet_name: &str, pallet_ty: u32, metadata: &::subxt::Metadata, ) -> Result { use subxt::metadata::DecodeWithMetadata; if pallet_name == "System" { return Ok(Event::System(system::Event::decode_with_metadata( &mut &*pallet_bytes, pallet_ty, metadata, )?)); } if pallet_name == "Scheduler" { return Ok(Event::Scheduler(scheduler::Event::decode_with_metadata( &mut &*pallet_bytes, pallet_ty, metadata, )?)); } if pallet_name == "Preimage" { return Ok(Event::Preimage(preimage::Event::decode_with_metadata( &mut &*pallet_bytes, pallet_ty, metadata, )?)); } if pallet_name == "Indices" { return Ok(Event::Indices(indices::Event::decode_with_metadata( &mut &*pallet_bytes, pallet_ty, metadata, )?)); } if pallet_name == "Balances" { return Ok(Event::Balances(balances::Event::decode_with_metadata( &mut &*pallet_bytes, pallet_ty, metadata, )?)); } if pallet_name == "TransactionPayment" { return Ok(Event::TransactionPayment( transaction_payment::Event::decode_with_metadata( &mut &*pallet_bytes, pallet_ty, metadata, )?, )); } if pallet_name == "Staking" { return Ok(Event::Staking(staking::Event::decode_with_metadata( &mut &*pallet_bytes, pallet_ty, metadata, )?)); } if pallet_name == "Offences" { return Ok(Event::Offences(offences::Event::decode_with_metadata( &mut &*pallet_bytes, pallet_ty, metadata, )?)); } if pallet_name == "Session" { return Ok(Event::Session(session::Event::decode_with_metadata( &mut &*pallet_bytes, pallet_ty, metadata, )?)); } if pallet_name == "Grandpa" { return Ok(Event::Grandpa(grandpa::Event::decode_with_metadata( &mut &*pallet_bytes, pallet_ty, metadata, )?)); } if pallet_name == "ImOnline" { return Ok(Event::ImOnline(im_online::Event::decode_with_metadata( &mut &*pallet_bytes, pallet_ty, metadata, )?)); } if pallet_name == "Democracy" { return Ok(Event::Democracy(democracy::Event::decode_with_metadata( &mut &*pallet_bytes, pallet_ty, metadata, )?)); } if pallet_name == "Council" { return Ok(Event::Council(council::Event::decode_with_metadata( &mut &*pallet_bytes, pallet_ty, metadata, )?)); } if pallet_name == "TechnicalCommittee" { return Ok(Event::TechnicalCommittee( technical_committee::Event::decode_with_metadata( &mut &*pallet_bytes, pallet_ty, metadata, )?, )); } if pallet_name == "PhragmenElection" { return Ok(Event::PhragmenElection( phragmen_election::Event::decode_with_metadata( &mut &*pallet_bytes, pallet_ty, metadata, )?, )); } if pallet_name == "TechnicalMembership" { return Ok(Event::TechnicalMembership( technical_membership::Event::decode_with_metadata( &mut &*pallet_bytes, pallet_ty, metadata, )?, )); } if pallet_name == "Treasury" { return Ok(Event::Treasury(treasury::Event::decode_with_metadata( &mut &*pallet_bytes, pallet_ty, metadata, )?)); } if pallet_name == "ConvictionVoting" { return Ok(Event::ConvictionVoting( conviction_voting::Event::decode_with_metadata( &mut &*pallet_bytes, pallet_ty, metadata, )?, )); } if pallet_name == "Referenda" { return Ok(Event::Referenda(referenda::Event::decode_with_metadata( &mut &*pallet_bytes, pallet_ty, metadata, )?)); } if pallet_name == "Whitelist" { return Ok(Event::Whitelist(whitelist::Event::decode_with_metadata( &mut &*pallet_bytes, pallet_ty, metadata, )?)); } if pallet_name == "Claims" { return Ok(Event::Claims(claims::Event::decode_with_metadata( &mut &*pallet_bytes, pallet_ty, metadata, )?)); } if pallet_name == "Vesting" { return Ok(Event::Vesting(vesting::Event::decode_with_metadata( &mut &*pallet_bytes, pallet_ty, metadata, )?)); } if pallet_name == "Utility" { return Ok(Event::Utility(utility::Event::decode_with_metadata( &mut &*pallet_bytes, pallet_ty, metadata, )?)); } if pallet_name == "Identity" { return Ok(Event::Identity(identity::Event::decode_with_metadata( &mut &*pallet_bytes, pallet_ty, metadata, )?)); } if pallet_name == "Proxy" { return Ok(Event::Proxy(proxy::Event::decode_with_metadata( &mut &*pallet_bytes, pallet_ty, metadata, )?)); } if pallet_name == "Multisig" { return Ok(Event::Multisig(multisig::Event::decode_with_metadata( &mut &*pallet_bytes, pallet_ty, metadata, )?)); } if pallet_name == "Bounties" { return Ok(Event::Bounties(bounties::Event::decode_with_metadata( &mut &*pallet_bytes, pallet_ty, metadata, )?)); } if pallet_name == "ChildBounties" { return Ok(Event::ChildBounties( child_bounties::Event::decode_with_metadata( &mut &*pallet_bytes, pallet_ty, metadata, )?, )); } if pallet_name == "Tips" { return Ok(Event::Tips(tips::Event::decode_with_metadata( &mut &*pallet_bytes, pallet_ty, metadata, )?)); } if pallet_name == "ElectionProviderMultiPhase" { return Ok(Event::ElectionProviderMultiPhase( election_provider_multi_phase::Event::decode_with_metadata( &mut &*pallet_bytes, pallet_ty, metadata, )?, )); } if pallet_name == "VoterList" { return Ok(Event::VoterList(voter_list::Event::decode_with_metadata( &mut &*pallet_bytes, pallet_ty, metadata, )?)); } if pallet_name == "NominationPools" { return Ok(Event::NominationPools( nomination_pools::Event::decode_with_metadata( &mut &*pallet_bytes, pallet_ty, metadata, )?, )); } if pallet_name == "FastUnstake" { return Ok(Event::FastUnstake( fast_unstake::Event::decode_with_metadata( &mut &*pallet_bytes, pallet_ty, metadata, )?, )); } if pallet_name == "ParaInclusion" { return Ok(Event::ParaInclusion( para_inclusion::Event::decode_with_metadata( &mut &*pallet_bytes, pallet_ty, metadata, )?, )); } if pallet_name == "Paras" { return Ok(Event::Paras(paras::Event::decode_with_metadata( &mut &*pallet_bytes, pallet_ty, metadata, )?)); } if pallet_name == "Ump" { return Ok(Event::Ump(ump::Event::decode_with_metadata( &mut &*pallet_bytes, pallet_ty, metadata, )?)); } if pallet_name == "Hrmp" { return Ok(Event::Hrmp(hrmp::Event::decode_with_metadata( &mut &*pallet_bytes, pallet_ty, metadata, )?)); } if pallet_name == "ParasDisputes" { return Ok(Event::ParasDisputes( paras_disputes::Event::decode_with_metadata( &mut &*pallet_bytes, pallet_ty, metadata, )?, )); } if pallet_name == "Registrar" { return Ok(Event::Registrar(registrar::Event::decode_with_metadata( &mut &*pallet_bytes, pallet_ty, metadata, )?)); } if pallet_name == "Slots" { return Ok(Event::Slots(slots::Event::decode_with_metadata( &mut &*pallet_bytes, pallet_ty, metadata, )?)); } if pallet_name == "Auctions" { return Ok(Event::Auctions(auctions::Event::decode_with_metadata( &mut &*pallet_bytes, pallet_ty, metadata, )?)); } if pallet_name == "Crowdloan" { return Ok(Event::Crowdloan(crowdloan::Event::decode_with_metadata( &mut &*pallet_bytes, pallet_ty, metadata, )?)); } if pallet_name == "XcmPallet" { return Ok(Event::XcmPallet(xcm_pallet::Event::decode_with_metadata( &mut &*pallet_bytes, pallet_ty, metadata, )?)); } Err(::subxt::ext::scale_decode::Error::custom(format!( "Pallet name '{}' not found in root Event enum", pallet_name )) .into()) } } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum Call { #[codec(index = 0)] System(system::Call), #[codec(index = 1)] Scheduler(scheduler::Call), #[codec(index = 10)] Preimage(preimage::Call), #[codec(index = 2)] Babe(babe::Call), #[codec(index = 3)] Timestamp(timestamp::Call), #[codec(index = 4)] Indices(indices::Call), #[codec(index = 5)] Balances(balances::Call), #[codec(index = 7)] Staking(staking::Call), #[codec(index = 9)] Session(session::Call), #[codec(index = 11)] Grandpa(grandpa::Call), #[codec(index = 12)] ImOnline(im_online::Call), #[codec(index = 14)] Democracy(democracy::Call), #[codec(index = 15)] Council(council::Call), #[codec(index = 16)] TechnicalCommittee(technical_committee::Call), #[codec(index = 17)] PhragmenElection(phragmen_election::Call), #[codec(index = 18)] TechnicalMembership(technical_membership::Call), #[codec(index = 19)] Treasury(treasury::Call), #[codec(index = 20)] ConvictionVoting(conviction_voting::Call), #[codec(index = 21)] Referenda(referenda::Call), #[codec(index = 23)] Whitelist(whitelist::Call), #[codec(index = 24)] Claims(claims::Call), #[codec(index = 25)] Vesting(vesting::Call), #[codec(index = 26)] Utility(utility::Call), #[codec(index = 28)] Identity(identity::Call), #[codec(index = 29)] Proxy(proxy::Call), #[codec(index = 30)] Multisig(multisig::Call), #[codec(index = 34)] Bounties(bounties::Call), #[codec(index = 38)] ChildBounties(child_bounties::Call), #[codec(index = 35)] Tips(tips::Call), #[codec(index = 36)] ElectionProviderMultiPhase(election_provider_multi_phase::Call), #[codec(index = 37)] VoterList(voter_list::Call), #[codec(index = 39)] NominationPools(nomination_pools::Call), #[codec(index = 40)] FastUnstake(fast_unstake::Call), #[codec(index = 51)] Configuration(configuration::Call), #[codec(index = 52)] ParasShared(paras_shared::Call), #[codec(index = 53)] ParaInclusion(para_inclusion::Call), #[codec(index = 54)] ParaInherent(para_inherent::Call), #[codec(index = 56)] Paras(paras::Call), #[codec(index = 57)] Initializer(initializer::Call), #[codec(index = 59)] Ump(ump::Call), #[codec(index = 60)] Hrmp(hrmp::Call), #[codec(index = 62)] ParasDisputes(paras_disputes::Call), #[codec(index = 63)] ParasSlashing(paras_slashing::Call), #[codec(index = 70)] Registrar(registrar::Call), #[codec(index = 71)] Slots(slots::Call), #[codec(index = 72)] Auctions(auctions::Call), #[codec(index = 73)] Crowdloan(crowdloan::Call), #[codec(index = 99)] XcmPallet(xcm_pallet::Call), } impl ::subxt::blocks::RootExtrinsic for Call { fn root_extrinsic( pallet_bytes: &[u8], pallet_name: &str, pallet_ty: u32, metadata: &::subxt::Metadata, ) -> Result { use subxt::metadata::DecodeWithMetadata; if pallet_name == "System" { return Ok(Call::System(system::Call::decode_with_metadata( &mut &*pallet_bytes, pallet_ty, metadata, )?)); } if pallet_name == "Scheduler" { return Ok(Call::Scheduler(scheduler::Call::decode_with_metadata( &mut &*pallet_bytes, pallet_ty, metadata, )?)); } if pallet_name == "Preimage" { return Ok(Call::Preimage(preimage::Call::decode_with_metadata( &mut &*pallet_bytes, pallet_ty, metadata, )?)); } if pallet_name == "Babe" { return Ok(Call::Babe(babe::Call::decode_with_metadata( &mut &*pallet_bytes, pallet_ty, metadata, )?)); } if pallet_name == "Timestamp" { return Ok(Call::Timestamp(timestamp::Call::decode_with_metadata( &mut &*pallet_bytes, pallet_ty, metadata, )?)); } if pallet_name == "Indices" { return Ok(Call::Indices(indices::Call::decode_with_metadata( &mut &*pallet_bytes, pallet_ty, metadata, )?)); } if pallet_name == "Balances" { return Ok(Call::Balances(balances::Call::decode_with_metadata( &mut &*pallet_bytes, pallet_ty, metadata, )?)); } if pallet_name == "Staking" { return Ok(Call::Staking(staking::Call::decode_with_metadata( &mut &*pallet_bytes, pallet_ty, metadata, )?)); } if pallet_name == "Session" { return Ok(Call::Session(session::Call::decode_with_metadata( &mut &*pallet_bytes, pallet_ty, metadata, )?)); } if pallet_name == "Grandpa" { return Ok(Call::Grandpa(grandpa::Call::decode_with_metadata( &mut &*pallet_bytes, pallet_ty, metadata, )?)); } if pallet_name == "ImOnline" { return Ok(Call::ImOnline(im_online::Call::decode_with_metadata( &mut &*pallet_bytes, pallet_ty, metadata, )?)); } if pallet_name == "Democracy" { return Ok(Call::Democracy(democracy::Call::decode_with_metadata( &mut &*pallet_bytes, pallet_ty, metadata, )?)); } if pallet_name == "Council" { return Ok(Call::Council(council::Call::decode_with_metadata( &mut &*pallet_bytes, pallet_ty, metadata, )?)); } if pallet_name == "TechnicalCommittee" { return Ok(Call::TechnicalCommittee( technical_committee::Call::decode_with_metadata( &mut &*pallet_bytes, pallet_ty, metadata, )?, )); } if pallet_name == "PhragmenElection" { return Ok(Call::PhragmenElection( phragmen_election::Call::decode_with_metadata( &mut &*pallet_bytes, pallet_ty, metadata, )?, )); } if pallet_name == "TechnicalMembership" { return Ok(Call::TechnicalMembership( technical_membership::Call::decode_with_metadata( &mut &*pallet_bytes, pallet_ty, metadata, )?, )); } if pallet_name == "Treasury" { return Ok(Call::Treasury(treasury::Call::decode_with_metadata( &mut &*pallet_bytes, pallet_ty, metadata, )?)); } if pallet_name == "ConvictionVoting" { return Ok(Call::ConvictionVoting( conviction_voting::Call::decode_with_metadata( &mut &*pallet_bytes, pallet_ty, metadata, )?, )); } if pallet_name == "Referenda" { return Ok(Call::Referenda(referenda::Call::decode_with_metadata( &mut &*pallet_bytes, pallet_ty, metadata, )?)); } if pallet_name == "Whitelist" { return Ok(Call::Whitelist(whitelist::Call::decode_with_metadata( &mut &*pallet_bytes, pallet_ty, metadata, )?)); } if pallet_name == "Claims" { return Ok(Call::Claims(claims::Call::decode_with_metadata( &mut &*pallet_bytes, pallet_ty, metadata, )?)); } if pallet_name == "Vesting" { return Ok(Call::Vesting(vesting::Call::decode_with_metadata( &mut &*pallet_bytes, pallet_ty, metadata, )?)); } if pallet_name == "Utility" { return Ok(Call::Utility(utility::Call::decode_with_metadata( &mut &*pallet_bytes, pallet_ty, metadata, )?)); } if pallet_name == "Identity" { return Ok(Call::Identity(identity::Call::decode_with_metadata( &mut &*pallet_bytes, pallet_ty, metadata, )?)); } if pallet_name == "Proxy" { return Ok(Call::Proxy(proxy::Call::decode_with_metadata( &mut &*pallet_bytes, pallet_ty, metadata, )?)); } if pallet_name == "Multisig" { return Ok(Call::Multisig(multisig::Call::decode_with_metadata( &mut &*pallet_bytes, pallet_ty, metadata, )?)); } if pallet_name == "Bounties" { return Ok(Call::Bounties(bounties::Call::decode_with_metadata( &mut &*pallet_bytes, pallet_ty, metadata, )?)); } if pallet_name == "ChildBounties" { return Ok(Call::ChildBounties( child_bounties::Call::decode_with_metadata( &mut &*pallet_bytes, pallet_ty, metadata, )?, )); } if pallet_name == "Tips" { return Ok(Call::Tips(tips::Call::decode_with_metadata( &mut &*pallet_bytes, pallet_ty, metadata, )?)); } if pallet_name == "ElectionProviderMultiPhase" { return Ok(Call::ElectionProviderMultiPhase( election_provider_multi_phase::Call::decode_with_metadata( &mut &*pallet_bytes, pallet_ty, metadata, )?, )); } if pallet_name == "VoterList" { return Ok(Call::VoterList(voter_list::Call::decode_with_metadata( &mut &*pallet_bytes, pallet_ty, metadata, )?)); } if pallet_name == "NominationPools" { return Ok(Call::NominationPools( nomination_pools::Call::decode_with_metadata( &mut &*pallet_bytes, pallet_ty, metadata, )?, )); } if pallet_name == "FastUnstake" { return Ok(Call::FastUnstake(fast_unstake::Call::decode_with_metadata( &mut &*pallet_bytes, pallet_ty, metadata, )?)); } if pallet_name == "Configuration" { return Ok(Call::Configuration( configuration::Call::decode_with_metadata( &mut &*pallet_bytes, pallet_ty, metadata, )?, )); } if pallet_name == "ParasShared" { return Ok(Call::ParasShared(paras_shared::Call::decode_with_metadata( &mut &*pallet_bytes, pallet_ty, metadata, )?)); } if pallet_name == "ParaInclusion" { return Ok(Call::ParaInclusion( para_inclusion::Call::decode_with_metadata( &mut &*pallet_bytes, pallet_ty, metadata, )?, )); } if pallet_name == "ParaInherent" { return Ok(Call::ParaInherent( para_inherent::Call::decode_with_metadata( &mut &*pallet_bytes, pallet_ty, metadata, )?, )); } if pallet_name == "Paras" { return Ok(Call::Paras(paras::Call::decode_with_metadata( &mut &*pallet_bytes, pallet_ty, metadata, )?)); } if pallet_name == "Initializer" { return Ok(Call::Initializer(initializer::Call::decode_with_metadata( &mut &*pallet_bytes, pallet_ty, metadata, )?)); } if pallet_name == "Ump" { return Ok(Call::Ump(ump::Call::decode_with_metadata( &mut &*pallet_bytes, pallet_ty, metadata, )?)); } if pallet_name == "Hrmp" { return Ok(Call::Hrmp(hrmp::Call::decode_with_metadata( &mut &*pallet_bytes, pallet_ty, metadata, )?)); } if pallet_name == "ParasDisputes" { return Ok(Call::ParasDisputes( paras_disputes::Call::decode_with_metadata( &mut &*pallet_bytes, pallet_ty, metadata, )?, )); } if pallet_name == "ParasSlashing" { return Ok(Call::ParasSlashing( paras_slashing::Call::decode_with_metadata( &mut &*pallet_bytes, pallet_ty, metadata, )?, )); } if pallet_name == "Registrar" { return Ok(Call::Registrar(registrar::Call::decode_with_metadata( &mut &*pallet_bytes, pallet_ty, metadata, )?)); } if pallet_name == "Slots" { return Ok(Call::Slots(slots::Call::decode_with_metadata( &mut &*pallet_bytes, pallet_ty, metadata, )?)); } if pallet_name == "Auctions" { return Ok(Call::Auctions(auctions::Call::decode_with_metadata( &mut &*pallet_bytes, pallet_ty, metadata, )?)); } if pallet_name == "Crowdloan" { return Ok(Call::Crowdloan(crowdloan::Call::decode_with_metadata( &mut &*pallet_bytes, pallet_ty, metadata, )?)); } if pallet_name == "XcmPallet" { return Ok(Call::XcmPallet(xcm_pallet::Call::decode_with_metadata( &mut &*pallet_bytes, pallet_ty, metadata, )?)); } Err(::subxt::ext::scale_decode::Error::custom(format!( "Pallet name '{}' not found in root Call enum", pallet_name )) .into()) } } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum Error { #[codec(index = 0)] System(system::Error), #[codec(index = 1)] Scheduler(scheduler::Error), #[codec(index = 10)] Preimage(preimage::Error), #[codec(index = 2)] Babe(babe::Error), #[codec(index = 4)] Indices(indices::Error), #[codec(index = 5)] Balances(balances::Error), #[codec(index = 7)] Staking(staking::Error), #[codec(index = 9)] Session(session::Error), #[codec(index = 11)] Grandpa(grandpa::Error), #[codec(index = 12)] ImOnline(im_online::Error), #[codec(index = 14)] Democracy(democracy::Error), #[codec(index = 15)] Council(council::Error), #[codec(index = 16)] TechnicalCommittee(technical_committee::Error), #[codec(index = 17)] PhragmenElection(phragmen_election::Error), #[codec(index = 18)] TechnicalMembership(technical_membership::Error), #[codec(index = 19)] Treasury(treasury::Error), #[codec(index = 20)] ConvictionVoting(conviction_voting::Error), #[codec(index = 21)] Referenda(referenda::Error), #[codec(index = 23)] Whitelist(whitelist::Error), #[codec(index = 24)] Claims(claims::Error), #[codec(index = 25)] Vesting(vesting::Error), #[codec(index = 26)] Utility(utility::Error), #[codec(index = 28)] Identity(identity::Error), #[codec(index = 29)] Proxy(proxy::Error), #[codec(index = 30)] Multisig(multisig::Error), #[codec(index = 34)] Bounties(bounties::Error), #[codec(index = 38)] ChildBounties(child_bounties::Error), #[codec(index = 35)] Tips(tips::Error), #[codec(index = 36)] ElectionProviderMultiPhase(election_provider_multi_phase::Error), #[codec(index = 37)] VoterList(voter_list::Error), #[codec(index = 39)] NominationPools(nomination_pools::Error), #[codec(index = 40)] FastUnstake(fast_unstake::Error), #[codec(index = 51)] Configuration(configuration::Error), #[codec(index = 53)] ParaInclusion(para_inclusion::Error), #[codec(index = 54)] ParaInherent(para_inherent::Error), #[codec(index = 56)] Paras(paras::Error), #[codec(index = 59)] Ump(ump::Error), #[codec(index = 60)] Hrmp(hrmp::Error), #[codec(index = 62)] ParasDisputes(paras_disputes::Error), #[codec(index = 63)] ParasSlashing(paras_slashing::Error), #[codec(index = 70)] Registrar(registrar::Error), #[codec(index = 71)] Slots(slots::Error), #[codec(index = 72)] Auctions(auctions::Error), #[codec(index = 73)] Crowdloan(crowdloan::Error), #[codec(index = 99)] XcmPallet(xcm_pallet::Error), } impl ::subxt::error::RootError for Error { fn root_error( pallet_bytes: &[u8], pallet_name: &str, metadata: &::subxt::Metadata, ) -> Result { use subxt::metadata::DecodeWithMetadata; let cursor = &mut &pallet_bytes[..]; if pallet_name == "System" { let variant_error = system::Error::decode_with_metadata(cursor, 491u32, metadata)?; return Ok(Error::System(variant_error)); } if pallet_name == "Scheduler" { let variant_error = scheduler::Error::decode_with_metadata(cursor, 496u32, metadata)?; return Ok(Error::Scheduler(variant_error)); } if pallet_name == "Preimage" { let variant_error = preimage::Error::decode_with_metadata(cursor, 501u32, metadata)?; return Ok(Error::Preimage(variant_error)); } if pallet_name == "Babe" { let variant_error = babe::Error::decode_with_metadata(cursor, 517u32, metadata)?; return Ok(Error::Babe(variant_error)); } if pallet_name == "Indices" { let variant_error = indices::Error::decode_with_metadata(cursor, 519u32, metadata)?; return Ok(Error::Indices(variant_error)); } if pallet_name == "Balances" { let variant_error = balances::Error::decode_with_metadata(cursor, 530u32, metadata)?; return Ok(Error::Balances(variant_error)); } if pallet_name == "Staking" { let variant_error = staking::Error::decode_with_metadata(cursor, 554u32, metadata)?; return Ok(Error::Staking(variant_error)); } if pallet_name == "Session" { let variant_error = session::Error::decode_with_metadata(cursor, 561u32, metadata)?; return Ok(Error::Session(variant_error)); } if pallet_name == "Grandpa" { let variant_error = grandpa::Error::decode_with_metadata(cursor, 565u32, metadata)?; return Ok(Error::Grandpa(variant_error)); } if pallet_name == "ImOnline" { let variant_error = im_online::Error::decode_with_metadata(cursor, 573u32, metadata)?; return Ok(Error::ImOnline(variant_error)); } if pallet_name == "Democracy" { let variant_error = democracy::Error::decode_with_metadata(cursor, 590u32, metadata)?; return Ok(Error::Democracy(variant_error)); } if pallet_name == "Council" { let variant_error = council::Error::decode_with_metadata(cursor, 593u32, metadata)?; return Ok(Error::Council(variant_error)); } if pallet_name == "TechnicalCommittee" { let variant_error = technical_committee::Error::decode_with_metadata(cursor, 595u32, metadata)?; return Ok(Error::TechnicalCommittee(variant_error)); } if pallet_name == "PhragmenElection" { let variant_error = phragmen_election::Error::decode_with_metadata(cursor, 599u32, metadata)?; return Ok(Error::PhragmenElection(variant_error)); } if pallet_name == "TechnicalMembership" { let variant_error = technical_membership::Error::decode_with_metadata(cursor, 601u32, metadata)?; return Ok(Error::TechnicalMembership(variant_error)); } if pallet_name == "Treasury" { let variant_error = treasury::Error::decode_with_metadata(cursor, 607u32, metadata)?; return Ok(Error::Treasury(variant_error)); } if pallet_name == "ConvictionVoting" { let variant_error = conviction_voting::Error::decode_with_metadata(cursor, 620u32, metadata)?; return Ok(Error::ConvictionVoting(variant_error)); } if pallet_name == "Referenda" { let variant_error = referenda::Error::decode_with_metadata(cursor, 638u32, metadata)?; return Ok(Error::Referenda(variant_error)); } if pallet_name == "Whitelist" { let variant_error = whitelist::Error::decode_with_metadata(cursor, 639u32, metadata)?; return Ok(Error::Whitelist(variant_error)); } if pallet_name == "Claims" { let variant_error = claims::Error::decode_with_metadata(cursor, 640u32, metadata)?; return Ok(Error::Claims(variant_error)); } if pallet_name == "Vesting" { let variant_error = vesting::Error::decode_with_metadata(cursor, 644u32, metadata)?; return Ok(Error::Vesting(variant_error)); } if pallet_name == "Utility" { let variant_error = utility::Error::decode_with_metadata(cursor, 645u32, metadata)?; return Ok(Error::Utility(variant_error)); } if pallet_name == "Identity" { let variant_error = identity::Error::decode_with_metadata(cursor, 656u32, metadata)?; return Ok(Error::Identity(variant_error)); } if pallet_name == "Proxy" { let variant_error = proxy::Error::decode_with_metadata(cursor, 665u32, metadata)?; return Ok(Error::Proxy(variant_error)); } if pallet_name == "Multisig" { let variant_error = multisig::Error::decode_with_metadata(cursor, 669u32, metadata)?; return Ok(Error::Multisig(variant_error)); } if pallet_name == "Bounties" { let variant_error = bounties::Error::decode_with_metadata(cursor, 673u32, metadata)?; return Ok(Error::Bounties(variant_error)); } if pallet_name == "ChildBounties" { let variant_error = child_bounties::Error::decode_with_metadata(cursor, 676u32, metadata)?; return Ok(Error::ChildBounties(variant_error)); } if pallet_name == "Tips" { let variant_error = tips::Error::decode_with_metadata(cursor, 678u32, metadata)?; return Ok(Error::Tips(variant_error)); } if pallet_name == "ElectionProviderMultiPhase" { let variant_error = election_provider_multi_phase::Error::decode_with_metadata( cursor, 688u32, metadata, )?; return Ok(Error::ElectionProviderMultiPhase(variant_error)); } if pallet_name == "VoterList" { let variant_error = voter_list::Error::decode_with_metadata(cursor, 692u32, metadata)?; return Ok(Error::VoterList(variant_error)); } if pallet_name == "NominationPools" { let variant_error = nomination_pools::Error::decode_with_metadata(cursor, 710u32, metadata)?; return Ok(Error::NominationPools(variant_error)); } if pallet_name == "FastUnstake" { let variant_error = fast_unstake::Error::decode_with_metadata(cursor, 715u32, metadata)?; return Ok(Error::FastUnstake(variant_error)); } if pallet_name == "Configuration" { let variant_error = configuration::Error::decode_with_metadata(cursor, 719u32, metadata)?; return Ok(Error::Configuration(variant_error)); } if pallet_name == "ParaInclusion" { let variant_error = para_inclusion::Error::decode_with_metadata(cursor, 724u32, metadata)?; return Ok(Error::ParaInclusion(variant_error)); } if pallet_name == "ParaInherent" { let variant_error = para_inherent::Error::decode_with_metadata(cursor, 730u32, metadata)?; return Ok(Error::ParaInherent(variant_error)); } if pallet_name == "Paras" { let variant_error = paras::Error::decode_with_metadata(cursor, 757u32, metadata)?; return Ok(Error::Paras(variant_error)); } if pallet_name == "Ump" { let variant_error = ump::Error::decode_with_metadata(cursor, 763u32, metadata)?; return Ok(Error::Ump(variant_error)); } if pallet_name == "Hrmp" { let variant_error = hrmp::Error::decode_with_metadata(cursor, 771u32, metadata)?; return Ok(Error::Hrmp(variant_error)); } if pallet_name == "ParasDisputes" { let variant_error = paras_disputes::Error::decode_with_metadata(cursor, 780u32, metadata)?; return Ok(Error::ParasDisputes(variant_error)); } if pallet_name == "ParasSlashing" { let variant_error = paras_slashing::Error::decode_with_metadata(cursor, 785u32, metadata)?; return Ok(Error::ParasSlashing(variant_error)); } if pallet_name == "Registrar" { let variant_error = registrar::Error::decode_with_metadata(cursor, 787u32, metadata)?; return Ok(Error::Registrar(variant_error)); } if pallet_name == "Slots" { let variant_error = slots::Error::decode_with_metadata(cursor, 789u32, metadata)?; return Ok(Error::Slots(variant_error)); } if pallet_name == "Auctions" { let variant_error = auctions::Error::decode_with_metadata(cursor, 794u32, metadata)?; return Ok(Error::Auctions(variant_error)); } if pallet_name == "Crowdloan" { let variant_error = crowdloan::Error::decode_with_metadata(cursor, 797u32, metadata)?; return Ok(Error::Crowdloan(variant_error)); } if pallet_name == "XcmPallet" { let variant_error = xcm_pallet::Error::decode_with_metadata(cursor, 816u32, metadata)?; return Ok(Error::XcmPallet(variant_error)); } Err(::subxt::ext::scale_decode::Error::custom(format!( "Pallet name '{}' not found in root Error enum", pallet_name )) .into()) } } pub fn constants() -> ConstantsApi { ConstantsApi } pub fn storage() -> StorageApi { StorageApi } pub fn tx() -> TransactionApi { TransactionApi } pub fn apis() -> runtime_apis::RuntimeApi { runtime_apis::RuntimeApi } pub mod runtime_apis { use super::root_mod; use super::runtime_types; use subxt::ext::codec::Encode; pub struct RuntimeApi; impl RuntimeApi { pub fn core(&self) -> core::Core { core::Core } pub fn metadata(&self) -> metadata::Metadata { metadata::Metadata } pub fn block_builder(&self) -> block_builder::BlockBuilder { block_builder::BlockBuilder } pub fn nomination_pools_api(&self) -> nomination_pools_api::NominationPoolsApi { nomination_pools_api::NominationPoolsApi } pub fn staking_api(&self) -> staking_api::StakingApi { staking_api::StakingApi } pub fn tagged_transaction_queue( &self, ) -> tagged_transaction_queue::TaggedTransactionQueue { tagged_transaction_queue::TaggedTransactionQueue } pub fn offchain_worker_api(&self) -> offchain_worker_api::OffchainWorkerApi { offchain_worker_api::OffchainWorkerApi } pub fn parachain_host(&self) -> parachain_host::ParachainHost { parachain_host::ParachainHost } pub fn beefy_api(&self) -> beefy_api::BeefyApi { beefy_api::BeefyApi } pub fn mmr_api(&self) -> mmr_api::MmrApi { mmr_api::MmrApi } pub fn grandpa_api(&self) -> grandpa_api::GrandpaApi { grandpa_api::GrandpaApi } pub fn babe_api(&self) -> babe_api::BabeApi { babe_api::BabeApi } pub fn authority_discovery_api( &self, ) -> authority_discovery_api::AuthorityDiscoveryApi { authority_discovery_api::AuthorityDiscoveryApi } pub fn session_keys(&self) -> session_keys::SessionKeys { session_keys::SessionKeys } pub fn account_nonce_api(&self) -> account_nonce_api::AccountNonceApi { account_nonce_api::AccountNonceApi } pub fn transaction_payment_api( &self, ) -> transaction_payment_api::TransactionPaymentApi { transaction_payment_api::TransactionPaymentApi } pub fn transaction_payment_call_api( &self, ) -> transaction_payment_call_api::TransactionPaymentCallApi { transaction_payment_call_api::TransactionPaymentCallApi } } pub mod core { use super::root_mod; use super::runtime_types; #[doc = " The `Core` runtime api that every Substrate runtime needs to implement."] pub struct Core; impl Core { #[doc = " Returns the version of the runtime."] pub fn version( &self, ) -> ::subxt::runtime_api::Payload< types::Version, runtime_types::sp_version::RuntimeVersion, > { ::subxt::runtime_api::Payload::new_static( "Core", "version", types::Version {}, [ 208u8, 156u8, 242u8, 175u8, 91u8, 142u8, 140u8, 147u8, 202u8, 252u8, 59u8, 236u8, 42u8, 221u8, 134u8, 39u8, 177u8, 160u8, 223u8, 74u8, 36u8, 141u8, 74u8, 4u8, 248u8, 111u8, 254u8, 214u8, 23u8, 59u8, 59u8, 160u8, ], ) } #[doc = " Execute the given block."] pub fn execute_block( &self, block : runtime_types :: sp_runtime :: generic :: block :: Block < runtime_types :: sp_runtime :: generic :: header :: Header < :: core :: primitive :: u32 , runtime_types :: sp_runtime :: traits :: BlakeTwo256 > , runtime_types :: sp_runtime :: generic :: unchecked_extrinsic :: UncheckedExtrinsic < :: subxt :: utils :: MultiAddress < :: subxt :: utils :: AccountId32 , () > , runtime_types :: polkadot_runtime :: RuntimeCall , runtime_types :: sp_runtime :: MultiSignature , (runtime_types :: frame_system :: extensions :: check_non_zero_sender :: CheckNonZeroSender , runtime_types :: frame_system :: extensions :: check_spec_version :: CheckSpecVersion , runtime_types :: frame_system :: extensions :: check_tx_version :: CheckTxVersion , runtime_types :: frame_system :: extensions :: check_genesis :: CheckGenesis , runtime_types :: frame_system :: extensions :: check_mortality :: CheckMortality , runtime_types :: frame_system :: extensions :: check_nonce :: CheckNonce , runtime_types :: frame_system :: extensions :: check_weight :: CheckWeight , runtime_types :: pallet_transaction_payment :: ChargeTransactionPayment , runtime_types :: polkadot_runtime_common :: claims :: PrevalidateAttests ,) > >, ) -> ::subxt::runtime_api::Payload { ::subxt::runtime_api::Payload::new_static( "Core", "execute_block", types::ExecuteBlock { block }, [ 101u8, 219u8, 22u8, 226u8, 108u8, 12u8, 117u8, 235u8, 185u8, 6u8, 210u8, 196u8, 241u8, 124u8, 122u8, 100u8, 196u8, 226u8, 6u8, 228u8, 75u8, 247u8, 160u8, 208u8, 56u8, 53u8, 18u8, 69u8, 235u8, 125u8, 86u8, 54u8, ], ) } #[doc = " Initialize a block with the given header."] pub fn initialize_block( &self, header: runtime_types::sp_runtime::generic::header::Header< ::core::primitive::u32, runtime_types::sp_runtime::traits::BlakeTwo256, >, ) -> ::subxt::runtime_api::Payload { ::subxt::runtime_api::Payload::new_static( "Core", "initialize_block", types::InitializeBlock { header }, [ 49u8, 128u8, 189u8, 185u8, 156u8, 217u8, 149u8, 251u8, 64u8, 175u8, 28u8, 121u8, 111u8, 219u8, 161u8, 62u8, 176u8, 22u8, 167u8, 137u8, 137u8, 14u8, 56u8, 29u8, 3u8, 98u8, 204u8, 14u8, 65u8, 79u8, 199u8, 112u8, ], ) } } pub mod types { use super::runtime_types; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Version {} #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ExecuteBlock { pub block : runtime_types :: sp_runtime :: generic :: block :: Block < runtime_types :: sp_runtime :: generic :: header :: Header < :: core :: primitive :: u32 , runtime_types :: sp_runtime :: traits :: BlakeTwo256 > , runtime_types :: sp_runtime :: generic :: unchecked_extrinsic :: UncheckedExtrinsic < :: subxt :: utils :: MultiAddress < :: subxt :: utils :: AccountId32 , () > , runtime_types :: polkadot_runtime :: RuntimeCall , runtime_types :: sp_runtime :: MultiSignature , (runtime_types :: frame_system :: extensions :: check_non_zero_sender :: CheckNonZeroSender , runtime_types :: frame_system :: extensions :: check_spec_version :: CheckSpecVersion , runtime_types :: frame_system :: extensions :: check_tx_version :: CheckTxVersion , runtime_types :: frame_system :: extensions :: check_genesis :: CheckGenesis , runtime_types :: frame_system :: extensions :: check_mortality :: CheckMortality , runtime_types :: frame_system :: extensions :: check_nonce :: CheckNonce , runtime_types :: frame_system :: extensions :: check_weight :: CheckWeight , runtime_types :: pallet_transaction_payment :: ChargeTransactionPayment , runtime_types :: polkadot_runtime_common :: claims :: PrevalidateAttests ,) > > , } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct InitializeBlock { pub header: runtime_types::sp_runtime::generic::header::Header< ::core::primitive::u32, runtime_types::sp_runtime::traits::BlakeTwo256, >, } } } pub mod metadata { use super::root_mod; use super::runtime_types; #[doc = " The `Metadata` api trait that returns metadata for the runtime."] pub struct Metadata; impl Metadata { #[doc = " Returns the metadata of a runtime."] pub fn metadata( &self, ) -> ::subxt::runtime_api::Payload< types::Metadata, runtime_types::sp_core::OpaqueMetadata, > { ::subxt::runtime_api::Payload::new_static( "Metadata", "metadata", types::Metadata {}, [ 231u8, 24u8, 67u8, 152u8, 23u8, 26u8, 188u8, 82u8, 229u8, 6u8, 185u8, 27u8, 175u8, 68u8, 83u8, 122u8, 69u8, 89u8, 185u8, 74u8, 248u8, 87u8, 217u8, 124u8, 193u8, 252u8, 199u8, 186u8, 196u8, 179u8, 179u8, 96u8, ], ) } #[doc = " Returns the metadata at a given version."] #[doc = ""] #[doc = " If the given `version` isn't supported, this will return `None`."] #[doc = " Use [`Self::metadata_versions`] to find out about supported metadata version of the runtime."] pub fn metadata_at_version( &self, version: ::core::primitive::u32, ) -> ::subxt::runtime_api::Payload< types::MetadataAtVersion, ::core::option::Option, > { ::subxt::runtime_api::Payload::new_static( "Metadata", "metadata_at_version", types::MetadataAtVersion { version }, [ 131u8, 53u8, 212u8, 234u8, 16u8, 25u8, 120u8, 252u8, 153u8, 153u8, 216u8, 28u8, 54u8, 113u8, 52u8, 236u8, 146u8, 68u8, 142u8, 8u8, 10u8, 169u8, 131u8, 142u8, 204u8, 38u8, 48u8, 108u8, 134u8, 86u8, 226u8, 61u8, ], ) } #[doc = " Returns the supported metadata versions."] #[doc = ""] #[doc = " This can be used to call `metadata_at_version`."] pub fn metadata_versions( &self, ) -> ::subxt::runtime_api::Payload< types::MetadataVersions, ::std::vec::Vec<::core::primitive::u32>, > { ::subxt::runtime_api::Payload::new_static( "Metadata", "metadata_versions", types::MetadataVersions {}, [ 23u8, 144u8, 137u8, 91u8, 188u8, 39u8, 231u8, 208u8, 252u8, 218u8, 224u8, 176u8, 77u8, 32u8, 130u8, 212u8, 223u8, 76u8, 100u8, 190u8, 82u8, 94u8, 190u8, 8u8, 82u8, 244u8, 225u8, 179u8, 85u8, 176u8, 56u8, 16u8, ], ) } } pub mod types { use super::runtime_types; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Metadata {} #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct MetadataAtVersion { pub version: ::core::primitive::u32, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct MetadataVersions {} } } pub mod block_builder { use super::root_mod; use super::runtime_types; #[doc = " The `BlockBuilder` api trait that provides the required functionality for building a block."] pub struct BlockBuilder; impl BlockBuilder { #[doc = " Apply the given extrinsic."] #[doc = ""] #[doc = " Returns an inclusion outcome which specifies if this extrinsic is included in"] #[doc = " this block or not."] pub fn apply_extrinsic( &self, extrinsic : runtime_types :: sp_runtime :: generic :: unchecked_extrinsic :: UncheckedExtrinsic < :: subxt :: utils :: MultiAddress < :: subxt :: utils :: AccountId32 , () > , runtime_types :: polkadot_runtime :: RuntimeCall , runtime_types :: sp_runtime :: MultiSignature , (runtime_types :: frame_system :: extensions :: check_non_zero_sender :: CheckNonZeroSender , runtime_types :: frame_system :: extensions :: check_spec_version :: CheckSpecVersion , runtime_types :: frame_system :: extensions :: check_tx_version :: CheckTxVersion , runtime_types :: frame_system :: extensions :: check_genesis :: CheckGenesis , runtime_types :: frame_system :: extensions :: check_mortality :: CheckMortality , runtime_types :: frame_system :: extensions :: check_nonce :: CheckNonce , runtime_types :: frame_system :: extensions :: check_weight :: CheckWeight , runtime_types :: pallet_transaction_payment :: ChargeTransactionPayment , runtime_types :: polkadot_runtime_common :: claims :: PrevalidateAttests ,) >, ) -> ::subxt::runtime_api::Payload< types::ApplyExtrinsic, ::core::result::Result< ::core::result::Result<(), runtime_types::sp_runtime::DispatchError>, runtime_types::sp_runtime::transaction_validity::TransactionValidityError, >, > { ::subxt::runtime_api::Payload::new_static( "BlockBuilder", "apply_extrinsic", types::ApplyExtrinsic { extrinsic }, [ 103u8, 239u8, 152u8, 72u8, 246u8, 79u8, 116u8, 229u8, 172u8, 86u8, 78u8, 239u8, 153u8, 135u8, 150u8, 250u8, 37u8, 149u8, 129u8, 188u8, 20u8, 237u8, 108u8, 146u8, 164u8, 117u8, 199u8, 147u8, 199u8, 93u8, 195u8, 101u8, ], ) } #[doc = " Finish the current block."] pub fn finalize_block( &self, ) -> ::subxt::runtime_api::Payload< types::FinalizeBlock, runtime_types::sp_runtime::generic::header::Header< ::core::primitive::u32, runtime_types::sp_runtime::traits::BlakeTwo256, >, > { ::subxt::runtime_api::Payload::new_static( "BlockBuilder", "finalize_block", types::FinalizeBlock {}, [ 23u8, 247u8, 179u8, 24u8, 180u8, 7u8, 52u8, 202u8, 187u8, 15u8, 199u8, 213u8, 193u8, 75u8, 103u8, 56u8, 190u8, 154u8, 81u8, 21u8, 209u8, 178u8, 133u8, 136u8, 180u8, 112u8, 213u8, 76u8, 117u8, 156u8, 126u8, 30u8, ], ) } #[doc = " Generate inherent extrinsics. The inherent data will vary from chain to chain."] pub fn inherent_extrinsics (& self , inherent : runtime_types :: sp_inherents :: InherentData ,) -> :: subxt :: runtime_api :: Payload < types :: InherentExtrinsics , :: std :: vec :: Vec < runtime_types :: sp_runtime :: generic :: unchecked_extrinsic :: UncheckedExtrinsic < :: subxt :: utils :: MultiAddress < :: subxt :: utils :: AccountId32 , () > , runtime_types :: polkadot_runtime :: RuntimeCall , runtime_types :: sp_runtime :: MultiSignature , (runtime_types :: frame_system :: extensions :: check_non_zero_sender :: CheckNonZeroSender , runtime_types :: frame_system :: extensions :: check_spec_version :: CheckSpecVersion , runtime_types :: frame_system :: extensions :: check_tx_version :: CheckTxVersion , runtime_types :: frame_system :: extensions :: check_genesis :: CheckGenesis , runtime_types :: frame_system :: extensions :: check_mortality :: CheckMortality , runtime_types :: frame_system :: extensions :: check_nonce :: CheckNonce , runtime_types :: frame_system :: extensions :: check_weight :: CheckWeight , runtime_types :: pallet_transaction_payment :: ChargeTransactionPayment , runtime_types :: polkadot_runtime_common :: claims :: PrevalidateAttests ,) > > >{ ::subxt::runtime_api::Payload::new_static( "BlockBuilder", "inherent_extrinsics", types::InherentExtrinsics { inherent }, [ 98u8, 190u8, 193u8, 3u8, 42u8, 89u8, 80u8, 230u8, 153u8, 241u8, 71u8, 43u8, 108u8, 107u8, 63u8, 181u8, 9u8, 86u8, 244u8, 9u8, 237u8, 198u8, 249u8, 164u8, 242u8, 137u8, 216u8, 210u8, 2u8, 197u8, 33u8, 169u8, ], ) } #[doc = " Check that the inherents are valid. The inherent data will vary from chain to chain."] pub fn check_inherents( &self, block : runtime_types :: sp_runtime :: generic :: block :: Block < runtime_types :: sp_runtime :: generic :: header :: Header < :: core :: primitive :: u32 , runtime_types :: sp_runtime :: traits :: BlakeTwo256 > , runtime_types :: sp_runtime :: generic :: unchecked_extrinsic :: UncheckedExtrinsic < :: subxt :: utils :: MultiAddress < :: subxt :: utils :: AccountId32 , () > , runtime_types :: polkadot_runtime :: RuntimeCall , runtime_types :: sp_runtime :: MultiSignature , (runtime_types :: frame_system :: extensions :: check_non_zero_sender :: CheckNonZeroSender , runtime_types :: frame_system :: extensions :: check_spec_version :: CheckSpecVersion , runtime_types :: frame_system :: extensions :: check_tx_version :: CheckTxVersion , runtime_types :: frame_system :: extensions :: check_genesis :: CheckGenesis , runtime_types :: frame_system :: extensions :: check_mortality :: CheckMortality , runtime_types :: frame_system :: extensions :: check_nonce :: CheckNonce , runtime_types :: frame_system :: extensions :: check_weight :: CheckWeight , runtime_types :: pallet_transaction_payment :: ChargeTransactionPayment , runtime_types :: polkadot_runtime_common :: claims :: PrevalidateAttests ,) > >, data: runtime_types::sp_inherents::InherentData, ) -> ::subxt::runtime_api::Payload< types::CheckInherents, runtime_types::sp_inherents::CheckInherentsResult, > { ::subxt::runtime_api::Payload::new_static( "BlockBuilder", "check_inherents", types::CheckInherents { block, data }, [ 195u8, 85u8, 54u8, 114u8, 231u8, 129u8, 188u8, 241u8, 167u8, 99u8, 249u8, 100u8, 0u8, 48u8, 234u8, 88u8, 140u8, 75u8, 180u8, 233u8, 135u8, 186u8, 31u8, 179u8, 64u8, 199u8, 12u8, 212u8, 191u8, 179u8, 71u8, 226u8, ], ) } } pub mod types { use super::runtime_types; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ApplyExtrinsic { pub extrinsic : runtime_types :: sp_runtime :: generic :: unchecked_extrinsic :: UncheckedExtrinsic < :: subxt :: utils :: MultiAddress < :: subxt :: utils :: AccountId32 , () > , runtime_types :: polkadot_runtime :: RuntimeCall , runtime_types :: sp_runtime :: MultiSignature , (runtime_types :: frame_system :: extensions :: check_non_zero_sender :: CheckNonZeroSender , runtime_types :: frame_system :: extensions :: check_spec_version :: CheckSpecVersion , runtime_types :: frame_system :: extensions :: check_tx_version :: CheckTxVersion , runtime_types :: frame_system :: extensions :: check_genesis :: CheckGenesis , runtime_types :: frame_system :: extensions :: check_mortality :: CheckMortality , runtime_types :: frame_system :: extensions :: check_nonce :: CheckNonce , runtime_types :: frame_system :: extensions :: check_weight :: CheckWeight , runtime_types :: pallet_transaction_payment :: ChargeTransactionPayment , runtime_types :: polkadot_runtime_common :: claims :: PrevalidateAttests ,) > , } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct FinalizeBlock {} #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct InherentExtrinsics { pub inherent: runtime_types::sp_inherents::InherentData, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct CheckInherents { pub block : runtime_types :: sp_runtime :: generic :: block :: Block < runtime_types :: sp_runtime :: generic :: header :: Header < :: core :: primitive :: u32 , runtime_types :: sp_runtime :: traits :: BlakeTwo256 > , runtime_types :: sp_runtime :: generic :: unchecked_extrinsic :: UncheckedExtrinsic < :: subxt :: utils :: MultiAddress < :: subxt :: utils :: AccountId32 , () > , runtime_types :: polkadot_runtime :: RuntimeCall , runtime_types :: sp_runtime :: MultiSignature , (runtime_types :: frame_system :: extensions :: check_non_zero_sender :: CheckNonZeroSender , runtime_types :: frame_system :: extensions :: check_spec_version :: CheckSpecVersion , runtime_types :: frame_system :: extensions :: check_tx_version :: CheckTxVersion , runtime_types :: frame_system :: extensions :: check_genesis :: CheckGenesis , runtime_types :: frame_system :: extensions :: check_mortality :: CheckMortality , runtime_types :: frame_system :: extensions :: check_nonce :: CheckNonce , runtime_types :: frame_system :: extensions :: check_weight :: CheckWeight , runtime_types :: pallet_transaction_payment :: ChargeTransactionPayment , runtime_types :: polkadot_runtime_common :: claims :: PrevalidateAttests ,) > > , pub data : runtime_types :: sp_inherents :: InherentData , } } } pub mod nomination_pools_api { use super::root_mod; use super::runtime_types; #[doc = " Runtime api for accessing information about nomination pools."] pub struct NominationPoolsApi; impl NominationPoolsApi { #[doc = " Returns the pending rewards for the member that the AccountId was given for."] pub fn pending_rewards( &self, who: ::subxt::utils::AccountId32, ) -> ::subxt::runtime_api::Payload { ::subxt::runtime_api::Payload::new_static( "NominationPoolsApi", "pending_rewards", types::PendingRewards { who }, [ 78u8, 79u8, 88u8, 196u8, 232u8, 243u8, 82u8, 234u8, 115u8, 130u8, 124u8, 165u8, 217u8, 64u8, 17u8, 48u8, 245u8, 181u8, 130u8, 120u8, 217u8, 158u8, 146u8, 242u8, 41u8, 206u8, 90u8, 201u8, 244u8, 10u8, 137u8, 19u8, ], ) } #[doc = " Returns the equivalent balance of `points` for a given pool."] pub fn points_to_balance( &self, pool_id: ::core::primitive::u32, points: ::core::primitive::u128, ) -> ::subxt::runtime_api::Payload { ::subxt::runtime_api::Payload::new_static( "NominationPoolsApi", "points_to_balance", types::PointsToBalance { pool_id, points }, [ 185u8, 86u8, 75u8, 107u8, 174u8, 197u8, 17u8, 216u8, 194u8, 41u8, 170u8, 1u8, 113u8, 207u8, 77u8, 143u8, 211u8, 210u8, 181u8, 131u8, 16u8, 223u8, 77u8, 134u8, 152u8, 8u8, 160u8, 20u8, 83u8, 241u8, 195u8, 2u8, ], ) } #[doc = " Returns the equivalent points of `new_funds` for a given pool."] pub fn balance_to_points( &self, pool_id: ::core::primitive::u32, new_funds: ::core::primitive::u128, ) -> ::subxt::runtime_api::Payload { ::subxt::runtime_api::Payload::new_static( "NominationPoolsApi", "balance_to_points", types::BalanceToPoints { pool_id, new_funds }, [ 95u8, 31u8, 119u8, 229u8, 217u8, 163u8, 94u8, 190u8, 149u8, 114u8, 81u8, 21u8, 215u8, 86u8, 237u8, 48u8, 232u8, 142u8, 114u8, 162u8, 176u8, 6u8, 210u8, 190u8, 56u8, 45u8, 229u8, 161u8, 201u8, 84u8, 137u8, 76u8, ], ) } } pub mod types { use super::runtime_types; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct PendingRewards { pub who: ::subxt::utils::AccountId32, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct PointsToBalance { pub pool_id: ::core::primitive::u32, pub points: ::core::primitive::u128, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct BalanceToPoints { pub pool_id: ::core::primitive::u32, pub new_funds: ::core::primitive::u128, } } } pub mod staking_api { use super::root_mod; use super::runtime_types; pub struct StakingApi; impl StakingApi { #[doc = " Returns the nominations quota for a nominator with a given balance."] pub fn nominations_quota( &self, balance: ::core::primitive::u128, ) -> ::subxt::runtime_api::Payload { ::subxt::runtime_api::Payload::new_static( "StakingApi", "nominations_quota", types::NominationsQuota { balance }, [ 221u8, 113u8, 50u8, 150u8, 51u8, 181u8, 158u8, 235u8, 25u8, 160u8, 135u8, 47u8, 196u8, 129u8, 90u8, 137u8, 157u8, 167u8, 212u8, 104u8, 33u8, 48u8, 83u8, 106u8, 84u8, 220u8, 62u8, 85u8, 25u8, 151u8, 189u8, 114u8, ], ) } } pub mod types { use super::runtime_types; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct NominationsQuota { pub balance: ::core::primitive::u128, } } } pub mod tagged_transaction_queue { use super::root_mod; use super::runtime_types; #[doc = " The `TaggedTransactionQueue` api trait for interfering with the transaction queue."] pub struct TaggedTransactionQueue; impl TaggedTransactionQueue { #[doc = " Validate the transaction."] #[doc = ""] #[doc = " This method is invoked by the transaction pool to learn details about given transaction."] #[doc = " The implementation should make sure to verify the correctness of the transaction"] #[doc = " against current state. The given `block_hash` corresponds to the hash of the block"] #[doc = " that is used as current state."] #[doc = ""] #[doc = " Note that this call may be performed by the pool multiple times and transactions"] #[doc = " might be verified in any possible order."] pub fn validate_transaction( &self, source: runtime_types::sp_runtime::transaction_validity::TransactionSource, tx : runtime_types :: sp_runtime :: generic :: unchecked_extrinsic :: UncheckedExtrinsic < :: subxt :: utils :: MultiAddress < :: subxt :: utils :: AccountId32 , () > , runtime_types :: polkadot_runtime :: RuntimeCall , runtime_types :: sp_runtime :: MultiSignature , (runtime_types :: frame_system :: extensions :: check_non_zero_sender :: CheckNonZeroSender , runtime_types :: frame_system :: extensions :: check_spec_version :: CheckSpecVersion , runtime_types :: frame_system :: extensions :: check_tx_version :: CheckTxVersion , runtime_types :: frame_system :: extensions :: check_genesis :: CheckGenesis , runtime_types :: frame_system :: extensions :: check_mortality :: CheckMortality , runtime_types :: frame_system :: extensions :: check_nonce :: CheckNonce , runtime_types :: frame_system :: extensions :: check_weight :: CheckWeight , runtime_types :: pallet_transaction_payment :: ChargeTransactionPayment , runtime_types :: polkadot_runtime_common :: claims :: PrevalidateAttests ,) >, block_hash: ::subxt::utils::H256, ) -> ::subxt::runtime_api::Payload< types::ValidateTransaction, ::core::result::Result< runtime_types::sp_runtime::transaction_validity::ValidTransaction, runtime_types::sp_runtime::transaction_validity::TransactionValidityError, >, > { ::subxt::runtime_api::Payload::new_static( "TaggedTransactionQueue", "validate_transaction", types::ValidateTransaction { source, tx, block_hash, }, [ 0u8, 184u8, 223u8, 131u8, 207u8, 216u8, 71u8, 7u8, 51u8, 252u8, 130u8, 189u8, 9u8, 21u8, 39u8, 75u8, 0u8, 1u8, 21u8, 157u8, 208u8, 5u8, 110u8, 10u8, 212u8, 177u8, 59u8, 194u8, 178u8, 244u8, 238u8, 238u8, ], ) } } pub mod types { use super::runtime_types; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ValidateTransaction { pub source : runtime_types :: sp_runtime :: transaction_validity :: TransactionSource , pub tx : runtime_types :: sp_runtime :: generic :: unchecked_extrinsic :: UncheckedExtrinsic < :: subxt :: utils :: MultiAddress < :: subxt :: utils :: AccountId32 , () > , runtime_types :: polkadot_runtime :: RuntimeCall , runtime_types :: sp_runtime :: MultiSignature , (runtime_types :: frame_system :: extensions :: check_non_zero_sender :: CheckNonZeroSender , runtime_types :: frame_system :: extensions :: check_spec_version :: CheckSpecVersion , runtime_types :: frame_system :: extensions :: check_tx_version :: CheckTxVersion , runtime_types :: frame_system :: extensions :: check_genesis :: CheckGenesis , runtime_types :: frame_system :: extensions :: check_mortality :: CheckMortality , runtime_types :: frame_system :: extensions :: check_nonce :: CheckNonce , runtime_types :: frame_system :: extensions :: check_weight :: CheckWeight , runtime_types :: pallet_transaction_payment :: ChargeTransactionPayment , runtime_types :: polkadot_runtime_common :: claims :: PrevalidateAttests ,) > , pub block_hash : :: subxt :: utils :: H256 , } } } pub mod offchain_worker_api { use super::root_mod; use super::runtime_types; #[doc = " The offchain worker api."] pub struct OffchainWorkerApi; impl OffchainWorkerApi { #[doc = " Starts the off-chain task for given block header."] pub fn offchain_worker( &self, header: runtime_types::sp_runtime::generic::header::Header< ::core::primitive::u32, runtime_types::sp_runtime::traits::BlakeTwo256, >, ) -> ::subxt::runtime_api::Payload { ::subxt::runtime_api::Payload::new_static( "OffchainWorkerApi", "offchain_worker", types::OffchainWorker { header }, [ 203u8, 137u8, 171u8, 220u8, 51u8, 190u8, 230u8, 10u8, 77u8, 8u8, 141u8, 224u8, 144u8, 82u8, 45u8, 116u8, 23u8, 223u8, 254u8, 209u8, 49u8, 228u8, 161u8, 170u8, 202u8, 99u8, 200u8, 20u8, 61u8, 17u8, 191u8, 203u8, ], ) } } pub mod types { use super::runtime_types; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct OffchainWorker { pub header: runtime_types::sp_runtime::generic::header::Header< ::core::primitive::u32, runtime_types::sp_runtime::traits::BlakeTwo256, >, } } } pub mod parachain_host { use super::root_mod; use super::runtime_types; #[doc = " The API for querying the state of parachains on-chain."] pub struct ParachainHost; impl ParachainHost { #[doc = " Get the current validators."] pub fn validators( &self, ) -> ::subxt::runtime_api::Payload< types::Validators, ::std::vec::Vec, > { ::subxt::runtime_api::Payload::new_static( "ParachainHost", "validators", types::Validators {}, [ 56u8, 64u8, 189u8, 234u8, 85u8, 75u8, 2u8, 212u8, 192u8, 95u8, 230u8, 201u8, 98u8, 220u8, 78u8, 20u8, 101u8, 16u8, 153u8, 192u8, 133u8, 179u8, 217u8, 98u8, 247u8, 143u8, 104u8, 147u8, 47u8, 255u8, 111u8, 72u8, ], ) } #[doc = " Returns the validator groups and rotation info localized based on the hypothetical child"] #[doc = " of a block whose state this is invoked on. Note that `now` in the `GroupRotationInfo`"] #[doc = " should be the successor of the number of the block."] pub fn validator_groups( &self, ) -> ::subxt::runtime_api::Payload< types::ValidatorGroups, ( ::std::vec::Vec< ::std::vec::Vec, >, runtime_types::polkadot_primitives::v4::GroupRotationInfo< ::core::primitive::u32, >, ), > { ::subxt::runtime_api::Payload::new_static( "ParachainHost", "validator_groups", types::ValidatorGroups {}, [ 24u8, 171u8, 23u8, 86u8, 7u8, 140u8, 37u8, 124u8, 240u8, 134u8, 32u8, 107u8, 1u8, 57u8, 195u8, 88u8, 93u8, 176u8, 76u8, 58u8, 213u8, 209u8, 45u8, 37u8, 176u8, 231u8, 95u8, 153u8, 127u8, 100u8, 188u8, 219u8, ], ) } #[doc = " Yields information on all availability cores as relevant to the child block."] #[doc = " Cores are either free or occupied. Free cores can have paras assigned to them."] pub fn availability_cores( &self, ) -> ::subxt::runtime_api::Payload< types::AvailabilityCores, ::std::vec::Vec< runtime_types::polkadot_primitives::v4::CoreState< ::subxt::utils::H256, ::core::primitive::u32, >, >, > { ::subxt::runtime_api::Payload::new_static( "ParachainHost", "availability_cores", types::AvailabilityCores {}, [ 20u8, 38u8, 87u8, 56u8, 94u8, 85u8, 87u8, 37u8, 142u8, 86u8, 34u8, 211u8, 142u8, 20u8, 245u8, 111u8, 124u8, 96u8, 235u8, 130u8, 233u8, 20u8, 112u8, 60u8, 100u8, 2u8, 173u8, 55u8, 167u8, 233u8, 213u8, 98u8, ], ) } #[doc = " Yields the persisted validation data for the given `ParaId` along with an assumption that"] #[doc = " should be used if the para currently occupies a core."] #[doc = ""] #[doc = " Returns `None` if either the para is not registered or the assumption is `Freed`"] #[doc = " and the para already occupies a core."] pub fn persisted_validation_data( &self, para_id: runtime_types::polkadot_parachain::primitives::Id, assumption: runtime_types::polkadot_primitives::v4::OccupiedCoreAssumption, ) -> ::subxt::runtime_api::Payload< types::PersistedValidationData, ::core::option::Option< runtime_types::polkadot_primitives::v4::PersistedValidationData< ::subxt::utils::H256, ::core::primitive::u32, >, >, > { ::subxt::runtime_api::Payload::new_static( "ParachainHost", "persisted_validation_data", types::PersistedValidationData { para_id, assumption, }, [ 237u8, 50u8, 182u8, 228u8, 164u8, 127u8, 74u8, 248u8, 33u8, 12u8, 18u8, 216u8, 135u8, 121u8, 146u8, 255u8, 242u8, 161u8, 227u8, 39u8, 107u8, 78u8, 106u8, 54u8, 50u8, 26u8, 194u8, 91u8, 221u8, 207u8, 119u8, 25u8, ], ) } #[doc = " Returns the persisted validation data for the given `ParaId` along with the corresponding"] #[doc = " validation code hash. Instead of accepting assumption about the para, matches the validation"] #[doc = " data hash against an expected one and yields `None` if they're not equal."] pub fn assumed_validation_data( &self, para_id: runtime_types::polkadot_parachain::primitives::Id, expected_persisted_validation_data_hash: ::subxt::utils::H256, ) -> ::subxt::runtime_api::Payload< types::AssumedValidationData, ::core::option::Option<( runtime_types::polkadot_primitives::v4::PersistedValidationData< ::subxt::utils::H256, ::core::primitive::u32, >, runtime_types::polkadot_parachain::primitives::ValidationCodeHash, )>, > { ::subxt::runtime_api::Payload::new_static( "ParachainHost", "assumed_validation_data", types::AssumedValidationData { para_id, expected_persisted_validation_data_hash, }, [ 217u8, 79u8, 215u8, 232u8, 170u8, 10u8, 5u8, 200u8, 85u8, 10u8, 250u8, 106u8, 7u8, 181u8, 176u8, 208u8, 18u8, 28u8, 95u8, 68u8, 227u8, 42u8, 150u8, 20u8, 236u8, 253u8, 89u8, 217u8, 251u8, 131u8, 37u8, 109u8, ], ) } #[doc = " Checks if the given validation outputs pass the acceptance criteria."] pub fn check_validation_outputs( &self, para_id: runtime_types::polkadot_parachain::primitives::Id, outputs: runtime_types::polkadot_primitives::v4::CandidateCommitments< ::core::primitive::u32, >, ) -> ::subxt::runtime_api::Payload< types::CheckValidationOutputs, ::core::primitive::bool, > { ::subxt::runtime_api::Payload::new_static( "ParachainHost", "check_validation_outputs", types::CheckValidationOutputs { para_id, outputs }, [ 130u8, 83u8, 118u8, 171u8, 9u8, 170u8, 167u8, 159u8, 82u8, 50u8, 197u8, 71u8, 14u8, 124u8, 149u8, 187u8, 54u8, 52u8, 115u8, 109u8, 163u8, 58u8, 138u8, 0u8, 197u8, 193u8, 50u8, 215u8, 223u8, 40u8, 94u8, 43u8, ], ) } #[doc = " Returns the session index expected at a child of the block."] #[doc = ""] #[doc = " This can be used to instantiate a `SigningContext`."] pub fn session_index_for_child( &self, ) -> ::subxt::runtime_api::Payload< types::SessionIndexForChild, ::core::primitive::u32, > { ::subxt::runtime_api::Payload::new_static( "ParachainHost", "session_index_for_child", types::SessionIndexForChild {}, [ 135u8, 9u8, 1u8, 244u8, 174u8, 151u8, 247u8, 75u8, 226u8, 216u8, 53u8, 78u8, 26u8, 109u8, 44u8, 77u8, 208u8, 151u8, 94u8, 212u8, 115u8, 43u8, 118u8, 22u8, 140u8, 117u8, 15u8, 224u8, 163u8, 252u8, 90u8, 255u8, ], ) } #[doc = " Fetch the validation code used by a para, making the given `OccupiedCoreAssumption`."] #[doc = ""] #[doc = " Returns `None` if either the para is not registered or the assumption is `Freed`"] #[doc = " and the para already occupies a core."] pub fn validation_code( &self, para_id: runtime_types::polkadot_parachain::primitives::Id, assumption: runtime_types::polkadot_primitives::v4::OccupiedCoreAssumption, ) -> ::subxt::runtime_api::Payload< types::ValidationCode, ::core::option::Option< runtime_types::polkadot_parachain::primitives::ValidationCode, >, > { ::subxt::runtime_api::Payload::new_static( "ParachainHost", "validation_code", types::ValidationCode { para_id, assumption, }, [ 231u8, 15u8, 35u8, 159u8, 96u8, 23u8, 246u8, 125u8, 78u8, 79u8, 158u8, 116u8, 36u8, 199u8, 53u8, 61u8, 242u8, 136u8, 227u8, 174u8, 136u8, 71u8, 143u8, 47u8, 216u8, 21u8, 225u8, 117u8, 50u8, 104u8, 161u8, 232u8, ], ) } #[doc = " Get the receipt of a candidate pending availability. This returns `Some` for any paras"] #[doc = " assigned to occupied cores in `availability_cores` and `None` otherwise."] pub fn candidate_pending_availability( &self, para_id: runtime_types::polkadot_parachain::primitives::Id, ) -> ::subxt::runtime_api::Payload< types::CandidatePendingAvailability, ::core::option::Option< runtime_types::polkadot_primitives::v4::CommittedCandidateReceipt< ::subxt::utils::H256, >, >, > { ::subxt::runtime_api::Payload::new_static( "ParachainHost", "candidate_pending_availability", types::CandidatePendingAvailability { para_id }, [ 154u8, 125u8, 63u8, 252u8, 163u8, 113u8, 154u8, 109u8, 73u8, 53u8, 211u8, 166u8, 170u8, 8u8, 225u8, 175u8, 62u8, 234u8, 76u8, 210u8, 87u8, 82u8, 41u8, 21u8, 138u8, 223u8, 68u8, 91u8, 42u8, 6u8, 92u8, 83u8, ], ) } #[doc = " Get a vector of events concerning candidates that occurred within a block."] pub fn candidate_events( &self, ) -> ::subxt::runtime_api::Payload< types::CandidateEvents, ::std::vec::Vec< runtime_types::polkadot_primitives::v4::CandidateEvent< ::subxt::utils::H256, >, >, > { ::subxt::runtime_api::Payload::new_static( "ParachainHost", "candidate_events", types::CandidateEvents {}, [ 218u8, 47u8, 143u8, 92u8, 30u8, 179u8, 238u8, 141u8, 23u8, 90u8, 106u8, 220u8, 164u8, 111u8, 198u8, 194u8, 157u8, 30u8, 141u8, 161u8, 111u8, 18u8, 67u8, 161u8, 15u8, 10u8, 135u8, 117u8, 102u8, 46u8, 253u8, 200u8, ], ) } #[doc = " Get all the pending inbound messages in the downward message queue for a para."] pub fn dmq_contents( &self, recipient: runtime_types::polkadot_parachain::primitives::Id, ) -> ::subxt::runtime_api::Payload< types::DmqContents, ::std::vec::Vec< runtime_types::polkadot_core_primitives::InboundDownwardMessage< ::core::primitive::u32, >, >, > { ::subxt::runtime_api::Payload::new_static( "ParachainHost", "dmq_contents", types::DmqContents { recipient }, [ 101u8, 11u8, 228u8, 155u8, 29u8, 171u8, 197u8, 250u8, 190u8, 12u8, 91u8, 126u8, 61u8, 245u8, 62u8, 84u8, 87u8, 188u8, 214u8, 179u8, 93u8, 2u8, 253u8, 81u8, 173u8, 68u8, 202u8, 12u8, 153u8, 209u8, 195u8, 218u8, ], ) } #[doc = " Get the contents of all channels addressed to the given recipient. Channels that have no"] #[doc = " messages in them are also included."] pub fn inbound_hrmp_channels_contents( &self, recipient: runtime_types::polkadot_parachain::primitives::Id, ) -> ::subxt::runtime_api::Payload< types::InboundHrmpChannelsContents, ::subxt::utils::KeyedVec< runtime_types::polkadot_parachain::primitives::Id, ::std::vec::Vec< runtime_types::polkadot_core_primitives::InboundHrmpMessage< ::core::primitive::u32, >, >, >, > { ::subxt::runtime_api::Payload::new_static( "ParachainHost", "inbound_hrmp_channels_contents", types::InboundHrmpChannelsContents { recipient }, [ 137u8, 234u8, 23u8, 131u8, 16u8, 41u8, 19u8, 174u8, 230u8, 103u8, 68u8, 163u8, 29u8, 47u8, 228u8, 22u8, 198u8, 42u8, 227u8, 88u8, 186u8, 140u8, 137u8, 176u8, 26u8, 116u8, 172u8, 186u8, 39u8, 27u8, 50u8, 249u8, ], ) } #[doc = " Get the validation code from its hash."] pub fn validation_code_by_hash( &self, hash: runtime_types::polkadot_parachain::primitives::ValidationCodeHash, ) -> ::subxt::runtime_api::Payload< types::ValidationCodeByHash, ::core::option::Option< runtime_types::polkadot_parachain::primitives::ValidationCode, >, > { ::subxt::runtime_api::Payload::new_static( "ParachainHost", "validation_code_by_hash", types::ValidationCodeByHash { hash }, [ 212u8, 83u8, 91u8, 51u8, 38u8, 58u8, 129u8, 5u8, 135u8, 147u8, 201u8, 44u8, 104u8, 153u8, 22u8, 208u8, 205u8, 86u8, 132u8, 249u8, 194u8, 207u8, 171u8, 60u8, 238u8, 180u8, 212u8, 153u8, 111u8, 220u8, 16u8, 60u8, ], ) } #[doc = " Scrape dispute relevant from on-chain, backing votes and resolved disputes."] pub fn on_chain_votes( &self, ) -> ::subxt::runtime_api::Payload< types::OnChainVotes, ::core::option::Option< runtime_types::polkadot_primitives::v4::ScrapedOnChainVotes< ::subxt::utils::H256, >, >, > { ::subxt::runtime_api::Payload::new_static( "ParachainHost", "on_chain_votes", types::OnChainVotes {}, [ 70u8, 204u8, 61u8, 216u8, 163u8, 243u8, 112u8, 157u8, 65u8, 106u8, 165u8, 165u8, 101u8, 152u8, 219u8, 125u8, 225u8, 224u8, 202u8, 121u8, 43u8, 227u8, 83u8, 67u8, 122u8, 186u8, 33u8, 33u8, 54u8, 97u8, 99u8, 161u8, ], ) } #[doc = " Get the session info for the given session, if stored."] #[doc = ""] #[doc = " NOTE: This function is only available since parachain host version 2."] pub fn session_info( &self, index: ::core::primitive::u32, ) -> ::subxt::runtime_api::Payload< types::SessionInfo, ::core::option::Option, > { ::subxt::runtime_api::Payload::new_static( "ParachainHost", "session_info", types::SessionInfo { index }, [ 197u8, 235u8, 25u8, 97u8, 207u8, 55u8, 83u8, 79u8, 10u8, 50u8, 90u8, 28u8, 35u8, 53u8, 98u8, 128u8, 169u8, 228u8, 146u8, 131u8, 211u8, 195u8, 98u8, 24u8, 209u8, 242u8, 118u8, 240u8, 194u8, 82u8, 77u8, 84u8, ], ) } #[doc = " Submits a PVF pre-checking statement into the transaction pool."] #[doc = ""] #[doc = " NOTE: This function is only available since parachain host version 2."] pub fn submit_pvf_check_statement( &self, stmt: runtime_types::polkadot_primitives::v4::PvfCheckStatement, signature: runtime_types::polkadot_primitives::v4::validator_app::Signature, ) -> ::subxt::runtime_api::Payload { ::subxt::runtime_api::Payload::new_static( "ParachainHost", "submit_pvf_check_statement", types::SubmitPvfCheckStatement { stmt, signature }, [ 253u8, 165u8, 60u8, 122u8, 179u8, 73u8, 243u8, 228u8, 171u8, 146u8, 223u8, 182u8, 87u8, 228u8, 72u8, 96u8, 5u8, 231u8, 46u8, 50u8, 69u8, 13u8, 210u8, 244u8, 96u8, 218u8, 114u8, 68u8, 114u8, 82u8, 40u8, 233u8, ], ) } #[doc = " Returns code hashes of PVFs that require pre-checking by validators in the active set."] #[doc = ""] #[doc = " NOTE: This function is only available since parachain host version 2."] pub fn pvfs_require_precheck( &self, ) -> ::subxt::runtime_api::Payload< types::PvfsRequirePrecheck, ::std::vec::Vec< runtime_types::polkadot_parachain::primitives::ValidationCodeHash, >, > { ::subxt::runtime_api::Payload::new_static( "ParachainHost", "pvfs_require_precheck", types::PvfsRequirePrecheck {}, [ 251u8, 162u8, 214u8, 223u8, 70u8, 67u8, 170u8, 19u8, 191u8, 37u8, 233u8, 249u8, 89u8, 28u8, 76u8, 213u8, 194u8, 28u8, 15u8, 199u8, 167u8, 23u8, 139u8, 220u8, 218u8, 223u8, 115u8, 4u8, 95u8, 24u8, 32u8, 29u8, ], ) } #[doc = " Fetch the hash of the validation code used by a para, making the given `OccupiedCoreAssumption`."] #[doc = ""] #[doc = " NOTE: This function is only available since parachain host version 2."] pub fn validation_code_hash( &self, para_id: runtime_types::polkadot_parachain::primitives::Id, assumption: runtime_types::polkadot_primitives::v4::OccupiedCoreAssumption, ) -> ::subxt::runtime_api::Payload< types::ValidationCodeHash, ::core::option::Option< runtime_types::polkadot_parachain::primitives::ValidationCodeHash, >, > { ::subxt::runtime_api::Payload::new_static( "ParachainHost", "validation_code_hash", types::ValidationCodeHash { para_id, assumption, }, [ 226u8, 142u8, 121u8, 182u8, 206u8, 180u8, 8u8, 19u8, 237u8, 84u8, 121u8, 1u8, 126u8, 211u8, 241u8, 133u8, 195u8, 182u8, 116u8, 128u8, 58u8, 81u8, 12u8, 68u8, 79u8, 212u8, 108u8, 178u8, 237u8, 25u8, 203u8, 135u8, ], ) } #[doc = " Returns all onchain disputes."] pub fn disputes( &self, ) -> ::subxt::runtime_api::Payload< types::Disputes, ::std::vec::Vec<( ::core::primitive::u32, runtime_types::polkadot_core_primitives::CandidateHash, runtime_types::polkadot_primitives::v4::DisputeState< ::core::primitive::u32, >, )>, > { ::subxt::runtime_api::Payload::new_static( "ParachainHost", "disputes", types::Disputes {}, [ 117u8, 4u8, 163u8, 44u8, 248u8, 183u8, 136u8, 222u8, 238u8, 108u8, 92u8, 220u8, 5u8, 184u8, 43u8, 233u8, 36u8, 11u8, 221u8, 71u8, 48u8, 162u8, 45u8, 218u8, 99u8, 252u8, 48u8, 244u8, 203u8, 215u8, 149u8, 116u8, ], ) } #[doc = " Returns execution parameters for the session."] pub fn session_executor_params( &self, session_index: ::core::primitive::u32, ) -> ::subxt::runtime_api::Payload< types::SessionExecutorParams, ::core::option::Option< runtime_types::polkadot_primitives::v4::executor_params::ExecutorParams, >, > { ::subxt::runtime_api::Payload::new_static( "ParachainHost", "session_executor_params", types::SessionExecutorParams { session_index }, [ 187u8, 45u8, 218u8, 244u8, 148u8, 61u8, 108u8, 160u8, 113u8, 79u8, 160u8, 106u8, 69u8, 189u8, 42u8, 197u8, 226u8, 233u8, 111u8, 178u8, 169u8, 81u8, 68u8, 235u8, 67u8, 140u8, 45u8, 13u8, 135u8, 162u8, 229u8, 23u8, ], ) } } pub mod types { use super::runtime_types; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Validators {} #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ValidatorGroups {} #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct AvailabilityCores {} #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct PersistedValidationData { pub para_id: runtime_types::polkadot_parachain::primitives::Id, pub assumption: runtime_types::polkadot_primitives::v4::OccupiedCoreAssumption, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct AssumedValidationData { pub para_id: runtime_types::polkadot_parachain::primitives::Id, pub expected_persisted_validation_data_hash: ::subxt::utils::H256, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct CheckValidationOutputs { pub para_id: runtime_types::polkadot_parachain::primitives::Id, pub outputs: runtime_types::polkadot_primitives::v4::CandidateCommitments< ::core::primitive::u32, >, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SessionIndexForChild {} #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ValidationCode { pub para_id: runtime_types::polkadot_parachain::primitives::Id, pub assumption: runtime_types::polkadot_primitives::v4::OccupiedCoreAssumption, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct CandidatePendingAvailability { pub para_id: runtime_types::polkadot_parachain::primitives::Id, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct CandidateEvents {} #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct DmqContents { pub recipient: runtime_types::polkadot_parachain::primitives::Id, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct InboundHrmpChannelsContents { pub recipient: runtime_types::polkadot_parachain::primitives::Id, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ValidationCodeByHash { pub hash: runtime_types::polkadot_parachain::primitives::ValidationCodeHash, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct OnChainVotes {} #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SessionInfo { pub index: ::core::primitive::u32, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SubmitPvfCheckStatement { pub stmt: runtime_types::polkadot_primitives::v4::PvfCheckStatement, pub signature: runtime_types::polkadot_primitives::v4::validator_app::Signature, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct PvfsRequirePrecheck {} #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ValidationCodeHash { pub para_id: runtime_types::polkadot_parachain::primitives::Id, pub assumption: runtime_types::polkadot_primitives::v4::OccupiedCoreAssumption, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Disputes {} #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SessionExecutorParams { pub session_index: ::core::primitive::u32, } } } pub mod beefy_api { use super::root_mod; use super::runtime_types; #[doc = " API necessary for BEEFY voters."] pub struct BeefyApi; impl BeefyApi { #[doc = " Return the block number where BEEFY consensus is enabled/started"] pub fn beefy_genesis( &self, ) -> ::subxt::runtime_api::Payload< types::BeefyGenesis, ::core::option::Option<::core::primitive::u32>, > { ::subxt::runtime_api::Payload::new_static( "BeefyApi", "beefy_genesis", types::BeefyGenesis {}, [ 246u8, 129u8, 31u8, 77u8, 24u8, 47u8, 5u8, 156u8, 64u8, 222u8, 180u8, 78u8, 110u8, 77u8, 218u8, 149u8, 210u8, 151u8, 164u8, 220u8, 165u8, 119u8, 116u8, 220u8, 20u8, 122u8, 37u8, 176u8, 75u8, 218u8, 194u8, 244u8, ], ) } #[doc = " Return the current active BEEFY validator set"] pub fn validator_set( &self, ) -> ::subxt::runtime_api::Payload< types::ValidatorSet, ::core::option::Option< runtime_types::sp_consensus_beefy::ValidatorSet< runtime_types::sp_consensus_beefy::crypto::Public, >, >, > { ::subxt::runtime_api::Payload::new_static( "BeefyApi", "validator_set", types::ValidatorSet {}, [ 26u8, 174u8, 151u8, 215u8, 199u8, 11u8, 123u8, 18u8, 209u8, 187u8, 70u8, 245u8, 59u8, 23u8, 11u8, 26u8, 167u8, 202u8, 83u8, 213u8, 99u8, 74u8, 143u8, 140u8, 34u8, 9u8, 225u8, 217u8, 244u8, 169u8, 30u8, 217u8, ], ) } #[doc = " Submits an unsigned extrinsic to report an equivocation. The caller"] #[doc = " must provide the equivocation proof and a key ownership proof"] #[doc = " (should be obtained using `generate_key_ownership_proof`). The"] #[doc = " extrinsic will be unsigned and should only be accepted for local"] #[doc = " authorship (not to be broadcast to the network). This method returns"] #[doc = " `None` when creation of the extrinsic fails, e.g. if equivocation"] #[doc = " reporting is disabled for the given runtime (i.e. this method is"] #[doc = " hardcoded to return `None`). Only useful in an offchain context."] pub fn submit_report_equivocation_unsigned_extrinsic( &self, equivocation_proof: runtime_types::sp_consensus_beefy::EquivocationProof< ::core::primitive::u32, runtime_types::sp_consensus_beefy::crypto::Public, runtime_types::sp_consensus_beefy::crypto::Signature, >, key_owner_proof: runtime_types::sp_consensus_beefy::OpaqueKeyOwnershipProof, ) -> ::subxt::runtime_api::Payload< types::SubmitReportEquivocationUnsignedExtrinsic, ::core::option::Option<()>, > { ::subxt::runtime_api::Payload::new_static( "BeefyApi", "submit_report_equivocation_unsigned_extrinsic", types::SubmitReportEquivocationUnsignedExtrinsic { equivocation_proof, key_owner_proof, }, [ 92u8, 203u8, 82u8, 194u8, 186u8, 242u8, 194u8, 177u8, 61u8, 148u8, 127u8, 61u8, 96u8, 119u8, 185u8, 139u8, 74u8, 35u8, 77u8, 108u8, 157u8, 80u8, 29u8, 226u8, 136u8, 136u8, 241u8, 212u8, 254u8, 192u8, 39u8, 149u8, ], ) } #[doc = " Generates a proof of key ownership for the given authority in the"] #[doc = " given set. An example usage of this module is coupled with the"] #[doc = " session historical module to prove that a given authority key is"] #[doc = " tied to a given staking identity during a specific session. Proofs"] #[doc = " of key ownership are necessary for submitting equivocation reports."] #[doc = " NOTE: even though the API takes a `set_id` as parameter the current"] #[doc = " implementations ignores this parameter and instead relies on this"] #[doc = " method being called at the correct block height, i.e. any point at"] #[doc = " which the given set id is live on-chain. Future implementations will"] #[doc = " instead use indexed data through an offchain worker, not requiring"] #[doc = " older states to be available."] pub fn generate_key_ownership_proof( &self, set_id: ::core::primitive::u64, authority_id: runtime_types::sp_consensus_beefy::crypto::Public, ) -> ::subxt::runtime_api::Payload< types::GenerateKeyOwnershipProof, ::core::option::Option< runtime_types::sp_consensus_beefy::OpaqueKeyOwnershipProof, >, > { ::subxt::runtime_api::Payload::new_static( "BeefyApi", "generate_key_ownership_proof", types::GenerateKeyOwnershipProof { set_id, authority_id, }, [ 4u8, 194u8, 19u8, 164u8, 208u8, 221u8, 178u8, 109u8, 116u8, 85u8, 175u8, 105u8, 85u8, 29u8, 191u8, 114u8, 169u8, 124u8, 196u8, 198u8, 207u8, 241u8, 248u8, 212u8, 243u8, 153u8, 248u8, 17u8, 220u8, 198u8, 250u8, 73u8, ], ) } } pub mod types { use super::runtime_types; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct BeefyGenesis {} #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ValidatorSet {} #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SubmitReportEquivocationUnsignedExtrinsic { pub equivocation_proof: runtime_types::sp_consensus_beefy::EquivocationProof< ::core::primitive::u32, runtime_types::sp_consensus_beefy::crypto::Public, runtime_types::sp_consensus_beefy::crypto::Signature, >, pub key_owner_proof: runtime_types::sp_consensus_beefy::OpaqueKeyOwnershipProof, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct GenerateKeyOwnershipProof { pub set_id: ::core::primitive::u64, pub authority_id: runtime_types::sp_consensus_beefy::crypto::Public, } } } pub mod mmr_api { use super::root_mod; use super::runtime_types; #[doc = " API to interact with MMR pallet."] pub struct MmrApi; impl MmrApi { #[doc = " Return the on-chain MMR root hash."] pub fn mmr_root( &self, ) -> ::subxt::runtime_api::Payload< types::MmrRoot, ::core::result::Result< ::subxt::utils::H256, runtime_types::sp_mmr_primitives::Error, >, > { ::subxt::runtime_api::Payload::new_static( "MmrApi", "mmr_root", types::MmrRoot {}, [ 148u8, 252u8, 77u8, 233u8, 236u8, 8u8, 119u8, 105u8, 207u8, 161u8, 109u8, 158u8, 211u8, 64u8, 67u8, 216u8, 242u8, 52u8, 122u8, 4u8, 83u8, 113u8, 54u8, 77u8, 165u8, 89u8, 61u8, 159u8, 98u8, 51u8, 45u8, 90u8, ], ) } #[doc = " Return the number of MMR blocks in the chain."] pub fn mmr_leaf_count( &self, ) -> ::subxt::runtime_api::Payload< types::MmrLeafCount, ::core::result::Result< ::core::primitive::u64, runtime_types::sp_mmr_primitives::Error, >, > { ::subxt::runtime_api::Payload::new_static( "MmrApi", "mmr_leaf_count", types::MmrLeafCount {}, [ 165u8, 141u8, 127u8, 184u8, 27u8, 185u8, 251u8, 25u8, 44u8, 93u8, 239u8, 158u8, 104u8, 91u8, 22u8, 87u8, 101u8, 166u8, 90u8, 90u8, 45u8, 105u8, 254u8, 136u8, 233u8, 121u8, 9u8, 216u8, 179u8, 55u8, 126u8, 158u8, ], ) } #[doc = " Generate MMR proof for a series of block numbers. If `best_known_block_number = Some(n)`,"] #[doc = " use historical MMR state at given block height `n`. Else, use current MMR state."] pub fn generate_proof( &self, block_numbers: ::std::vec::Vec<::core::primitive::u32>, best_known_block_number: ::core::option::Option<::core::primitive::u32>, ) -> ::subxt::runtime_api::Payload< types::GenerateProof, ::core::result::Result< ( ::std::vec::Vec, runtime_types::sp_mmr_primitives::Proof<::subxt::utils::H256>, ), runtime_types::sp_mmr_primitives::Error, >, > { ::subxt::runtime_api::Payload::new_static( "MmrApi", "generate_proof", types::GenerateProof { block_numbers, best_known_block_number, }, [ 56u8, 239u8, 77u8, 199u8, 40u8, 38u8, 113u8, 43u8, 65u8, 189u8, 21u8, 81u8, 216u8, 8u8, 3u8, 155u8, 202u8, 186u8, 117u8, 31u8, 140u8, 237u8, 114u8, 30u8, 228u8, 77u8, 171u8, 183u8, 198u8, 198u8, 20u8, 98u8, ], ) } #[doc = " Verify MMR proof against on-chain MMR for a batch of leaves."] #[doc = ""] #[doc = " Note this function will use on-chain MMR root hash and check if the proof matches the hash."] #[doc = " Note, the leaves should be sorted such that corresponding leaves and leaf indices have the"] #[doc = " same position in both the `leaves` vector and the `leaf_indices` vector contained in the [Proof]"] pub fn verify_proof( &self, leaves: ::std::vec::Vec, proof: runtime_types::sp_mmr_primitives::Proof<::subxt::utils::H256>, ) -> ::subxt::runtime_api::Payload< types::VerifyProof, ::core::result::Result<(), runtime_types::sp_mmr_primitives::Error>, > { ::subxt::runtime_api::Payload::new_static( "MmrApi", "verify_proof", types::VerifyProof { leaves, proof }, [ 94u8, 245u8, 92u8, 162u8, 169u8, 237u8, 220u8, 144u8, 134u8, 89u8, 164u8, 205u8, 28u8, 67u8, 164u8, 15u8, 185u8, 160u8, 255u8, 91u8, 167u8, 63u8, 147u8, 199u8, 99u8, 103u8, 43u8, 182u8, 227u8, 1u8, 118u8, 174u8, ], ) } #[doc = " Verify MMR proof against given root hash for a batch of leaves."] #[doc = ""] #[doc = " Note this function does not require any on-chain storage - the"] #[doc = " proof is verified against given MMR root hash."] #[doc = ""] #[doc = " Note, the leaves should be sorted such that corresponding leaves and leaf indices have the"] #[doc = " same position in both the `leaves` vector and the `leaf_indices` vector contained in the [Proof]"] pub fn verify_proof_stateless( &self, root: ::subxt::utils::H256, leaves: ::std::vec::Vec, proof: runtime_types::sp_mmr_primitives::Proof<::subxt::utils::H256>, ) -> ::subxt::runtime_api::Payload< types::VerifyProofStateless, ::core::result::Result<(), runtime_types::sp_mmr_primitives::Error>, > { ::subxt::runtime_api::Payload::new_static( "MmrApi", "verify_proof_stateless", types::VerifyProofStateless { root, leaves, proof, }, [ 100u8, 183u8, 97u8, 190u8, 137u8, 183u8, 228u8, 70u8, 184u8, 42u8, 195u8, 139u8, 234u8, 166u8, 137u8, 206u8, 128u8, 217u8, 40u8, 149u8, 55u8, 107u8, 30u8, 154u8, 234u8, 132u8, 247u8, 37u8, 133u8, 19u8, 141u8, 9u8, ], ) } } pub mod types { use super::runtime_types; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct MmrRoot {} #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct MmrLeafCount {} #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct GenerateProof { pub block_numbers: ::std::vec::Vec<::core::primitive::u32>, pub best_known_block_number: ::core::option::Option<::core::primitive::u32>, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct VerifyProof { pub leaves: ::std::vec::Vec, pub proof: runtime_types::sp_mmr_primitives::Proof<::subxt::utils::H256>, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct VerifyProofStateless { pub root: ::subxt::utils::H256, pub leaves: ::std::vec::Vec, pub proof: runtime_types::sp_mmr_primitives::Proof<::subxt::utils::H256>, } } } pub mod grandpa_api { use super::root_mod; use super::runtime_types; #[doc = " APIs for integrating the GRANDPA finality gadget into runtimes."] #[doc = " This should be implemented on the runtime side."] #[doc = ""] #[doc = " This is primarily used for negotiating authority-set changes for the"] #[doc = " gadget. GRANDPA uses a signaling model of changing authority sets:"] #[doc = " changes should be signaled with a delay of N blocks, and then automatically"] #[doc = " applied in the runtime after those N blocks have passed."] #[doc = ""] #[doc = " The consensus protocol will coordinate the handoff externally."] pub struct GrandpaApi; impl GrandpaApi { #[doc = " Get the current GRANDPA authorities and weights. This should not change except"] #[doc = " for when changes are scheduled and the corresponding delay has passed."] #[doc = ""] #[doc = " When called at block B, it will return the set of authorities that should be"] #[doc = " used to finalize descendants of this block (B+1, B+2, ...). The block B itself"] #[doc = " is finalized by the authorities from block B-1."] pub fn grandpa_authorities( &self, ) -> ::subxt::runtime_api::Payload< types::GrandpaAuthorities, ::std::vec::Vec<( runtime_types::sp_consensus_grandpa::app::Public, ::core::primitive::u64, )>, > { ::subxt::runtime_api::Payload::new_static( "GrandpaApi", "grandpa_authorities", types::GrandpaAuthorities {}, [ 166u8, 76u8, 160u8, 101u8, 242u8, 145u8, 213u8, 10u8, 16u8, 130u8, 230u8, 196u8, 125u8, 152u8, 92u8, 143u8, 119u8, 223u8, 140u8, 189u8, 203u8, 95u8, 52u8, 105u8, 147u8, 107u8, 135u8, 228u8, 62u8, 178u8, 128u8, 33u8, ], ) } #[doc = " Submits an unsigned extrinsic to report an equivocation. The caller"] #[doc = " must provide the equivocation proof and a key ownership proof"] #[doc = " (should be obtained using `generate_key_ownership_proof`). The"] #[doc = " extrinsic will be unsigned and should only be accepted for local"] #[doc = " authorship (not to be broadcast to the network). This method returns"] #[doc = " `None` when creation of the extrinsic fails, e.g. if equivocation"] #[doc = " reporting is disabled for the given runtime (i.e. this method is"] #[doc = " hardcoded to return `None`). Only useful in an offchain context."] pub fn submit_report_equivocation_unsigned_extrinsic( &self, equivocation_proof: runtime_types::sp_consensus_grandpa::EquivocationProof< ::subxt::utils::H256, ::core::primitive::u32, >, key_owner_proof: runtime_types::sp_consensus_grandpa::OpaqueKeyOwnershipProof, ) -> ::subxt::runtime_api::Payload< types::SubmitReportEquivocationUnsignedExtrinsic, ::core::option::Option<()>, > { ::subxt::runtime_api::Payload::new_static( "GrandpaApi", "submit_report_equivocation_unsigned_extrinsic", types::SubmitReportEquivocationUnsignedExtrinsic { equivocation_proof, key_owner_proof, }, [ 125u8, 230u8, 200u8, 151u8, 177u8, 13u8, 231u8, 44u8, 254u8, 4u8, 31u8, 47u8, 190u8, 197u8, 208u8, 155u8, 198u8, 236u8, 136u8, 50u8, 81u8, 35u8, 182u8, 150u8, 200u8, 56u8, 160u8, 180u8, 18u8, 85u8, 4u8, 253u8, ], ) } #[doc = " Generates a proof of key ownership for the given authority in the"] #[doc = " given set. An example usage of this module is coupled with the"] #[doc = " session historical module to prove that a given authority key is"] #[doc = " tied to a given staking identity during a specific session. Proofs"] #[doc = " of key ownership are necessary for submitting equivocation reports."] #[doc = " NOTE: even though the API takes a `set_id` as parameter the current"] #[doc = " implementations ignore this parameter and instead rely on this"] #[doc = " method being called at the correct block height, i.e. any point at"] #[doc = " which the given set id is live on-chain. Future implementations will"] #[doc = " instead use indexed data through an offchain worker, not requiring"] #[doc = " older states to be available."] pub fn generate_key_ownership_proof( &self, set_id: ::core::primitive::u64, authority_id: runtime_types::sp_consensus_grandpa::app::Public, ) -> ::subxt::runtime_api::Payload< types::GenerateKeyOwnershipProof, ::core::option::Option< runtime_types::sp_consensus_grandpa::OpaqueKeyOwnershipProof, >, > { ::subxt::runtime_api::Payload::new_static( "GrandpaApi", "generate_key_ownership_proof", types::GenerateKeyOwnershipProof { set_id, authority_id, }, [ 192u8, 4u8, 250u8, 56u8, 51u8, 13u8, 210u8, 127u8, 92u8, 159u8, 91u8, 139u8, 62u8, 18u8, 63u8, 52u8, 162u8, 69u8, 57u8, 186u8, 134u8, 63u8, 31u8, 88u8, 23u8, 137u8, 131u8, 131u8, 117u8, 253u8, 46u8, 133u8, ], ) } #[doc = " Get current GRANDPA authority set id."] pub fn current_set_id( &self, ) -> ::subxt::runtime_api::Payload { ::subxt::runtime_api::Payload::new_static( "GrandpaApi", "current_set_id", types::CurrentSetId {}, [ 42u8, 230u8, 120u8, 211u8, 156u8, 245u8, 109u8, 86u8, 100u8, 146u8, 234u8, 205u8, 41u8, 183u8, 109u8, 42u8, 17u8, 33u8, 156u8, 25u8, 139u8, 84u8, 101u8, 75u8, 232u8, 198u8, 87u8, 136u8, 218u8, 233u8, 103u8, 156u8, ], ) } } pub mod types { use super::runtime_types; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct GrandpaAuthorities {} #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SubmitReportEquivocationUnsignedExtrinsic { pub equivocation_proof: runtime_types::sp_consensus_grandpa::EquivocationProof< ::subxt::utils::H256, ::core::primitive::u32, >, pub key_owner_proof: runtime_types::sp_consensus_grandpa::OpaqueKeyOwnershipProof, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct GenerateKeyOwnershipProof { pub set_id: ::core::primitive::u64, pub authority_id: runtime_types::sp_consensus_grandpa::app::Public, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct CurrentSetId {} } } pub mod babe_api { use super::root_mod; use super::runtime_types; #[doc = " API necessary for block authorship with BABE."] pub struct BabeApi; impl BabeApi { #[doc = " Return the configuration for BABE."] pub fn configuration( &self, ) -> ::subxt::runtime_api::Payload< types::Configuration, runtime_types::sp_consensus_babe::BabeConfiguration, > { ::subxt::runtime_api::Payload::new_static( "BabeApi", "configuration", types::Configuration {}, [ 94u8, 3u8, 187u8, 249u8, 239u8, 178u8, 74u8, 180u8, 159u8, 1u8, 114u8, 106u8, 121u8, 13u8, 242u8, 142u8, 148u8, 59u8, 232u8, 229u8, 242u8, 166u8, 230u8, 134u8, 161u8, 101u8, 45u8, 95u8, 118u8, 139u8, 144u8, 168u8, ], ) } #[doc = " Returns the slot that started the current epoch."] pub fn current_epoch_start( &self, ) -> ::subxt::runtime_api::Payload< types::CurrentEpochStart, runtime_types::sp_consensus_slots::Slot, > { ::subxt::runtime_api::Payload::new_static( "BabeApi", "current_epoch_start", types::CurrentEpochStart {}, [ 122u8, 125u8, 246u8, 170u8, 27u8, 50u8, 128u8, 137u8, 228u8, 62u8, 145u8, 64u8, 65u8, 119u8, 166u8, 237u8, 115u8, 92u8, 125u8, 124u8, 11u8, 33u8, 96u8, 88u8, 88u8, 122u8, 141u8, 137u8, 58u8, 182u8, 148u8, 170u8, ], ) } #[doc = " Returns information regarding the current epoch."] pub fn current_epoch( &self, ) -> ::subxt::runtime_api::Payload< types::CurrentEpoch, runtime_types::sp_consensus_babe::Epoch, > { ::subxt::runtime_api::Payload::new_static( "BabeApi", "current_epoch", types::CurrentEpoch {}, [ 232u8, 243u8, 129u8, 8u8, 254u8, 134u8, 15u8, 29u8, 174u8, 98u8, 249u8, 165u8, 104u8, 134u8, 102u8, 116u8, 92u8, 70u8, 116u8, 107u8, 161u8, 131u8, 122u8, 23u8, 108u8, 88u8, 11u8, 95u8, 175u8, 21u8, 54u8, 158u8, ], ) } #[doc = " Returns information regarding the next epoch (which was already"] #[doc = " previously announced)."] pub fn next_epoch( &self, ) -> ::subxt::runtime_api::Payload< types::NextEpoch, runtime_types::sp_consensus_babe::Epoch, > { ::subxt::runtime_api::Payload::new_static( "BabeApi", "next_epoch", types::NextEpoch {}, [ 185u8, 92u8, 222u8, 66u8, 8u8, 41u8, 95u8, 28u8, 145u8, 214u8, 27u8, 236u8, 228u8, 42u8, 184u8, 185u8, 255u8, 169u8, 59u8, 63u8, 68u8, 50u8, 97u8, 72u8, 77u8, 181u8, 120u8, 30u8, 233u8, 217u8, 89u8, 80u8, ], ) } #[doc = " Generates a proof of key ownership for the given authority in the"] #[doc = " current epoch. An example usage of this module is coupled with the"] #[doc = " session historical module to prove that a given authority key is"] #[doc = " tied to a given staking identity during a specific session. Proofs"] #[doc = " of key ownership are necessary for submitting equivocation reports."] #[doc = " NOTE: even though the API takes a `slot` as parameter the current"] #[doc = " implementations ignores this parameter and instead relies on this"] #[doc = " method being called at the correct block height, i.e. any point at"] #[doc = " which the epoch for the given slot is live on-chain. Future"] #[doc = " implementations will instead use indexed data through an offchain"] #[doc = " worker, not requiring older states to be available."] pub fn generate_key_ownership_proof( &self, slot: runtime_types::sp_consensus_slots::Slot, authority_id: runtime_types::sp_consensus_babe::app::Public, ) -> ::subxt::runtime_api::Payload< types::GenerateKeyOwnershipProof, ::core::option::Option< runtime_types::sp_consensus_babe::OpaqueKeyOwnershipProof, >, > { ::subxt::runtime_api::Payload::new_static( "BabeApi", "generate_key_ownership_proof", types::GenerateKeyOwnershipProof { slot, authority_id }, [ 129u8, 33u8, 146u8, 23u8, 214u8, 217u8, 211u8, 76u8, 213u8, 195u8, 64u8, 182u8, 252u8, 42u8, 94u8, 121u8, 115u8, 198u8, 9u8, 45u8, 213u8, 239u8, 48u8, 237u8, 16u8, 104u8, 233u8, 246u8, 99u8, 66u8, 177u8, 60u8, ], ) } #[doc = " Submits an unsigned extrinsic to report an equivocation. The caller"] #[doc = " must provide the equivocation proof and a key ownership proof"] #[doc = " (should be obtained using `generate_key_ownership_proof`). The"] #[doc = " extrinsic will be unsigned and should only be accepted for local"] #[doc = " authorship (not to be broadcast to the network). This method returns"] #[doc = " `None` when creation of the extrinsic fails, e.g. if equivocation"] #[doc = " reporting is disabled for the given runtime (i.e. this method is"] #[doc = " hardcoded to return `None`). Only useful in an offchain context."] pub fn submit_report_equivocation_unsigned_extrinsic( &self, equivocation_proof: runtime_types::sp_consensus_slots::EquivocationProof< runtime_types::sp_runtime::generic::header::Header< ::core::primitive::u32, runtime_types::sp_runtime::traits::BlakeTwo256, >, runtime_types::sp_consensus_babe::app::Public, >, key_owner_proof: runtime_types::sp_consensus_babe::OpaqueKeyOwnershipProof, ) -> ::subxt::runtime_api::Payload< types::SubmitReportEquivocationUnsignedExtrinsic, ::core::option::Option<()>, > { ::subxt::runtime_api::Payload::new_static( "BabeApi", "submit_report_equivocation_unsigned_extrinsic", types::SubmitReportEquivocationUnsignedExtrinsic { equivocation_proof, key_owner_proof, }, [ 246u8, 96u8, 99u8, 104u8, 13u8, 88u8, 201u8, 38u8, 92u8, 57u8, 253u8, 173u8, 123u8, 68u8, 14u8, 101u8, 57u8, 89u8, 153u8, 236u8, 99u8, 117u8, 202u8, 79u8, 213u8, 216u8, 216u8, 97u8, 107u8, 68u8, 89u8, 138u8, ], ) } } pub mod types { use super::runtime_types; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Configuration {} #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct CurrentEpochStart {} #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct CurrentEpoch {} #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct NextEpoch {} #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct GenerateKeyOwnershipProof { pub slot: runtime_types::sp_consensus_slots::Slot, pub authority_id: runtime_types::sp_consensus_babe::app::Public, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SubmitReportEquivocationUnsignedExtrinsic { pub equivocation_proof: runtime_types::sp_consensus_slots::EquivocationProof< runtime_types::sp_runtime::generic::header::Header< ::core::primitive::u32, runtime_types::sp_runtime::traits::BlakeTwo256, >, runtime_types::sp_consensus_babe::app::Public, >, pub key_owner_proof: runtime_types::sp_consensus_babe::OpaqueKeyOwnershipProof, } } } pub mod authority_discovery_api { use super::root_mod; use super::runtime_types; #[doc = " The authority discovery api."] #[doc = ""] #[doc = " This api is used by the `client/authority-discovery` module to retrieve identifiers"] #[doc = " of the current and next authority set."] pub struct AuthorityDiscoveryApi; impl AuthorityDiscoveryApi { #[doc = " Retrieve authority identifiers of the current and next authority set."] pub fn authorities( &self, ) -> ::subxt::runtime_api::Payload< types::Authorities, ::std::vec::Vec, > { ::subxt::runtime_api::Payload::new_static( "AuthorityDiscoveryApi", "authorities", types::Authorities {}, [ 231u8, 109u8, 175u8, 33u8, 103u8, 6u8, 157u8, 241u8, 62u8, 92u8, 246u8, 9u8, 109u8, 137u8, 233u8, 96u8, 103u8, 59u8, 201u8, 132u8, 102u8, 32u8, 19u8, 183u8, 106u8, 146u8, 41u8, 172u8, 147u8, 55u8, 156u8, 77u8, ], ) } } pub mod types { use super::runtime_types; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Authorities {} } } pub mod session_keys { use super::root_mod; use super::runtime_types; #[doc = " Session keys runtime api."] pub struct SessionKeys; impl SessionKeys { #[doc = " Generate a set of session keys with optionally using the given seed."] #[doc = " The keys should be stored within the keystore exposed via runtime"] #[doc = " externalities."] #[doc = ""] #[doc = " The seed needs to be a valid `utf8` string."] #[doc = ""] #[doc = " Returns the concatenated SCALE encoded public keys."] pub fn generate_session_keys( &self, seed: ::core::option::Option<::std::vec::Vec<::core::primitive::u8>>, ) -> ::subxt::runtime_api::Payload< types::GenerateSessionKeys, ::std::vec::Vec<::core::primitive::u8>, > { ::subxt::runtime_api::Payload::new_static( "SessionKeys", "generate_session_keys", types::GenerateSessionKeys { seed }, [ 169u8, 35u8, 108u8, 136u8, 239u8, 85u8, 250u8, 171u8, 92u8, 77u8, 200u8, 52u8, 59u8, 248u8, 134u8, 208u8, 101u8, 170u8, 160u8, 251u8, 245u8, 224u8, 34u8, 132u8, 85u8, 24u8, 162u8, 180u8, 151u8, 65u8, 51u8, 62u8, ], ) } #[doc = " Decode the given public session keys."] #[doc = ""] #[doc = " Returns the list of public raw public keys + key type."] pub fn decode_session_keys( &self, encoded: ::std::vec::Vec<::core::primitive::u8>, ) -> ::subxt::runtime_api::Payload< types::DecodeSessionKeys, ::core::option::Option< ::std::vec::Vec<( ::std::vec::Vec<::core::primitive::u8>, runtime_types::sp_core::crypto::KeyTypeId, )>, >, > { ::subxt::runtime_api::Payload::new_static( "SessionKeys", "decode_session_keys", types::DecodeSessionKeys { encoded }, [ 156u8, 244u8, 114u8, 80u8, 184u8, 235u8, 37u8, 160u8, 130u8, 28u8, 209u8, 72u8, 5u8, 200u8, 200u8, 213u8, 216u8, 137u8, 160u8, 10u8, 6u8, 238u8, 89u8, 31u8, 165u8, 174u8, 51u8, 198u8, 161u8, 156u8, 202u8, 151u8, ], ) } } pub mod types { use super::runtime_types; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct GenerateSessionKeys { pub seed: ::core::option::Option<::std::vec::Vec<::core::primitive::u8>>, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct DecodeSessionKeys { pub encoded: ::std::vec::Vec<::core::primitive::u8>, } } } pub mod account_nonce_api { use super::root_mod; use super::runtime_types; #[doc = " The API to query account nonce (aka transaction index)."] pub struct AccountNonceApi; impl AccountNonceApi { #[doc = " Get current account nonce of given `AccountId`."] pub fn account_nonce( &self, account: ::subxt::utils::AccountId32, ) -> ::subxt::runtime_api::Payload { ::subxt::runtime_api::Payload::new_static( "AccountNonceApi", "account_nonce", types::AccountNonce { account }, [ 231u8, 82u8, 7u8, 227u8, 131u8, 2u8, 215u8, 252u8, 173u8, 82u8, 11u8, 103u8, 200u8, 25u8, 114u8, 116u8, 79u8, 229u8, 152u8, 150u8, 236u8, 37u8, 101u8, 26u8, 220u8, 146u8, 182u8, 101u8, 73u8, 55u8, 191u8, 171u8, ], ) } } pub mod types { use super::runtime_types; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct AccountNonce { pub account: ::subxt::utils::AccountId32, } } } pub mod transaction_payment_api { use super::root_mod; use super::runtime_types; pub struct TransactionPaymentApi; impl TransactionPaymentApi { pub fn query_info( &self, uxt : runtime_types :: sp_runtime :: generic :: unchecked_extrinsic :: UncheckedExtrinsic < :: subxt :: utils :: MultiAddress < :: subxt :: utils :: AccountId32 , () > , runtime_types :: polkadot_runtime :: RuntimeCall , runtime_types :: sp_runtime :: MultiSignature , (runtime_types :: frame_system :: extensions :: check_non_zero_sender :: CheckNonZeroSender , runtime_types :: frame_system :: extensions :: check_spec_version :: CheckSpecVersion , runtime_types :: frame_system :: extensions :: check_tx_version :: CheckTxVersion , runtime_types :: frame_system :: extensions :: check_genesis :: CheckGenesis , runtime_types :: frame_system :: extensions :: check_mortality :: CheckMortality , runtime_types :: frame_system :: extensions :: check_nonce :: CheckNonce , runtime_types :: frame_system :: extensions :: check_weight :: CheckWeight , runtime_types :: pallet_transaction_payment :: ChargeTransactionPayment , runtime_types :: polkadot_runtime_common :: claims :: PrevalidateAttests ,) >, len: ::core::primitive::u32, ) -> ::subxt::runtime_api::Payload< types::QueryInfo, runtime_types::pallet_transaction_payment::types::RuntimeDispatchInfo< ::core::primitive::u128, runtime_types::sp_weights::weight_v2::Weight, >, > { ::subxt::runtime_api::Payload::new_static( "TransactionPaymentApi", "query_info", types::QueryInfo { uxt, len }, [ 105u8, 184u8, 31u8, 255u8, 154u8, 206u8, 112u8, 245u8, 135u8, 114u8, 63u8, 219u8, 244u8, 245u8, 90u8, 185u8, 99u8, 24u8, 80u8, 67u8, 29u8, 137u8, 42u8, 248u8, 19u8, 227u8, 200u8, 7u8, 253u8, 118u8, 140u8, 53u8, ], ) } pub fn query_fee_details( &self, uxt : runtime_types :: sp_runtime :: generic :: unchecked_extrinsic :: UncheckedExtrinsic < :: subxt :: utils :: MultiAddress < :: subxt :: utils :: AccountId32 , () > , runtime_types :: polkadot_runtime :: RuntimeCall , runtime_types :: sp_runtime :: MultiSignature , (runtime_types :: frame_system :: extensions :: check_non_zero_sender :: CheckNonZeroSender , runtime_types :: frame_system :: extensions :: check_spec_version :: CheckSpecVersion , runtime_types :: frame_system :: extensions :: check_tx_version :: CheckTxVersion , runtime_types :: frame_system :: extensions :: check_genesis :: CheckGenesis , runtime_types :: frame_system :: extensions :: check_mortality :: CheckMortality , runtime_types :: frame_system :: extensions :: check_nonce :: CheckNonce , runtime_types :: frame_system :: extensions :: check_weight :: CheckWeight , runtime_types :: pallet_transaction_payment :: ChargeTransactionPayment , runtime_types :: polkadot_runtime_common :: claims :: PrevalidateAttests ,) >, len: ::core::primitive::u32, ) -> ::subxt::runtime_api::Payload< types::QueryFeeDetails, runtime_types::pallet_transaction_payment::types::FeeDetails< ::core::primitive::u128, >, > { ::subxt::runtime_api::Payload::new_static( "TransactionPaymentApi", "query_fee_details", types::QueryFeeDetails { uxt, len }, [ 226u8, 161u8, 181u8, 195u8, 172u8, 51u8, 19u8, 162u8, 77u8, 23u8, 200u8, 239u8, 132u8, 197u8, 106u8, 138u8, 122u8, 34u8, 234u8, 116u8, 104u8, 181u8, 213u8, 72u8, 154u8, 44u8, 110u8, 149u8, 49u8, 16u8, 223u8, 245u8, ], ) } pub fn query_weight_to_fee( &self, weight: runtime_types::sp_weights::weight_v2::Weight, ) -> ::subxt::runtime_api::Payload { ::subxt::runtime_api::Payload::new_static( "TransactionPaymentApi", "query_weight_to_fee", types::QueryWeightToFee { weight }, [ 45u8, 47u8, 133u8, 75u8, 72u8, 23u8, 150u8, 14u8, 71u8, 36u8, 148u8, 48u8, 133u8, 175u8, 154u8, 76u8, 168u8, 104u8, 47u8, 33u8, 96u8, 206u8, 67u8, 133u8, 104u8, 206u8, 126u8, 53u8, 225u8, 134u8, 14u8, 140u8, ], ) } pub fn query_length_to_fee( &self, length: ::core::primitive::u32, ) -> ::subxt::runtime_api::Payload { ::subxt::runtime_api::Payload::new_static( "TransactionPaymentApi", "query_length_to_fee", types::QueryLengthToFee { length }, [ 92u8, 132u8, 29u8, 119u8, 66u8, 11u8, 196u8, 224u8, 129u8, 23u8, 249u8, 12u8, 32u8, 28u8, 92u8, 50u8, 188u8, 101u8, 203u8, 229u8, 248u8, 216u8, 130u8, 150u8, 212u8, 161u8, 81u8, 254u8, 116u8, 89u8, 162u8, 48u8, ], ) } } pub mod types { use super::runtime_types; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct QueryInfo { pub uxt : runtime_types :: sp_runtime :: generic :: unchecked_extrinsic :: UncheckedExtrinsic < :: subxt :: utils :: MultiAddress < :: subxt :: utils :: AccountId32 , () > , runtime_types :: polkadot_runtime :: RuntimeCall , runtime_types :: sp_runtime :: MultiSignature , (runtime_types :: frame_system :: extensions :: check_non_zero_sender :: CheckNonZeroSender , runtime_types :: frame_system :: extensions :: check_spec_version :: CheckSpecVersion , runtime_types :: frame_system :: extensions :: check_tx_version :: CheckTxVersion , runtime_types :: frame_system :: extensions :: check_genesis :: CheckGenesis , runtime_types :: frame_system :: extensions :: check_mortality :: CheckMortality , runtime_types :: frame_system :: extensions :: check_nonce :: CheckNonce , runtime_types :: frame_system :: extensions :: check_weight :: CheckWeight , runtime_types :: pallet_transaction_payment :: ChargeTransactionPayment , runtime_types :: polkadot_runtime_common :: claims :: PrevalidateAttests ,) > , pub len : :: core :: primitive :: u32 , } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct QueryFeeDetails { pub uxt : runtime_types :: sp_runtime :: generic :: unchecked_extrinsic :: UncheckedExtrinsic < :: subxt :: utils :: MultiAddress < :: subxt :: utils :: AccountId32 , () > , runtime_types :: polkadot_runtime :: RuntimeCall , runtime_types :: sp_runtime :: MultiSignature , (runtime_types :: frame_system :: extensions :: check_non_zero_sender :: CheckNonZeroSender , runtime_types :: frame_system :: extensions :: check_spec_version :: CheckSpecVersion , runtime_types :: frame_system :: extensions :: check_tx_version :: CheckTxVersion , runtime_types :: frame_system :: extensions :: check_genesis :: CheckGenesis , runtime_types :: frame_system :: extensions :: check_mortality :: CheckMortality , runtime_types :: frame_system :: extensions :: check_nonce :: CheckNonce , runtime_types :: frame_system :: extensions :: check_weight :: CheckWeight , runtime_types :: pallet_transaction_payment :: ChargeTransactionPayment , runtime_types :: polkadot_runtime_common :: claims :: PrevalidateAttests ,) > , pub len : :: core :: primitive :: u32 , } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct QueryWeightToFee { pub weight: runtime_types::sp_weights::weight_v2::Weight, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct QueryLengthToFee { pub length: ::core::primitive::u32, } } } pub mod transaction_payment_call_api { use super::root_mod; use super::runtime_types; pub struct TransactionPaymentCallApi; impl TransactionPaymentCallApi { #[doc = " Query information of a dispatch class, weight, and fee of a given encoded `Call`."] pub fn query_call_info( &self, call: runtime_types::polkadot_runtime::RuntimeCall, len: ::core::primitive::u32, ) -> ::subxt::runtime_api::Payload< types::QueryCallInfo, runtime_types::pallet_transaction_payment::types::RuntimeDispatchInfo< ::core::primitive::u128, runtime_types::sp_weights::weight_v2::Weight, >, > { ::subxt::runtime_api::Payload::new_static( "TransactionPaymentCallApi", "query_call_info", types::QueryCallInfo { call, len }, [ 29u8, 82u8, 32u8, 251u8, 3u8, 82u8, 211u8, 160u8, 52u8, 215u8, 106u8, 79u8, 177u8, 140u8, 42u8, 162u8, 112u8, 210u8, 88u8, 98u8, 197u8, 84u8, 252u8, 67u8, 118u8, 163u8, 230u8, 207u8, 14u8, 119u8, 12u8, 15u8, ], ) } #[doc = " Query fee details of a given encoded `Call`."] pub fn query_call_fee_details( &self, call: runtime_types::polkadot_runtime::RuntimeCall, len: ::core::primitive::u32, ) -> ::subxt::runtime_api::Payload< types::QueryCallFeeDetails, runtime_types::pallet_transaction_payment::types::FeeDetails< ::core::primitive::u128, >, > { ::subxt::runtime_api::Payload::new_static( "TransactionPaymentCallApi", "query_call_fee_details", types::QueryCallFeeDetails { call, len }, [ 201u8, 59u8, 240u8, 67u8, 68u8, 119u8, 113u8, 28u8, 165u8, 247u8, 174u8, 107u8, 143u8, 107u8, 97u8, 129u8, 145u8, 128u8, 211u8, 4u8, 229u8, 154u8, 31u8, 108u8, 78u8, 9u8, 41u8, 153u8, 251u8, 115u8, 126u8, 252u8, ], ) } #[doc = " Query the output of the current `WeightToFee` given some input."] pub fn query_weight_to_fee( &self, weight: runtime_types::sp_weights::weight_v2::Weight, ) -> ::subxt::runtime_api::Payload { ::subxt::runtime_api::Payload::new_static( "TransactionPaymentCallApi", "query_weight_to_fee", types::QueryWeightToFee { weight }, [ 88u8, 171u8, 36u8, 225u8, 227u8, 44u8, 19u8, 249u8, 142u8, 183u8, 164u8, 31u8, 32u8, 26u8, 157u8, 81u8, 128u8, 24u8, 163u8, 191u8, 228u8, 17u8, 217u8, 197u8, 135u8, 10u8, 178u8, 253u8, 155u8, 209u8, 136u8, 253u8, ], ) } #[doc = " Query the output of the current `LengthToFee` given some input."] pub fn query_length_to_fee( &self, length: ::core::primitive::u32, ) -> ::subxt::runtime_api::Payload { ::subxt::runtime_api::Payload::new_static( "TransactionPaymentCallApi", "query_length_to_fee", types::QueryLengthToFee { length }, [ 246u8, 40u8, 4u8, 160u8, 152u8, 94u8, 170u8, 53u8, 205u8, 122u8, 5u8, 69u8, 70u8, 25u8, 128u8, 156u8, 119u8, 134u8, 116u8, 147u8, 14u8, 164u8, 65u8, 140u8, 86u8, 13u8, 250u8, 218u8, 89u8, 95u8, 234u8, 228u8, ], ) } } pub mod types { use super::runtime_types; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct QueryCallInfo { pub call: runtime_types::polkadot_runtime::RuntimeCall, pub len: ::core::primitive::u32, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct QueryCallFeeDetails { pub call: runtime_types::polkadot_runtime::RuntimeCall, pub len: ::core::primitive::u32, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct QueryWeightToFee { pub weight: runtime_types::sp_weights::weight_v2::Weight, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct QueryLengthToFee { pub length: ::core::primitive::u32, } } } } pub struct ConstantsApi; impl ConstantsApi { pub fn system(&self) -> system::constants::ConstantsApi { system::constants::ConstantsApi } pub fn scheduler(&self) -> scheduler::constants::ConstantsApi { scheduler::constants::ConstantsApi } pub fn babe(&self) -> babe::constants::ConstantsApi { babe::constants::ConstantsApi } pub fn timestamp(&self) -> timestamp::constants::ConstantsApi { timestamp::constants::ConstantsApi } pub fn indices(&self) -> indices::constants::ConstantsApi { indices::constants::ConstantsApi } pub fn balances(&self) -> balances::constants::ConstantsApi { balances::constants::ConstantsApi } pub fn transaction_payment(&self) -> transaction_payment::constants::ConstantsApi { transaction_payment::constants::ConstantsApi } pub fn staking(&self) -> staking::constants::ConstantsApi { staking::constants::ConstantsApi } pub fn grandpa(&self) -> grandpa::constants::ConstantsApi { grandpa::constants::ConstantsApi } pub fn im_online(&self) -> im_online::constants::ConstantsApi { im_online::constants::ConstantsApi } pub fn democracy(&self) -> democracy::constants::ConstantsApi { democracy::constants::ConstantsApi } pub fn council(&self) -> council::constants::ConstantsApi { council::constants::ConstantsApi } pub fn technical_committee(&self) -> technical_committee::constants::ConstantsApi { technical_committee::constants::ConstantsApi } pub fn phragmen_election(&self) -> phragmen_election::constants::ConstantsApi { phragmen_election::constants::ConstantsApi } pub fn treasury(&self) -> treasury::constants::ConstantsApi { treasury::constants::ConstantsApi } pub fn conviction_voting(&self) -> conviction_voting::constants::ConstantsApi { conviction_voting::constants::ConstantsApi } pub fn referenda(&self) -> referenda::constants::ConstantsApi { referenda::constants::ConstantsApi } pub fn claims(&self) -> claims::constants::ConstantsApi { claims::constants::ConstantsApi } pub fn vesting(&self) -> vesting::constants::ConstantsApi { vesting::constants::ConstantsApi } pub fn utility(&self) -> utility::constants::ConstantsApi { utility::constants::ConstantsApi } pub fn identity(&self) -> identity::constants::ConstantsApi { identity::constants::ConstantsApi } pub fn proxy(&self) -> proxy::constants::ConstantsApi { proxy::constants::ConstantsApi } pub fn multisig(&self) -> multisig::constants::ConstantsApi { multisig::constants::ConstantsApi } pub fn bounties(&self) -> bounties::constants::ConstantsApi { bounties::constants::ConstantsApi } pub fn child_bounties(&self) -> child_bounties::constants::ConstantsApi { child_bounties::constants::ConstantsApi } pub fn tips(&self) -> tips::constants::ConstantsApi { tips::constants::ConstantsApi } pub fn election_provider_multi_phase( &self, ) -> election_provider_multi_phase::constants::ConstantsApi { election_provider_multi_phase::constants::ConstantsApi } pub fn voter_list(&self) -> voter_list::constants::ConstantsApi { voter_list::constants::ConstantsApi } pub fn nomination_pools(&self) -> nomination_pools::constants::ConstantsApi { nomination_pools::constants::ConstantsApi } pub fn fast_unstake(&self) -> fast_unstake::constants::ConstantsApi { fast_unstake::constants::ConstantsApi } pub fn paras(&self) -> paras::constants::ConstantsApi { paras::constants::ConstantsApi } pub fn registrar(&self) -> registrar::constants::ConstantsApi { registrar::constants::ConstantsApi } pub fn slots(&self) -> slots::constants::ConstantsApi { slots::constants::ConstantsApi } pub fn auctions(&self) -> auctions::constants::ConstantsApi { auctions::constants::ConstantsApi } pub fn crowdloan(&self) -> crowdloan::constants::ConstantsApi { crowdloan::constants::ConstantsApi } } pub struct StorageApi; impl StorageApi { pub fn system(&self) -> system::storage::StorageApi { system::storage::StorageApi } pub fn scheduler(&self) -> scheduler::storage::StorageApi { scheduler::storage::StorageApi } pub fn preimage(&self) -> preimage::storage::StorageApi { preimage::storage::StorageApi } pub fn babe(&self) -> babe::storage::StorageApi { babe::storage::StorageApi } pub fn timestamp(&self) -> timestamp::storage::StorageApi { timestamp::storage::StorageApi } pub fn indices(&self) -> indices::storage::StorageApi { indices::storage::StorageApi } pub fn balances(&self) -> balances::storage::StorageApi { balances::storage::StorageApi } pub fn transaction_payment(&self) -> transaction_payment::storage::StorageApi { transaction_payment::storage::StorageApi } pub fn authorship(&self) -> authorship::storage::StorageApi { authorship::storage::StorageApi } pub fn staking(&self) -> staking::storage::StorageApi { staking::storage::StorageApi } pub fn offences(&self) -> offences::storage::StorageApi { offences::storage::StorageApi } pub fn session(&self) -> session::storage::StorageApi { session::storage::StorageApi } pub fn grandpa(&self) -> grandpa::storage::StorageApi { grandpa::storage::StorageApi } pub fn im_online(&self) -> im_online::storage::StorageApi { im_online::storage::StorageApi } pub fn democracy(&self) -> democracy::storage::StorageApi { democracy::storage::StorageApi } pub fn council(&self) -> council::storage::StorageApi { council::storage::StorageApi } pub fn technical_committee(&self) -> technical_committee::storage::StorageApi { technical_committee::storage::StorageApi } pub fn phragmen_election(&self) -> phragmen_election::storage::StorageApi { phragmen_election::storage::StorageApi } pub fn technical_membership(&self) -> technical_membership::storage::StorageApi { technical_membership::storage::StorageApi } pub fn treasury(&self) -> treasury::storage::StorageApi { treasury::storage::StorageApi } pub fn conviction_voting(&self) -> conviction_voting::storage::StorageApi { conviction_voting::storage::StorageApi } pub fn referenda(&self) -> referenda::storage::StorageApi { referenda::storage::StorageApi } pub fn whitelist(&self) -> whitelist::storage::StorageApi { whitelist::storage::StorageApi } pub fn claims(&self) -> claims::storage::StorageApi { claims::storage::StorageApi } pub fn vesting(&self) -> vesting::storage::StorageApi { vesting::storage::StorageApi } pub fn identity(&self) -> identity::storage::StorageApi { identity::storage::StorageApi } pub fn proxy(&self) -> proxy::storage::StorageApi { proxy::storage::StorageApi } pub fn multisig(&self) -> multisig::storage::StorageApi { multisig::storage::StorageApi } pub fn bounties(&self) -> bounties::storage::StorageApi { bounties::storage::StorageApi } pub fn child_bounties(&self) -> child_bounties::storage::StorageApi { child_bounties::storage::StorageApi } pub fn tips(&self) -> tips::storage::StorageApi { tips::storage::StorageApi } pub fn election_provider_multi_phase( &self, ) -> election_provider_multi_phase::storage::StorageApi { election_provider_multi_phase::storage::StorageApi } pub fn voter_list(&self) -> voter_list::storage::StorageApi { voter_list::storage::StorageApi } pub fn nomination_pools(&self) -> nomination_pools::storage::StorageApi { nomination_pools::storage::StorageApi } pub fn fast_unstake(&self) -> fast_unstake::storage::StorageApi { fast_unstake::storage::StorageApi } pub fn configuration(&self) -> configuration::storage::StorageApi { configuration::storage::StorageApi } pub fn paras_shared(&self) -> paras_shared::storage::StorageApi { paras_shared::storage::StorageApi } pub fn para_inclusion(&self) -> para_inclusion::storage::StorageApi { para_inclusion::storage::StorageApi } pub fn para_inherent(&self) -> para_inherent::storage::StorageApi { para_inherent::storage::StorageApi } pub fn para_scheduler(&self) -> para_scheduler::storage::StorageApi { para_scheduler::storage::StorageApi } pub fn paras(&self) -> paras::storage::StorageApi { paras::storage::StorageApi } pub fn initializer(&self) -> initializer::storage::StorageApi { initializer::storage::StorageApi } pub fn dmp(&self) -> dmp::storage::StorageApi { dmp::storage::StorageApi } pub fn ump(&self) -> ump::storage::StorageApi { ump::storage::StorageApi } pub fn hrmp(&self) -> hrmp::storage::StorageApi { hrmp::storage::StorageApi } pub fn para_session_info(&self) -> para_session_info::storage::StorageApi { para_session_info::storage::StorageApi } pub fn paras_disputes(&self) -> paras_disputes::storage::StorageApi { paras_disputes::storage::StorageApi } pub fn paras_slashing(&self) -> paras_slashing::storage::StorageApi { paras_slashing::storage::StorageApi } pub fn registrar(&self) -> registrar::storage::StorageApi { registrar::storage::StorageApi } pub fn slots(&self) -> slots::storage::StorageApi { slots::storage::StorageApi } pub fn auctions(&self) -> auctions::storage::StorageApi { auctions::storage::StorageApi } pub fn crowdloan(&self) -> crowdloan::storage::StorageApi { crowdloan::storage::StorageApi } pub fn xcm_pallet(&self) -> xcm_pallet::storage::StorageApi { xcm_pallet::storage::StorageApi } } pub struct TransactionApi; impl TransactionApi { pub fn system(&self) -> system::calls::TransactionApi { system::calls::TransactionApi } pub fn scheduler(&self) -> scheduler::calls::TransactionApi { scheduler::calls::TransactionApi } pub fn preimage(&self) -> preimage::calls::TransactionApi { preimage::calls::TransactionApi } pub fn babe(&self) -> babe::calls::TransactionApi { babe::calls::TransactionApi } pub fn timestamp(&self) -> timestamp::calls::TransactionApi { timestamp::calls::TransactionApi } pub fn indices(&self) -> indices::calls::TransactionApi { indices::calls::TransactionApi } pub fn balances(&self) -> balances::calls::TransactionApi { balances::calls::TransactionApi } pub fn staking(&self) -> staking::calls::TransactionApi { staking::calls::TransactionApi } pub fn session(&self) -> session::calls::TransactionApi { session::calls::TransactionApi } pub fn grandpa(&self) -> grandpa::calls::TransactionApi { grandpa::calls::TransactionApi } pub fn im_online(&self) -> im_online::calls::TransactionApi { im_online::calls::TransactionApi } pub fn democracy(&self) -> democracy::calls::TransactionApi { democracy::calls::TransactionApi } pub fn council(&self) -> council::calls::TransactionApi { council::calls::TransactionApi } pub fn technical_committee(&self) -> technical_committee::calls::TransactionApi { technical_committee::calls::TransactionApi } pub fn phragmen_election(&self) -> phragmen_election::calls::TransactionApi { phragmen_election::calls::TransactionApi } pub fn technical_membership(&self) -> technical_membership::calls::TransactionApi { technical_membership::calls::TransactionApi } pub fn treasury(&self) -> treasury::calls::TransactionApi { treasury::calls::TransactionApi } pub fn conviction_voting(&self) -> conviction_voting::calls::TransactionApi { conviction_voting::calls::TransactionApi } pub fn referenda(&self) -> referenda::calls::TransactionApi { referenda::calls::TransactionApi } pub fn whitelist(&self) -> whitelist::calls::TransactionApi { whitelist::calls::TransactionApi } pub fn claims(&self) -> claims::calls::TransactionApi { claims::calls::TransactionApi } pub fn vesting(&self) -> vesting::calls::TransactionApi { vesting::calls::TransactionApi } pub fn utility(&self) -> utility::calls::TransactionApi { utility::calls::TransactionApi } pub fn identity(&self) -> identity::calls::TransactionApi { identity::calls::TransactionApi } pub fn proxy(&self) -> proxy::calls::TransactionApi { proxy::calls::TransactionApi } pub fn multisig(&self) -> multisig::calls::TransactionApi { multisig::calls::TransactionApi } pub fn bounties(&self) -> bounties::calls::TransactionApi { bounties::calls::TransactionApi } pub fn child_bounties(&self) -> child_bounties::calls::TransactionApi { child_bounties::calls::TransactionApi } pub fn tips(&self) -> tips::calls::TransactionApi { tips::calls::TransactionApi } pub fn election_provider_multi_phase( &self, ) -> election_provider_multi_phase::calls::TransactionApi { election_provider_multi_phase::calls::TransactionApi } pub fn voter_list(&self) -> voter_list::calls::TransactionApi { voter_list::calls::TransactionApi } pub fn nomination_pools(&self) -> nomination_pools::calls::TransactionApi { nomination_pools::calls::TransactionApi } pub fn fast_unstake(&self) -> fast_unstake::calls::TransactionApi { fast_unstake::calls::TransactionApi } pub fn configuration(&self) -> configuration::calls::TransactionApi { configuration::calls::TransactionApi } pub fn paras_shared(&self) -> paras_shared::calls::TransactionApi { paras_shared::calls::TransactionApi } pub fn para_inclusion(&self) -> para_inclusion::calls::TransactionApi { para_inclusion::calls::TransactionApi } pub fn para_inherent(&self) -> para_inherent::calls::TransactionApi { para_inherent::calls::TransactionApi } pub fn paras(&self) -> paras::calls::TransactionApi { paras::calls::TransactionApi } pub fn initializer(&self) -> initializer::calls::TransactionApi { initializer::calls::TransactionApi } pub fn ump(&self) -> ump::calls::TransactionApi { ump::calls::TransactionApi } pub fn hrmp(&self) -> hrmp::calls::TransactionApi { hrmp::calls::TransactionApi } pub fn paras_disputes(&self) -> paras_disputes::calls::TransactionApi { paras_disputes::calls::TransactionApi } pub fn paras_slashing(&self) -> paras_slashing::calls::TransactionApi { paras_slashing::calls::TransactionApi } pub fn registrar(&self) -> registrar::calls::TransactionApi { registrar::calls::TransactionApi } pub fn slots(&self) -> slots::calls::TransactionApi { slots::calls::TransactionApi } pub fn auctions(&self) -> auctions::calls::TransactionApi { auctions::calls::TransactionApi } pub fn crowdloan(&self) -> crowdloan::calls::TransactionApi { crowdloan::calls::TransactionApi } pub fn xcm_pallet(&self) -> xcm_pallet::calls::TransactionApi { xcm_pallet::calls::TransactionApi } } #[doc = r" check whether the metadata provided is aligned with this statically generated code."] pub fn is_codegen_valid_for(metadata: &::subxt::Metadata) -> bool { let runtime_metadata_hash = metadata .hasher() .only_these_pallets(&PALLETS) .only_these_runtime_apis(&RUNTIME_APIS) .hash(); runtime_metadata_hash == [ 48u8, 175u8, 255u8, 171u8, 180u8, 123u8, 181u8, 54u8, 125u8, 74u8, 109u8, 140u8, 192u8, 208u8, 131u8, 194u8, 195u8, 232u8, 33u8, 229u8, 178u8, 181u8, 236u8, 230u8, 37u8, 97u8, 134u8, 144u8, 187u8, 127u8, 47u8, 237u8, ] } pub mod system { use super::root_mod; use super::runtime_types; #[doc = "Error for the System pallet"] pub type Error = runtime_types::frame_system::pallet::Error; #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] pub type Call = runtime_types::frame_system::pallet::Call; pub mod calls { use super::root_mod; use super::runtime_types; type DispatchError = runtime_types::sp_runtime::DispatchError; pub mod types { use super::runtime_types; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Remark { pub remark: ::std::vec::Vec<::core::primitive::u8>, } impl ::subxt::blocks::StaticExtrinsic for Remark { const PALLET: &'static str = "System"; const CALL: &'static str = "remark"; } #[derive( :: subxt :: ext :: codec :: CompactAs, :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SetHeapPages { pub pages: ::core::primitive::u64, } impl ::subxt::blocks::StaticExtrinsic for SetHeapPages { const PALLET: &'static str = "System"; const CALL: &'static str = "set_heap_pages"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SetCode { pub code: ::std::vec::Vec<::core::primitive::u8>, } impl ::subxt::blocks::StaticExtrinsic for SetCode { const PALLET: &'static str = "System"; const CALL: &'static str = "set_code"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SetCodeWithoutChecks { pub code: ::std::vec::Vec<::core::primitive::u8>, } impl ::subxt::blocks::StaticExtrinsic for SetCodeWithoutChecks { const PALLET: &'static str = "System"; const CALL: &'static str = "set_code_without_checks"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SetStorage { pub items: ::std::vec::Vec<( ::std::vec::Vec<::core::primitive::u8>, ::std::vec::Vec<::core::primitive::u8>, )>, } impl ::subxt::blocks::StaticExtrinsic for SetStorage { const PALLET: &'static str = "System"; const CALL: &'static str = "set_storage"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct KillStorage { pub keys: ::std::vec::Vec<::std::vec::Vec<::core::primitive::u8>>, } impl ::subxt::blocks::StaticExtrinsic for KillStorage { const PALLET: &'static str = "System"; const CALL: &'static str = "kill_storage"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct KillPrefix { pub prefix: ::std::vec::Vec<::core::primitive::u8>, pub subkeys: ::core::primitive::u32, } impl ::subxt::blocks::StaticExtrinsic for KillPrefix { const PALLET: &'static str = "System"; const CALL: &'static str = "kill_prefix"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct RemarkWithEvent { pub remark: ::std::vec::Vec<::core::primitive::u8>, } impl ::subxt::blocks::StaticExtrinsic for RemarkWithEvent { const PALLET: &'static str = "System"; const CALL: &'static str = "remark_with_event"; } } pub struct TransactionApi; impl TransactionApi { #[doc = "Make some on-chain remark."] #[doc = ""] #[doc = "## Complexity"] #[doc = "- `O(1)`"] pub fn remark( &self, remark: ::std::vec::Vec<::core::primitive::u8>, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "System", "remark", types::Remark { remark }, [ 43u8, 126u8, 180u8, 174u8, 141u8, 48u8, 52u8, 125u8, 166u8, 212u8, 216u8, 98u8, 100u8, 24u8, 132u8, 71u8, 101u8, 64u8, 246u8, 169u8, 33u8, 250u8, 147u8, 208u8, 2u8, 40u8, 129u8, 209u8, 232u8, 207u8, 207u8, 13u8, ], ) } #[doc = "Set the number of pages in the WebAssembly environment's heap."] pub fn set_heap_pages( &self, pages: ::core::primitive::u64, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "System", "set_heap_pages", types::SetHeapPages { pages }, [ 188u8, 191u8, 99u8, 216u8, 219u8, 109u8, 141u8, 50u8, 78u8, 235u8, 215u8, 242u8, 195u8, 24u8, 111u8, 76u8, 229u8, 64u8, 99u8, 225u8, 134u8, 121u8, 81u8, 209u8, 127u8, 223u8, 98u8, 215u8, 150u8, 70u8, 57u8, 147u8, ], ) } #[doc = "Set the new runtime code."] #[doc = ""] #[doc = "## Complexity"] #[doc = "- `O(C + S)` where `C` length of `code` and `S` complexity of `can_set_code`"] pub fn set_code( &self, code: ::std::vec::Vec<::core::primitive::u8>, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "System", "set_code", types::SetCode { code }, [ 233u8, 248u8, 88u8, 245u8, 28u8, 65u8, 25u8, 169u8, 35u8, 237u8, 19u8, 203u8, 136u8, 160u8, 18u8, 3u8, 20u8, 197u8, 81u8, 169u8, 244u8, 188u8, 27u8, 147u8, 147u8, 236u8, 65u8, 25u8, 3u8, 143u8, 182u8, 22u8, ], ) } #[doc = "Set the new runtime code without doing any checks of the given `code`."] #[doc = ""] #[doc = "## Complexity"] #[doc = "- `O(C)` where `C` length of `code`"] pub fn set_code_without_checks( &self, code: ::std::vec::Vec<::core::primitive::u8>, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "System", "set_code_without_checks", types::SetCodeWithoutChecks { code }, [ 82u8, 212u8, 157u8, 44u8, 70u8, 0u8, 143u8, 15u8, 109u8, 109u8, 107u8, 157u8, 141u8, 42u8, 169u8, 11u8, 15u8, 186u8, 252u8, 138u8, 10u8, 147u8, 15u8, 178u8, 247u8, 229u8, 213u8, 98u8, 207u8, 231u8, 119u8, 115u8, ], ) } #[doc = "Set some items of storage."] pub fn set_storage( &self, items: ::std::vec::Vec<( ::std::vec::Vec<::core::primitive::u8>, ::std::vec::Vec<::core::primitive::u8>, )>, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "System", "set_storage", types::SetStorage { items }, [ 184u8, 169u8, 248u8, 68u8, 40u8, 193u8, 190u8, 151u8, 96u8, 159u8, 19u8, 237u8, 241u8, 156u8, 5u8, 158u8, 191u8, 237u8, 9u8, 13u8, 86u8, 213u8, 77u8, 58u8, 48u8, 139u8, 1u8, 85u8, 220u8, 233u8, 139u8, 164u8, ], ) } #[doc = "Kill some items from storage."] pub fn kill_storage( &self, keys: ::std::vec::Vec<::std::vec::Vec<::core::primitive::u8>>, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "System", "kill_storage", types::KillStorage { keys }, [ 73u8, 63u8, 196u8, 36u8, 144u8, 114u8, 34u8, 213u8, 108u8, 93u8, 209u8, 234u8, 153u8, 185u8, 33u8, 91u8, 187u8, 195u8, 223u8, 130u8, 58u8, 156u8, 63u8, 47u8, 228u8, 249u8, 216u8, 139u8, 143u8, 177u8, 41u8, 35u8, ], ) } #[doc = "Kill all storage items with a key that starts with the given prefix."] #[doc = ""] #[doc = "**NOTE:** We rely on the Root origin to provide us the number of subkeys under"] #[doc = "the prefix we are removing to accurately calculate the weight of this function."] pub fn kill_prefix( &self, prefix: ::std::vec::Vec<::core::primitive::u8>, subkeys: ::core::primitive::u32, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "System", "kill_prefix", types::KillPrefix { prefix, subkeys }, [ 184u8, 57u8, 139u8, 24u8, 208u8, 87u8, 108u8, 215u8, 198u8, 189u8, 175u8, 242u8, 167u8, 215u8, 97u8, 63u8, 110u8, 166u8, 238u8, 98u8, 67u8, 236u8, 111u8, 110u8, 234u8, 81u8, 102u8, 5u8, 182u8, 5u8, 214u8, 85u8, ], ) } #[doc = "Make some on-chain remark and emit event."] pub fn remark_with_event( &self, remark: ::std::vec::Vec<::core::primitive::u8>, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "System", "remark_with_event", types::RemarkWithEvent { remark }, [ 120u8, 120u8, 153u8, 92u8, 184u8, 85u8, 34u8, 2u8, 174u8, 206u8, 105u8, 228u8, 233u8, 130u8, 80u8, 246u8, 228u8, 59u8, 234u8, 240u8, 4u8, 49u8, 147u8, 170u8, 115u8, 91u8, 149u8, 200u8, 228u8, 181u8, 8u8, 154u8, ], ) } } } #[doc = "Event for the System pallet."] pub type Event = runtime_types::frame_system::pallet::Event; pub mod events { use super::runtime_types; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "An extrinsic completed successfully."] pub struct ExtrinsicSuccess { pub dispatch_info: runtime_types::frame_support::dispatch::DispatchInfo, } impl ::subxt::events::StaticEvent for ExtrinsicSuccess { const PALLET: &'static str = "System"; const EVENT: &'static str = "ExtrinsicSuccess"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "An extrinsic failed."] pub struct ExtrinsicFailed { pub dispatch_error: runtime_types::sp_runtime::DispatchError, pub dispatch_info: runtime_types::frame_support::dispatch::DispatchInfo, } impl ::subxt::events::StaticEvent for ExtrinsicFailed { const PALLET: &'static str = "System"; const EVENT: &'static str = "ExtrinsicFailed"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "`:code` was updated."] pub struct CodeUpdated; impl ::subxt::events::StaticEvent for CodeUpdated { const PALLET: &'static str = "System"; const EVENT: &'static str = "CodeUpdated"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A new account was created."] pub struct NewAccount { pub account: ::subxt::utils::AccountId32, } impl ::subxt::events::StaticEvent for NewAccount { const PALLET: &'static str = "System"; const EVENT: &'static str = "NewAccount"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "An account was reaped."] pub struct KilledAccount { pub account: ::subxt::utils::AccountId32, } impl ::subxt::events::StaticEvent for KilledAccount { const PALLET: &'static str = "System"; const EVENT: &'static str = "KilledAccount"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "On on-chain remark happened."] pub struct Remarked { pub sender: ::subxt::utils::AccountId32, pub hash: ::subxt::utils::H256, } impl ::subxt::events::StaticEvent for Remarked { const PALLET: &'static str = "System"; const EVENT: &'static str = "Remarked"; } } pub mod storage { use super::runtime_types; pub struct StorageApi; impl StorageApi { #[doc = " The full account information for a particular account ID."] pub fn account( &self, _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, runtime_types::frame_system::AccountInfo< ::core::primitive::u32, runtime_types::pallet_balances::types::AccountData<::core::primitive::u128>, >, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( "System", "Account", vec![::subxt::storage::address::make_static_storage_map_key( _0.borrow(), )], [ 234u8, 12u8, 167u8, 96u8, 2u8, 244u8, 235u8, 62u8, 153u8, 200u8, 96u8, 74u8, 135u8, 8u8, 35u8, 188u8, 146u8, 249u8, 246u8, 40u8, 224u8, 22u8, 15u8, 99u8, 150u8, 222u8, 82u8, 85u8, 123u8, 123u8, 19u8, 110u8, ], ) } #[doc = " The full account information for a particular account ID."] pub fn account_root( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, runtime_types::frame_system::AccountInfo< ::core::primitive::u32, runtime_types::pallet_balances::types::AccountData<::core::primitive::u128>, >, (), ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( "System", "Account", Vec::new(), [ 234u8, 12u8, 167u8, 96u8, 2u8, 244u8, 235u8, 62u8, 153u8, 200u8, 96u8, 74u8, 135u8, 8u8, 35u8, 188u8, 146u8, 249u8, 246u8, 40u8, 224u8, 22u8, 15u8, 99u8, 150u8, 222u8, 82u8, 85u8, 123u8, 123u8, 19u8, 110u8, ], ) } #[doc = " Total extrinsics count for the current block."] pub fn extrinsic_count( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, ::core::primitive::u32, ::subxt::storage::address::Yes, (), (), > { ::subxt::storage::address::Address::new_static( "System", "ExtrinsicCount", vec![], [ 102u8, 76u8, 236u8, 42u8, 40u8, 231u8, 33u8, 222u8, 123u8, 147u8, 153u8, 148u8, 234u8, 203u8, 181u8, 119u8, 6u8, 187u8, 177u8, 199u8, 120u8, 47u8, 137u8, 254u8, 96u8, 100u8, 165u8, 182u8, 249u8, 230u8, 159u8, 79u8, ], ) } #[doc = " The current weight for the block."] pub fn block_weight( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, runtime_types::frame_support::dispatch::PerDispatchClass< runtime_types::sp_weights::weight_v2::Weight, >, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), > { ::subxt::storage::address::Address::new_static( "System", "BlockWeight", vec![], [ 52u8, 191u8, 212u8, 137u8, 26u8, 39u8, 239u8, 35u8, 182u8, 32u8, 39u8, 103u8, 56u8, 184u8, 60u8, 159u8, 167u8, 232u8, 193u8, 116u8, 105u8, 56u8, 98u8, 127u8, 124u8, 188u8, 214u8, 154u8, 160u8, 41u8, 20u8, 162u8, ], ) } #[doc = " Total length (in bytes) for all extrinsics put together, for the current block."] pub fn all_extrinsics_len( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, ::core::primitive::u32, ::subxt::storage::address::Yes, (), (), > { ::subxt::storage::address::Address::new_static( "System", "AllExtrinsicsLen", vec![], [ 117u8, 86u8, 61u8, 243u8, 41u8, 51u8, 102u8, 214u8, 137u8, 100u8, 243u8, 185u8, 122u8, 174u8, 187u8, 117u8, 86u8, 189u8, 63u8, 135u8, 101u8, 218u8, 203u8, 201u8, 237u8, 254u8, 128u8, 183u8, 169u8, 221u8, 242u8, 65u8, ], ) } #[doc = " Map of block numbers to block hashes."] pub fn block_hash( &self, _0: impl ::std::borrow::Borrow<::core::primitive::u32>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, ::subxt::utils::H256, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( "System", "BlockHash", vec![::subxt::storage::address::make_static_storage_map_key( _0.borrow(), )], [ 217u8, 32u8, 215u8, 253u8, 24u8, 182u8, 207u8, 178u8, 157u8, 24u8, 103u8, 100u8, 195u8, 165u8, 69u8, 152u8, 112u8, 181u8, 56u8, 192u8, 164u8, 16u8, 20u8, 222u8, 28u8, 214u8, 144u8, 142u8, 146u8, 69u8, 202u8, 118u8, ], ) } #[doc = " Map of block numbers to block hashes."] pub fn block_hash_root( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, ::subxt::utils::H256, (), ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( "System", "BlockHash", Vec::new(), [ 217u8, 32u8, 215u8, 253u8, 24u8, 182u8, 207u8, 178u8, 157u8, 24u8, 103u8, 100u8, 195u8, 165u8, 69u8, 152u8, 112u8, 181u8, 56u8, 192u8, 164u8, 16u8, 20u8, 222u8, 28u8, 214u8, 144u8, 142u8, 146u8, 69u8, 202u8, 118u8, ], ) } #[doc = " Extrinsics data for the current block (maps an extrinsic's index to its data)."] pub fn extrinsic_data( &self, _0: impl ::std::borrow::Borrow<::core::primitive::u32>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, ::std::vec::Vec<::core::primitive::u8>, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( "System", "ExtrinsicData", vec![::subxt::storage::address::make_static_storage_map_key( _0.borrow(), )], [ 160u8, 180u8, 122u8, 18u8, 196u8, 26u8, 2u8, 37u8, 115u8, 232u8, 133u8, 220u8, 106u8, 245u8, 4u8, 129u8, 42u8, 84u8, 241u8, 45u8, 199u8, 179u8, 128u8, 61u8, 170u8, 137u8, 231u8, 156u8, 247u8, 57u8, 47u8, 38u8, ], ) } #[doc = " Extrinsics data for the current block (maps an extrinsic's index to its data)."] pub fn extrinsic_data_root( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, ::std::vec::Vec<::core::primitive::u8>, (), ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( "System", "ExtrinsicData", Vec::new(), [ 160u8, 180u8, 122u8, 18u8, 196u8, 26u8, 2u8, 37u8, 115u8, 232u8, 133u8, 220u8, 106u8, 245u8, 4u8, 129u8, 42u8, 84u8, 241u8, 45u8, 199u8, 179u8, 128u8, 61u8, 170u8, 137u8, 231u8, 156u8, 247u8, 57u8, 47u8, 38u8, ], ) } #[doc = " The current block number being processed. Set by `execute_block`."] pub fn number( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, ::core::primitive::u32, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), > { ::subxt::storage::address::Address::new_static( "System", "Number", vec![], [ 30u8, 194u8, 177u8, 90u8, 194u8, 232u8, 46u8, 180u8, 85u8, 129u8, 14u8, 9u8, 8u8, 8u8, 23u8, 95u8, 230u8, 5u8, 13u8, 105u8, 125u8, 2u8, 22u8, 200u8, 78u8, 93u8, 115u8, 28u8, 150u8, 113u8, 48u8, 53u8, ], ) } #[doc = " Hash of the previous block."] pub fn parent_hash( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, ::subxt::utils::H256, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), > { ::subxt::storage::address::Address::new_static( "System", "ParentHash", vec![], [ 26u8, 130u8, 11u8, 216u8, 155u8, 71u8, 128u8, 170u8, 30u8, 153u8, 21u8, 192u8, 62u8, 93u8, 137u8, 80u8, 120u8, 81u8, 202u8, 94u8, 248u8, 125u8, 71u8, 82u8, 141u8, 229u8, 32u8, 56u8, 73u8, 50u8, 101u8, 78u8, ], ) } #[doc = " Digest of the current block, also part of the block header."] pub fn digest( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, runtime_types::sp_runtime::generic::digest::Digest, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), > { ::subxt::storage::address::Address::new_static( "System", "Digest", vec![], [ 70u8, 156u8, 127u8, 89u8, 115u8, 250u8, 103u8, 62u8, 185u8, 153u8, 26u8, 72u8, 39u8, 226u8, 181u8, 97u8, 137u8, 225u8, 45u8, 158u8, 212u8, 254u8, 142u8, 136u8, 90u8, 22u8, 243u8, 125u8, 226u8, 49u8, 235u8, 215u8, ], ) } #[doc = " Events deposited for the current block."] #[doc = ""] #[doc = " NOTE: The item is unbound and should therefore never be read on chain."] #[doc = " It could otherwise inflate the PoV size of a block."] #[doc = ""] #[doc = " Events have a large in-memory size. Box the events to not go out-of-memory"] #[doc = " just in case someone still reads them from within the runtime."] pub fn events( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, ::std::vec::Vec< runtime_types::frame_system::EventRecord< runtime_types::polkadot_runtime::RuntimeEvent, ::subxt::utils::H256, >, >, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), > { ::subxt::storage::address::Address::new_static( "System", "Events", vec![], [ 144u8, 114u8, 184u8, 254u8, 50u8, 194u8, 165u8, 20u8, 204u8, 189u8, 147u8, 226u8, 53u8, 106u8, 27u8, 98u8, 252u8, 31u8, 77u8, 158u8, 211u8, 36u8, 67u8, 241u8, 139u8, 173u8, 171u8, 71u8, 146u8, 10u8, 157u8, 200u8, ], ) } #[doc = " The number of events in the `Events` list."] pub fn event_count( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, ::core::primitive::u32, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), > { ::subxt::storage::address::Address::new_static( "System", "EventCount", vec![], [ 175u8, 24u8, 252u8, 184u8, 210u8, 167u8, 146u8, 143u8, 164u8, 80u8, 151u8, 205u8, 189u8, 189u8, 55u8, 220u8, 47u8, 101u8, 181u8, 33u8, 254u8, 131u8, 13u8, 143u8, 3u8, 244u8, 245u8, 45u8, 2u8, 210u8, 79u8, 133u8, ], ) } #[doc = " Mapping between a topic (represented by T::Hash) and a vector of indexes"] #[doc = " of events in the `>` list."] #[doc = ""] #[doc = " All topic vectors have deterministic storage locations depending on the topic. This"] #[doc = " allows light-clients to leverage the changes trie storage tracking mechanism and"] #[doc = " in case of changes fetch the list of events of interest."] #[doc = ""] #[doc = " The value has the type `(T::BlockNumber, EventIndex)` because if we used only just"] #[doc = " the `EventIndex` then in case if the topic has the same contents on the next block"] #[doc = " no notification will be triggered thus the event might be lost."] pub fn event_topics( &self, _0: impl ::std::borrow::Borrow<::subxt::utils::H256>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, ::std::vec::Vec<(::core::primitive::u32, ::core::primitive::u32)>, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( "System", "EventTopics", vec![::subxt::storage::address::make_static_storage_map_key( _0.borrow(), )], [ 154u8, 29u8, 31u8, 148u8, 254u8, 7u8, 124u8, 251u8, 241u8, 77u8, 24u8, 37u8, 28u8, 75u8, 205u8, 17u8, 159u8, 79u8, 239u8, 62u8, 67u8, 60u8, 252u8, 112u8, 215u8, 145u8, 103u8, 170u8, 110u8, 186u8, 221u8, 76u8, ], ) } #[doc = " Mapping between a topic (represented by T::Hash) and a vector of indexes"] #[doc = " of events in the `>` list."] #[doc = ""] #[doc = " All topic vectors have deterministic storage locations depending on the topic. This"] #[doc = " allows light-clients to leverage the changes trie storage tracking mechanism and"] #[doc = " in case of changes fetch the list of events of interest."] #[doc = ""] #[doc = " The value has the type `(T::BlockNumber, EventIndex)` because if we used only just"] #[doc = " the `EventIndex` then in case if the topic has the same contents on the next block"] #[doc = " no notification will be triggered thus the event might be lost."] pub fn event_topics_root( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, ::std::vec::Vec<(::core::primitive::u32, ::core::primitive::u32)>, (), ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( "System", "EventTopics", Vec::new(), [ 154u8, 29u8, 31u8, 148u8, 254u8, 7u8, 124u8, 251u8, 241u8, 77u8, 24u8, 37u8, 28u8, 75u8, 205u8, 17u8, 159u8, 79u8, 239u8, 62u8, 67u8, 60u8, 252u8, 112u8, 215u8, 145u8, 103u8, 170u8, 110u8, 186u8, 221u8, 76u8, ], ) } #[doc = " Stores the `spec_version` and `spec_name` of when the last runtime upgrade happened."] pub fn last_runtime_upgrade( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, runtime_types::frame_system::LastRuntimeUpgradeInfo, ::subxt::storage::address::Yes, (), (), > { ::subxt::storage::address::Address::new_static( "System", "LastRuntimeUpgrade", vec![], [ 137u8, 29u8, 175u8, 75u8, 197u8, 208u8, 91u8, 207u8, 156u8, 87u8, 148u8, 68u8, 91u8, 140u8, 22u8, 233u8, 1u8, 229u8, 56u8, 34u8, 40u8, 194u8, 253u8, 30u8, 163u8, 39u8, 54u8, 209u8, 13u8, 27u8, 139u8, 184u8, ], ) } #[doc = " True if we have upgraded so that `type RefCount` is `u32`. False (default) if not."] pub fn upgraded_to_u32_ref_count( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, ::core::primitive::bool, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), > { ::subxt::storage::address::Address::new_static( "System", "UpgradedToU32RefCount", vec![], [ 229u8, 73u8, 9u8, 132u8, 186u8, 116u8, 151u8, 171u8, 145u8, 29u8, 34u8, 130u8, 52u8, 146u8, 124u8, 175u8, 79u8, 189u8, 147u8, 230u8, 234u8, 107u8, 124u8, 31u8, 2u8, 22u8, 86u8, 190u8, 4u8, 147u8, 50u8, 245u8, ], ) } #[doc = " True if we have upgraded so that AccountInfo contains three types of `RefCount`. False"] #[doc = " (default) if not."] pub fn upgraded_to_triple_ref_count( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, ::core::primitive::bool, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), > { ::subxt::storage::address::Address::new_static( "System", "UpgradedToTripleRefCount", vec![], [ 97u8, 66u8, 124u8, 243u8, 27u8, 167u8, 147u8, 81u8, 254u8, 201u8, 101u8, 24u8, 40u8, 231u8, 14u8, 179u8, 154u8, 163u8, 71u8, 81u8, 185u8, 167u8, 82u8, 254u8, 189u8, 3u8, 101u8, 207u8, 206u8, 194u8, 155u8, 151u8, ], ) } #[doc = " The execution phase of the block."] pub fn execution_phase( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, runtime_types::frame_system::Phase, ::subxt::storage::address::Yes, (), (), > { ::subxt::storage::address::Address::new_static( "System", "ExecutionPhase", vec![], [ 191u8, 129u8, 100u8, 134u8, 126u8, 116u8, 154u8, 203u8, 220u8, 200u8, 0u8, 26u8, 161u8, 250u8, 133u8, 205u8, 146u8, 24u8, 5u8, 156u8, 158u8, 35u8, 36u8, 253u8, 52u8, 235u8, 86u8, 167u8, 35u8, 100u8, 119u8, 27u8, ], ) } } } pub mod constants { use super::runtime_types; pub struct ConstantsApi; impl ConstantsApi { #[doc = " Block & extrinsics weights: base values and limits."] pub fn block_weights( &self, ) -> ::subxt::constants::Address { ::subxt::constants::Address::new_static( "System", "BlockWeights", [ 238u8, 20u8, 221u8, 11u8, 146u8, 236u8, 47u8, 103u8, 8u8, 239u8, 13u8, 176u8, 202u8, 10u8, 151u8, 68u8, 110u8, 162u8, 99u8, 40u8, 211u8, 136u8, 71u8, 82u8, 50u8, 80u8, 244u8, 211u8, 231u8, 198u8, 36u8, 152u8, ], ) } #[doc = " The maximum length of a block (in bytes)."] pub fn block_length( &self, ) -> ::subxt::constants::Address { ::subxt::constants::Address::new_static( "System", "BlockLength", [ 117u8, 144u8, 154u8, 125u8, 106u8, 34u8, 224u8, 228u8, 80u8, 76u8, 126u8, 0u8, 177u8, 223u8, 116u8, 244u8, 167u8, 23u8, 253u8, 44u8, 128u8, 116u8, 155u8, 245u8, 163u8, 20u8, 21u8, 222u8, 174u8, 237u8, 162u8, 240u8, ], ) } #[doc = " Maximum number of block number to block hash mappings to keep (oldest pruned first)."] pub fn block_hash_count( &self, ) -> ::subxt::constants::Address<::core::primitive::u32> { ::subxt::constants::Address::new_static( "System", "BlockHashCount", [ 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, 145u8, ], ) } #[doc = " The weight of runtime database operations the runtime can invoke."] pub fn db_weight( &self, ) -> ::subxt::constants::Address { ::subxt::constants::Address::new_static( "System", "DbWeight", [ 206u8, 53u8, 134u8, 247u8, 42u8, 38u8, 197u8, 59u8, 191u8, 83u8, 160u8, 9u8, 207u8, 133u8, 108u8, 152u8, 150u8, 103u8, 109u8, 228u8, 218u8, 24u8, 27u8, 210u8, 106u8, 252u8, 74u8, 93u8, 27u8, 63u8, 109u8, 252u8, ], ) } #[doc = " Get the chain's current version."] pub fn version( &self, ) -> ::subxt::constants::Address { ::subxt::constants::Address::new_static( "System", "Version", [ 134u8, 0u8, 23u8, 0u8, 199u8, 213u8, 89u8, 240u8, 194u8, 186u8, 239u8, 157u8, 168u8, 211u8, 223u8, 156u8, 138u8, 140u8, 194u8, 23u8, 167u8, 158u8, 195u8, 233u8, 25u8, 165u8, 27u8, 237u8, 198u8, 206u8, 233u8, 28u8, ], ) } #[doc = " The designated SS58 prefix of this chain."] #[doc = ""] #[doc = " This replaces the \"ss58Format\" property declared in the chain spec. Reason is"] #[doc = " that the runtime should know about the prefix in order to make use of it as"] #[doc = " an identifier of the chain."] pub fn ss58_prefix(&self) -> ::subxt::constants::Address<::core::primitive::u16> { ::subxt::constants::Address::new_static( "System", "SS58Prefix", [ 116u8, 33u8, 2u8, 170u8, 181u8, 147u8, 171u8, 169u8, 167u8, 227u8, 41u8, 144u8, 11u8, 236u8, 82u8, 100u8, 74u8, 60u8, 184u8, 72u8, 169u8, 90u8, 208u8, 135u8, 15u8, 117u8, 10u8, 123u8, 128u8, 193u8, 29u8, 70u8, ], ) } } } } pub mod scheduler { use super::root_mod; use super::runtime_types; #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] pub type Error = runtime_types::pallet_scheduler::pallet::Error; #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] pub type Call = runtime_types::pallet_scheduler::pallet::Call; pub mod calls { use super::root_mod; use super::runtime_types; type DispatchError = runtime_types::sp_runtime::DispatchError; pub mod types { use super::runtime_types; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Schedule { pub when: ::core::primitive::u32, pub maybe_periodic: ::core::option::Option<(::core::primitive::u32, ::core::primitive::u32)>, pub priority: ::core::primitive::u8, pub call: ::std::boxed::Box, } impl ::subxt::blocks::StaticExtrinsic for Schedule { const PALLET: &'static str = "Scheduler"; const CALL: &'static str = "schedule"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Cancel { pub when: ::core::primitive::u32, pub index: ::core::primitive::u32, } impl ::subxt::blocks::StaticExtrinsic for Cancel { const PALLET: &'static str = "Scheduler"; const CALL: &'static str = "cancel"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ScheduleNamed { pub id: [::core::primitive::u8; 32usize], pub when: ::core::primitive::u32, pub maybe_periodic: ::core::option::Option<(::core::primitive::u32, ::core::primitive::u32)>, pub priority: ::core::primitive::u8, pub call: ::std::boxed::Box, } impl ::subxt::blocks::StaticExtrinsic for ScheduleNamed { const PALLET: &'static str = "Scheduler"; const CALL: &'static str = "schedule_named"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct CancelNamed { pub id: [::core::primitive::u8; 32usize], } impl ::subxt::blocks::StaticExtrinsic for CancelNamed { const PALLET: &'static str = "Scheduler"; const CALL: &'static str = "cancel_named"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ScheduleAfter { pub after: ::core::primitive::u32, pub maybe_periodic: ::core::option::Option<(::core::primitive::u32, ::core::primitive::u32)>, pub priority: ::core::primitive::u8, pub call: ::std::boxed::Box, } impl ::subxt::blocks::StaticExtrinsic for ScheduleAfter { const PALLET: &'static str = "Scheduler"; const CALL: &'static str = "schedule_after"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ScheduleNamedAfter { pub id: [::core::primitive::u8; 32usize], pub after: ::core::primitive::u32, pub maybe_periodic: ::core::option::Option<(::core::primitive::u32, ::core::primitive::u32)>, pub priority: ::core::primitive::u8, pub call: ::std::boxed::Box, } impl ::subxt::blocks::StaticExtrinsic for ScheduleNamedAfter { const PALLET: &'static str = "Scheduler"; const CALL: &'static str = "schedule_named_after"; } } pub struct TransactionApi; impl TransactionApi { #[doc = "Anonymously schedule a task."] pub fn schedule( &self, when: ::core::primitive::u32, maybe_periodic: ::core::option::Option<( ::core::primitive::u32, ::core::primitive::u32, )>, priority: ::core::primitive::u8, call: runtime_types::polkadot_runtime::RuntimeCall, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Scheduler", "schedule", types::Schedule { when, maybe_periodic, priority, call: ::std::boxed::Box::new(call), }, [ 79u8, 205u8, 253u8, 246u8, 221u8, 94u8, 229u8, 6u8, 48u8, 3u8, 5u8, 145u8, 225u8, 209u8, 208u8, 85u8, 151u8, 208u8, 235u8, 210u8, 131u8, 195u8, 179u8, 14u8, 243u8, 47u8, 230u8, 128u8, 55u8, 226u8, 242u8, 217u8, ], ) } #[doc = "Cancel an anonymously scheduled task."] pub fn cancel( &self, when: ::core::primitive::u32, index: ::core::primitive::u32, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Scheduler", "cancel", types::Cancel { when, index }, [ 32u8, 107u8, 14u8, 102u8, 56u8, 200u8, 68u8, 186u8, 192u8, 100u8, 152u8, 124u8, 171u8, 154u8, 230u8, 115u8, 62u8, 140u8, 88u8, 178u8, 119u8, 210u8, 222u8, 31u8, 134u8, 225u8, 133u8, 241u8, 42u8, 110u8, 147u8, 47u8, ], ) } #[doc = "Schedule a named task."] pub fn schedule_named( &self, id: [::core::primitive::u8; 32usize], when: ::core::primitive::u32, maybe_periodic: ::core::option::Option<( ::core::primitive::u32, ::core::primitive::u32, )>, priority: ::core::primitive::u8, call: runtime_types::polkadot_runtime::RuntimeCall, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Scheduler", "schedule_named", types::ScheduleNamed { id, when, maybe_periodic, priority, call: ::std::boxed::Box::new(call), }, [ 34u8, 68u8, 235u8, 184u8, 76u8, 184u8, 201u8, 126u8, 239u8, 104u8, 118u8, 155u8, 155u8, 195u8, 153u8, 121u8, 186u8, 241u8, 223u8, 173u8, 65u8, 247u8, 11u8, 93u8, 83u8, 243u8, 231u8, 33u8, 57u8, 89u8, 73u8, 182u8, ], ) } #[doc = "Cancel a named scheduled task."] pub fn cancel_named( &self, id: [::core::primitive::u8; 32usize], ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Scheduler", "cancel_named", types::CancelNamed { id }, [ 205u8, 35u8, 28u8, 57u8, 224u8, 7u8, 49u8, 233u8, 236u8, 163u8, 93u8, 236u8, 103u8, 69u8, 65u8, 51u8, 121u8, 84u8, 9u8, 196u8, 147u8, 122u8, 227u8, 200u8, 181u8, 233u8, 62u8, 240u8, 174u8, 83u8, 129u8, 193u8, ], ) } #[doc = "Anonymously schedule a task after a delay."] pub fn schedule_after( &self, after: ::core::primitive::u32, maybe_periodic: ::core::option::Option<( ::core::primitive::u32, ::core::primitive::u32, )>, priority: ::core::primitive::u8, call: runtime_types::polkadot_runtime::RuntimeCall, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Scheduler", "schedule_after", types::ScheduleAfter { after, maybe_periodic, priority, call: ::std::boxed::Box::new(call), }, [ 103u8, 222u8, 6u8, 157u8, 93u8, 110u8, 116u8, 140u8, 17u8, 239u8, 58u8, 133u8, 241u8, 102u8, 182u8, 32u8, 113u8, 57u8, 116u8, 31u8, 127u8, 156u8, 50u8, 8u8, 33u8, 94u8, 23u8, 86u8, 93u8, 169u8, 189u8, 203u8, ], ) } #[doc = "Schedule a named task after a delay."] pub fn schedule_named_after( &self, id: [::core::primitive::u8; 32usize], after: ::core::primitive::u32, maybe_periodic: ::core::option::Option<( ::core::primitive::u32, ::core::primitive::u32, )>, priority: ::core::primitive::u8, call: runtime_types::polkadot_runtime::RuntimeCall, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Scheduler", "schedule_named_after", types::ScheduleNamedAfter { id, after, maybe_periodic, priority, call: ::std::boxed::Box::new(call), }, [ 242u8, 52u8, 21u8, 208u8, 40u8, 50u8, 170u8, 129u8, 232u8, 151u8, 130u8, 105u8, 157u8, 156u8, 65u8, 224u8, 170u8, 65u8, 169u8, 223u8, 27u8, 37u8, 136u8, 36u8, 250u8, 40u8, 134u8, 100u8, 138u8, 36u8, 86u8, 226u8, ], ) } } } #[doc = "Events type."] pub type Event = runtime_types::pallet_scheduler::pallet::Event; pub mod events { use super::runtime_types; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Scheduled some task."] pub struct Scheduled { pub when: ::core::primitive::u32, pub index: ::core::primitive::u32, } impl ::subxt::events::StaticEvent for Scheduled { const PALLET: &'static str = "Scheduler"; const EVENT: &'static str = "Scheduled"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Canceled some task."] pub struct Canceled { pub when: ::core::primitive::u32, pub index: ::core::primitive::u32, } impl ::subxt::events::StaticEvent for Canceled { const PALLET: &'static str = "Scheduler"; const EVENT: &'static str = "Canceled"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Dispatched some task."] pub struct Dispatched { pub task: (::core::primitive::u32, ::core::primitive::u32), pub id: ::core::option::Option<[::core::primitive::u8; 32usize]>, pub result: ::core::result::Result<(), runtime_types::sp_runtime::DispatchError>, } impl ::subxt::events::StaticEvent for Dispatched { const PALLET: &'static str = "Scheduler"; const EVENT: &'static str = "Dispatched"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "The call for the provided hash was not found so the task has been aborted."] pub struct CallUnavailable { pub task: (::core::primitive::u32, ::core::primitive::u32), pub id: ::core::option::Option<[::core::primitive::u8; 32usize]>, } impl ::subxt::events::StaticEvent for CallUnavailable { const PALLET: &'static str = "Scheduler"; const EVENT: &'static str = "CallUnavailable"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "The given task was unable to be renewed since the agenda is full at that block."] pub struct PeriodicFailed { pub task: (::core::primitive::u32, ::core::primitive::u32), pub id: ::core::option::Option<[::core::primitive::u8; 32usize]>, } impl ::subxt::events::StaticEvent for PeriodicFailed { const PALLET: &'static str = "Scheduler"; const EVENT: &'static str = "PeriodicFailed"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "The given task can never be executed since it is overweight."] pub struct PermanentlyOverweight { pub task: (::core::primitive::u32, ::core::primitive::u32), pub id: ::core::option::Option<[::core::primitive::u8; 32usize]>, } impl ::subxt::events::StaticEvent for PermanentlyOverweight { const PALLET: &'static str = "Scheduler"; const EVENT: &'static str = "PermanentlyOverweight"; } } pub mod storage { use super::runtime_types; pub struct StorageApi; impl StorageApi { pub fn incomplete_since( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, ::core::primitive::u32, ::subxt::storage::address::Yes, (), (), > { ::subxt::storage::address::Address::new_static( "Scheduler", "IncompleteSince", vec![], [ 250u8, 83u8, 64u8, 167u8, 205u8, 59u8, 225u8, 97u8, 205u8, 12u8, 76u8, 130u8, 197u8, 4u8, 111u8, 208u8, 92u8, 217u8, 145u8, 119u8, 38u8, 135u8, 1u8, 242u8, 228u8, 143u8, 56u8, 25u8, 115u8, 233u8, 227u8, 66u8, ], ) } #[doc = " Items to be executed, indexed by the block number that they should be executed on."] pub fn agenda( &self, _0: impl ::std::borrow::Borrow<::core::primitive::u32>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, runtime_types::bounded_collections::bounded_vec::BoundedVec< ::core::option::Option< runtime_types::pallet_scheduler::Scheduled< [::core::primitive::u8; 32usize], runtime_types::frame_support::traits::preimages::Bounded< runtime_types::polkadot_runtime::RuntimeCall, >, ::core::primitive::u32, runtime_types::polkadot_runtime::OriginCaller, ::subxt::utils::AccountId32, >, >, >, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( "Scheduler", "Agenda", vec![::subxt::storage::address::make_static_storage_map_key( _0.borrow(), )], [ 209u8, 79u8, 142u8, 79u8, 230u8, 98u8, 182u8, 113u8, 13u8, 147u8, 144u8, 21u8, 255u8, 211u8, 76u8, 71u8, 3u8, 104u8, 97u8, 108u8, 137u8, 63u8, 32u8, 239u8, 90u8, 143u8, 3u8, 61u8, 57u8, 20u8, 17u8, 30u8, ], ) } #[doc = " Items to be executed, indexed by the block number that they should be executed on."] pub fn agenda_root( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, runtime_types::bounded_collections::bounded_vec::BoundedVec< ::core::option::Option< runtime_types::pallet_scheduler::Scheduled< [::core::primitive::u8; 32usize], runtime_types::frame_support::traits::preimages::Bounded< runtime_types::polkadot_runtime::RuntimeCall, >, ::core::primitive::u32, runtime_types::polkadot_runtime::OriginCaller, ::subxt::utils::AccountId32, >, >, >, (), ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( "Scheduler", "Agenda", Vec::new(), [ 209u8, 79u8, 142u8, 79u8, 230u8, 98u8, 182u8, 113u8, 13u8, 147u8, 144u8, 21u8, 255u8, 211u8, 76u8, 71u8, 3u8, 104u8, 97u8, 108u8, 137u8, 63u8, 32u8, 239u8, 90u8, 143u8, 3u8, 61u8, 57u8, 20u8, 17u8, 30u8, ], ) } #[doc = " Lookup from a name to the block number and index of the task."] #[doc = ""] #[doc = " For v3 -> v4 the previously unbounded identities are Blake2-256 hashed to form the v4"] #[doc = " identities."] pub fn lookup( &self, _0: impl ::std::borrow::Borrow<[::core::primitive::u8; 32usize]>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, (::core::primitive::u32, ::core::primitive::u32), ::subxt::storage::address::Yes, (), ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( "Scheduler", "Lookup", vec![::subxt::storage::address::make_static_storage_map_key( _0.borrow(), )], [ 157u8, 102u8, 210u8, 65u8, 190u8, 48u8, 168u8, 20u8, 197u8, 184u8, 74u8, 119u8, 176u8, 22u8, 244u8, 186u8, 231u8, 239u8, 97u8, 175u8, 34u8, 133u8, 165u8, 73u8, 223u8, 113u8, 78u8, 150u8, 83u8, 127u8, 126u8, 204u8, ], ) } #[doc = " Lookup from a name to the block number and index of the task."] #[doc = ""] #[doc = " For v3 -> v4 the previously unbounded identities are Blake2-256 hashed to form the v4"] #[doc = " identities."] pub fn lookup_root( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, (::core::primitive::u32, ::core::primitive::u32), (), (), ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( "Scheduler", "Lookup", Vec::new(), [ 157u8, 102u8, 210u8, 65u8, 190u8, 48u8, 168u8, 20u8, 197u8, 184u8, 74u8, 119u8, 176u8, 22u8, 244u8, 186u8, 231u8, 239u8, 97u8, 175u8, 34u8, 133u8, 165u8, 73u8, 223u8, 113u8, 78u8, 150u8, 83u8, 127u8, 126u8, 204u8, ], ) } } } pub mod constants { use super::runtime_types; pub struct ConstantsApi; impl ConstantsApi { #[doc = " The maximum weight that may be scheduled per block for any dispatchables."] pub fn maximum_weight( &self, ) -> ::subxt::constants::Address { ::subxt::constants::Address::new_static( "Scheduler", "MaximumWeight", [ 222u8, 183u8, 203u8, 169u8, 31u8, 134u8, 28u8, 12u8, 47u8, 140u8, 71u8, 74u8, 61u8, 55u8, 71u8, 236u8, 215u8, 83u8, 28u8, 70u8, 45u8, 128u8, 184u8, 57u8, 101u8, 83u8, 42u8, 165u8, 34u8, 155u8, 64u8, 145u8, ], ) } #[doc = " The maximum number of scheduled calls in the queue for a single block."] #[doc = ""] #[doc = " NOTE:"] #[doc = " + Dependent pallets' benchmarks might require a higher limit for the setting. Set a"] #[doc = " higher limit under `runtime-benchmarks` feature."] pub fn max_scheduled_per_block( &self, ) -> ::subxt::constants::Address<::core::primitive::u32> { ::subxt::constants::Address::new_static( "Scheduler", "MaxScheduledPerBlock", [ 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, 145u8, ], ) } } } } pub mod preimage { use super::root_mod; use super::runtime_types; #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] pub type Error = runtime_types::pallet_preimage::pallet::Error; #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] pub type Call = runtime_types::pallet_preimage::pallet::Call; pub mod calls { use super::root_mod; use super::runtime_types; type DispatchError = runtime_types::sp_runtime::DispatchError; pub mod types { use super::runtime_types; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct NotePreimage { pub bytes: ::std::vec::Vec<::core::primitive::u8>, } impl ::subxt::blocks::StaticExtrinsic for NotePreimage { const PALLET: &'static str = "Preimage"; const CALL: &'static str = "note_preimage"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct UnnotePreimage { pub hash: ::subxt::utils::H256, } impl ::subxt::blocks::StaticExtrinsic for UnnotePreimage { const PALLET: &'static str = "Preimage"; const CALL: &'static str = "unnote_preimage"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct RequestPreimage { pub hash: ::subxt::utils::H256, } impl ::subxt::blocks::StaticExtrinsic for RequestPreimage { const PALLET: &'static str = "Preimage"; const CALL: &'static str = "request_preimage"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct UnrequestPreimage { pub hash: ::subxt::utils::H256, } impl ::subxt::blocks::StaticExtrinsic for UnrequestPreimage { const PALLET: &'static str = "Preimage"; const CALL: &'static str = "unrequest_preimage"; } } pub struct TransactionApi; impl TransactionApi { #[doc = "Register a preimage on-chain."] #[doc = ""] #[doc = "If the preimage was previously requested, no fees or deposits are taken for providing"] #[doc = "the preimage. Otherwise, a deposit is taken proportional to the size of the preimage."] pub fn note_preimage( &self, bytes: ::std::vec::Vec<::core::primitive::u8>, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Preimage", "note_preimage", types::NotePreimage { bytes }, [ 121u8, 88u8, 18u8, 92u8, 176u8, 15u8, 192u8, 198u8, 146u8, 198u8, 38u8, 242u8, 213u8, 83u8, 7u8, 230u8, 14u8, 110u8, 235u8, 32u8, 215u8, 26u8, 192u8, 217u8, 113u8, 224u8, 206u8, 96u8, 177u8, 198u8, 246u8, 33u8, ], ) } #[doc = "Clear an unrequested preimage from the runtime storage."] #[doc = ""] #[doc = "If `len` is provided, then it will be a much cheaper operation."] #[doc = ""] #[doc = "- `hash`: The hash of the preimage to be removed from the store."] #[doc = "- `len`: The length of the preimage of `hash`."] pub fn unnote_preimage( &self, hash: ::subxt::utils::H256, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Preimage", "unnote_preimage", types::UnnotePreimage { hash }, [ 188u8, 116u8, 222u8, 22u8, 127u8, 215u8, 2u8, 133u8, 96u8, 202u8, 190u8, 123u8, 203u8, 43u8, 200u8, 161u8, 226u8, 24u8, 49u8, 36u8, 221u8, 160u8, 130u8, 119u8, 30u8, 138u8, 144u8, 85u8, 5u8, 164u8, 252u8, 222u8, ], ) } #[doc = "Request a preimage be uploaded to the chain without paying any fees or deposits."] #[doc = ""] #[doc = "If the preimage requests has already been provided on-chain, we unreserve any deposit"] #[doc = "a user may have paid, and take the control of the preimage out of their hands."] pub fn request_preimage( &self, hash: ::subxt::utils::H256, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Preimage", "request_preimage", types::RequestPreimage { hash }, [ 87u8, 0u8, 204u8, 111u8, 43u8, 115u8, 64u8, 209u8, 133u8, 13u8, 83u8, 45u8, 164u8, 166u8, 233u8, 105u8, 242u8, 238u8, 235u8, 208u8, 113u8, 134u8, 93u8, 242u8, 86u8, 32u8, 7u8, 152u8, 107u8, 208u8, 79u8, 59u8, ], ) } #[doc = "Clear a previously made request for a preimage."] #[doc = ""] #[doc = "NOTE: THIS MUST NOT BE CALLED ON `hash` MORE TIMES THAN `request_preimage`."] pub fn unrequest_preimage( &self, hash: ::subxt::utils::H256, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Preimage", "unrequest_preimage", types::UnrequestPreimage { hash }, [ 55u8, 37u8, 224u8, 149u8, 142u8, 120u8, 8u8, 68u8, 183u8, 225u8, 255u8, 240u8, 254u8, 111u8, 58u8, 200u8, 113u8, 217u8, 177u8, 203u8, 107u8, 104u8, 233u8, 87u8, 252u8, 53u8, 33u8, 112u8, 116u8, 254u8, 117u8, 134u8, ], ) } } } #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] pub type Event = runtime_types::pallet_preimage::pallet::Event; pub mod events { use super::runtime_types; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A preimage has been noted."] pub struct Noted { pub hash: ::subxt::utils::H256, } impl ::subxt::events::StaticEvent for Noted { const PALLET: &'static str = "Preimage"; const EVENT: &'static str = "Noted"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A preimage has been requested."] pub struct Requested { pub hash: ::subxt::utils::H256, } impl ::subxt::events::StaticEvent for Requested { const PALLET: &'static str = "Preimage"; const EVENT: &'static str = "Requested"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A preimage has ben cleared."] pub struct Cleared { pub hash: ::subxt::utils::H256, } impl ::subxt::events::StaticEvent for Cleared { const PALLET: &'static str = "Preimage"; const EVENT: &'static str = "Cleared"; } } pub mod storage { use super::runtime_types; pub struct StorageApi; impl StorageApi { #[doc = " The request status of a given hash."] pub fn status_for( &self, _0: impl ::std::borrow::Borrow<::subxt::utils::H256>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, runtime_types::pallet_preimage::RequestStatus< ::subxt::utils::AccountId32, ::core::primitive::u128, >, ::subxt::storage::address::Yes, (), ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( "Preimage", "StatusFor", vec![::subxt::storage::address::make_static_storage_map_key( _0.borrow(), )], [ 176u8, 174u8, 255u8, 131u8, 156u8, 64u8, 181u8, 119u8, 81u8, 243u8, 144u8, 55u8, 19u8, 140u8, 119u8, 30u8, 210u8, 112u8, 201u8, 247u8, 13u8, 19u8, 120u8, 190u8, 253u8, 89u8, 4u8, 109u8, 122u8, 62u8, 87u8, 186u8, ], ) } #[doc = " The request status of a given hash."] pub fn status_for_root( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, runtime_types::pallet_preimage::RequestStatus< ::subxt::utils::AccountId32, ::core::primitive::u128, >, (), (), ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( "Preimage", "StatusFor", Vec::new(), [ 176u8, 174u8, 255u8, 131u8, 156u8, 64u8, 181u8, 119u8, 81u8, 243u8, 144u8, 55u8, 19u8, 140u8, 119u8, 30u8, 210u8, 112u8, 201u8, 247u8, 13u8, 19u8, 120u8, 190u8, 253u8, 89u8, 4u8, 109u8, 122u8, 62u8, 87u8, 186u8, ], ) } pub fn preimage_for( &self, _0: impl ::std::borrow::Borrow<::subxt::utils::H256>, _1: impl ::std::borrow::Borrow<::core::primitive::u32>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, runtime_types::bounded_collections::bounded_vec::BoundedVec< ::core::primitive::u8, >, ::subxt::storage::address::Yes, (), ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( "Preimage", "PreimageFor", vec![ ::subxt::storage::address::make_static_storage_map_key(_0.borrow()), ::subxt::storage::address::make_static_storage_map_key(_1.borrow()), ], [ 20u8, 5u8, 33u8, 71u8, 153u8, 129u8, 98u8, 23u8, 214u8, 138u8, 96u8, 113u8, 245u8, 128u8, 51u8, 55u8, 123u8, 218u8, 165u8, 247u8, 14u8, 104u8, 119u8, 87u8, 71u8, 222u8, 200u8, 103u8, 58u8, 10u8, 97u8, 134u8, ], ) } pub fn preimage_for_root( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, runtime_types::bounded_collections::bounded_vec::BoundedVec< ::core::primitive::u8, >, (), (), ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( "Preimage", "PreimageFor", Vec::new(), [ 20u8, 5u8, 33u8, 71u8, 153u8, 129u8, 98u8, 23u8, 214u8, 138u8, 96u8, 113u8, 245u8, 128u8, 51u8, 55u8, 123u8, 218u8, 165u8, 247u8, 14u8, 104u8, 119u8, 87u8, 71u8, 222u8, 200u8, 103u8, 58u8, 10u8, 97u8, 134u8, ], ) } } } } pub mod babe { use super::root_mod; use super::runtime_types; #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] pub type Error = runtime_types::pallet_babe::pallet::Error; #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] pub type Call = runtime_types::pallet_babe::pallet::Call; pub mod calls { use super::root_mod; use super::runtime_types; type DispatchError = runtime_types::sp_runtime::DispatchError; pub mod types { use super::runtime_types; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ReportEquivocation { pub equivocation_proof: ::std::boxed::Box< runtime_types::sp_consensus_slots::EquivocationProof< runtime_types::sp_runtime::generic::header::Header< ::core::primitive::u32, runtime_types::sp_runtime::traits::BlakeTwo256, >, runtime_types::sp_consensus_babe::app::Public, >, >, pub key_owner_proof: runtime_types::sp_session::MembershipProof, } impl ::subxt::blocks::StaticExtrinsic for ReportEquivocation { const PALLET: &'static str = "Babe"; const CALL: &'static str = "report_equivocation"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ReportEquivocationUnsigned { pub equivocation_proof: ::std::boxed::Box< runtime_types::sp_consensus_slots::EquivocationProof< runtime_types::sp_runtime::generic::header::Header< ::core::primitive::u32, runtime_types::sp_runtime::traits::BlakeTwo256, >, runtime_types::sp_consensus_babe::app::Public, >, >, pub key_owner_proof: runtime_types::sp_session::MembershipProof, } impl ::subxt::blocks::StaticExtrinsic for ReportEquivocationUnsigned { const PALLET: &'static str = "Babe"; const CALL: &'static str = "report_equivocation_unsigned"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct PlanConfigChange { pub config: runtime_types::sp_consensus_babe::digests::NextConfigDescriptor, } impl ::subxt::blocks::StaticExtrinsic for PlanConfigChange { const PALLET: &'static str = "Babe"; const CALL: &'static str = "plan_config_change"; } } pub struct TransactionApi; impl TransactionApi { #[doc = "Report authority equivocation/misbehavior. This method will verify"] #[doc = "the equivocation proof and validate the given key ownership proof"] #[doc = "against the extracted offender. If both are valid, the offence will"] #[doc = "be reported."] pub fn report_equivocation( &self, equivocation_proof: runtime_types::sp_consensus_slots::EquivocationProof< runtime_types::sp_runtime::generic::header::Header< ::core::primitive::u32, runtime_types::sp_runtime::traits::BlakeTwo256, >, runtime_types::sp_consensus_babe::app::Public, >, key_owner_proof: runtime_types::sp_session::MembershipProof, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Babe", "report_equivocation", types::ReportEquivocation { equivocation_proof: ::std::boxed::Box::new(equivocation_proof), key_owner_proof, }, [ 112u8, 178u8, 160u8, 11u8, 51u8, 221u8, 60u8, 95u8, 15u8, 167u8, 168u8, 70u8, 155u8, 189u8, 58u8, 243u8, 79u8, 173u8, 99u8, 82u8, 251u8, 179u8, 132u8, 84u8, 12u8, 32u8, 191u8, 217u8, 116u8, 65u8, 86u8, 123u8, ], ) } #[doc = "Report authority equivocation/misbehavior. This method will verify"] #[doc = "the equivocation proof and validate the given key ownership proof"] #[doc = "against the extracted offender. If both are valid, the offence will"] #[doc = "be reported."] #[doc = "This extrinsic must be called unsigned and it is expected that only"] #[doc = "block authors will call it (validated in `ValidateUnsigned`), as such"] #[doc = "if the block author is defined it will be defined as the equivocation"] #[doc = "reporter."] pub fn report_equivocation_unsigned( &self, equivocation_proof: runtime_types::sp_consensus_slots::EquivocationProof< runtime_types::sp_runtime::generic::header::Header< ::core::primitive::u32, runtime_types::sp_runtime::traits::BlakeTwo256, >, runtime_types::sp_consensus_babe::app::Public, >, key_owner_proof: runtime_types::sp_session::MembershipProof, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Babe", "report_equivocation_unsigned", types::ReportEquivocationUnsigned { equivocation_proof: ::std::boxed::Box::new(equivocation_proof), key_owner_proof, }, [ 155u8, 41u8, 95u8, 173u8, 63u8, 104u8, 36u8, 189u8, 159u8, 197u8, 201u8, 219u8, 89u8, 137u8, 114u8, 123u8, 200u8, 209u8, 69u8, 124u8, 253u8, 170u8, 159u8, 144u8, 12u8, 166u8, 159u8, 231u8, 223u8, 243u8, 103u8, 121u8, ], ) } #[doc = "Plan an epoch config change. The epoch config change is recorded and will be enacted on"] #[doc = "the next call to `enact_epoch_change`. The config will be activated one epoch after."] #[doc = "Multiple calls to this method will replace any existing planned config change that had"] #[doc = "not been enacted yet."] pub fn plan_config_change( &self, config: runtime_types::sp_consensus_babe::digests::NextConfigDescriptor, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Babe", "plan_config_change", types::PlanConfigChange { config }, [ 165u8, 26u8, 134u8, 130u8, 137u8, 42u8, 127u8, 161u8, 117u8, 251u8, 215u8, 241u8, 69u8, 224u8, 134u8, 1u8, 187u8, 203u8, 168u8, 139u8, 121u8, 243u8, 235u8, 223u8, 135u8, 128u8, 227u8, 129u8, 183u8, 51u8, 135u8, 79u8, ], ) } } } pub mod storage { use super::runtime_types; pub struct StorageApi; impl StorageApi { #[doc = " Current epoch index."] pub fn epoch_index( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, ::core::primitive::u64, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), > { ::subxt::storage::address::Address::new_static( "Babe", "EpochIndex", vec![], [ 32u8, 82u8, 130u8, 31u8, 190u8, 162u8, 237u8, 189u8, 104u8, 244u8, 30u8, 199u8, 179u8, 0u8, 161u8, 107u8, 72u8, 240u8, 201u8, 222u8, 177u8, 222u8, 35u8, 156u8, 81u8, 132u8, 162u8, 118u8, 238u8, 84u8, 112u8, 89u8, ], ) } #[doc = " Current epoch authorities."] pub fn authorities( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, runtime_types::bounded_collections::weak_bounded_vec::WeakBoundedVec<( runtime_types::sp_consensus_babe::app::Public, ::core::primitive::u64, )>, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), > { ::subxt::storage::address::Address::new_static( "Babe", "Authorities", vec![], [ 67u8, 196u8, 244u8, 13u8, 246u8, 245u8, 198u8, 98u8, 81u8, 55u8, 182u8, 187u8, 214u8, 5u8, 181u8, 76u8, 251u8, 213u8, 144u8, 166u8, 36u8, 153u8, 234u8, 181u8, 252u8, 55u8, 198u8, 175u8, 55u8, 211u8, 105u8, 85u8, ], ) } #[doc = " The slot at which the first epoch actually started. This is 0"] #[doc = " until the first block of the chain."] pub fn genesis_slot( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, runtime_types::sp_consensus_slots::Slot, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), > { ::subxt::storage::address::Address::new_static( "Babe", "GenesisSlot", vec![], [ 218u8, 174u8, 152u8, 76u8, 188u8, 214u8, 7u8, 88u8, 253u8, 187u8, 139u8, 234u8, 51u8, 28u8, 220u8, 57u8, 73u8, 1u8, 18u8, 205u8, 80u8, 160u8, 120u8, 216u8, 139u8, 191u8, 100u8, 108u8, 162u8, 106u8, 175u8, 107u8, ], ) } #[doc = " Current slot number."] pub fn current_slot( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, runtime_types::sp_consensus_slots::Slot, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), > { ::subxt::storage::address::Address::new_static( "Babe", "CurrentSlot", vec![], [ 112u8, 199u8, 115u8, 248u8, 217u8, 242u8, 45u8, 231u8, 178u8, 53u8, 236u8, 167u8, 219u8, 238u8, 81u8, 243u8, 39u8, 140u8, 68u8, 19u8, 201u8, 169u8, 211u8, 133u8, 135u8, 213u8, 150u8, 105u8, 60u8, 252u8, 43u8, 57u8, ], ) } #[doc = " The epoch randomness for the *current* epoch."] #[doc = ""] #[doc = " # Security"] #[doc = ""] #[doc = " This MUST NOT be used for gambling, as it can be influenced by a"] #[doc = " malicious validator in the short term. It MAY be used in many"] #[doc = " cryptographic protocols, however, so long as one remembers that this"] #[doc = " (like everything else on-chain) it is public. For example, it can be"] #[doc = " used where a number is needed that cannot have been chosen by an"] #[doc = " adversary, for purposes such as public-coin zero-knowledge proofs."] pub fn randomness( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, [::core::primitive::u8; 32usize], ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), > { ::subxt::storage::address::Address::new_static( "Babe", "Randomness", vec![], [ 36u8, 15u8, 52u8, 73u8, 195u8, 177u8, 186u8, 125u8, 134u8, 11u8, 103u8, 248u8, 170u8, 237u8, 105u8, 239u8, 168u8, 204u8, 147u8, 52u8, 15u8, 226u8, 126u8, 176u8, 133u8, 186u8, 169u8, 241u8, 156u8, 118u8, 67u8, 58u8, ], ) } #[doc = " Pending epoch configuration change that will be applied when the next epoch is enacted."] pub fn pending_epoch_config_change( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, runtime_types::sp_consensus_babe::digests::NextConfigDescriptor, ::subxt::storage::address::Yes, (), (), > { ::subxt::storage::address::Address::new_static( "Babe", "PendingEpochConfigChange", vec![], [ 71u8, 143u8, 197u8, 44u8, 242u8, 120u8, 71u8, 244u8, 41u8, 201u8, 132u8, 103u8, 96u8, 23u8, 111u8, 232u8, 30u8, 35u8, 154u8, 251u8, 183u8, 23u8, 144u8, 80u8, 101u8, 117u8, 43u8, 228u8, 174u8, 221u8, 183u8, 165u8, ], ) } #[doc = " Next epoch randomness."] pub fn next_randomness( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, [::core::primitive::u8; 32usize], ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), > { ::subxt::storage::address::Address::new_static( "Babe", "NextRandomness", vec![], [ 96u8, 191u8, 139u8, 171u8, 144u8, 92u8, 33u8, 58u8, 23u8, 219u8, 164u8, 121u8, 59u8, 209u8, 112u8, 244u8, 50u8, 8u8, 14u8, 244u8, 103u8, 125u8, 120u8, 210u8, 16u8, 250u8, 54u8, 192u8, 72u8, 8u8, 219u8, 152u8, ], ) } #[doc = " Next epoch authorities."] pub fn next_authorities( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, runtime_types::bounded_collections::weak_bounded_vec::WeakBoundedVec<( runtime_types::sp_consensus_babe::app::Public, ::core::primitive::u64, )>, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), > { ::subxt::storage::address::Address::new_static( "Babe", "NextAuthorities", vec![], [ 116u8, 95u8, 126u8, 199u8, 237u8, 90u8, 202u8, 227u8, 247u8, 56u8, 201u8, 113u8, 239u8, 191u8, 151u8, 56u8, 156u8, 133u8, 61u8, 64u8, 141u8, 26u8, 8u8, 95u8, 177u8, 255u8, 54u8, 223u8, 132u8, 74u8, 210u8, 128u8, ], ) } #[doc = " Randomness under construction."] #[doc = ""] #[doc = " We make a trade-off between storage accesses and list length."] #[doc = " We store the under-construction randomness in segments of up to"] #[doc = " `UNDER_CONSTRUCTION_SEGMENT_LENGTH`."] #[doc = ""] #[doc = " Once a segment reaches this length, we begin the next one."] #[doc = " We reset all segments and return to `0` at the beginning of every"] #[doc = " epoch."] pub fn segment_index( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, ::core::primitive::u32, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), > { ::subxt::storage::address::Address::new_static( "Babe", "SegmentIndex", vec![], [ 145u8, 91u8, 142u8, 240u8, 184u8, 94u8, 68u8, 52u8, 130u8, 3u8, 75u8, 175u8, 155u8, 130u8, 66u8, 9u8, 150u8, 242u8, 123u8, 111u8, 124u8, 241u8, 100u8, 128u8, 220u8, 133u8, 96u8, 227u8, 164u8, 241u8, 170u8, 34u8, ], ) } #[doc = " TWOX-NOTE: `SegmentIndex` is an increasing integer, so this is okay."] pub fn under_construction( &self, _0: impl ::std::borrow::Borrow<::core::primitive::u32>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, runtime_types::bounded_collections::bounded_vec::BoundedVec< [::core::primitive::u8; 32usize], >, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( "Babe", "UnderConstruction", vec![::subxt::storage::address::make_static_storage_map_key( _0.borrow(), )], [ 120u8, 120u8, 59u8, 247u8, 50u8, 6u8, 220u8, 14u8, 2u8, 76u8, 203u8, 244u8, 232u8, 144u8, 253u8, 191u8, 101u8, 35u8, 99u8, 85u8, 111u8, 168u8, 31u8, 110u8, 187u8, 124u8, 72u8, 32u8, 43u8, 66u8, 8u8, 215u8, ], ) } #[doc = " TWOX-NOTE: `SegmentIndex` is an increasing integer, so this is okay."] pub fn under_construction_root( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, runtime_types::bounded_collections::bounded_vec::BoundedVec< [::core::primitive::u8; 32usize], >, (), ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( "Babe", "UnderConstruction", Vec::new(), [ 120u8, 120u8, 59u8, 247u8, 50u8, 6u8, 220u8, 14u8, 2u8, 76u8, 203u8, 244u8, 232u8, 144u8, 253u8, 191u8, 101u8, 35u8, 99u8, 85u8, 111u8, 168u8, 31u8, 110u8, 187u8, 124u8, 72u8, 32u8, 43u8, 66u8, 8u8, 215u8, ], ) } #[doc = " Temporary value (cleared at block finalization) which is `Some`"] #[doc = " if per-block initialization has already been called for current block."] pub fn initialized( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, ::core::option::Option, ::subxt::storage::address::Yes, (), (), > { ::subxt::storage::address::Address::new_static( "Babe", "Initialized", vec![], [ 61u8, 100u8, 12u8, 43u8, 50u8, 166u8, 173u8, 130u8, 86u8, 36u8, 92u8, 221u8, 44u8, 235u8, 241u8, 150u8, 231u8, 108u8, 15u8, 134u8, 12u8, 6u8, 198u8, 102u8, 63u8, 69u8, 201u8, 171u8, 14u8, 135u8, 254u8, 239u8, ], ) } #[doc = " This field should always be populated during block processing unless"] #[doc = " secondary plain slots are enabled (which don't contain a VRF output)."] #[doc = ""] #[doc = " It is set in `on_finalize`, before it will contain the value from the last block."] pub fn author_vrf_randomness( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, ::core::option::Option<[::core::primitive::u8; 32usize]>, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), > { ::subxt::storage::address::Address::new_static( "Babe", "AuthorVrfRandomness", vec![], [ 160u8, 157u8, 62u8, 48u8, 196u8, 136u8, 63u8, 132u8, 155u8, 183u8, 91u8, 201u8, 146u8, 29u8, 192u8, 142u8, 168u8, 152u8, 197u8, 233u8, 5u8, 25u8, 0u8, 154u8, 234u8, 180u8, 146u8, 132u8, 106u8, 164u8, 149u8, 63u8, ], ) } #[doc = " The block numbers when the last and current epoch have started, respectively `N-1` and"] #[doc = " `N`."] #[doc = " NOTE: We track this is in order to annotate the block number when a given pool of"] #[doc = " entropy was fixed (i.e. it was known to chain observers). Since epochs are defined in"] #[doc = " slots, which may be skipped, the block numbers may not line up with the slot numbers."] pub fn epoch_start( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, (::core::primitive::u32, ::core::primitive::u32), ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), > { ::subxt::storage::address::Address::new_static( "Babe", "EpochStart", vec![], [ 246u8, 69u8, 165u8, 217u8, 181u8, 138u8, 201u8, 64u8, 251u8, 121u8, 50u8, 231u8, 221u8, 144u8, 225u8, 249u8, 42u8, 135u8, 31u8, 136u8, 21u8, 160u8, 186u8, 148u8, 139u8, 232u8, 182u8, 121u8, 82u8, 110u8, 14u8, 160u8, ], ) } #[doc = " How late the current block is compared to its parent."] #[doc = ""] #[doc = " This entry is populated as part of block execution and is cleaned up"] #[doc = " on block finalization. Querying this storage entry outside of block"] #[doc = " execution context should always yield zero."] pub fn lateness( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, ::core::primitive::u32, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), > { ::subxt::storage::address::Address::new_static( "Babe", "Lateness", vec![], [ 229u8, 214u8, 133u8, 149u8, 32u8, 159u8, 26u8, 22u8, 252u8, 131u8, 200u8, 191u8, 231u8, 176u8, 178u8, 127u8, 33u8, 212u8, 139u8, 220u8, 157u8, 38u8, 4u8, 226u8, 204u8, 32u8, 55u8, 20u8, 205u8, 141u8, 29u8, 87u8, ], ) } #[doc = " The configuration for the current epoch. Should never be `None` as it is initialized in"] #[doc = " genesis."] pub fn epoch_config( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, runtime_types::sp_consensus_babe::BabeEpochConfiguration, ::subxt::storage::address::Yes, (), (), > { ::subxt::storage::address::Address::new_static( "Babe", "EpochConfig", vec![], [ 23u8, 188u8, 70u8, 119u8, 36u8, 199u8, 230u8, 191u8, 131u8, 219u8, 85u8, 201u8, 237u8, 70u8, 214u8, 149u8, 212u8, 94u8, 87u8, 87u8, 62u8, 16u8, 46u8, 143u8, 73u8, 169u8, 42u8, 139u8, 157u8, 139u8, 190u8, 166u8, ], ) } #[doc = " The configuration for the next epoch, `None` if the config will not change"] #[doc = " (you can fallback to `EpochConfig` instead in that case)."] pub fn next_epoch_config( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, runtime_types::sp_consensus_babe::BabeEpochConfiguration, ::subxt::storage::address::Yes, (), (), > { ::subxt::storage::address::Address::new_static( "Babe", "NextEpochConfig", vec![], [ 35u8, 132u8, 198u8, 33u8, 167u8, 69u8, 180u8, 215u8, 207u8, 40u8, 35u8, 78u8, 167u8, 22u8, 32u8, 246u8, 111u8, 207u8, 88u8, 13u8, 28u8, 86u8, 220u8, 102u8, 35u8, 105u8, 160u8, 163u8, 13u8, 99u8, 142u8, 69u8, ], ) } #[doc = " A list of the last 100 skipped epochs and the corresponding session index"] #[doc = " when the epoch was skipped."] #[doc = ""] #[doc = " This is only used for validating equivocation proofs. An equivocation proof"] #[doc = " must contains a key-ownership proof for a given session, therefore we need a"] #[doc = " way to tie together sessions and epoch indices, i.e. we need to validate that"] #[doc = " a validator was the owner of a given key on a given session, and what the"] #[doc = " active epoch index was during that session."] pub fn skipped_epochs( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, runtime_types::bounded_collections::bounded_vec::BoundedVec<( ::core::primitive::u64, ::core::primitive::u32, )>, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), > { ::subxt::storage::address::Address::new_static( "Babe", "SkippedEpochs", vec![], [ 120u8, 167u8, 144u8, 97u8, 41u8, 216u8, 103u8, 90u8, 3u8, 86u8, 196u8, 35u8, 160u8, 150u8, 144u8, 233u8, 128u8, 35u8, 119u8, 66u8, 6u8, 63u8, 114u8, 140u8, 182u8, 228u8, 192u8, 30u8, 50u8, 145u8, 217u8, 108u8, ], ) } } } pub mod constants { use super::runtime_types; pub struct ConstantsApi; impl ConstantsApi { #[doc = " The amount of time, in slots, that each epoch should last."] #[doc = " NOTE: Currently it is not possible to change the epoch duration after"] #[doc = " the chain has started. Attempting to do so will brick block production."] pub fn epoch_duration( &self, ) -> ::subxt::constants::Address<::core::primitive::u64> { ::subxt::constants::Address::new_static( "Babe", "EpochDuration", [ 128u8, 214u8, 205u8, 242u8, 181u8, 142u8, 124u8, 231u8, 190u8, 146u8, 59u8, 226u8, 157u8, 101u8, 103u8, 117u8, 249u8, 65u8, 18u8, 191u8, 103u8, 119u8, 53u8, 85u8, 81u8, 96u8, 220u8, 42u8, 184u8, 239u8, 42u8, 246u8, ], ) } #[doc = " The expected average block time at which BABE should be creating"] #[doc = " blocks. Since BABE is probabilistic it is not trivial to figure out"] #[doc = " what the expected average block time should be based on the slot"] #[doc = " duration and the security parameter `c` (where `1 - c` represents"] #[doc = " the probability of a slot being empty)."] pub fn expected_block_time( &self, ) -> ::subxt::constants::Address<::core::primitive::u64> { ::subxt::constants::Address::new_static( "Babe", "ExpectedBlockTime", [ 128u8, 214u8, 205u8, 242u8, 181u8, 142u8, 124u8, 231u8, 190u8, 146u8, 59u8, 226u8, 157u8, 101u8, 103u8, 117u8, 249u8, 65u8, 18u8, 191u8, 103u8, 119u8, 53u8, 85u8, 81u8, 96u8, 220u8, 42u8, 184u8, 239u8, 42u8, 246u8, ], ) } #[doc = " Max number of authorities allowed"] pub fn max_authorities( &self, ) -> ::subxt::constants::Address<::core::primitive::u32> { ::subxt::constants::Address::new_static( "Babe", "MaxAuthorities", [ 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, 145u8, ], ) } } } } pub mod timestamp { use super::root_mod; use super::runtime_types; #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] pub type Call = runtime_types::pallet_timestamp::pallet::Call; pub mod calls { use super::root_mod; use super::runtime_types; type DispatchError = runtime_types::sp_runtime::DispatchError; pub mod types { use super::runtime_types; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Set { #[codec(compact)] pub now: ::core::primitive::u64, } impl ::subxt::blocks::StaticExtrinsic for Set { const PALLET: &'static str = "Timestamp"; const CALL: &'static str = "set"; } } pub struct TransactionApi; impl TransactionApi { #[doc = "Set the current time."] #[doc = ""] #[doc = "This call should be invoked exactly once per block. It will panic at the finalization"] #[doc = "phase, if this call hasn't been invoked by that time."] #[doc = ""] #[doc = "The timestamp should be greater than the previous one by the amount specified by"] #[doc = "`MinimumPeriod`."] #[doc = ""] #[doc = "The dispatch origin for this call must be `Inherent`."] #[doc = ""] #[doc = "## Complexity"] #[doc = "- `O(1)` (Note that implementations of `OnTimestampSet` must also be `O(1)`)"] #[doc = "- 1 storage read and 1 storage mutation (codec `O(1)`). (because of `DidUpdate::take` in"] #[doc = " `on_finalize`)"] #[doc = "- 1 event handler `on_timestamp_set`. Must be `O(1)`."] pub fn set(&self, now: ::core::primitive::u64) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Timestamp", "set", types::Set { now }, [ 37u8, 95u8, 49u8, 218u8, 24u8, 22u8, 0u8, 95u8, 72u8, 35u8, 155u8, 199u8, 213u8, 54u8, 207u8, 22u8, 185u8, 193u8, 221u8, 70u8, 18u8, 200u8, 4u8, 231u8, 195u8, 173u8, 6u8, 122u8, 11u8, 203u8, 231u8, 227u8, ], ) } } } pub mod storage { use super::runtime_types; pub struct StorageApi; impl StorageApi { #[doc = " Current time for the current block."] pub fn now( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, ::core::primitive::u64, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), > { ::subxt::storage::address::Address::new_static( "Timestamp", "Now", vec![], [ 44u8, 50u8, 80u8, 30u8, 195u8, 146u8, 123u8, 238u8, 8u8, 163u8, 187u8, 92u8, 61u8, 39u8, 51u8, 29u8, 173u8, 169u8, 217u8, 158u8, 85u8, 187u8, 141u8, 26u8, 12u8, 115u8, 51u8, 11u8, 200u8, 244u8, 138u8, 152u8, ], ) } #[doc = " Did the timestamp get updated in this block?"] pub fn did_update( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, ::core::primitive::bool, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), > { ::subxt::storage::address::Address::new_static( "Timestamp", "DidUpdate", vec![], [ 229u8, 175u8, 246u8, 102u8, 237u8, 158u8, 212u8, 229u8, 238u8, 214u8, 205u8, 160u8, 164u8, 252u8, 195u8, 75u8, 139u8, 110u8, 22u8, 34u8, 248u8, 204u8, 107u8, 46u8, 20u8, 200u8, 238u8, 167u8, 71u8, 41u8, 214u8, 140u8, ], ) } } } pub mod constants { use super::runtime_types; pub struct ConstantsApi; impl ConstantsApi { #[doc = " The minimum period between blocks. Beware that this is different to the *expected*"] #[doc = " period that the block production apparatus provides. Your chosen consensus system will"] #[doc = " generally work with this to determine a sensible block time. e.g. For Aura, it will be"] #[doc = " double this period on default settings."] pub fn minimum_period( &self, ) -> ::subxt::constants::Address<::core::primitive::u64> { ::subxt::constants::Address::new_static( "Timestamp", "MinimumPeriod", [ 128u8, 214u8, 205u8, 242u8, 181u8, 142u8, 124u8, 231u8, 190u8, 146u8, 59u8, 226u8, 157u8, 101u8, 103u8, 117u8, 249u8, 65u8, 18u8, 191u8, 103u8, 119u8, 53u8, 85u8, 81u8, 96u8, 220u8, 42u8, 184u8, 239u8, 42u8, 246u8, ], ) } } } } pub mod indices { use super::root_mod; use super::runtime_types; #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] pub type Error = runtime_types::pallet_indices::pallet::Error; #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] pub type Call = runtime_types::pallet_indices::pallet::Call; pub mod calls { use super::root_mod; use super::runtime_types; type DispatchError = runtime_types::sp_runtime::DispatchError; pub mod types { use super::runtime_types; #[derive( :: subxt :: ext :: codec :: CompactAs, :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Claim { pub index: ::core::primitive::u32, } impl ::subxt::blocks::StaticExtrinsic for Claim { const PALLET: &'static str = "Indices"; const CALL: &'static str = "claim"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Transfer { pub new: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, pub index: ::core::primitive::u32, } impl ::subxt::blocks::StaticExtrinsic for Transfer { const PALLET: &'static str = "Indices"; const CALL: &'static str = "transfer"; } #[derive( :: subxt :: ext :: codec :: CompactAs, :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Free { pub index: ::core::primitive::u32, } impl ::subxt::blocks::StaticExtrinsic for Free { const PALLET: &'static str = "Indices"; const CALL: &'static str = "free"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ForceTransfer { pub new: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, pub index: ::core::primitive::u32, pub freeze: ::core::primitive::bool, } impl ::subxt::blocks::StaticExtrinsic for ForceTransfer { const PALLET: &'static str = "Indices"; const CALL: &'static str = "force_transfer"; } #[derive( :: subxt :: ext :: codec :: CompactAs, :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Freeze { pub index: ::core::primitive::u32, } impl ::subxt::blocks::StaticExtrinsic for Freeze { const PALLET: &'static str = "Indices"; const CALL: &'static str = "freeze"; } } pub struct TransactionApi; impl TransactionApi { #[doc = "Assign an previously unassigned index."] #[doc = ""] #[doc = "Payment: `Deposit` is reserved from the sender account."] #[doc = ""] #[doc = "The dispatch origin for this call must be _Signed_."] #[doc = ""] #[doc = "- `index`: the index to be claimed. This must not be in use."] #[doc = ""] #[doc = "Emits `IndexAssigned` if successful."] #[doc = ""] #[doc = "## Complexity"] #[doc = "- `O(1)`."] pub fn claim( &self, index: ::core::primitive::u32, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Indices", "claim", types::Claim { index }, [ 146u8, 58u8, 246u8, 135u8, 59u8, 90u8, 3u8, 5u8, 140u8, 169u8, 232u8, 195u8, 11u8, 107u8, 36u8, 141u8, 118u8, 174u8, 160u8, 160u8, 19u8, 205u8, 177u8, 193u8, 18u8, 102u8, 115u8, 31u8, 72u8, 29u8, 91u8, 235u8, ], ) } #[doc = "Assign an index already owned by the sender to another account. The balance reservation"] #[doc = "is effectively transferred to the new account."] #[doc = ""] #[doc = "The dispatch origin for this call must be _Signed_."] #[doc = ""] #[doc = "- `index`: the index to be re-assigned. This must be owned by the sender."] #[doc = "- `new`: the new owner of the index. This function is a no-op if it is equal to sender."] #[doc = ""] #[doc = "Emits `IndexAssigned` if successful."] #[doc = ""] #[doc = "## Complexity"] #[doc = "- `O(1)`."] pub fn transfer( &self, new: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, index: ::core::primitive::u32, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Indices", "transfer", types::Transfer { new, index }, [ 177u8, 21u8, 139u8, 124u8, 88u8, 41u8, 95u8, 240u8, 196u8, 208u8, 48u8, 105u8, 251u8, 100u8, 207u8, 144u8, 101u8, 101u8, 2u8, 161u8, 134u8, 91u8, 194u8, 8u8, 254u8, 110u8, 58u8, 21u8, 57u8, 112u8, 11u8, 217u8, ], ) } #[doc = "Free up an index owned by the sender."] #[doc = ""] #[doc = "Payment: Any previous deposit placed for the index is unreserved in the sender account."] #[doc = ""] #[doc = "The dispatch origin for this call must be _Signed_ and the sender must own the index."] #[doc = ""] #[doc = "- `index`: the index to be freed. This must be owned by the sender."] #[doc = ""] #[doc = "Emits `IndexFreed` if successful."] #[doc = ""] #[doc = "## Complexity"] #[doc = "- `O(1)`."] pub fn free( &self, index: ::core::primitive::u32, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Indices", "free", types::Free { index }, [ 241u8, 211u8, 234u8, 102u8, 189u8, 22u8, 209u8, 27u8, 8u8, 229u8, 80u8, 227u8, 138u8, 252u8, 222u8, 111u8, 77u8, 201u8, 235u8, 51u8, 163u8, 247u8, 13u8, 126u8, 216u8, 136u8, 57u8, 222u8, 56u8, 66u8, 215u8, 244u8, ], ) } #[doc = "Force an index to an account. This doesn't require a deposit. If the index is already"] #[doc = "held, then any deposit is reimbursed to its current owner."] #[doc = ""] #[doc = "The dispatch origin for this call must be _Root_."] #[doc = ""] #[doc = "- `index`: the index to be (re-)assigned."] #[doc = "- `new`: the new owner of the index. This function is a no-op if it is equal to sender."] #[doc = "- `freeze`: if set to `true`, will freeze the index so it cannot be transferred."] #[doc = ""] #[doc = "Emits `IndexAssigned` if successful."] #[doc = ""] #[doc = "## Complexity"] #[doc = "- `O(1)`."] pub fn force_transfer( &self, new: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, index: ::core::primitive::u32, freeze: ::core::primitive::bool, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Indices", "force_transfer", types::ForceTransfer { new, index, freeze }, [ 155u8, 118u8, 154u8, 203u8, 130u8, 145u8, 83u8, 132u8, 42u8, 145u8, 210u8, 241u8, 217u8, 31u8, 126u8, 114u8, 2u8, 31u8, 210u8, 5u8, 93u8, 57u8, 122u8, 238u8, 151u8, 244u8, 234u8, 251u8, 5u8, 153u8, 217u8, 204u8, ], ) } #[doc = "Freeze an index so it will always point to the sender account. This consumes the"] #[doc = "deposit."] #[doc = ""] #[doc = "The dispatch origin for this call must be _Signed_ and the signing account must have a"] #[doc = "non-frozen account `index`."] #[doc = ""] #[doc = "- `index`: the index to be frozen in place."] #[doc = ""] #[doc = "Emits `IndexFrozen` if successful."] #[doc = ""] #[doc = "## Complexity"] #[doc = "- `O(1)`."] pub fn freeze( &self, index: ::core::primitive::u32, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Indices", "freeze", types::Freeze { index }, [ 238u8, 215u8, 108u8, 156u8, 84u8, 240u8, 130u8, 229u8, 27u8, 132u8, 93u8, 78u8, 2u8, 251u8, 43u8, 203u8, 2u8, 142u8, 147u8, 48u8, 92u8, 101u8, 207u8, 24u8, 51u8, 16u8, 36u8, 229u8, 188u8, 129u8, 160u8, 117u8, ], ) } } } #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] pub type Event = runtime_types::pallet_indices::pallet::Event; pub mod events { use super::runtime_types; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A account index was assigned."] pub struct IndexAssigned { pub who: ::subxt::utils::AccountId32, pub index: ::core::primitive::u32, } impl ::subxt::events::StaticEvent for IndexAssigned { const PALLET: &'static str = "Indices"; const EVENT: &'static str = "IndexAssigned"; } #[derive( :: subxt :: ext :: codec :: CompactAs, :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A account index has been freed up (unassigned)."] pub struct IndexFreed { pub index: ::core::primitive::u32, } impl ::subxt::events::StaticEvent for IndexFreed { const PALLET: &'static str = "Indices"; const EVENT: &'static str = "IndexFreed"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A account index has been frozen to its current account ID."] pub struct IndexFrozen { pub index: ::core::primitive::u32, pub who: ::subxt::utils::AccountId32, } impl ::subxt::events::StaticEvent for IndexFrozen { const PALLET: &'static str = "Indices"; const EVENT: &'static str = "IndexFrozen"; } } pub mod storage { use super::runtime_types; pub struct StorageApi; impl StorageApi { #[doc = " The lookup from index to account."] pub fn accounts( &self, _0: impl ::std::borrow::Borrow<::core::primitive::u32>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, ( ::subxt::utils::AccountId32, ::core::primitive::u128, ::core::primitive::bool, ), ::subxt::storage::address::Yes, (), ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( "Indices", "Accounts", vec![::subxt::storage::address::make_static_storage_map_key( _0.borrow(), )], [ 48u8, 189u8, 43u8, 119u8, 32u8, 168u8, 28u8, 12u8, 245u8, 81u8, 119u8, 182u8, 23u8, 201u8, 33u8, 147u8, 128u8, 171u8, 155u8, 134u8, 71u8, 87u8, 100u8, 248u8, 107u8, 129u8, 36u8, 197u8, 220u8, 90u8, 11u8, 238u8, ], ) } #[doc = " The lookup from index to account."] pub fn accounts_root( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, ( ::subxt::utils::AccountId32, ::core::primitive::u128, ::core::primitive::bool, ), (), (), ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( "Indices", "Accounts", Vec::new(), [ 48u8, 189u8, 43u8, 119u8, 32u8, 168u8, 28u8, 12u8, 245u8, 81u8, 119u8, 182u8, 23u8, 201u8, 33u8, 147u8, 128u8, 171u8, 155u8, 134u8, 71u8, 87u8, 100u8, 248u8, 107u8, 129u8, 36u8, 197u8, 220u8, 90u8, 11u8, 238u8, ], ) } } } pub mod constants { use super::runtime_types; pub struct ConstantsApi; impl ConstantsApi { #[doc = " The deposit needed for reserving an index."] pub fn deposit(&self) -> ::subxt::constants::Address<::core::primitive::u128> { ::subxt::constants::Address::new_static( "Indices", "Deposit", [ 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8, 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, 136u8, 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, 148u8, 156u8, ], ) } } } } pub mod balances { use super::root_mod; use super::runtime_types; #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] pub type Error = runtime_types::pallet_balances::pallet::Error; #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] pub type Call = runtime_types::pallet_balances::pallet::Call; pub mod calls { use super::root_mod; use super::runtime_types; type DispatchError = runtime_types::sp_runtime::DispatchError; pub mod types { use super::runtime_types; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct TransferAllowDeath { pub dest: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, #[codec(compact)] pub value: ::core::primitive::u128, } impl ::subxt::blocks::StaticExtrinsic for TransferAllowDeath { const PALLET: &'static str = "Balances"; const CALL: &'static str = "transfer_allow_death"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SetBalanceDeprecated { pub who: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, #[codec(compact)] pub new_free: ::core::primitive::u128, #[codec(compact)] pub old_reserved: ::core::primitive::u128, } impl ::subxt::blocks::StaticExtrinsic for SetBalanceDeprecated { const PALLET: &'static str = "Balances"; const CALL: &'static str = "set_balance_deprecated"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ForceTransfer { pub source: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, pub dest: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, #[codec(compact)] pub value: ::core::primitive::u128, } impl ::subxt::blocks::StaticExtrinsic for ForceTransfer { const PALLET: &'static str = "Balances"; const CALL: &'static str = "force_transfer"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct TransferKeepAlive { pub dest: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, #[codec(compact)] pub value: ::core::primitive::u128, } impl ::subxt::blocks::StaticExtrinsic for TransferKeepAlive { const PALLET: &'static str = "Balances"; const CALL: &'static str = "transfer_keep_alive"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct TransferAll { pub dest: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, pub keep_alive: ::core::primitive::bool, } impl ::subxt::blocks::StaticExtrinsic for TransferAll { const PALLET: &'static str = "Balances"; const CALL: &'static str = "transfer_all"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ForceUnreserve { pub who: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, pub amount: ::core::primitive::u128, } impl ::subxt::blocks::StaticExtrinsic for ForceUnreserve { const PALLET: &'static str = "Balances"; const CALL: &'static str = "force_unreserve"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct UpgradeAccounts { pub who: ::std::vec::Vec<::subxt::utils::AccountId32>, } impl ::subxt::blocks::StaticExtrinsic for UpgradeAccounts { const PALLET: &'static str = "Balances"; const CALL: &'static str = "upgrade_accounts"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Transfer { pub dest: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, #[codec(compact)] pub value: ::core::primitive::u128, } impl ::subxt::blocks::StaticExtrinsic for Transfer { const PALLET: &'static str = "Balances"; const CALL: &'static str = "transfer"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ForceSetBalance { pub who: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, #[codec(compact)] pub new_free: ::core::primitive::u128, } impl ::subxt::blocks::StaticExtrinsic for ForceSetBalance { const PALLET: &'static str = "Balances"; const CALL: &'static str = "force_set_balance"; } } pub struct TransactionApi; impl TransactionApi { #[doc = "Transfer some liquid free balance to another account."] #[doc = ""] #[doc = "`transfer_allow_death` will set the `FreeBalance` of the sender and receiver."] #[doc = "If the sender's account is below the existential deposit as a result"] #[doc = "of the transfer, the account will be reaped."] #[doc = ""] #[doc = "The dispatch origin for this call must be `Signed` by the transactor."] pub fn transfer_allow_death( &self, dest: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, value: ::core::primitive::u128, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Balances", "transfer_allow_death", types::TransferAllowDeath { dest, value }, [ 113u8, 146u8, 7u8, 108u8, 132u8, 222u8, 204u8, 107u8, 142u8, 47u8, 46u8, 72u8, 140u8, 22u8, 128u8, 135u8, 132u8, 10u8, 116u8, 41u8, 253u8, 65u8, 140u8, 1u8, 50u8, 153u8, 47u8, 243u8, 210u8, 62u8, 23u8, 181u8, ], ) } #[doc = "Set the regular balance of a given account; it also takes a reserved balance but this"] #[doc = "must be the same as the account's current reserved balance."] #[doc = ""] #[doc = "The dispatch origin for this call is `root`."] #[doc = ""] #[doc = "WARNING: This call is DEPRECATED! Use `force_set_balance` instead."] pub fn set_balance_deprecated( &self, who: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, new_free: ::core::primitive::u128, old_reserved: ::core::primitive::u128, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Balances", "set_balance_deprecated", types::SetBalanceDeprecated { who, new_free, old_reserved, }, [ 43u8, 86u8, 149u8, 26u8, 133u8, 41u8, 43u8, 16u8, 98u8, 65u8, 244u8, 123u8, 233u8, 146u8, 76u8, 116u8, 48u8, 164u8, 23u8, 211u8, 42u8, 111u8, 245u8, 16u8, 54u8, 92u8, 163u8, 66u8, 193u8, 58u8, 58u8, 185u8, ], ) } #[doc = "Exactly as `transfer_allow_death`, except the origin must be root and the source account"] #[doc = "may be specified."] pub fn force_transfer( &self, source: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, dest: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, value: ::core::primitive::u128, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Balances", "force_transfer", types::ForceTransfer { source, dest, value, }, [ 105u8, 201u8, 253u8, 250u8, 151u8, 193u8, 29u8, 188u8, 132u8, 138u8, 84u8, 243u8, 170u8, 22u8, 169u8, 161u8, 202u8, 233u8, 79u8, 122u8, 77u8, 198u8, 84u8, 149u8, 151u8, 238u8, 174u8, 179u8, 201u8, 150u8, 184u8, 20u8, ], ) } #[doc = "Same as the [`transfer_allow_death`] call, but with a check that the transfer will not"] #[doc = "kill the origin account."] #[doc = ""] #[doc = "99% of the time you want [`transfer_allow_death`] instead."] #[doc = ""] #[doc = "[`transfer_allow_death`]: struct.Pallet.html#method.transfer"] pub fn transfer_keep_alive( &self, dest: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, value: ::core::primitive::u128, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Balances", "transfer_keep_alive", types::TransferKeepAlive { dest, value }, [ 31u8, 197u8, 106u8, 219u8, 164u8, 234u8, 37u8, 214u8, 112u8, 211u8, 149u8, 238u8, 162u8, 234u8, 226u8, 11u8, 182u8, 178u8, 182u8, 19u8, 43u8, 172u8, 122u8, 175u8, 16u8, 253u8, 193u8, 116u8, 199u8, 158u8, 255u8, 188u8, ], ) } #[doc = "Transfer the entire transferable balance from the caller account."] #[doc = ""] #[doc = "NOTE: This function only attempts to transfer _transferable_ balances. This means that"] #[doc = "any locked, reserved, or existential deposits (when `keep_alive` is `true`), will not be"] #[doc = "transferred by this function. To ensure that this function results in a killed account,"] #[doc = "you might need to prepare the account by removing any reference counters, storage"] #[doc = "deposits, etc..."] #[doc = ""] #[doc = "The dispatch origin of this call must be Signed."] #[doc = ""] #[doc = "- `dest`: The recipient of the transfer."] #[doc = "- `keep_alive`: A boolean to determine if the `transfer_all` operation should send all"] #[doc = " of the funds the account has, causing the sender account to be killed (false), or"] #[doc = " transfer everything except at least the existential deposit, which will guarantee to"] #[doc = " keep the sender account alive (true)."] pub fn transfer_all( &self, dest: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, keep_alive: ::core::primitive::bool, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Balances", "transfer_all", types::TransferAll { dest, keep_alive }, [ 167u8, 120u8, 58u8, 200u8, 65u8, 248u8, 240u8, 141u8, 208u8, 240u8, 89u8, 13u8, 62u8, 169u8, 228u8, 29u8, 219u8, 56u8, 137u8, 224u8, 16u8, 111u8, 13u8, 65u8, 65u8, 84u8, 123u8, 173u8, 12u8, 82u8, 101u8, 226u8, ], ) } #[doc = "Unreserve some balance from a user by force."] #[doc = ""] #[doc = "Can only be called by ROOT."] pub fn force_unreserve( &self, who: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, amount: ::core::primitive::u128, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Balances", "force_unreserve", types::ForceUnreserve { who, amount }, [ 244u8, 207u8, 86u8, 147u8, 199u8, 152u8, 130u8, 38u8, 248u8, 32u8, 97u8, 0u8, 243u8, 58u8, 74u8, 238u8, 68u8, 144u8, 213u8, 168u8, 21u8, 151u8, 62u8, 78u8, 8u8, 159u8, 89u8, 1u8, 255u8, 23u8, 83u8, 18u8, ], ) } #[doc = "Upgrade a specified account."] #[doc = ""] #[doc = "- `origin`: Must be `Signed`."] #[doc = "- `who`: The account to be upgraded."] #[doc = ""] #[doc = "This will waive the transaction fee if at least all but 10% of the accounts needed to"] #[doc = "be upgraded. (We let some not have to be upgraded just in order to allow for the"] #[doc = "possibililty of churn)."] pub fn upgrade_accounts( &self, who: ::std::vec::Vec<::subxt::utils::AccountId32>, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Balances", "upgrade_accounts", types::UpgradeAccounts { who }, [ 66u8, 200u8, 179u8, 104u8, 65u8, 2u8, 101u8, 56u8, 130u8, 161u8, 224u8, 233u8, 255u8, 124u8, 70u8, 122u8, 8u8, 49u8, 103u8, 178u8, 68u8, 47u8, 214u8, 166u8, 217u8, 116u8, 178u8, 50u8, 212u8, 164u8, 98u8, 226u8, ], ) } #[doc = "Alias for `transfer_allow_death`, provided only for name-wise compatibility."] #[doc = ""] #[doc = "WARNING: DEPRECATED! Will be released in approximately 3 months."] pub fn transfer( &self, dest: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, value: ::core::primitive::u128, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Balances", "transfer", types::Transfer { dest, value }, [ 155u8, 139u8, 211u8, 134u8, 163u8, 226u8, 249u8, 125u8, 15u8, 236u8, 254u8, 100u8, 49u8, 104u8, 68u8, 71u8, 121u8, 120u8, 66u8, 159u8, 49u8, 1u8, 125u8, 223u8, 43u8, 174u8, 19u8, 186u8, 110u8, 190u8, 87u8, 6u8, ], ) } #[doc = "Set the regular balance of a given account."] #[doc = ""] #[doc = "The dispatch origin for this call is `root`."] pub fn force_set_balance( &self, who: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, new_free: ::core::primitive::u128, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Balances", "force_set_balance", types::ForceSetBalance { who, new_free }, [ 22u8, 6u8, 147u8, 252u8, 116u8, 39u8, 228u8, 198u8, 229u8, 92u8, 141u8, 236u8, 192u8, 108u8, 45u8, 242u8, 100u8, 148u8, 47u8, 5u8, 249u8, 49u8, 81u8, 156u8, 81u8, 79u8, 216u8, 6u8, 15u8, 192u8, 97u8, 65u8, ], ) } } } #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] pub type Event = runtime_types::pallet_balances::pallet::Event; pub mod events { use super::runtime_types; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "An account was created with some free balance."] pub struct Endowed { pub account: ::subxt::utils::AccountId32, pub free_balance: ::core::primitive::u128, } impl ::subxt::events::StaticEvent for Endowed { const PALLET: &'static str = "Balances"; const EVENT: &'static str = "Endowed"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "An account was removed whose balance was non-zero but below ExistentialDeposit,"] #[doc = "resulting in an outright loss."] pub struct DustLost { pub account: ::subxt::utils::AccountId32, pub amount: ::core::primitive::u128, } impl ::subxt::events::StaticEvent for DustLost { const PALLET: &'static str = "Balances"; const EVENT: &'static str = "DustLost"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Transfer succeeded."] pub struct Transfer { pub from: ::subxt::utils::AccountId32, pub to: ::subxt::utils::AccountId32, pub amount: ::core::primitive::u128, } impl ::subxt::events::StaticEvent for Transfer { const PALLET: &'static str = "Balances"; const EVENT: &'static str = "Transfer"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A balance was set by root."] pub struct BalanceSet { pub who: ::subxt::utils::AccountId32, pub free: ::core::primitive::u128, } impl ::subxt::events::StaticEvent for BalanceSet { const PALLET: &'static str = "Balances"; const EVENT: &'static str = "BalanceSet"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Some balance was reserved (moved from free to reserved)."] pub struct Reserved { pub who: ::subxt::utils::AccountId32, pub amount: ::core::primitive::u128, } impl ::subxt::events::StaticEvent for Reserved { const PALLET: &'static str = "Balances"; const EVENT: &'static str = "Reserved"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Some balance was unreserved (moved from reserved to free)."] pub struct Unreserved { pub who: ::subxt::utils::AccountId32, pub amount: ::core::primitive::u128, } impl ::subxt::events::StaticEvent for Unreserved { const PALLET: &'static str = "Balances"; const EVENT: &'static str = "Unreserved"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Some balance was moved from the reserve of the first account to the second account."] #[doc = "Final argument indicates the destination balance type."] pub struct ReserveRepatriated { pub from: ::subxt::utils::AccountId32, pub to: ::subxt::utils::AccountId32, pub amount: ::core::primitive::u128, pub destination_status: runtime_types::frame_support::traits::tokens::misc::BalanceStatus, } impl ::subxt::events::StaticEvent for ReserveRepatriated { const PALLET: &'static str = "Balances"; const EVENT: &'static str = "ReserveRepatriated"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Some amount was deposited (e.g. for transaction fees)."] pub struct Deposit { pub who: ::subxt::utils::AccountId32, pub amount: ::core::primitive::u128, } impl ::subxt::events::StaticEvent for Deposit { const PALLET: &'static str = "Balances"; const EVENT: &'static str = "Deposit"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Some amount was withdrawn from the account (e.g. for transaction fees)."] pub struct Withdraw { pub who: ::subxt::utils::AccountId32, pub amount: ::core::primitive::u128, } impl ::subxt::events::StaticEvent for Withdraw { const PALLET: &'static str = "Balances"; const EVENT: &'static str = "Withdraw"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Some amount was removed from the account (e.g. for misbehavior)."] pub struct Slashed { pub who: ::subxt::utils::AccountId32, pub amount: ::core::primitive::u128, } impl ::subxt::events::StaticEvent for Slashed { const PALLET: &'static str = "Balances"; const EVENT: &'static str = "Slashed"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Some amount was minted into an account."] pub struct Minted { pub who: ::subxt::utils::AccountId32, pub amount: ::core::primitive::u128, } impl ::subxt::events::StaticEvent for Minted { const PALLET: &'static str = "Balances"; const EVENT: &'static str = "Minted"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Some amount was burned from an account."] pub struct Burned { pub who: ::subxt::utils::AccountId32, pub amount: ::core::primitive::u128, } impl ::subxt::events::StaticEvent for Burned { const PALLET: &'static str = "Balances"; const EVENT: &'static str = "Burned"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Some amount was suspended from an account (it can be restored later)."] pub struct Suspended { pub who: ::subxt::utils::AccountId32, pub amount: ::core::primitive::u128, } impl ::subxt::events::StaticEvent for Suspended { const PALLET: &'static str = "Balances"; const EVENT: &'static str = "Suspended"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Some amount was restored into an account."] pub struct Restored { pub who: ::subxt::utils::AccountId32, pub amount: ::core::primitive::u128, } impl ::subxt::events::StaticEvent for Restored { const PALLET: &'static str = "Balances"; const EVENT: &'static str = "Restored"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "An account was upgraded."] pub struct Upgraded { pub who: ::subxt::utils::AccountId32, } impl ::subxt::events::StaticEvent for Upgraded { const PALLET: &'static str = "Balances"; const EVENT: &'static str = "Upgraded"; } #[derive( :: subxt :: ext :: codec :: CompactAs, :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Total issuance was increased by `amount`, creating a credit to be balanced."] pub struct Issued { pub amount: ::core::primitive::u128, } impl ::subxt::events::StaticEvent for Issued { const PALLET: &'static str = "Balances"; const EVENT: &'static str = "Issued"; } #[derive( :: subxt :: ext :: codec :: CompactAs, :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Total issuance was decreased by `amount`, creating a debt to be balanced."] pub struct Rescinded { pub amount: ::core::primitive::u128, } impl ::subxt::events::StaticEvent for Rescinded { const PALLET: &'static str = "Balances"; const EVENT: &'static str = "Rescinded"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Some balance was locked."] pub struct Locked { pub who: ::subxt::utils::AccountId32, pub amount: ::core::primitive::u128, } impl ::subxt::events::StaticEvent for Locked { const PALLET: &'static str = "Balances"; const EVENT: &'static str = "Locked"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Some balance was unlocked."] pub struct Unlocked { pub who: ::subxt::utils::AccountId32, pub amount: ::core::primitive::u128, } impl ::subxt::events::StaticEvent for Unlocked { const PALLET: &'static str = "Balances"; const EVENT: &'static str = "Unlocked"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Some balance was frozen."] pub struct Frozen { pub who: ::subxt::utils::AccountId32, pub amount: ::core::primitive::u128, } impl ::subxt::events::StaticEvent for Frozen { const PALLET: &'static str = "Balances"; const EVENT: &'static str = "Frozen"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Some balance was thawed."] pub struct Thawed { pub who: ::subxt::utils::AccountId32, pub amount: ::core::primitive::u128, } impl ::subxt::events::StaticEvent for Thawed { const PALLET: &'static str = "Balances"; const EVENT: &'static str = "Thawed"; } } pub mod storage { use super::runtime_types; pub struct StorageApi; impl StorageApi { #[doc = " The total units issued in the system."] pub fn total_issuance( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, ::core::primitive::u128, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), > { ::subxt::storage::address::Address::new_static( "Balances", "TotalIssuance", vec![], [ 116u8, 70u8, 119u8, 194u8, 69u8, 37u8, 116u8, 206u8, 171u8, 70u8, 171u8, 210u8, 226u8, 111u8, 184u8, 204u8, 206u8, 11u8, 68u8, 72u8, 255u8, 19u8, 194u8, 11u8, 27u8, 194u8, 81u8, 204u8, 59u8, 224u8, 202u8, 185u8, ], ) } #[doc = " The total units of outstanding deactivated balance in the system."] pub fn inactive_issuance( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, ::core::primitive::u128, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), > { ::subxt::storage::address::Address::new_static( "Balances", "InactiveIssuance", vec![], [ 212u8, 185u8, 19u8, 50u8, 250u8, 72u8, 173u8, 50u8, 4u8, 104u8, 161u8, 249u8, 77u8, 247u8, 204u8, 248u8, 11u8, 18u8, 57u8, 4u8, 82u8, 110u8, 30u8, 216u8, 16u8, 37u8, 87u8, 67u8, 189u8, 235u8, 214u8, 155u8, ], ) } #[doc = " The Balances pallet example of storing the balance of an account."] #[doc = ""] #[doc = " # Example"] #[doc = ""] #[doc = " ```nocompile"] #[doc = " impl pallet_balances::Config for Runtime {"] #[doc = " type AccountStore = StorageMapShim, frame_system::Provider, AccountId, Self::AccountData>"] #[doc = " }"] #[doc = " ```"] #[doc = ""] #[doc = " You can also store the balance of an account in the `System` pallet."] #[doc = ""] #[doc = " # Example"] #[doc = ""] #[doc = " ```nocompile"] #[doc = " impl pallet_balances::Config for Runtime {"] #[doc = " type AccountStore = System"] #[doc = " }"] #[doc = " ```"] #[doc = ""] #[doc = " But this comes with tradeoffs, storing account balances in the system pallet stores"] #[doc = " `frame_system` data alongside the account data contrary to storing account balances in the"] #[doc = " `Balances` pallet, which uses a `StorageMap` to store balances data only."] #[doc = " NOTE: This is only used in the case that this pallet is used to store balances."] pub fn account( &self, _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, runtime_types::pallet_balances::types::AccountData<::core::primitive::u128>, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( "Balances", "Account", vec![::subxt::storage::address::make_static_storage_map_key( _0.borrow(), )], [ 47u8, 253u8, 83u8, 165u8, 18u8, 176u8, 62u8, 239u8, 78u8, 85u8, 231u8, 235u8, 157u8, 145u8, 251u8, 35u8, 225u8, 171u8, 82u8, 167u8, 68u8, 206u8, 28u8, 169u8, 8u8, 93u8, 169u8, 101u8, 180u8, 206u8, 231u8, 143u8, ], ) } #[doc = " The Balances pallet example of storing the balance of an account."] #[doc = ""] #[doc = " # Example"] #[doc = ""] #[doc = " ```nocompile"] #[doc = " impl pallet_balances::Config for Runtime {"] #[doc = " type AccountStore = StorageMapShim, frame_system::Provider, AccountId, Self::AccountData>"] #[doc = " }"] #[doc = " ```"] #[doc = ""] #[doc = " You can also store the balance of an account in the `System` pallet."] #[doc = ""] #[doc = " # Example"] #[doc = ""] #[doc = " ```nocompile"] #[doc = " impl pallet_balances::Config for Runtime {"] #[doc = " type AccountStore = System"] #[doc = " }"] #[doc = " ```"] #[doc = ""] #[doc = " But this comes with tradeoffs, storing account balances in the system pallet stores"] #[doc = " `frame_system` data alongside the account data contrary to storing account balances in the"] #[doc = " `Balances` pallet, which uses a `StorageMap` to store balances data only."] #[doc = " NOTE: This is only used in the case that this pallet is used to store balances."] pub fn account_root( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, runtime_types::pallet_balances::types::AccountData<::core::primitive::u128>, (), ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( "Balances", "Account", Vec::new(), [ 47u8, 253u8, 83u8, 165u8, 18u8, 176u8, 62u8, 239u8, 78u8, 85u8, 231u8, 235u8, 157u8, 145u8, 251u8, 35u8, 225u8, 171u8, 82u8, 167u8, 68u8, 206u8, 28u8, 169u8, 8u8, 93u8, 169u8, 101u8, 180u8, 206u8, 231u8, 143u8, ], ) } #[doc = " Any liquidity locks on some account balances."] #[doc = " NOTE: Should only be accessed when setting, changing and freeing a lock."] pub fn locks( &self, _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, runtime_types::bounded_collections::weak_bounded_vec::WeakBoundedVec< runtime_types::pallet_balances::types::BalanceLock<::core::primitive::u128>, >, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( "Balances", "Locks", vec![::subxt::storage::address::make_static_storage_map_key( _0.borrow(), )], [ 44u8, 44u8, 48u8, 20u8, 121u8, 168u8, 200u8, 87u8, 205u8, 172u8, 111u8, 208u8, 62u8, 243u8, 225u8, 223u8, 181u8, 36u8, 197u8, 9u8, 52u8, 182u8, 113u8, 55u8, 126u8, 164u8, 82u8, 209u8, 151u8, 126u8, 186u8, 85u8, ], ) } #[doc = " Any liquidity locks on some account balances."] #[doc = " NOTE: Should only be accessed when setting, changing and freeing a lock."] pub fn locks_root( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, runtime_types::bounded_collections::weak_bounded_vec::WeakBoundedVec< runtime_types::pallet_balances::types::BalanceLock<::core::primitive::u128>, >, (), ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( "Balances", "Locks", Vec::new(), [ 44u8, 44u8, 48u8, 20u8, 121u8, 168u8, 200u8, 87u8, 205u8, 172u8, 111u8, 208u8, 62u8, 243u8, 225u8, 223u8, 181u8, 36u8, 197u8, 9u8, 52u8, 182u8, 113u8, 55u8, 126u8, 164u8, 82u8, 209u8, 151u8, 126u8, 186u8, 85u8, ], ) } #[doc = " Named reserves on some account balances."] pub fn reserves( &self, _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, runtime_types::bounded_collections::bounded_vec::BoundedVec< runtime_types::pallet_balances::types::ReserveData< [::core::primitive::u8; 8usize], ::core::primitive::u128, >, >, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( "Balances", "Reserves", vec![::subxt::storage::address::make_static_storage_map_key( _0.borrow(), )], [ 192u8, 99u8, 91u8, 129u8, 195u8, 73u8, 153u8, 126u8, 82u8, 52u8, 56u8, 85u8, 105u8, 178u8, 113u8, 101u8, 229u8, 37u8, 242u8, 174u8, 166u8, 244u8, 68u8, 173u8, 14u8, 225u8, 172u8, 70u8, 181u8, 211u8, 165u8, 134u8, ], ) } #[doc = " Named reserves on some account balances."] pub fn reserves_root( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, runtime_types::bounded_collections::bounded_vec::BoundedVec< runtime_types::pallet_balances::types::ReserveData< [::core::primitive::u8; 8usize], ::core::primitive::u128, >, >, (), ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( "Balances", "Reserves", Vec::new(), [ 192u8, 99u8, 91u8, 129u8, 195u8, 73u8, 153u8, 126u8, 82u8, 52u8, 56u8, 85u8, 105u8, 178u8, 113u8, 101u8, 229u8, 37u8, 242u8, 174u8, 166u8, 244u8, 68u8, 173u8, 14u8, 225u8, 172u8, 70u8, 181u8, 211u8, 165u8, 134u8, ], ) } #[doc = " Holds on account balances."] pub fn holds( &self, _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, runtime_types::bounded_collections::bounded_vec::BoundedVec< runtime_types::pallet_balances::types::IdAmount< (), ::core::primitive::u128, >, >, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( "Balances", "Holds", vec![::subxt::storage::address::make_static_storage_map_key( _0.borrow(), )], [ 53u8, 126u8, 215u8, 237u8, 42u8, 223u8, 188u8, 150u8, 230u8, 107u8, 95u8, 24u8, 26u8, 235u8, 158u8, 149u8, 193u8, 191u8, 10u8, 194u8, 231u8, 59u8, 35u8, 167u8, 186u8, 89u8, 43u8, 126u8, 215u8, 117u8, 1u8, 202u8, ], ) } #[doc = " Holds on account balances."] pub fn holds_root( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, runtime_types::bounded_collections::bounded_vec::BoundedVec< runtime_types::pallet_balances::types::IdAmount< (), ::core::primitive::u128, >, >, (), ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( "Balances", "Holds", Vec::new(), [ 53u8, 126u8, 215u8, 237u8, 42u8, 223u8, 188u8, 150u8, 230u8, 107u8, 95u8, 24u8, 26u8, 235u8, 158u8, 149u8, 193u8, 191u8, 10u8, 194u8, 231u8, 59u8, 35u8, 167u8, 186u8, 89u8, 43u8, 126u8, 215u8, 117u8, 1u8, 202u8, ], ) } #[doc = " Freeze locks on account balances."] pub fn freezes( &self, _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, runtime_types::bounded_collections::bounded_vec::BoundedVec< runtime_types::pallet_balances::types::IdAmount< (), ::core::primitive::u128, >, >, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( "Balances", "Freezes", vec![::subxt::storage::address::make_static_storage_map_key( _0.borrow(), )], [ 69u8, 49u8, 165u8, 76u8, 135u8, 142u8, 179u8, 118u8, 50u8, 109u8, 53u8, 112u8, 110u8, 94u8, 30u8, 93u8, 173u8, 38u8, 27u8, 142u8, 19u8, 5u8, 163u8, 4u8, 68u8, 218u8, 179u8, 224u8, 118u8, 218u8, 115u8, 64u8, ], ) } #[doc = " Freeze locks on account balances."] pub fn freezes_root( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, runtime_types::bounded_collections::bounded_vec::BoundedVec< runtime_types::pallet_balances::types::IdAmount< (), ::core::primitive::u128, >, >, (), ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( "Balances", "Freezes", Vec::new(), [ 69u8, 49u8, 165u8, 76u8, 135u8, 142u8, 179u8, 118u8, 50u8, 109u8, 53u8, 112u8, 110u8, 94u8, 30u8, 93u8, 173u8, 38u8, 27u8, 142u8, 19u8, 5u8, 163u8, 4u8, 68u8, 218u8, 179u8, 224u8, 118u8, 218u8, 115u8, 64u8, ], ) } } } pub mod constants { use super::runtime_types; pub struct ConstantsApi; impl ConstantsApi { #[doc = " The minimum amount required to keep an account open. MUST BE GREATER THAN ZERO!"] #[doc = ""] #[doc = " If you *really* need it to be zero, you can enable the feature `insecure_zero_ed` for"] #[doc = " this pallet. However, you do so at your own risk: this will open up a major DoS vector."] #[doc = " In case you have multiple sources of provider references, you may also get unexpected"] #[doc = " behaviour if you set this to zero."] #[doc = ""] #[doc = " Bottom line: Do yourself a favour and make it at least one!"] pub fn existential_deposit( &self, ) -> ::subxt::constants::Address<::core::primitive::u128> { ::subxt::constants::Address::new_static( "Balances", "ExistentialDeposit", [ 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8, 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, 136u8, 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, 148u8, 156u8, ], ) } #[doc = " The maximum number of locks that should exist on an account."] #[doc = " Not strictly enforced, but used for weight estimation."] pub fn max_locks(&self) -> ::subxt::constants::Address<::core::primitive::u32> { ::subxt::constants::Address::new_static( "Balances", "MaxLocks", [ 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, 145u8, ], ) } #[doc = " The maximum number of named reserves that can exist on an account."] pub fn max_reserves(&self) -> ::subxt::constants::Address<::core::primitive::u32> { ::subxt::constants::Address::new_static( "Balances", "MaxReserves", [ 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, 145u8, ], ) } #[doc = " The maximum number of holds that can exist on an account at any time."] pub fn max_holds(&self) -> ::subxt::constants::Address<::core::primitive::u32> { ::subxt::constants::Address::new_static( "Balances", "MaxHolds", [ 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, 145u8, ], ) } #[doc = " The maximum number of individual freeze locks that can exist on an account at any time."] pub fn max_freezes(&self) -> ::subxt::constants::Address<::core::primitive::u32> { ::subxt::constants::Address::new_static( "Balances", "MaxFreezes", [ 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, 145u8, ], ) } } } } pub mod transaction_payment { use super::root_mod; use super::runtime_types; #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] pub type Event = runtime_types::pallet_transaction_payment::pallet::Event; pub mod events { use super::runtime_types; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A transaction fee `actual_fee`, of which `tip` was added to the minimum inclusion fee,"] #[doc = "has been paid by `who`."] pub struct TransactionFeePaid { pub who: ::subxt::utils::AccountId32, pub actual_fee: ::core::primitive::u128, pub tip: ::core::primitive::u128, } impl ::subxt::events::StaticEvent for TransactionFeePaid { const PALLET: &'static str = "TransactionPayment"; const EVENT: &'static str = "TransactionFeePaid"; } } pub mod storage { use super::runtime_types; pub struct StorageApi; impl StorageApi { pub fn next_fee_multiplier( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, runtime_types::sp_arithmetic::fixed_point::FixedU128, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), > { ::subxt::storage::address::Address::new_static( "TransactionPayment", "NextFeeMultiplier", vec![], [ 247u8, 39u8, 81u8, 170u8, 225u8, 226u8, 82u8, 147u8, 34u8, 113u8, 147u8, 213u8, 59u8, 80u8, 139u8, 35u8, 36u8, 196u8, 152u8, 19u8, 9u8, 159u8, 176u8, 79u8, 249u8, 201u8, 170u8, 1u8, 129u8, 79u8, 146u8, 197u8, ], ) } pub fn storage_version( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, runtime_types::pallet_transaction_payment::Releases, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), > { ::subxt::storage::address::Address::new_static( "TransactionPayment", "StorageVersion", vec![], [ 105u8, 243u8, 158u8, 241u8, 159u8, 231u8, 253u8, 6u8, 4u8, 32u8, 85u8, 178u8, 126u8, 31u8, 203u8, 134u8, 154u8, 38u8, 122u8, 155u8, 150u8, 251u8, 174u8, 15u8, 74u8, 134u8, 216u8, 244u8, 168u8, 175u8, 158u8, 144u8, ], ) } } } pub mod constants { use super::runtime_types; pub struct ConstantsApi; impl ConstantsApi { #[doc = " A fee mulitplier for `Operational` extrinsics to compute \"virtual tip\" to boost their"] #[doc = " `priority`"] #[doc = ""] #[doc = " This value is multipled by the `final_fee` to obtain a \"virtual tip\" that is later"] #[doc = " added to a tip component in regular `priority` calculations."] #[doc = " It means that a `Normal` transaction can front-run a similarly-sized `Operational`"] #[doc = " extrinsic (with no tip), by including a tip value greater than the virtual tip."] #[doc = ""] #[doc = " ```rust,ignore"] #[doc = " // For `Normal`"] #[doc = " let priority = priority_calc(tip);"] #[doc = ""] #[doc = " // For `Operational`"] #[doc = " let virtual_tip = (inclusion_fee + tip) * OperationalFeeMultiplier;"] #[doc = " let priority = priority_calc(tip + virtual_tip);"] #[doc = " ```"] #[doc = ""] #[doc = " Note that since we use `final_fee` the multiplier applies also to the regular `tip`"] #[doc = " sent with the transaction. So, not only does the transaction get a priority bump based"] #[doc = " on the `inclusion_fee`, but we also amplify the impact of tips applied to `Operational`"] #[doc = " transactions."] pub fn operational_fee_multiplier( &self, ) -> ::subxt::constants::Address<::core::primitive::u8> { ::subxt::constants::Address::new_static( "TransactionPayment", "OperationalFeeMultiplier", [ 141u8, 130u8, 11u8, 35u8, 226u8, 114u8, 92u8, 179u8, 168u8, 110u8, 28u8, 91u8, 221u8, 64u8, 4u8, 148u8, 201u8, 193u8, 185u8, 66u8, 226u8, 114u8, 97u8, 79u8, 62u8, 212u8, 202u8, 114u8, 237u8, 228u8, 183u8, 165u8, ], ) } } } } pub mod authorship { use super::root_mod; use super::runtime_types; pub mod storage { use super::runtime_types; pub struct StorageApi; impl StorageApi { #[doc = " Author of current block."] pub fn author( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, ::subxt::utils::AccountId32, ::subxt::storage::address::Yes, (), (), > { ::subxt::storage::address::Address::new_static( "Authorship", "Author", vec![], [ 247u8, 192u8, 118u8, 227u8, 47u8, 20u8, 203u8, 199u8, 216u8, 87u8, 220u8, 50u8, 166u8, 61u8, 168u8, 213u8, 253u8, 62u8, 202u8, 199u8, 61u8, 192u8, 237u8, 53u8, 22u8, 148u8, 164u8, 245u8, 99u8, 24u8, 146u8, 18u8, ], ) } } } } pub mod staking { use super::root_mod; use super::runtime_types; #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] pub type Error = runtime_types::pallet_staking::pallet::pallet::Error; #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] pub type Call = runtime_types::pallet_staking::pallet::pallet::Call; pub mod calls { use super::root_mod; use super::runtime_types; type DispatchError = runtime_types::sp_runtime::DispatchError; pub mod types { use super::runtime_types; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Bond { pub controller: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, #[codec(compact)] pub value: ::core::primitive::u128, pub payee: runtime_types::pallet_staking::RewardDestination< ::subxt::utils::AccountId32, >, } impl ::subxt::blocks::StaticExtrinsic for Bond { const PALLET: &'static str = "Staking"; const CALL: &'static str = "bond"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct BondExtra { #[codec(compact)] pub max_additional: ::core::primitive::u128, } impl ::subxt::blocks::StaticExtrinsic for BondExtra { const PALLET: &'static str = "Staking"; const CALL: &'static str = "bond_extra"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Unbond { #[codec(compact)] pub value: ::core::primitive::u128, } impl ::subxt::blocks::StaticExtrinsic for Unbond { const PALLET: &'static str = "Staking"; const CALL: &'static str = "unbond"; } #[derive( :: subxt :: ext :: codec :: CompactAs, :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct WithdrawUnbonded { pub num_slashing_spans: ::core::primitive::u32, } impl ::subxt::blocks::StaticExtrinsic for WithdrawUnbonded { const PALLET: &'static str = "Staking"; const CALL: &'static str = "withdraw_unbonded"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Validate { pub prefs: runtime_types::pallet_staking::ValidatorPrefs, } impl ::subxt::blocks::StaticExtrinsic for Validate { const PALLET: &'static str = "Staking"; const CALL: &'static str = "validate"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Nominate { pub targets: ::std::vec::Vec< ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, >, } impl ::subxt::blocks::StaticExtrinsic for Nominate { const PALLET: &'static str = "Staking"; const CALL: &'static str = "nominate"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Chill; impl ::subxt::blocks::StaticExtrinsic for Chill { const PALLET: &'static str = "Staking"; const CALL: &'static str = "chill"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SetPayee { pub payee: runtime_types::pallet_staking::RewardDestination< ::subxt::utils::AccountId32, >, } impl ::subxt::blocks::StaticExtrinsic for SetPayee { const PALLET: &'static str = "Staking"; const CALL: &'static str = "set_payee"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SetController { pub controller: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, } impl ::subxt::blocks::StaticExtrinsic for SetController { const PALLET: &'static str = "Staking"; const CALL: &'static str = "set_controller"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SetValidatorCount { #[codec(compact)] pub new: ::core::primitive::u32, } impl ::subxt::blocks::StaticExtrinsic for SetValidatorCount { const PALLET: &'static str = "Staking"; const CALL: &'static str = "set_validator_count"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct IncreaseValidatorCount { #[codec(compact)] pub additional: ::core::primitive::u32, } impl ::subxt::blocks::StaticExtrinsic for IncreaseValidatorCount { const PALLET: &'static str = "Staking"; const CALL: &'static str = "increase_validator_count"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ScaleValidatorCount { pub factor: runtime_types::sp_arithmetic::per_things::Percent, } impl ::subxt::blocks::StaticExtrinsic for ScaleValidatorCount { const PALLET: &'static str = "Staking"; const CALL: &'static str = "scale_validator_count"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ForceNoEras; impl ::subxt::blocks::StaticExtrinsic for ForceNoEras { const PALLET: &'static str = "Staking"; const CALL: &'static str = "force_no_eras"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ForceNewEra; impl ::subxt::blocks::StaticExtrinsic for ForceNewEra { const PALLET: &'static str = "Staking"; const CALL: &'static str = "force_new_era"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SetInvulnerables { pub invulnerables: ::std::vec::Vec<::subxt::utils::AccountId32>, } impl ::subxt::blocks::StaticExtrinsic for SetInvulnerables { const PALLET: &'static str = "Staking"; const CALL: &'static str = "set_invulnerables"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ForceUnstake { pub stash: ::subxt::utils::AccountId32, pub num_slashing_spans: ::core::primitive::u32, } impl ::subxt::blocks::StaticExtrinsic for ForceUnstake { const PALLET: &'static str = "Staking"; const CALL: &'static str = "force_unstake"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ForceNewEraAlways; impl ::subxt::blocks::StaticExtrinsic for ForceNewEraAlways { const PALLET: &'static str = "Staking"; const CALL: &'static str = "force_new_era_always"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct CancelDeferredSlash { pub era: ::core::primitive::u32, pub slash_indices: ::std::vec::Vec<::core::primitive::u32>, } impl ::subxt::blocks::StaticExtrinsic for CancelDeferredSlash { const PALLET: &'static str = "Staking"; const CALL: &'static str = "cancel_deferred_slash"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct PayoutStakers { pub validator_stash: ::subxt::utils::AccountId32, pub era: ::core::primitive::u32, } impl ::subxt::blocks::StaticExtrinsic for PayoutStakers { const PALLET: &'static str = "Staking"; const CALL: &'static str = "payout_stakers"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Rebond { #[codec(compact)] pub value: ::core::primitive::u128, } impl ::subxt::blocks::StaticExtrinsic for Rebond { const PALLET: &'static str = "Staking"; const CALL: &'static str = "rebond"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ReapStash { pub stash: ::subxt::utils::AccountId32, pub num_slashing_spans: ::core::primitive::u32, } impl ::subxt::blocks::StaticExtrinsic for ReapStash { const PALLET: &'static str = "Staking"; const CALL: &'static str = "reap_stash"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Kick { pub who: ::std::vec::Vec< ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, >, } impl ::subxt::blocks::StaticExtrinsic for Kick { const PALLET: &'static str = "Staking"; const CALL: &'static str = "kick"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SetStakingConfigs { pub min_nominator_bond: runtime_types::pallet_staking::pallet::pallet::ConfigOp< ::core::primitive::u128, >, pub min_validator_bond: runtime_types::pallet_staking::pallet::pallet::ConfigOp< ::core::primitive::u128, >, pub max_nominator_count: runtime_types::pallet_staking::pallet::pallet::ConfigOp< ::core::primitive::u32, >, pub max_validator_count: runtime_types::pallet_staking::pallet::pallet::ConfigOp< ::core::primitive::u32, >, pub chill_threshold: runtime_types::pallet_staking::pallet::pallet::ConfigOp< runtime_types::sp_arithmetic::per_things::Percent, >, pub min_commission: runtime_types::pallet_staking::pallet::pallet::ConfigOp< runtime_types::sp_arithmetic::per_things::Perbill, >, } impl ::subxt::blocks::StaticExtrinsic for SetStakingConfigs { const PALLET: &'static str = "Staking"; const CALL: &'static str = "set_staking_configs"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ChillOther { pub controller: ::subxt::utils::AccountId32, } impl ::subxt::blocks::StaticExtrinsic for ChillOther { const PALLET: &'static str = "Staking"; const CALL: &'static str = "chill_other"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ForceApplyMinCommission { pub validator_stash: ::subxt::utils::AccountId32, } impl ::subxt::blocks::StaticExtrinsic for ForceApplyMinCommission { const PALLET: &'static str = "Staking"; const CALL: &'static str = "force_apply_min_commission"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SetMinCommission { pub new: runtime_types::sp_arithmetic::per_things::Perbill, } impl ::subxt::blocks::StaticExtrinsic for SetMinCommission { const PALLET: &'static str = "Staking"; const CALL: &'static str = "set_min_commission"; } } pub struct TransactionApi; impl TransactionApi { #[doc = "Take the origin account as a stash and lock up `value` of its balance. `controller` will"] #[doc = "be the account that controls it."] #[doc = ""] #[doc = "`value` must be more than the `minimum_balance` specified by `T::Currency`."] #[doc = ""] #[doc = "The dispatch origin for this call must be _Signed_ by the stash account."] #[doc = ""] #[doc = "Emits `Bonded`."] #[doc = "## Complexity"] #[doc = "- Independent of the arguments. Moderate complexity."] #[doc = "- O(1)."] #[doc = "- Three extra DB entries."] #[doc = ""] #[doc = "NOTE: Two of the storage writes (`Self::bonded`, `Self::payee`) are _never_ cleaned"] #[doc = "unless the `origin` falls below _existential deposit_ and gets removed as dust."] pub fn bond( &self, controller: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, value: ::core::primitive::u128, payee: runtime_types::pallet_staking::RewardDestination< ::subxt::utils::AccountId32, >, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Staking", "bond", types::Bond { controller, value, payee, }, [ 0u8, 34u8, 21u8, 115u8, 57u8, 40u8, 95u8, 125u8, 71u8, 15u8, 255u8, 34u8, 125u8, 8u8, 192u8, 54u8, 185u8, 187u8, 193u8, 214u8, 222u8, 202u8, 161u8, 115u8, 83u8, 46u8, 247u8, 75u8, 166u8, 209u8, 87u8, 91u8, ], ) } #[doc = "Add some extra amount that have appeared in the stash `free_balance` into the balance up"] #[doc = "for staking."] #[doc = ""] #[doc = "The dispatch origin for this call must be _Signed_ by the stash, not the controller."] #[doc = ""] #[doc = "Use this if there are additional funds in your stash account that you wish to bond."] #[doc = "Unlike [`bond`](Self::bond) or [`unbond`](Self::unbond) this function does not impose"] #[doc = "any limitation on the amount that can be added."] #[doc = ""] #[doc = "Emits `Bonded`."] #[doc = ""] #[doc = "## Complexity"] #[doc = "- Independent of the arguments. Insignificant complexity."] #[doc = "- O(1)."] pub fn bond_extra( &self, max_additional: ::core::primitive::u128, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Staking", "bond_extra", types::BondExtra { max_additional }, [ 9u8, 143u8, 179u8, 99u8, 91u8, 254u8, 114u8, 189u8, 202u8, 245u8, 48u8, 130u8, 103u8, 17u8, 183u8, 177u8, 172u8, 156u8, 227u8, 145u8, 191u8, 134u8, 81u8, 3u8, 170u8, 85u8, 40u8, 56u8, 216u8, 95u8, 232u8, 52u8, ], ) } #[doc = "Schedule a portion of the stash to be unlocked ready for transfer out after the bond"] #[doc = "period ends. If this leaves an amount actively bonded less than"] #[doc = "T::Currency::minimum_balance(), then it is increased to the full amount."] #[doc = ""] #[doc = "The dispatch origin for this call must be _Signed_ by the controller, not the stash."] #[doc = ""] #[doc = "Once the unlock period is done, you can call `withdraw_unbonded` to actually move"] #[doc = "the funds out of management ready for transfer."] #[doc = ""] #[doc = "No more than a limited number of unlocking chunks (see `MaxUnlockingChunks`)"] #[doc = "can co-exists at the same time. If there are no unlocking chunks slots available"] #[doc = "[`Call::withdraw_unbonded`] is called to remove some of the chunks (if possible)."] #[doc = ""] #[doc = "If a user encounters the `InsufficientBond` error when calling this extrinsic,"] #[doc = "they should call `chill` first in order to free up their bonded funds."] #[doc = ""] #[doc = "Emits `Unbonded`."] #[doc = ""] #[doc = "See also [`Call::withdraw_unbonded`]."] pub fn unbond( &self, value: ::core::primitive::u128, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Staking", "unbond", types::Unbond { value }, [ 70u8, 201u8, 146u8, 56u8, 51u8, 237u8, 90u8, 193u8, 69u8, 42u8, 168u8, 96u8, 215u8, 128u8, 253u8, 22u8, 239u8, 14u8, 214u8, 103u8, 170u8, 140u8, 2u8, 182u8, 3u8, 190u8, 184u8, 191u8, 231u8, 137u8, 50u8, 16u8, ], ) } #[doc = "Remove any unlocked chunks from the `unlocking` queue from our management."] #[doc = ""] #[doc = "This essentially frees up that balance to be used by the stash account to do"] #[doc = "whatever it wants."] #[doc = ""] #[doc = "The dispatch origin for this call must be _Signed_ by the controller."] #[doc = ""] #[doc = "Emits `Withdrawn`."] #[doc = ""] #[doc = "See also [`Call::unbond`]."] #[doc = ""] #[doc = "## Complexity"] #[doc = "O(S) where S is the number of slashing spans to remove"] #[doc = "NOTE: Weight annotation is the kill scenario, we refund otherwise."] pub fn withdraw_unbonded( &self, num_slashing_spans: ::core::primitive::u32, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Staking", "withdraw_unbonded", types::WithdrawUnbonded { num_slashing_spans }, [ 229u8, 128u8, 177u8, 224u8, 197u8, 118u8, 239u8, 142u8, 179u8, 164u8, 10u8, 205u8, 124u8, 254u8, 209u8, 157u8, 172u8, 87u8, 58u8, 120u8, 74u8, 12u8, 150u8, 117u8, 234u8, 32u8, 191u8, 182u8, 92u8, 97u8, 77u8, 59u8, ], ) } #[doc = "Declare the desire to validate for the origin controller."] #[doc = ""] #[doc = "Effects will be felt at the beginning of the next era."] #[doc = ""] #[doc = "The dispatch origin for this call must be _Signed_ by the controller, not the stash."] pub fn validate( &self, prefs: runtime_types::pallet_staking::ValidatorPrefs, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Staking", "validate", types::Validate { prefs }, [ 63u8, 83u8, 12u8, 16u8, 56u8, 84u8, 41u8, 141u8, 202u8, 0u8, 37u8, 30u8, 115u8, 2u8, 145u8, 101u8, 168u8, 89u8, 94u8, 98u8, 8u8, 45u8, 140u8, 237u8, 101u8, 136u8, 179u8, 162u8, 205u8, 41u8, 88u8, 248u8, ], ) } #[doc = "Declare the desire to nominate `targets` for the origin controller."] #[doc = ""] #[doc = "Effects will be felt at the beginning of the next era."] #[doc = ""] #[doc = "The dispatch origin for this call must be _Signed_ by the controller, not the stash."] #[doc = ""] #[doc = "## Complexity"] #[doc = "- The transaction's complexity is proportional to the size of `targets` (N)"] #[doc = "which is capped at CompactAssignments::LIMIT (T::MaxNominations)."] #[doc = "- Both the reads and writes follow a similar pattern."] pub fn nominate( &self, targets: ::std::vec::Vec< ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, >, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Staking", "nominate", types::Nominate { targets }, [ 149u8, 155u8, 120u8, 232u8, 57u8, 168u8, 218u8, 230u8, 97u8, 234u8, 38u8, 247u8, 103u8, 88u8, 243u8, 182u8, 97u8, 77u8, 192u8, 4u8, 147u8, 11u8, 52u8, 45u8, 108u8, 73u8, 183u8, 106u8, 198u8, 157u8, 246u8, 145u8, ], ) } #[doc = "Declare no desire to either validate or nominate."] #[doc = ""] #[doc = "Effects will be felt at the beginning of the next era."] #[doc = ""] #[doc = "The dispatch origin for this call must be _Signed_ by the controller, not the stash."] #[doc = ""] #[doc = "## Complexity"] #[doc = "- Independent of the arguments. Insignificant complexity."] #[doc = "- Contains one read."] #[doc = "- Writes are limited to the `origin` account key."] pub fn chill(&self) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Staking", "chill", types::Chill {}, [ 157u8, 75u8, 243u8, 69u8, 110u8, 192u8, 22u8, 27u8, 107u8, 68u8, 236u8, 58u8, 179u8, 34u8, 118u8, 98u8, 131u8, 62u8, 242u8, 84u8, 149u8, 24u8, 83u8, 223u8, 78u8, 12u8, 192u8, 22u8, 111u8, 11u8, 171u8, 149u8, ], ) } #[doc = "(Re-)set the payment target for a controller."] #[doc = ""] #[doc = "Effects will be felt instantly (as soon as this function is completed successfully)."] #[doc = ""] #[doc = "The dispatch origin for this call must be _Signed_ by the controller, not the stash."] #[doc = ""] #[doc = "## Complexity"] #[doc = "- O(1)"] #[doc = "- Independent of the arguments. Insignificant complexity."] #[doc = "- Contains a limited number of reads."] #[doc = "- Writes are limited to the `origin` account key."] #[doc = "---------"] pub fn set_payee( &self, payee: runtime_types::pallet_staking::RewardDestination< ::subxt::utils::AccountId32, >, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Staking", "set_payee", types::SetPayee { payee }, [ 86u8, 172u8, 187u8, 98u8, 106u8, 240u8, 184u8, 60u8, 163u8, 244u8, 7u8, 64u8, 147u8, 168u8, 192u8, 177u8, 211u8, 138u8, 73u8, 188u8, 159u8, 154u8, 175u8, 219u8, 231u8, 235u8, 93u8, 195u8, 204u8, 100u8, 196u8, 241u8, ], ) } #[doc = "(Re-)set the controller of a stash."] #[doc = ""] #[doc = "Effects will be felt instantly (as soon as this function is completed successfully)."] #[doc = ""] #[doc = "The dispatch origin for this call must be _Signed_ by the stash, not the controller."] #[doc = ""] #[doc = "## Complexity"] #[doc = "O(1)"] #[doc = "- Independent of the arguments. Insignificant complexity."] #[doc = "- Contains a limited number of reads."] #[doc = "- Writes are limited to the `origin` account key."] pub fn set_controller( &self, controller: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Staking", "set_controller", types::SetController { controller }, [ 230u8, 253u8, 112u8, 246u8, 188u8, 255u8, 116u8, 241u8, 200u8, 175u8, 185u8, 229u8, 191u8, 180u8, 37u8, 62u8, 114u8, 226u8, 90u8, 181u8, 112u8, 7u8, 194u8, 42u8, 190u8, 161u8, 14u8, 9u8, 40u8, 32u8, 223u8, 118u8, ], ) } #[doc = "Sets the ideal number of validators."] #[doc = ""] #[doc = "The dispatch origin must be Root."] #[doc = ""] #[doc = "## Complexity"] #[doc = "O(1)"] pub fn set_validator_count( &self, new: ::core::primitive::u32, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Staking", "set_validator_count", types::SetValidatorCount { new }, [ 172u8, 225u8, 157u8, 48u8, 242u8, 217u8, 126u8, 206u8, 26u8, 156u8, 203u8, 100u8, 116u8, 189u8, 98u8, 89u8, 151u8, 101u8, 77u8, 236u8, 101u8, 8u8, 148u8, 236u8, 180u8, 175u8, 232u8, 146u8, 141u8, 141u8, 78u8, 165u8, ], ) } #[doc = "Increments the ideal number of validators upto maximum of"] #[doc = "`ElectionProviderBase::MaxWinners`."] #[doc = ""] #[doc = "The dispatch origin must be Root."] #[doc = ""] #[doc = "## Complexity"] #[doc = "Same as [`Self::set_validator_count`]."] pub fn increase_validator_count( &self, additional: ::core::primitive::u32, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Staking", "increase_validator_count", types::IncreaseValidatorCount { additional }, [ 108u8, 67u8, 131u8, 248u8, 139u8, 227u8, 224u8, 221u8, 248u8, 94u8, 141u8, 104u8, 131u8, 250u8, 127u8, 164u8, 137u8, 211u8, 5u8, 27u8, 185u8, 251u8, 120u8, 243u8, 165u8, 50u8, 197u8, 161u8, 125u8, 195u8, 16u8, 29u8, ], ) } #[doc = "Scale up the ideal number of validators by a factor upto maximum of"] #[doc = "`ElectionProviderBase::MaxWinners`."] #[doc = ""] #[doc = "The dispatch origin must be Root."] #[doc = ""] #[doc = "## Complexity"] #[doc = "Same as [`Self::set_validator_count`]."] pub fn scale_validator_count( &self, factor: runtime_types::sp_arithmetic::per_things::Percent, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Staking", "scale_validator_count", types::ScaleValidatorCount { factor }, [ 93u8, 200u8, 119u8, 240u8, 148u8, 144u8, 175u8, 135u8, 102u8, 130u8, 183u8, 216u8, 28u8, 215u8, 155u8, 233u8, 152u8, 65u8, 49u8, 125u8, 196u8, 79u8, 31u8, 195u8, 233u8, 79u8, 150u8, 138u8, 103u8, 161u8, 78u8, 154u8, ], ) } #[doc = "Force there to be no new eras indefinitely."] #[doc = ""] #[doc = "The dispatch origin must be Root."] #[doc = ""] #[doc = "# Warning"] #[doc = ""] #[doc = "The election process starts multiple blocks before the end of the era."] #[doc = "Thus the election process may be ongoing when this is called. In this case the"] #[doc = "election will continue until the next era is triggered."] #[doc = ""] #[doc = "## Complexity"] #[doc = "- No arguments."] #[doc = "- Weight: O(1)"] pub fn force_no_eras(&self) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Staking", "force_no_eras", types::ForceNoEras {}, [ 77u8, 5u8, 105u8, 167u8, 251u8, 78u8, 52u8, 80u8, 177u8, 226u8, 28u8, 130u8, 106u8, 62u8, 40u8, 210u8, 110u8, 62u8, 21u8, 113u8, 234u8, 227u8, 171u8, 205u8, 240u8, 46u8, 32u8, 84u8, 184u8, 208u8, 61u8, 207u8, ], ) } #[doc = "Force there to be a new era at the end of the next session. After this, it will be"] #[doc = "reset to normal (non-forced) behaviour."] #[doc = ""] #[doc = "The dispatch origin must be Root."] #[doc = ""] #[doc = "# Warning"] #[doc = ""] #[doc = "The election process starts multiple blocks before the end of the era."] #[doc = "If this is called just before a new era is triggered, the election process may not"] #[doc = "have enough blocks to get a result."] #[doc = ""] #[doc = "## Complexity"] #[doc = "- No arguments."] #[doc = "- Weight: O(1)"] pub fn force_new_era(&self) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Staking", "force_new_era", types::ForceNewEra {}, [ 119u8, 45u8, 11u8, 87u8, 236u8, 189u8, 41u8, 142u8, 130u8, 10u8, 132u8, 140u8, 210u8, 134u8, 66u8, 152u8, 149u8, 55u8, 60u8, 31u8, 190u8, 41u8, 177u8, 103u8, 245u8, 193u8, 95u8, 255u8, 29u8, 79u8, 112u8, 188u8, ], ) } #[doc = "Set the validators who cannot be slashed (if any)."] #[doc = ""] #[doc = "The dispatch origin must be Root."] pub fn set_invulnerables( &self, invulnerables: ::std::vec::Vec<::subxt::utils::AccountId32>, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Staking", "set_invulnerables", types::SetInvulnerables { invulnerables }, [ 31u8, 115u8, 221u8, 229u8, 187u8, 61u8, 33u8, 22u8, 126u8, 142u8, 248u8, 190u8, 213u8, 35u8, 49u8, 208u8, 193u8, 0u8, 58u8, 18u8, 136u8, 220u8, 32u8, 8u8, 121u8, 36u8, 184u8, 57u8, 6u8, 125u8, 199u8, 245u8, ], ) } #[doc = "Force a current staker to become completely unstaked, immediately."] #[doc = ""] #[doc = "The dispatch origin must be Root."] pub fn force_unstake( &self, stash: ::subxt::utils::AccountId32, num_slashing_spans: ::core::primitive::u32, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Staking", "force_unstake", types::ForceUnstake { stash, num_slashing_spans, }, [ 205u8, 115u8, 222u8, 58u8, 168u8, 3u8, 59u8, 58u8, 220u8, 98u8, 204u8, 90u8, 36u8, 250u8, 178u8, 45u8, 213u8, 158u8, 92u8, 107u8, 3u8, 94u8, 118u8, 194u8, 187u8, 196u8, 101u8, 250u8, 36u8, 119u8, 21u8, 19u8, ], ) } #[doc = "Force there to be a new era at the end of sessions indefinitely."] #[doc = ""] #[doc = "The dispatch origin must be Root."] #[doc = ""] #[doc = "# Warning"] #[doc = ""] #[doc = "The election process starts multiple blocks before the end of the era."] #[doc = "If this is called just before a new era is triggered, the election process may not"] #[doc = "have enough blocks to get a result."] pub fn force_new_era_always( &self, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Staking", "force_new_era_always", types::ForceNewEraAlways {}, [ 102u8, 153u8, 116u8, 85u8, 80u8, 52u8, 89u8, 215u8, 173u8, 159u8, 96u8, 99u8, 180u8, 5u8, 62u8, 142u8, 181u8, 101u8, 160u8, 57u8, 177u8, 182u8, 6u8, 252u8, 107u8, 252u8, 225u8, 104u8, 147u8, 123u8, 244u8, 134u8, ], ) } #[doc = "Cancel enactment of a deferred slash."] #[doc = ""] #[doc = "Can be called by the `T::AdminOrigin`."] #[doc = ""] #[doc = "Parameters: era and indices of the slashes for that era to kill."] pub fn cancel_deferred_slash( &self, era: ::core::primitive::u32, slash_indices: ::std::vec::Vec<::core::primitive::u32>, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Staking", "cancel_deferred_slash", types::CancelDeferredSlash { era, slash_indices }, [ 65u8, 90u8, 54u8, 7u8, 89u8, 238u8, 254u8, 76u8, 219u8, 26u8, 137u8, 181u8, 154u8, 49u8, 35u8, 99u8, 181u8, 193u8, 209u8, 181u8, 212u8, 153u8, 49u8, 83u8, 77u8, 170u8, 175u8, 142u8, 63u8, 187u8, 183u8, 199u8, ], ) } #[doc = "Pay out all the stakers behind a single validator for a single era."] #[doc = ""] #[doc = "- `validator_stash` is the stash account of the validator. Their nominators, up to"] #[doc = " `T::MaxNominatorRewardedPerValidator`, will also receive their rewards."] #[doc = "- `era` may be any era between `[current_era - history_depth; current_era]`."] #[doc = ""] #[doc = "The origin of this call must be _Signed_. Any account can call this function, even if"] #[doc = "it is not one of the stakers."] #[doc = ""] #[doc = "## Complexity"] #[doc = "- At most O(MaxNominatorRewardedPerValidator)."] pub fn payout_stakers( &self, validator_stash: ::subxt::utils::AccountId32, era: ::core::primitive::u32, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Staking", "payout_stakers", types::PayoutStakers { validator_stash, era, }, [ 69u8, 67u8, 140u8, 197u8, 89u8, 20u8, 59u8, 55u8, 142u8, 197u8, 62u8, 107u8, 239u8, 50u8, 237u8, 52u8, 4u8, 65u8, 119u8, 73u8, 138u8, 57u8, 46u8, 78u8, 252u8, 157u8, 187u8, 14u8, 232u8, 244u8, 217u8, 171u8, ], ) } #[doc = "Rebond a portion of the stash scheduled to be unlocked."] #[doc = ""] #[doc = "The dispatch origin must be signed by the controller."] #[doc = ""] #[doc = "## Complexity"] #[doc = "- Time complexity: O(L), where L is unlocking chunks"] #[doc = "- Bounded by `MaxUnlockingChunks`."] pub fn rebond( &self, value: ::core::primitive::u128, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Staking", "rebond", types::Rebond { value }, [ 204u8, 209u8, 27u8, 219u8, 45u8, 129u8, 15u8, 39u8, 105u8, 165u8, 255u8, 55u8, 0u8, 59u8, 115u8, 79u8, 139u8, 82u8, 163u8, 197u8, 44u8, 89u8, 41u8, 234u8, 116u8, 214u8, 248u8, 123u8, 250u8, 49u8, 15u8, 77u8, ], ) } #[doc = "Remove all data structures concerning a staker/stash once it is at a state where it can"] #[doc = "be considered `dust` in the staking system. The requirements are:"] #[doc = ""] #[doc = "1. the `total_balance` of the stash is below existential deposit."] #[doc = "2. or, the `ledger.total` of the stash is below existential deposit."] #[doc = ""] #[doc = "The former can happen in cases like a slash; the latter when a fully unbonded account"] #[doc = "is still receiving staking rewards in `RewardDestination::Staked`."] #[doc = ""] #[doc = "It can be called by anyone, as long as `stash` meets the above requirements."] #[doc = ""] #[doc = "Refunds the transaction fees upon successful execution."] pub fn reap_stash( &self, stash: ::subxt::utils::AccountId32, num_slashing_spans: ::core::primitive::u32, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Staking", "reap_stash", types::ReapStash { stash, num_slashing_spans, }, [ 231u8, 240u8, 152u8, 33u8, 10u8, 60u8, 18u8, 233u8, 0u8, 229u8, 90u8, 45u8, 118u8, 29u8, 98u8, 109u8, 89u8, 7u8, 228u8, 254u8, 119u8, 125u8, 172u8, 209u8, 217u8, 107u8, 50u8, 226u8, 31u8, 5u8, 153u8, 93u8, ], ) } #[doc = "Remove the given nominations from the calling validator."] #[doc = ""] #[doc = "Effects will be felt at the beginning of the next era."] #[doc = ""] #[doc = "The dispatch origin for this call must be _Signed_ by the controller, not the stash."] #[doc = ""] #[doc = "- `who`: A list of nominator stash accounts who are nominating this validator which"] #[doc = " should no longer be nominating this validator."] #[doc = ""] #[doc = "Note: Making this call only makes sense if you first set the validator preferences to"] #[doc = "block any further nominations."] pub fn kick( &self, who: ::std::vec::Vec< ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, >, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Staking", "kick", types::Kick { who }, [ 78u8, 76u8, 77u8, 41u8, 59u8, 131u8, 44u8, 252u8, 69u8, 34u8, 206u8, 104u8, 178u8, 193u8, 79u8, 110u8, 103u8, 132u8, 183u8, 100u8, 228u8, 248u8, 102u8, 228u8, 76u8, 69u8, 11u8, 35u8, 108u8, 188u8, 96u8, 72u8, ], ) } #[doc = "Update the various staking configurations ."] #[doc = ""] #[doc = "* `min_nominator_bond`: The minimum active bond needed to be a nominator."] #[doc = "* `min_validator_bond`: The minimum active bond needed to be a validator."] #[doc = "* `max_nominator_count`: The max number of users who can be a nominator at once. When"] #[doc = " set to `None`, no limit is enforced."] #[doc = "* `max_validator_count`: The max number of users who can be a validator at once. When"] #[doc = " set to `None`, no limit is enforced."] #[doc = "* `chill_threshold`: The ratio of `max_nominator_count` or `max_validator_count` which"] #[doc = " should be filled in order for the `chill_other` transaction to work."] #[doc = "* `min_commission`: The minimum amount of commission that each validators must maintain."] #[doc = " This is checked only upon calling `validate`. Existing validators are not affected."] #[doc = ""] #[doc = "RuntimeOrigin must be Root to call this function."] #[doc = ""] #[doc = "NOTE: Existing nominators and validators will not be affected by this update."] #[doc = "to kick people under the new limits, `chill_other` should be called."] pub fn set_staking_configs( &self, min_nominator_bond: runtime_types::pallet_staking::pallet::pallet::ConfigOp< ::core::primitive::u128, >, min_validator_bond: runtime_types::pallet_staking::pallet::pallet::ConfigOp< ::core::primitive::u128, >, max_nominator_count: runtime_types::pallet_staking::pallet::pallet::ConfigOp< ::core::primitive::u32, >, max_validator_count: runtime_types::pallet_staking::pallet::pallet::ConfigOp< ::core::primitive::u32, >, chill_threshold: runtime_types::pallet_staking::pallet::pallet::ConfigOp< runtime_types::sp_arithmetic::per_things::Percent, >, min_commission: runtime_types::pallet_staking::pallet::pallet::ConfigOp< runtime_types::sp_arithmetic::per_things::Perbill, >, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Staking", "set_staking_configs", types::SetStakingConfigs { min_nominator_bond, min_validator_bond, max_nominator_count, max_validator_count, chill_threshold, min_commission, }, [ 198u8, 212u8, 176u8, 138u8, 79u8, 177u8, 241u8, 104u8, 72u8, 170u8, 35u8, 178u8, 205u8, 167u8, 218u8, 118u8, 42u8, 226u8, 180u8, 17u8, 112u8, 175u8, 55u8, 248u8, 64u8, 127u8, 51u8, 65u8, 132u8, 210u8, 88u8, 213u8, ], ) } #[doc = "Declare a `controller` to stop participating as either a validator or nominator."] #[doc = ""] #[doc = "Effects will be felt at the beginning of the next era."] #[doc = ""] #[doc = "The dispatch origin for this call must be _Signed_, but can be called by anyone."] #[doc = ""] #[doc = "If the caller is the same as the controller being targeted, then no further checks are"] #[doc = "enforced, and this function behaves just like `chill`."] #[doc = ""] #[doc = "If the caller is different than the controller being targeted, the following conditions"] #[doc = "must be met:"] #[doc = ""] #[doc = "* `controller` must belong to a nominator who has become non-decodable,"] #[doc = ""] #[doc = "Or:"] #[doc = ""] #[doc = "* A `ChillThreshold` must be set and checked which defines how close to the max"] #[doc = " nominators or validators we must reach before users can start chilling one-another."] #[doc = "* A `MaxNominatorCount` and `MaxValidatorCount` must be set which is used to determine"] #[doc = " how close we are to the threshold."] #[doc = "* A `MinNominatorBond` and `MinValidatorBond` must be set and checked, which determines"] #[doc = " if this is a person that should be chilled because they have not met the threshold"] #[doc = " bond required."] #[doc = ""] #[doc = "This can be helpful if bond requirements are updated, and we need to remove old users"] #[doc = "who do not satisfy these requirements."] pub fn chill_other( &self, controller: ::subxt::utils::AccountId32, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Staking", "chill_other", types::ChillOther { controller }, [ 143u8, 82u8, 167u8, 43u8, 102u8, 136u8, 78u8, 139u8, 110u8, 159u8, 235u8, 226u8, 237u8, 140u8, 142u8, 47u8, 77u8, 57u8, 209u8, 208u8, 9u8, 193u8, 3u8, 77u8, 147u8, 41u8, 182u8, 122u8, 178u8, 185u8, 32u8, 182u8, ], ) } #[doc = "Force a validator to have at least the minimum commission. This will not affect a"] #[doc = "validator who already has a commission greater than or equal to the minimum. Any account"] #[doc = "can call this."] pub fn force_apply_min_commission( &self, validator_stash: ::subxt::utils::AccountId32, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Staking", "force_apply_min_commission", types::ForceApplyMinCommission { validator_stash }, [ 158u8, 27u8, 152u8, 23u8, 97u8, 53u8, 54u8, 49u8, 179u8, 236u8, 69u8, 65u8, 253u8, 136u8, 232u8, 44u8, 207u8, 66u8, 5u8, 186u8, 49u8, 91u8, 173u8, 5u8, 84u8, 45u8, 154u8, 91u8, 239u8, 97u8, 62u8, 42u8, ], ) } #[doc = "Sets the minimum amount of commission that each validators must maintain."] #[doc = ""] #[doc = "This call has lower privilege requirements than `set_staking_config` and can be called"] #[doc = "by the `T::AdminOrigin`. Root can always call this."] pub fn set_min_commission( &self, new: runtime_types::sp_arithmetic::per_things::Perbill, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Staking", "set_min_commission", types::SetMinCommission { new }, [ 96u8, 168u8, 55u8, 79u8, 79u8, 49u8, 8u8, 127u8, 98u8, 158u8, 106u8, 187u8, 177u8, 201u8, 68u8, 181u8, 219u8, 172u8, 63u8, 120u8, 172u8, 173u8, 251u8, 167u8, 84u8, 165u8, 238u8, 115u8, 110u8, 97u8, 144u8, 50u8, ], ) } } } #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] pub type Event = runtime_types::pallet_staking::pallet::pallet::Event; pub mod events { use super::runtime_types; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "The era payout has been set; the first balance is the validator-payout; the second is"] #[doc = "the remainder from the maximum amount of reward."] pub struct EraPaid { pub era_index: ::core::primitive::u32, pub validator_payout: ::core::primitive::u128, pub remainder: ::core::primitive::u128, } impl ::subxt::events::StaticEvent for EraPaid { const PALLET: &'static str = "Staking"; const EVENT: &'static str = "EraPaid"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "The nominator has been rewarded by this amount."] pub struct Rewarded { pub stash: ::subxt::utils::AccountId32, pub amount: ::core::primitive::u128, } impl ::subxt::events::StaticEvent for Rewarded { const PALLET: &'static str = "Staking"; const EVENT: &'static str = "Rewarded"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A staker (validator or nominator) has been slashed by the given amount."] pub struct Slashed { pub staker: ::subxt::utils::AccountId32, pub amount: ::core::primitive::u128, } impl ::subxt::events::StaticEvent for Slashed { const PALLET: &'static str = "Staking"; const EVENT: &'static str = "Slashed"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A slash for the given validator, for the given percentage of their stake, at the given"] #[doc = "era as been reported."] pub struct SlashReported { pub validator: ::subxt::utils::AccountId32, pub fraction: runtime_types::sp_arithmetic::per_things::Perbill, pub slash_era: ::core::primitive::u32, } impl ::subxt::events::StaticEvent for SlashReported { const PALLET: &'static str = "Staking"; const EVENT: &'static str = "SlashReported"; } #[derive( :: subxt :: ext :: codec :: CompactAs, :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "An old slashing report from a prior era was discarded because it could"] #[doc = "not be processed."] pub struct OldSlashingReportDiscarded { pub session_index: ::core::primitive::u32, } impl ::subxt::events::StaticEvent for OldSlashingReportDiscarded { const PALLET: &'static str = "Staking"; const EVENT: &'static str = "OldSlashingReportDiscarded"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A new set of stakers was elected."] pub struct StakersElected; impl ::subxt::events::StaticEvent for StakersElected { const PALLET: &'static str = "Staking"; const EVENT: &'static str = "StakersElected"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "An account has bonded this amount. \\[stash, amount\\]"] #[doc = ""] #[doc = "NOTE: This event is only emitted when funds are bonded via a dispatchable. Notably,"] #[doc = "it will not be emitted for staking rewards when they are added to stake."] pub struct Bonded { pub stash: ::subxt::utils::AccountId32, pub amount: ::core::primitive::u128, } impl ::subxt::events::StaticEvent for Bonded { const PALLET: &'static str = "Staking"; const EVENT: &'static str = "Bonded"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "An account has unbonded this amount."] pub struct Unbonded { pub stash: ::subxt::utils::AccountId32, pub amount: ::core::primitive::u128, } impl ::subxt::events::StaticEvent for Unbonded { const PALLET: &'static str = "Staking"; const EVENT: &'static str = "Unbonded"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "An account has called `withdraw_unbonded` and removed unbonding chunks worth `Balance`"] #[doc = "from the unlocking queue."] pub struct Withdrawn { pub stash: ::subxt::utils::AccountId32, pub amount: ::core::primitive::u128, } impl ::subxt::events::StaticEvent for Withdrawn { const PALLET: &'static str = "Staking"; const EVENT: &'static str = "Withdrawn"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A nominator has been kicked from a validator."] pub struct Kicked { pub nominator: ::subxt::utils::AccountId32, pub stash: ::subxt::utils::AccountId32, } impl ::subxt::events::StaticEvent for Kicked { const PALLET: &'static str = "Staking"; const EVENT: &'static str = "Kicked"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "The election failed. No new era is planned."] pub struct StakingElectionFailed; impl ::subxt::events::StaticEvent for StakingElectionFailed { const PALLET: &'static str = "Staking"; const EVENT: &'static str = "StakingElectionFailed"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "An account has stopped participating as either a validator or nominator."] pub struct Chilled { pub stash: ::subxt::utils::AccountId32, } impl ::subxt::events::StaticEvent for Chilled { const PALLET: &'static str = "Staking"; const EVENT: &'static str = "Chilled"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "The stakers' rewards are getting paid."] pub struct PayoutStarted { pub era_index: ::core::primitive::u32, pub validator_stash: ::subxt::utils::AccountId32, } impl ::subxt::events::StaticEvent for PayoutStarted { const PALLET: &'static str = "Staking"; const EVENT: &'static str = "PayoutStarted"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A validator has set their preferences."] pub struct ValidatorPrefsSet { pub stash: ::subxt::utils::AccountId32, pub prefs: runtime_types::pallet_staking::ValidatorPrefs, } impl ::subxt::events::StaticEvent for ValidatorPrefsSet { const PALLET: &'static str = "Staking"; const EVENT: &'static str = "ValidatorPrefsSet"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A new force era mode was set."] pub struct ForceEra { pub mode: runtime_types::pallet_staking::Forcing, } impl ::subxt::events::StaticEvent for ForceEra { const PALLET: &'static str = "Staking"; const EVENT: &'static str = "ForceEra"; } } pub mod storage { use super::runtime_types; pub struct StorageApi; impl StorageApi { #[doc = " The ideal number of active validators."] pub fn validator_count( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, ::core::primitive::u32, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), > { ::subxt::storage::address::Address::new_static( "Staking", "ValidatorCount", vec![], [ 105u8, 251u8, 193u8, 198u8, 232u8, 118u8, 73u8, 115u8, 205u8, 78u8, 49u8, 253u8, 140u8, 193u8, 161u8, 205u8, 13u8, 147u8, 125u8, 102u8, 142u8, 244u8, 210u8, 227u8, 225u8, 46u8, 144u8, 122u8, 254u8, 48u8, 44u8, 169u8, ], ) } #[doc = " Minimum number of staking participants before emergency conditions are imposed."] pub fn minimum_validator_count( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, ::core::primitive::u32, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), > { ::subxt::storage::address::Address::new_static( "Staking", "MinimumValidatorCount", vec![], [ 103u8, 178u8, 29u8, 91u8, 90u8, 31u8, 49u8, 9u8, 11u8, 58u8, 178u8, 30u8, 219u8, 55u8, 58u8, 181u8, 80u8, 155u8, 9u8, 11u8, 38u8, 46u8, 125u8, 179u8, 220u8, 20u8, 212u8, 181u8, 136u8, 103u8, 58u8, 48u8, ], ) } #[doc = " Any validators that may never be slashed or forcibly kicked. It's a Vec since they're"] #[doc = " easy to initialize and the performance hit is minimal (we expect no more than four"] #[doc = " invulnerables) and restricted to testnets."] pub fn invulnerables( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, ::std::vec::Vec<::subxt::utils::AccountId32>, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), > { ::subxt::storage::address::Address::new_static( "Staking", "Invulnerables", vec![], [ 199u8, 35u8, 0u8, 229u8, 160u8, 128u8, 139u8, 245u8, 27u8, 133u8, 47u8, 240u8, 86u8, 195u8, 90u8, 169u8, 158u8, 231u8, 128u8, 58u8, 24u8, 173u8, 138u8, 122u8, 226u8, 104u8, 239u8, 114u8, 91u8, 165u8, 207u8, 150u8, ], ) } #[doc = " Map from all locked \"stash\" accounts to the controller account."] #[doc = ""] #[doc = " TWOX-NOTE: SAFE since `AccountId` is a secure hash."] pub fn bonded( &self, _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, ::subxt::utils::AccountId32, ::subxt::storage::address::Yes, (), ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( "Staking", "Bonded", vec![::subxt::storage::address::make_static_storage_map_key( _0.borrow(), )], [ 146u8, 230u8, 48u8, 190u8, 166u8, 127u8, 237u8, 216u8, 71u8, 33u8, 108u8, 121u8, 204u8, 211u8, 133u8, 123u8, 52u8, 164u8, 201u8, 209u8, 236u8, 35u8, 190u8, 77u8, 126u8, 150u8, 79u8, 244u8, 15u8, 247u8, 161u8, 107u8, ], ) } #[doc = " Map from all locked \"stash\" accounts to the controller account."] #[doc = ""] #[doc = " TWOX-NOTE: SAFE since `AccountId` is a secure hash."] pub fn bonded_root( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, ::subxt::utils::AccountId32, (), (), ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( "Staking", "Bonded", Vec::new(), [ 146u8, 230u8, 48u8, 190u8, 166u8, 127u8, 237u8, 216u8, 71u8, 33u8, 108u8, 121u8, 204u8, 211u8, 133u8, 123u8, 52u8, 164u8, 201u8, 209u8, 236u8, 35u8, 190u8, 77u8, 126u8, 150u8, 79u8, 244u8, 15u8, 247u8, 161u8, 107u8, ], ) } #[doc = " The minimum active bond to become and maintain the role of a nominator."] pub fn min_nominator_bond( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, ::core::primitive::u128, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), > { ::subxt::storage::address::Address::new_static( "Staking", "MinNominatorBond", vec![], [ 102u8, 115u8, 254u8, 15u8, 191u8, 228u8, 85u8, 249u8, 112u8, 190u8, 129u8, 243u8, 236u8, 39u8, 195u8, 232u8, 10u8, 230u8, 11u8, 144u8, 115u8, 1u8, 45u8, 70u8, 181u8, 161u8, 17u8, 92u8, 19u8, 70u8, 100u8, 94u8, ], ) } #[doc = " The minimum active bond to become and maintain the role of a validator."] pub fn min_validator_bond( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, ::core::primitive::u128, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), > { ::subxt::storage::address::Address::new_static( "Staking", "MinValidatorBond", vec![], [ 146u8, 249u8, 26u8, 52u8, 224u8, 81u8, 85u8, 153u8, 118u8, 169u8, 140u8, 37u8, 208u8, 242u8, 8u8, 29u8, 156u8, 73u8, 154u8, 162u8, 186u8, 159u8, 119u8, 100u8, 109u8, 227u8, 6u8, 139u8, 155u8, 203u8, 167u8, 244u8, ], ) } #[doc = " The minimum active nominator stake of the last successful election."] pub fn minimum_active_stake( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, ::core::primitive::u128, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), > { ::subxt::storage::address::Address::new_static( "Staking", "MinimumActiveStake", vec![], [ 166u8, 211u8, 59u8, 23u8, 2u8, 160u8, 244u8, 52u8, 153u8, 12u8, 103u8, 113u8, 51u8, 232u8, 145u8, 188u8, 54u8, 67u8, 227u8, 221u8, 186u8, 6u8, 28u8, 63u8, 146u8, 212u8, 233u8, 173u8, 134u8, 41u8, 169u8, 153u8, ], ) } #[doc = " The minimum amount of commission that validators can set."] #[doc = ""] #[doc = " If set to `0`, no limit exists."] pub fn min_commission( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, runtime_types::sp_arithmetic::per_things::Perbill, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), > { ::subxt::storage::address::Address::new_static( "Staking", "MinCommission", vec![], [ 220u8, 197u8, 232u8, 212u8, 205u8, 242u8, 121u8, 165u8, 255u8, 199u8, 122u8, 20u8, 145u8, 245u8, 175u8, 26u8, 45u8, 70u8, 207u8, 26u8, 112u8, 234u8, 181u8, 167u8, 140u8, 75u8, 15u8, 1u8, 221u8, 168u8, 17u8, 211u8, ], ) } #[doc = " Map from all (unlocked) \"controller\" accounts to the info regarding the staking."] pub fn ledger( &self, _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, runtime_types::pallet_staking::StakingLedger, ::subxt::storage::address::Yes, (), ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( "Staking", "Ledger", vec![::subxt::storage::address::make_static_storage_map_key( _0.borrow(), )], [ 77u8, 39u8, 230u8, 122u8, 108u8, 191u8, 251u8, 28u8, 233u8, 225u8, 195u8, 224u8, 234u8, 90u8, 173u8, 170u8, 143u8, 246u8, 246u8, 21u8, 38u8, 187u8, 112u8, 111u8, 206u8, 181u8, 183u8, 186u8, 96u8, 8u8, 225u8, 224u8, ], ) } #[doc = " Map from all (unlocked) \"controller\" accounts to the info regarding the staking."] pub fn ledger_root( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, runtime_types::pallet_staking::StakingLedger, (), (), ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( "Staking", "Ledger", Vec::new(), [ 77u8, 39u8, 230u8, 122u8, 108u8, 191u8, 251u8, 28u8, 233u8, 225u8, 195u8, 224u8, 234u8, 90u8, 173u8, 170u8, 143u8, 246u8, 246u8, 21u8, 38u8, 187u8, 112u8, 111u8, 206u8, 181u8, 183u8, 186u8, 96u8, 8u8, 225u8, 224u8, ], ) } #[doc = " Where the reward payment should be made. Keyed by stash."] #[doc = ""] #[doc = " TWOX-NOTE: SAFE since `AccountId` is a secure hash."] pub fn payee( &self, _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, runtime_types::pallet_staking::RewardDestination<::subxt::utils::AccountId32>, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( "Staking", "Payee", vec![::subxt::storage::address::make_static_storage_map_key( _0.borrow(), )], [ 198u8, 238u8, 10u8, 104u8, 204u8, 7u8, 193u8, 254u8, 169u8, 18u8, 187u8, 212u8, 90u8, 243u8, 73u8, 29u8, 216u8, 144u8, 93u8, 140u8, 11u8, 124u8, 4u8, 191u8, 107u8, 61u8, 15u8, 152u8, 70u8, 82u8, 60u8, 75u8, ], ) } #[doc = " Where the reward payment should be made. Keyed by stash."] #[doc = ""] #[doc = " TWOX-NOTE: SAFE since `AccountId` is a secure hash."] pub fn payee_root( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, runtime_types::pallet_staking::RewardDestination<::subxt::utils::AccountId32>, (), ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( "Staking", "Payee", Vec::new(), [ 198u8, 238u8, 10u8, 104u8, 204u8, 7u8, 193u8, 254u8, 169u8, 18u8, 187u8, 212u8, 90u8, 243u8, 73u8, 29u8, 216u8, 144u8, 93u8, 140u8, 11u8, 124u8, 4u8, 191u8, 107u8, 61u8, 15u8, 152u8, 70u8, 82u8, 60u8, 75u8, ], ) } #[doc = " The map from (wannabe) validator stash key to the preferences of that validator."] #[doc = ""] #[doc = " TWOX-NOTE: SAFE since `AccountId` is a secure hash."] pub fn validators( &self, _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, runtime_types::pallet_staking::ValidatorPrefs, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( "Staking", "Validators", vec![::subxt::storage::address::make_static_storage_map_key( _0.borrow(), )], [ 149u8, 207u8, 68u8, 38u8, 24u8, 220u8, 207u8, 84u8, 236u8, 33u8, 210u8, 124u8, 200u8, 99u8, 98u8, 29u8, 235u8, 46u8, 124u8, 4u8, 203u8, 6u8, 209u8, 21u8, 124u8, 236u8, 112u8, 118u8, 180u8, 85u8, 78u8, 13u8, ], ) } #[doc = " The map from (wannabe) validator stash key to the preferences of that validator."] #[doc = ""] #[doc = " TWOX-NOTE: SAFE since `AccountId` is a secure hash."] pub fn validators_root( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, runtime_types::pallet_staking::ValidatorPrefs, (), ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( "Staking", "Validators", Vec::new(), [ 149u8, 207u8, 68u8, 38u8, 24u8, 220u8, 207u8, 84u8, 236u8, 33u8, 210u8, 124u8, 200u8, 99u8, 98u8, 29u8, 235u8, 46u8, 124u8, 4u8, 203u8, 6u8, 209u8, 21u8, 124u8, 236u8, 112u8, 118u8, 180u8, 85u8, 78u8, 13u8, ], ) } #[doc = "Counter for the related counted storage map"] pub fn counter_for_validators( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, ::core::primitive::u32, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), > { ::subxt::storage::address::Address::new_static( "Staking", "CounterForValidators", vec![], [ 169u8, 146u8, 194u8, 114u8, 57u8, 232u8, 137u8, 93u8, 214u8, 98u8, 176u8, 151u8, 237u8, 165u8, 176u8, 252u8, 73u8, 124u8, 22u8, 166u8, 225u8, 217u8, 65u8, 56u8, 174u8, 12u8, 32u8, 2u8, 7u8, 173u8, 125u8, 235u8, ], ) } #[doc = " The maximum validator count before we stop allowing new validators to join."] #[doc = ""] #[doc = " When this value is not set, no limits are enforced."] pub fn max_validators_count( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, ::core::primitive::u32, ::subxt::storage::address::Yes, (), (), > { ::subxt::storage::address::Address::new_static( "Staking", "MaxValidatorsCount", vec![], [ 139u8, 116u8, 236u8, 217u8, 110u8, 47u8, 140u8, 197u8, 184u8, 246u8, 180u8, 188u8, 233u8, 99u8, 102u8, 21u8, 114u8, 23u8, 143u8, 163u8, 224u8, 250u8, 248u8, 185u8, 235u8, 94u8, 110u8, 83u8, 170u8, 123u8, 113u8, 168u8, ], ) } #[doc = " The map from nominator stash key to their nomination preferences, namely the validators that"] #[doc = " they wish to support."] #[doc = ""] #[doc = " Note that the keys of this storage map might become non-decodable in case the"] #[doc = " [`Config::MaxNominations`] configuration is decreased. In this rare case, these nominators"] #[doc = " are still existent in storage, their key is correct and retrievable (i.e. `contains_key`"] #[doc = " indicates that they exist), but their value cannot be decoded. Therefore, the non-decodable"] #[doc = " nominators will effectively not-exist, until they re-submit their preferences such that it"] #[doc = " is within the bounds of the newly set `Config::MaxNominations`."] #[doc = ""] #[doc = " This implies that `::iter_keys().count()` and `::iter().count()` might return different"] #[doc = " values for this map. Moreover, the main `::count()` is aligned with the former, namely the"] #[doc = " number of keys that exist."] #[doc = ""] #[doc = " Lastly, if any of the nominators become non-decodable, they can be chilled immediately via"] #[doc = " [`Call::chill_other`] dispatchable by anyone."] #[doc = ""] #[doc = " TWOX-NOTE: SAFE since `AccountId` is a secure hash."] pub fn nominators( &self, _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, runtime_types::pallet_staking::Nominations, ::subxt::storage::address::Yes, (), ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( "Staking", "Nominators", vec![::subxt::storage::address::make_static_storage_map_key( _0.borrow(), )], [ 114u8, 45u8, 86u8, 23u8, 12u8, 98u8, 114u8, 3u8, 170u8, 11u8, 100u8, 17u8, 122u8, 158u8, 192u8, 21u8, 160u8, 87u8, 85u8, 142u8, 241u8, 232u8, 25u8, 6u8, 36u8, 85u8, 155u8, 79u8, 124u8, 173u8, 0u8, 252u8, ], ) } #[doc = " The map from nominator stash key to their nomination preferences, namely the validators that"] #[doc = " they wish to support."] #[doc = ""] #[doc = " Note that the keys of this storage map might become non-decodable in case the"] #[doc = " [`Config::MaxNominations`] configuration is decreased. In this rare case, these nominators"] #[doc = " are still existent in storage, their key is correct and retrievable (i.e. `contains_key`"] #[doc = " indicates that they exist), but their value cannot be decoded. Therefore, the non-decodable"] #[doc = " nominators will effectively not-exist, until they re-submit their preferences such that it"] #[doc = " is within the bounds of the newly set `Config::MaxNominations`."] #[doc = ""] #[doc = " This implies that `::iter_keys().count()` and `::iter().count()` might return different"] #[doc = " values for this map. Moreover, the main `::count()` is aligned with the former, namely the"] #[doc = " number of keys that exist."] #[doc = ""] #[doc = " Lastly, if any of the nominators become non-decodable, they can be chilled immediately via"] #[doc = " [`Call::chill_other`] dispatchable by anyone."] #[doc = ""] #[doc = " TWOX-NOTE: SAFE since `AccountId` is a secure hash."] pub fn nominators_root( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, runtime_types::pallet_staking::Nominations, (), (), ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( "Staking", "Nominators", Vec::new(), [ 114u8, 45u8, 86u8, 23u8, 12u8, 98u8, 114u8, 3u8, 170u8, 11u8, 100u8, 17u8, 122u8, 158u8, 192u8, 21u8, 160u8, 87u8, 85u8, 142u8, 241u8, 232u8, 25u8, 6u8, 36u8, 85u8, 155u8, 79u8, 124u8, 173u8, 0u8, 252u8, ], ) } #[doc = "Counter for the related counted storage map"] pub fn counter_for_nominators( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, ::core::primitive::u32, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), > { ::subxt::storage::address::Address::new_static( "Staking", "CounterForNominators", vec![], [ 150u8, 236u8, 184u8, 12u8, 224u8, 26u8, 13u8, 204u8, 208u8, 178u8, 68u8, 148u8, 232u8, 85u8, 74u8, 248u8, 167u8, 61u8, 88u8, 126u8, 40u8, 20u8, 73u8, 47u8, 94u8, 57u8, 144u8, 77u8, 156u8, 179u8, 55u8, 49u8, ], ) } #[doc = " The maximum nominator count before we stop allowing new validators to join."] #[doc = ""] #[doc = " When this value is not set, no limits are enforced."] pub fn max_nominators_count( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, ::core::primitive::u32, ::subxt::storage::address::Yes, (), (), > { ::subxt::storage::address::Address::new_static( "Staking", "MaxNominatorsCount", vec![], [ 11u8, 234u8, 179u8, 254u8, 95u8, 119u8, 35u8, 255u8, 141u8, 95u8, 148u8, 209u8, 43u8, 202u8, 19u8, 57u8, 185u8, 50u8, 152u8, 192u8, 95u8, 13u8, 158u8, 245u8, 113u8, 199u8, 255u8, 187u8, 37u8, 44u8, 8u8, 119u8, ], ) } #[doc = " The current era index."] #[doc = ""] #[doc = " This is the latest planned era, depending on how the Session pallet queues the validator"] #[doc = " set, it might be active or not."] pub fn current_era( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, ::core::primitive::u32, ::subxt::storage::address::Yes, (), (), > { ::subxt::storage::address::Address::new_static( "Staking", "CurrentEra", vec![], [ 247u8, 239u8, 171u8, 18u8, 137u8, 240u8, 213u8, 3u8, 173u8, 173u8, 236u8, 141u8, 202u8, 191u8, 228u8, 120u8, 196u8, 188u8, 13u8, 66u8, 253u8, 117u8, 90u8, 8u8, 158u8, 11u8, 236u8, 141u8, 178u8, 44u8, 119u8, 25u8, ], ) } #[doc = " The active era information, it holds index and start."] #[doc = ""] #[doc = " The active era is the era being currently rewarded. Validator set of this era must be"] #[doc = " equal to [`SessionInterface::validators`]."] pub fn active_era( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, runtime_types::pallet_staking::ActiveEraInfo, ::subxt::storage::address::Yes, (), (), > { ::subxt::storage::address::Address::new_static( "Staking", "ActiveEra", vec![], [ 24u8, 229u8, 66u8, 56u8, 111u8, 234u8, 139u8, 93u8, 245u8, 137u8, 110u8, 110u8, 121u8, 15u8, 216u8, 207u8, 97u8, 120u8, 125u8, 45u8, 61u8, 2u8, 50u8, 100u8, 3u8, 106u8, 12u8, 233u8, 123u8, 156u8, 145u8, 38u8, ], ) } #[doc = " The session index at which the era start for the last `HISTORY_DEPTH` eras."] #[doc = ""] #[doc = " Note: This tracks the starting session (i.e. session index when era start being active)"] #[doc = " for the eras in `[CurrentEra - HISTORY_DEPTH, CurrentEra]`."] pub fn eras_start_session_index( &self, _0: impl ::std::borrow::Borrow<::core::primitive::u32>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, ::core::primitive::u32, ::subxt::storage::address::Yes, (), ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( "Staking", "ErasStartSessionIndex", vec![::subxt::storage::address::make_static_storage_map_key( _0.borrow(), )], [ 72u8, 185u8, 246u8, 202u8, 79u8, 127u8, 173u8, 74u8, 216u8, 238u8, 58u8, 82u8, 235u8, 222u8, 76u8, 144u8, 97u8, 84u8, 17u8, 164u8, 132u8, 167u8, 24u8, 195u8, 175u8, 132u8, 156u8, 87u8, 234u8, 147u8, 103u8, 58u8, ], ) } #[doc = " The session index at which the era start for the last `HISTORY_DEPTH` eras."] #[doc = ""] #[doc = " Note: This tracks the starting session (i.e. session index when era start being active)"] #[doc = " for the eras in `[CurrentEra - HISTORY_DEPTH, CurrentEra]`."] pub fn eras_start_session_index_root( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, ::core::primitive::u32, (), (), ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( "Staking", "ErasStartSessionIndex", Vec::new(), [ 72u8, 185u8, 246u8, 202u8, 79u8, 127u8, 173u8, 74u8, 216u8, 238u8, 58u8, 82u8, 235u8, 222u8, 76u8, 144u8, 97u8, 84u8, 17u8, 164u8, 132u8, 167u8, 24u8, 195u8, 175u8, 132u8, 156u8, 87u8, 234u8, 147u8, 103u8, 58u8, ], ) } #[doc = " Exposure of validator at era."] #[doc = ""] #[doc = " This is keyed first by the era index to allow bulk deletion and then the stash account."] #[doc = ""] #[doc = " Is it removed after `HISTORY_DEPTH` eras."] #[doc = " If stakers hasn't been set or has been removed then empty exposure is returned."] pub fn eras_stakers( &self, _0: impl ::std::borrow::Borrow<::core::primitive::u32>, _1: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, runtime_types::pallet_staking::Exposure< ::subxt::utils::AccountId32, ::core::primitive::u128, >, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( "Staking", "ErasStakers", vec![ ::subxt::storage::address::make_static_storage_map_key(_0.borrow()), ::subxt::storage::address::make_static_storage_map_key(_1.borrow()), ], [ 103u8, 38u8, 198u8, 91u8, 133u8, 9u8, 10u8, 201u8, 103u8, 169u8, 159u8, 172u8, 59u8, 238u8, 21u8, 30u8, 140u8, 183u8, 160u8, 61u8, 36u8, 162u8, 244u8, 61u8, 78u8, 33u8, 134u8, 176u8, 112u8, 153u8, 192u8, 252u8, ], ) } #[doc = " Exposure of validator at era."] #[doc = ""] #[doc = " This is keyed first by the era index to allow bulk deletion and then the stash account."] #[doc = ""] #[doc = " Is it removed after `HISTORY_DEPTH` eras."] #[doc = " If stakers hasn't been set or has been removed then empty exposure is returned."] pub fn eras_stakers_root( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, runtime_types::pallet_staking::Exposure< ::subxt::utils::AccountId32, ::core::primitive::u128, >, (), ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( "Staking", "ErasStakers", Vec::new(), [ 103u8, 38u8, 198u8, 91u8, 133u8, 9u8, 10u8, 201u8, 103u8, 169u8, 159u8, 172u8, 59u8, 238u8, 21u8, 30u8, 140u8, 183u8, 160u8, 61u8, 36u8, 162u8, 244u8, 61u8, 78u8, 33u8, 134u8, 176u8, 112u8, 153u8, 192u8, 252u8, ], ) } #[doc = " Clipped Exposure of validator at era."] #[doc = ""] #[doc = " This is similar to [`ErasStakers`] but number of nominators exposed is reduced to the"] #[doc = " `T::MaxNominatorRewardedPerValidator` biggest stakers."] #[doc = " (Note: the field `total` and `own` of the exposure remains unchanged)."] #[doc = " This is used to limit the i/o cost for the nominator payout."] #[doc = ""] #[doc = " This is keyed fist by the era index to allow bulk deletion and then the stash account."] #[doc = ""] #[doc = " Is it removed after `HISTORY_DEPTH` eras."] #[doc = " If stakers hasn't been set or has been removed then empty exposure is returned."] pub fn eras_stakers_clipped( &self, _0: impl ::std::borrow::Borrow<::core::primitive::u32>, _1: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, runtime_types::pallet_staking::Exposure< ::subxt::utils::AccountId32, ::core::primitive::u128, >, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( "Staking", "ErasStakersClipped", vec![ ::subxt::storage::address::make_static_storage_map_key(_0.borrow()), ::subxt::storage::address::make_static_storage_map_key(_1.borrow()), ], [ 119u8, 253u8, 51u8, 32u8, 173u8, 173u8, 49u8, 121u8, 141u8, 128u8, 219u8, 112u8, 173u8, 42u8, 145u8, 37u8, 8u8, 12u8, 27u8, 37u8, 232u8, 187u8, 130u8, 227u8, 113u8, 111u8, 185u8, 197u8, 157u8, 136u8, 205u8, 32u8, ], ) } #[doc = " Clipped Exposure of validator at era."] #[doc = ""] #[doc = " This is similar to [`ErasStakers`] but number of nominators exposed is reduced to the"] #[doc = " `T::MaxNominatorRewardedPerValidator` biggest stakers."] #[doc = " (Note: the field `total` and `own` of the exposure remains unchanged)."] #[doc = " This is used to limit the i/o cost for the nominator payout."] #[doc = ""] #[doc = " This is keyed fist by the era index to allow bulk deletion and then the stash account."] #[doc = ""] #[doc = " Is it removed after `HISTORY_DEPTH` eras."] #[doc = " If stakers hasn't been set or has been removed then empty exposure is returned."] pub fn eras_stakers_clipped_root( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, runtime_types::pallet_staking::Exposure< ::subxt::utils::AccountId32, ::core::primitive::u128, >, (), ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( "Staking", "ErasStakersClipped", Vec::new(), [ 119u8, 253u8, 51u8, 32u8, 173u8, 173u8, 49u8, 121u8, 141u8, 128u8, 219u8, 112u8, 173u8, 42u8, 145u8, 37u8, 8u8, 12u8, 27u8, 37u8, 232u8, 187u8, 130u8, 227u8, 113u8, 111u8, 185u8, 197u8, 157u8, 136u8, 205u8, 32u8, ], ) } #[doc = " Similar to `ErasStakers`, this holds the preferences of validators."] #[doc = ""] #[doc = " This is keyed first by the era index to allow bulk deletion and then the stash account."] #[doc = ""] #[doc = " Is it removed after `HISTORY_DEPTH` eras."] pub fn eras_validator_prefs( &self, _0: impl ::std::borrow::Borrow<::core::primitive::u32>, _1: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, runtime_types::pallet_staking::ValidatorPrefs, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( "Staking", "ErasValidatorPrefs", vec![ ::subxt::storage::address::make_static_storage_map_key(_0.borrow()), ::subxt::storage::address::make_static_storage_map_key(_1.borrow()), ], [ 201u8, 204u8, 230u8, 197u8, 37u8, 83u8, 124u8, 26u8, 10u8, 75u8, 164u8, 102u8, 83u8, 24u8, 158u8, 127u8, 27u8, 173u8, 125u8, 63u8, 251u8, 128u8, 239u8, 182u8, 115u8, 109u8, 13u8, 97u8, 211u8, 104u8, 189u8, 127u8, ], ) } #[doc = " Similar to `ErasStakers`, this holds the preferences of validators."] #[doc = ""] #[doc = " This is keyed first by the era index to allow bulk deletion and then the stash account."] #[doc = ""] #[doc = " Is it removed after `HISTORY_DEPTH` eras."] pub fn eras_validator_prefs_root( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, runtime_types::pallet_staking::ValidatorPrefs, (), ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( "Staking", "ErasValidatorPrefs", Vec::new(), [ 201u8, 204u8, 230u8, 197u8, 37u8, 83u8, 124u8, 26u8, 10u8, 75u8, 164u8, 102u8, 83u8, 24u8, 158u8, 127u8, 27u8, 173u8, 125u8, 63u8, 251u8, 128u8, 239u8, 182u8, 115u8, 109u8, 13u8, 97u8, 211u8, 104u8, 189u8, 127u8, ], ) } #[doc = " The total validator era payout for the last `HISTORY_DEPTH` eras."] #[doc = ""] #[doc = " Eras that haven't finished yet or has been removed doesn't have reward."] pub fn eras_validator_reward( &self, _0: impl ::std::borrow::Borrow<::core::primitive::u32>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, ::core::primitive::u128, ::subxt::storage::address::Yes, (), ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( "Staking", "ErasValidatorReward", vec![::subxt::storage::address::make_static_storage_map_key( _0.borrow(), )], [ 185u8, 85u8, 179u8, 163u8, 178u8, 168u8, 141u8, 200u8, 59u8, 77u8, 2u8, 197u8, 36u8, 188u8, 133u8, 117u8, 2u8, 25u8, 105u8, 132u8, 44u8, 75u8, 15u8, 82u8, 57u8, 89u8, 242u8, 234u8, 70u8, 244u8, 198u8, 126u8, ], ) } #[doc = " The total validator era payout for the last `HISTORY_DEPTH` eras."] #[doc = ""] #[doc = " Eras that haven't finished yet or has been removed doesn't have reward."] pub fn eras_validator_reward_root( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, ::core::primitive::u128, (), (), ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( "Staking", "ErasValidatorReward", Vec::new(), [ 185u8, 85u8, 179u8, 163u8, 178u8, 168u8, 141u8, 200u8, 59u8, 77u8, 2u8, 197u8, 36u8, 188u8, 133u8, 117u8, 2u8, 25u8, 105u8, 132u8, 44u8, 75u8, 15u8, 82u8, 57u8, 89u8, 242u8, 234u8, 70u8, 244u8, 198u8, 126u8, ], ) } #[doc = " Rewards for the last `HISTORY_DEPTH` eras."] #[doc = " If reward hasn't been set or has been removed then 0 reward is returned."] pub fn eras_reward_points( &self, _0: impl ::std::borrow::Borrow<::core::primitive::u32>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, runtime_types::pallet_staking::EraRewardPoints<::subxt::utils::AccountId32>, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( "Staking", "ErasRewardPoints", vec![::subxt::storage::address::make_static_storage_map_key( _0.borrow(), )], [ 237u8, 135u8, 146u8, 156u8, 172u8, 48u8, 147u8, 207u8, 15u8, 86u8, 55u8, 38u8, 29u8, 253u8, 198u8, 192u8, 99u8, 213u8, 80u8, 72u8, 212u8, 60u8, 60u8, 180u8, 33u8, 17u8, 77u8, 0u8, 165u8, 225u8, 60u8, 213u8, ], ) } #[doc = " Rewards for the last `HISTORY_DEPTH` eras."] #[doc = " If reward hasn't been set or has been removed then 0 reward is returned."] pub fn eras_reward_points_root( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, runtime_types::pallet_staking::EraRewardPoints<::subxt::utils::AccountId32>, (), ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( "Staking", "ErasRewardPoints", Vec::new(), [ 237u8, 135u8, 146u8, 156u8, 172u8, 48u8, 147u8, 207u8, 15u8, 86u8, 55u8, 38u8, 29u8, 253u8, 198u8, 192u8, 99u8, 213u8, 80u8, 72u8, 212u8, 60u8, 60u8, 180u8, 33u8, 17u8, 77u8, 0u8, 165u8, 225u8, 60u8, 213u8, ], ) } #[doc = " The total amount staked for the last `HISTORY_DEPTH` eras."] #[doc = " If total hasn't been set or has been removed then 0 stake is returned."] pub fn eras_total_stake( &self, _0: impl ::std::borrow::Borrow<::core::primitive::u32>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, ::core::primitive::u128, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( "Staking", "ErasTotalStake", vec![::subxt::storage::address::make_static_storage_map_key( _0.borrow(), )], [ 8u8, 78u8, 101u8, 62u8, 124u8, 126u8, 66u8, 26u8, 47u8, 126u8, 239u8, 204u8, 222u8, 104u8, 19u8, 108u8, 238u8, 160u8, 112u8, 242u8, 56u8, 2u8, 250u8, 164u8, 250u8, 213u8, 201u8, 84u8, 193u8, 117u8, 108u8, 146u8, ], ) } #[doc = " The total amount staked for the last `HISTORY_DEPTH` eras."] #[doc = " If total hasn't been set or has been removed then 0 stake is returned."] pub fn eras_total_stake_root( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, ::core::primitive::u128, (), ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( "Staking", "ErasTotalStake", Vec::new(), [ 8u8, 78u8, 101u8, 62u8, 124u8, 126u8, 66u8, 26u8, 47u8, 126u8, 239u8, 204u8, 222u8, 104u8, 19u8, 108u8, 238u8, 160u8, 112u8, 242u8, 56u8, 2u8, 250u8, 164u8, 250u8, 213u8, 201u8, 84u8, 193u8, 117u8, 108u8, 146u8, ], ) } #[doc = " Mode of era forcing."] pub fn force_era( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, runtime_types::pallet_staking::Forcing, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), > { ::subxt::storage::address::Address::new_static( "Staking", "ForceEra", vec![], [ 177u8, 148u8, 73u8, 108u8, 136u8, 126u8, 89u8, 18u8, 124u8, 66u8, 30u8, 102u8, 133u8, 164u8, 78u8, 214u8, 184u8, 163u8, 75u8, 164u8, 117u8, 233u8, 209u8, 158u8, 99u8, 208u8, 21u8, 194u8, 152u8, 82u8, 16u8, 222u8, ], ) } #[doc = " The percentage of the slash that is distributed to reporters."] #[doc = ""] #[doc = " The rest of the slashed value is handled by the `Slash`."] pub fn slash_reward_fraction( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, runtime_types::sp_arithmetic::per_things::Perbill, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), > { ::subxt::storage::address::Address::new_static( "Staking", "SlashRewardFraction", vec![], [ 53u8, 88u8, 253u8, 237u8, 84u8, 228u8, 187u8, 130u8, 108u8, 195u8, 135u8, 25u8, 75u8, 52u8, 238u8, 62u8, 133u8, 38u8, 139u8, 129u8, 216u8, 193u8, 197u8, 216u8, 245u8, 171u8, 128u8, 207u8, 125u8, 246u8, 248u8, 7u8, ], ) } #[doc = " The amount of currency given to reporters of a slash event which was"] #[doc = " canceled by extraordinary circumstances (e.g. governance)."] pub fn canceled_slash_payout( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, ::core::primitive::u128, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), > { ::subxt::storage::address::Address::new_static( "Staking", "CanceledSlashPayout", vec![], [ 221u8, 88u8, 134u8, 81u8, 22u8, 229u8, 100u8, 27u8, 86u8, 244u8, 229u8, 107u8, 251u8, 119u8, 58u8, 153u8, 19u8, 20u8, 254u8, 169u8, 248u8, 220u8, 98u8, 118u8, 48u8, 213u8, 22u8, 79u8, 242u8, 250u8, 147u8, 173u8, ], ) } #[doc = " All unapplied slashes that are queued for later."] pub fn unapplied_slashes( &self, _0: impl ::std::borrow::Borrow<::core::primitive::u32>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, ::std::vec::Vec< runtime_types::pallet_staking::UnappliedSlash< ::subxt::utils::AccountId32, ::core::primitive::u128, >, >, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( "Staking", "UnappliedSlashes", vec![::subxt::storage::address::make_static_storage_map_key( _0.borrow(), )], [ 121u8, 1u8, 135u8, 243u8, 99u8, 254u8, 238u8, 207u8, 145u8, 172u8, 186u8, 131u8, 181u8, 109u8, 199u8, 93u8, 129u8, 65u8, 106u8, 118u8, 197u8, 83u8, 65u8, 45u8, 149u8, 1u8, 85u8, 99u8, 239u8, 148u8, 40u8, 177u8, ], ) } #[doc = " All unapplied slashes that are queued for later."] pub fn unapplied_slashes_root( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, ::std::vec::Vec< runtime_types::pallet_staking::UnappliedSlash< ::subxt::utils::AccountId32, ::core::primitive::u128, >, >, (), ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( "Staking", "UnappliedSlashes", Vec::new(), [ 121u8, 1u8, 135u8, 243u8, 99u8, 254u8, 238u8, 207u8, 145u8, 172u8, 186u8, 131u8, 181u8, 109u8, 199u8, 93u8, 129u8, 65u8, 106u8, 118u8, 197u8, 83u8, 65u8, 45u8, 149u8, 1u8, 85u8, 99u8, 239u8, 148u8, 40u8, 177u8, ], ) } #[doc = " A mapping from still-bonded eras to the first session index of that era."] #[doc = ""] #[doc = " Must contains information for eras for the range:"] #[doc = " `[active_era - bounding_duration; active_era]`"] pub fn bonded_eras( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, ::std::vec::Vec<(::core::primitive::u32, ::core::primitive::u32)>, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), > { ::subxt::storage::address::Address::new_static( "Staking", "BondedEras", vec![], [ 187u8, 216u8, 245u8, 253u8, 194u8, 182u8, 60u8, 244u8, 203u8, 84u8, 228u8, 163u8, 149u8, 205u8, 57u8, 176u8, 203u8, 156u8, 20u8, 29u8, 52u8, 234u8, 200u8, 63u8, 88u8, 49u8, 89u8, 117u8, 252u8, 75u8, 172u8, 53u8, ], ) } #[doc = " All slashing events on validators, mapped by era to the highest slash proportion"] #[doc = " and slash value of the era."] pub fn validator_slash_in_era( &self, _0: impl ::std::borrow::Borrow<::core::primitive::u32>, _1: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, ( runtime_types::sp_arithmetic::per_things::Perbill, ::core::primitive::u128, ), ::subxt::storage::address::Yes, (), ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( "Staking", "ValidatorSlashInEra", vec![ ::subxt::storage::address::make_static_storage_map_key(_0.borrow()), ::subxt::storage::address::make_static_storage_map_key(_1.borrow()), ], [ 224u8, 141u8, 93u8, 44u8, 47u8, 157u8, 205u8, 12u8, 68u8, 41u8, 221u8, 210u8, 141u8, 225u8, 253u8, 22u8, 175u8, 11u8, 92u8, 76u8, 180u8, 4u8, 106u8, 135u8, 166u8, 47u8, 201u8, 43u8, 165u8, 42u8, 232u8, 219u8, ], ) } #[doc = " All slashing events on validators, mapped by era to the highest slash proportion"] #[doc = " and slash value of the era."] pub fn validator_slash_in_era_root( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, ( runtime_types::sp_arithmetic::per_things::Perbill, ::core::primitive::u128, ), (), (), ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( "Staking", "ValidatorSlashInEra", Vec::new(), [ 224u8, 141u8, 93u8, 44u8, 47u8, 157u8, 205u8, 12u8, 68u8, 41u8, 221u8, 210u8, 141u8, 225u8, 253u8, 22u8, 175u8, 11u8, 92u8, 76u8, 180u8, 4u8, 106u8, 135u8, 166u8, 47u8, 201u8, 43u8, 165u8, 42u8, 232u8, 219u8, ], ) } #[doc = " All slashing events on nominators, mapped by era to the highest slash value of the era."] pub fn nominator_slash_in_era( &self, _0: impl ::std::borrow::Borrow<::core::primitive::u32>, _1: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, ::core::primitive::u128, ::subxt::storage::address::Yes, (), ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( "Staking", "NominatorSlashInEra", vec![ ::subxt::storage::address::make_static_storage_map_key(_0.borrow()), ::subxt::storage::address::make_static_storage_map_key(_1.borrow()), ], [ 8u8, 89u8, 171u8, 183u8, 64u8, 29u8, 44u8, 185u8, 11u8, 204u8, 67u8, 60u8, 208u8, 132u8, 9u8, 214u8, 13u8, 148u8, 205u8, 26u8, 5u8, 7u8, 250u8, 191u8, 83u8, 118u8, 95u8, 17u8, 40u8, 126u8, 16u8, 135u8, ], ) } #[doc = " All slashing events on nominators, mapped by era to the highest slash value of the era."] pub fn nominator_slash_in_era_root( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, ::core::primitive::u128, (), (), ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( "Staking", "NominatorSlashInEra", Vec::new(), [ 8u8, 89u8, 171u8, 183u8, 64u8, 29u8, 44u8, 185u8, 11u8, 204u8, 67u8, 60u8, 208u8, 132u8, 9u8, 214u8, 13u8, 148u8, 205u8, 26u8, 5u8, 7u8, 250u8, 191u8, 83u8, 118u8, 95u8, 17u8, 40u8, 126u8, 16u8, 135u8, ], ) } #[doc = " Slashing spans for stash accounts."] pub fn slashing_spans( &self, _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, runtime_types::pallet_staking::slashing::SlashingSpans, ::subxt::storage::address::Yes, (), ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( "Staking", "SlashingSpans", vec![::subxt::storage::address::make_static_storage_map_key( _0.borrow(), )], [ 160u8, 190u8, 57u8, 128u8, 105u8, 73u8, 194u8, 75u8, 12u8, 120u8, 141u8, 190u8, 235u8, 250u8, 221u8, 200u8, 141u8, 162u8, 31u8, 85u8, 239u8, 108u8, 200u8, 148u8, 155u8, 48u8, 44u8, 89u8, 5u8, 177u8, 236u8, 182u8, ], ) } #[doc = " Slashing spans for stash accounts."] pub fn slashing_spans_root( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, runtime_types::pallet_staking::slashing::SlashingSpans, (), (), ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( "Staking", "SlashingSpans", Vec::new(), [ 160u8, 190u8, 57u8, 128u8, 105u8, 73u8, 194u8, 75u8, 12u8, 120u8, 141u8, 190u8, 235u8, 250u8, 221u8, 200u8, 141u8, 162u8, 31u8, 85u8, 239u8, 108u8, 200u8, 148u8, 155u8, 48u8, 44u8, 89u8, 5u8, 177u8, 236u8, 182u8, ], ) } #[doc = " Records information about the maximum slash of a stash within a slashing span,"] #[doc = " as well as how much reward has been paid out."] pub fn span_slash( &self, _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, _1: impl ::std::borrow::Borrow<::core::primitive::u32>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, runtime_types::pallet_staking::slashing::SpanRecord<::core::primitive::u128>, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( "Staking", "SpanSlash", vec![ ::subxt::storage::address::make_static_storage_map_key(_0.borrow()), ::subxt::storage::address::make_static_storage_map_key(_1.borrow()), ], [ 6u8, 241u8, 205u8, 89u8, 62u8, 181u8, 211u8, 216u8, 190u8, 41u8, 81u8, 136u8, 136u8, 139u8, 57u8, 243u8, 174u8, 150u8, 132u8, 211u8, 79u8, 138u8, 108u8, 218u8, 19u8, 225u8, 60u8, 26u8, 135u8, 6u8, 21u8, 116u8, ], ) } #[doc = " Records information about the maximum slash of a stash within a slashing span,"] #[doc = " as well as how much reward has been paid out."] pub fn span_slash_root( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, runtime_types::pallet_staking::slashing::SpanRecord<::core::primitive::u128>, (), ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( "Staking", "SpanSlash", Vec::new(), [ 6u8, 241u8, 205u8, 89u8, 62u8, 181u8, 211u8, 216u8, 190u8, 41u8, 81u8, 136u8, 136u8, 139u8, 57u8, 243u8, 174u8, 150u8, 132u8, 211u8, 79u8, 138u8, 108u8, 218u8, 19u8, 225u8, 60u8, 26u8, 135u8, 6u8, 21u8, 116u8, ], ) } #[doc = " The last planned session scheduled by the session pallet."] #[doc = ""] #[doc = " This is basically in sync with the call to [`pallet_session::SessionManager::new_session`]."] pub fn current_planned_session( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, ::core::primitive::u32, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), > { ::subxt::storage::address::Address::new_static( "Staking", "CurrentPlannedSession", vec![], [ 12u8, 47u8, 20u8, 104u8, 155u8, 181u8, 35u8, 91u8, 172u8, 97u8, 206u8, 135u8, 185u8, 142u8, 46u8, 72u8, 32u8, 118u8, 225u8, 191u8, 28u8, 130u8, 7u8, 38u8, 181u8, 233u8, 201u8, 8u8, 160u8, 161u8, 86u8, 204u8, ], ) } #[doc = " Indices of validators that have offended in the active era and whether they are currently"] #[doc = " disabled."] #[doc = ""] #[doc = " This value should be a superset of disabled validators since not all offences lead to the"] #[doc = " validator being disabled (if there was no slash). This is needed to track the percentage of"] #[doc = " validators that have offended in the current era, ensuring a new era is forced if"] #[doc = " `OffendingValidatorsThreshold` is reached. The vec is always kept sorted so that we can find"] #[doc = " whether a given validator has previously offended using binary search. It gets cleared when"] #[doc = " the era ends."] pub fn offending_validators( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, ::std::vec::Vec<(::core::primitive::u32, ::core::primitive::bool)>, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), > { ::subxt::storage::address::Address::new_static( "Staking", "OffendingValidators", vec![], [ 201u8, 31u8, 141u8, 182u8, 160u8, 180u8, 37u8, 226u8, 50u8, 65u8, 103u8, 11u8, 38u8, 120u8, 200u8, 219u8, 219u8, 98u8, 185u8, 137u8, 154u8, 20u8, 130u8, 163u8, 126u8, 185u8, 33u8, 194u8, 76u8, 172u8, 70u8, 220u8, ], ) } #[doc = " The threshold for when users can start calling `chill_other` for other validators /"] #[doc = " nominators. The threshold is compared to the actual number of validators / nominators"] #[doc = " (`CountFor*`) in the system compared to the configured max (`Max*Count`)."] pub fn chill_threshold( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, runtime_types::sp_arithmetic::per_things::Percent, ::subxt::storage::address::Yes, (), (), > { ::subxt::storage::address::Address::new_static( "Staking", "ChillThreshold", vec![], [ 133u8, 222u8, 1u8, 208u8, 212u8, 216u8, 247u8, 66u8, 178u8, 96u8, 35u8, 112u8, 33u8, 245u8, 11u8, 249u8, 255u8, 212u8, 204u8, 161u8, 44u8, 38u8, 126u8, 151u8, 140u8, 42u8, 253u8, 101u8, 1u8, 23u8, 239u8, 39u8, ], ) } } } pub mod constants { use super::runtime_types; pub struct ConstantsApi; impl ConstantsApi { #[doc = " Maximum number of nominations per nominator."] pub fn max_nominations( &self, ) -> ::subxt::constants::Address<::core::primitive::u32> { ::subxt::constants::Address::new_static( "Staking", "MaxNominations", [ 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, 145u8, ], ) } #[doc = " Number of eras to keep in history."] #[doc = ""] #[doc = " Following information is kept for eras in `[current_era -"] #[doc = " HistoryDepth, current_era]`: `ErasStakers`, `ErasStakersClipped`,"] #[doc = " `ErasValidatorPrefs`, `ErasValidatorReward`, `ErasRewardPoints`,"] #[doc = " `ErasTotalStake`, `ErasStartSessionIndex`,"] #[doc = " `StakingLedger.claimed_rewards`."] #[doc = ""] #[doc = " Must be more than the number of eras delayed by session."] #[doc = " I.e. active era must always be in history. I.e. `active_era >"] #[doc = " current_era - history_depth` must be guaranteed."] #[doc = ""] #[doc = " If migrating an existing pallet from storage value to config value,"] #[doc = " this should be set to same value or greater as in storage."] #[doc = ""] #[doc = " Note: `HistoryDepth` is used as the upper bound for the `BoundedVec`"] #[doc = " item `StakingLedger.claimed_rewards`. Setting this value lower than"] #[doc = " the existing value can lead to inconsistencies in the"] #[doc = " `StakingLedger` and will need to be handled properly in a migration."] #[doc = " The test `reducing_history_depth_abrupt` shows this effect."] pub fn history_depth(&self) -> ::subxt::constants::Address<::core::primitive::u32> { ::subxt::constants::Address::new_static( "Staking", "HistoryDepth", [ 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, 145u8, ], ) } #[doc = " Number of sessions per era."] pub fn sessions_per_era( &self, ) -> ::subxt::constants::Address<::core::primitive::u32> { ::subxt::constants::Address::new_static( "Staking", "SessionsPerEra", [ 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, 145u8, ], ) } #[doc = " Number of eras that staked funds must remain bonded for."] pub fn bonding_duration( &self, ) -> ::subxt::constants::Address<::core::primitive::u32> { ::subxt::constants::Address::new_static( "Staking", "BondingDuration", [ 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, 145u8, ], ) } #[doc = " Number of eras that slashes are deferred by, after computation."] #[doc = ""] #[doc = " This should be less than the bonding duration. Set to 0 if slashes"] #[doc = " should be applied immediately, without opportunity for intervention."] pub fn slash_defer_duration( &self, ) -> ::subxt::constants::Address<::core::primitive::u32> { ::subxt::constants::Address::new_static( "Staking", "SlashDeferDuration", [ 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, 145u8, ], ) } #[doc = " The maximum number of nominators rewarded for each validator."] #[doc = ""] #[doc = " For each validator only the `$MaxNominatorRewardedPerValidator` biggest stakers can"] #[doc = " claim their reward. This used to limit the i/o cost for the nominator payout."] pub fn max_nominator_rewarded_per_validator( &self, ) -> ::subxt::constants::Address<::core::primitive::u32> { ::subxt::constants::Address::new_static( "Staking", "MaxNominatorRewardedPerValidator", [ 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, 145u8, ], ) } #[doc = " The maximum number of `unlocking` chunks a [`StakingLedger`] can"] #[doc = " have. Effectively determines how many unique eras a staker may be"] #[doc = " unbonding in."] #[doc = ""] #[doc = " Note: `MaxUnlockingChunks` is used as the upper bound for the"] #[doc = " `BoundedVec` item `StakingLedger.unlocking`. Setting this value"] #[doc = " lower than the existing value can lead to inconsistencies in the"] #[doc = " `StakingLedger` and will need to be handled properly in a runtime"] #[doc = " migration. The test `reducing_max_unlocking_chunks_abrupt` shows"] #[doc = " this effect."] pub fn max_unlocking_chunks( &self, ) -> ::subxt::constants::Address<::core::primitive::u32> { ::subxt::constants::Address::new_static( "Staking", "MaxUnlockingChunks", [ 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, 145u8, ], ) } } } } pub mod offences { use super::root_mod; use super::runtime_types; #[doc = "Events type."] pub type Event = runtime_types::pallet_offences::pallet::Event; pub mod events { use super::runtime_types; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "There is an offence reported of the given `kind` happened at the `session_index` and"] #[doc = "(kind-specific) time slot. This event is not deposited for duplicate slashes."] #[doc = "\\[kind, timeslot\\]."] pub struct Offence { pub kind: [::core::primitive::u8; 16usize], pub timeslot: ::std::vec::Vec<::core::primitive::u8>, } impl ::subxt::events::StaticEvent for Offence { const PALLET: &'static str = "Offences"; const EVENT: &'static str = "Offence"; } } pub mod storage { use super::runtime_types; pub struct StorageApi; impl StorageApi { #[doc = " The primary structure that holds all offence records keyed by report identifiers."] pub fn reports( &self, _0: impl ::std::borrow::Borrow<::subxt::utils::H256>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, runtime_types::sp_staking::offence::OffenceDetails< ::subxt::utils::AccountId32, ( ::subxt::utils::AccountId32, runtime_types::pallet_staking::Exposure< ::subxt::utils::AccountId32, ::core::primitive::u128, >, ), >, ::subxt::storage::address::Yes, (), ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( "Offences", "Reports", vec![::subxt::storage::address::make_static_storage_map_key( _0.borrow(), )], [ 242u8, 69u8, 20u8, 130u8, 250u8, 223u8, 68u8, 121u8, 187u8, 215u8, 62u8, 204u8, 100u8, 51u8, 76u8, 164u8, 188u8, 182u8, 215u8, 93u8, 161u8, 100u8, 187u8, 205u8, 73u8, 158u8, 57u8, 198u8, 239u8, 66u8, 42u8, 65u8, ], ) } #[doc = " The primary structure that holds all offence records keyed by report identifiers."] pub fn reports_root( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, runtime_types::sp_staking::offence::OffenceDetails< ::subxt::utils::AccountId32, ( ::subxt::utils::AccountId32, runtime_types::pallet_staking::Exposure< ::subxt::utils::AccountId32, ::core::primitive::u128, >, ), >, (), (), ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( "Offences", "Reports", Vec::new(), [ 242u8, 69u8, 20u8, 130u8, 250u8, 223u8, 68u8, 121u8, 187u8, 215u8, 62u8, 204u8, 100u8, 51u8, 76u8, 164u8, 188u8, 182u8, 215u8, 93u8, 161u8, 100u8, 187u8, 205u8, 73u8, 158u8, 57u8, 198u8, 239u8, 66u8, 42u8, 65u8, ], ) } #[doc = " A vector of reports of the same kind that happened at the same time slot."] pub fn concurrent_reports_index( &self, _0: impl ::std::borrow::Borrow<[::core::primitive::u8; 16usize]>, _1: impl ::std::borrow::Borrow<[::core::primitive::u8]>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, ::std::vec::Vec<::subxt::utils::H256>, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( "Offences", "ConcurrentReportsIndex", vec![ ::subxt::storage::address::make_static_storage_map_key(_0.borrow()), ::subxt::storage::address::make_static_storage_map_key(_1.borrow()), ], [ 125u8, 222u8, 9u8, 162u8, 38u8, 89u8, 77u8, 187u8, 129u8, 103u8, 21u8, 31u8, 117u8, 101u8, 43u8, 115u8, 170u8, 205u8, 142u8, 26u8, 27u8, 184u8, 152u8, 133u8, 76u8, 203u8, 78u8, 113u8, 51u8, 141u8, 118u8, 171u8, ], ) } #[doc = " A vector of reports of the same kind that happened at the same time slot."] pub fn concurrent_reports_index_root( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, ::std::vec::Vec<::subxt::utils::H256>, (), ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( "Offences", "ConcurrentReportsIndex", Vec::new(), [ 125u8, 222u8, 9u8, 162u8, 38u8, 89u8, 77u8, 187u8, 129u8, 103u8, 21u8, 31u8, 117u8, 101u8, 43u8, 115u8, 170u8, 205u8, 142u8, 26u8, 27u8, 184u8, 152u8, 133u8, 76u8, 203u8, 78u8, 113u8, 51u8, 141u8, 118u8, 171u8, ], ) } } } } pub mod historical { use super::root_mod; use super::runtime_types; } pub mod session { use super::root_mod; use super::runtime_types; #[doc = "Error for the session pallet."] pub type Error = runtime_types::pallet_session::pallet::Error; #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] pub type Call = runtime_types::pallet_session::pallet::Call; pub mod calls { use super::root_mod; use super::runtime_types; type DispatchError = runtime_types::sp_runtime::DispatchError; pub mod types { use super::runtime_types; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SetKeys { pub keys: runtime_types::polkadot_runtime::SessionKeys, pub proof: ::std::vec::Vec<::core::primitive::u8>, } impl ::subxt::blocks::StaticExtrinsic for SetKeys { const PALLET: &'static str = "Session"; const CALL: &'static str = "set_keys"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct PurgeKeys; impl ::subxt::blocks::StaticExtrinsic for PurgeKeys { const PALLET: &'static str = "Session"; const CALL: &'static str = "purge_keys"; } } pub struct TransactionApi; impl TransactionApi { #[doc = "Sets the session key(s) of the function caller to `keys`."] #[doc = "Allows an account to set its session key prior to becoming a validator."] #[doc = "This doesn't take effect until the next session."] #[doc = ""] #[doc = "The dispatch origin of this function must be signed."] #[doc = ""] #[doc = "## Complexity"] #[doc = "- `O(1)`. Actual cost depends on the number of length of `T::Keys::key_ids()` which is"] #[doc = " fixed."] pub fn set_keys( &self, keys: runtime_types::polkadot_runtime::SessionKeys, proof: ::std::vec::Vec<::core::primitive::u8>, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Session", "set_keys", types::SetKeys { keys, proof }, [ 196u8, 19u8, 135u8, 231u8, 6u8, 18u8, 193u8, 169u8, 221u8, 1u8, 11u8, 230u8, 158u8, 75u8, 179u8, 84u8, 128u8, 236u8, 95u8, 156u8, 219u8, 5u8, 240u8, 82u8, 65u8, 73u8, 134u8, 239u8, 164u8, 233u8, 109u8, 51u8, ], ) } #[doc = "Removes any session key(s) of the function caller."] #[doc = ""] #[doc = "This doesn't take effect until the next session."] #[doc = ""] #[doc = "The dispatch origin of this function must be Signed and the account must be either be"] #[doc = "convertible to a validator ID using the chain's typical addressing system (this usually"] #[doc = "means being a controller account) or directly convertible into a validator ID (which"] #[doc = "usually means being a stash account)."] #[doc = ""] #[doc = "## Complexity"] #[doc = "- `O(1)` in number of key types. Actual cost depends on the number of length of"] #[doc = " `T::Keys::key_ids()` which is fixed."] pub fn purge_keys(&self) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Session", "purge_keys", types::PurgeKeys {}, [ 215u8, 204u8, 146u8, 236u8, 32u8, 78u8, 198u8, 79u8, 85u8, 214u8, 15u8, 151u8, 158u8, 31u8, 146u8, 119u8, 119u8, 204u8, 151u8, 169u8, 226u8, 67u8, 217u8, 39u8, 241u8, 245u8, 203u8, 240u8, 203u8, 172u8, 16u8, 209u8, ], ) } } } #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] pub type Event = runtime_types::pallet_session::pallet::Event; pub mod events { use super::runtime_types; #[derive( :: subxt :: ext :: codec :: CompactAs, :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "New session has happened. Note that the argument is the session index, not the"] #[doc = "block number as the type might suggest."] pub struct NewSession { pub session_index: ::core::primitive::u32, } impl ::subxt::events::StaticEvent for NewSession { const PALLET: &'static str = "Session"; const EVENT: &'static str = "NewSession"; } } pub mod storage { use super::runtime_types; pub struct StorageApi; impl StorageApi { #[doc = " The current set of validators."] pub fn validators( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, ::std::vec::Vec<::subxt::utils::AccountId32>, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), > { ::subxt::storage::address::Address::new_static( "Session", "Validators", vec![], [ 50u8, 86u8, 154u8, 222u8, 249u8, 209u8, 156u8, 22u8, 155u8, 25u8, 133u8, 194u8, 210u8, 50u8, 38u8, 28u8, 139u8, 201u8, 90u8, 139u8, 115u8, 12u8, 12u8, 141u8, 4u8, 178u8, 201u8, 241u8, 223u8, 234u8, 6u8, 86u8, ], ) } #[doc = " Current index of the session."] pub fn current_index( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, ::core::primitive::u32, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), > { ::subxt::storage::address::Address::new_static( "Session", "CurrentIndex", vec![], [ 167u8, 151u8, 125u8, 150u8, 159u8, 21u8, 78u8, 217u8, 237u8, 183u8, 135u8, 65u8, 187u8, 114u8, 188u8, 206u8, 16u8, 32u8, 69u8, 208u8, 134u8, 159u8, 232u8, 224u8, 243u8, 27u8, 31u8, 166u8, 145u8, 44u8, 221u8, 230u8, ], ) } #[doc = " True if the underlying economic identities or weighting behind the validators"] #[doc = " has changed in the queued validator set."] pub fn queued_changed( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, ::core::primitive::bool, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), > { ::subxt::storage::address::Address::new_static( "Session", "QueuedChanged", vec![], [ 184u8, 137u8, 224u8, 137u8, 31u8, 236u8, 95u8, 164u8, 102u8, 225u8, 198u8, 227u8, 140u8, 37u8, 113u8, 57u8, 59u8, 4u8, 202u8, 102u8, 117u8, 36u8, 226u8, 64u8, 113u8, 141u8, 199u8, 111u8, 99u8, 144u8, 198u8, 153u8, ], ) } #[doc = " The queued keys for the next session. When the next session begins, these keys"] #[doc = " will be used to determine the validator's session keys."] pub fn queued_keys( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, ::std::vec::Vec<( ::subxt::utils::AccountId32, runtime_types::polkadot_runtime::SessionKeys, )>, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), > { ::subxt::storage::address::Address::new_static( "Session", "QueuedKeys", vec![], [ 252u8, 177u8, 138u8, 47u8, 254u8, 168u8, 165u8, 96u8, 182u8, 36u8, 23u8, 235u8, 10u8, 134u8, 96u8, 248u8, 167u8, 117u8, 188u8, 170u8, 143u8, 184u8, 115u8, 6u8, 138u8, 118u8, 192u8, 171u8, 64u8, 205u8, 185u8, 189u8, ], ) } #[doc = " Indices of disabled validators."] #[doc = ""] #[doc = " The vec is always kept sorted so that we can find whether a given validator is"] #[doc = " disabled using binary search. It gets cleared when `on_session_ending` returns"] #[doc = " a new set of identities."] pub fn disabled_validators( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, ::std::vec::Vec<::core::primitive::u32>, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), > { ::subxt::storage::address::Address::new_static( "Session", "DisabledValidators", vec![], [ 213u8, 19u8, 168u8, 234u8, 187u8, 200u8, 180u8, 97u8, 234u8, 189u8, 36u8, 233u8, 158u8, 184u8, 45u8, 35u8, 129u8, 213u8, 133u8, 8u8, 104u8, 183u8, 46u8, 68u8, 154u8, 240u8, 132u8, 22u8, 247u8, 11u8, 54u8, 221u8, ], ) } #[doc = " The next session keys for a validator."] pub fn next_keys( &self, _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, runtime_types::polkadot_runtime::SessionKeys, ::subxt::storage::address::Yes, (), ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( "Session", "NextKeys", vec![::subxt::storage::address::make_static_storage_map_key( _0.borrow(), )], [ 241u8, 163u8, 41u8, 123u8, 225u8, 80u8, 136u8, 229u8, 85u8, 122u8, 31u8, 187u8, 249u8, 216u8, 182u8, 218u8, 66u8, 62u8, 95u8, 35u8, 91u8, 0u8, 143u8, 113u8, 151u8, 63u8, 241u8, 176u8, 99u8, 246u8, 239u8, 35u8, ], ) } #[doc = " The next session keys for a validator."] pub fn next_keys_root( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, runtime_types::polkadot_runtime::SessionKeys, (), (), ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( "Session", "NextKeys", Vec::new(), [ 241u8, 163u8, 41u8, 123u8, 225u8, 80u8, 136u8, 229u8, 85u8, 122u8, 31u8, 187u8, 249u8, 216u8, 182u8, 218u8, 66u8, 62u8, 95u8, 35u8, 91u8, 0u8, 143u8, 113u8, 151u8, 63u8, 241u8, 176u8, 99u8, 246u8, 239u8, 35u8, ], ) } #[doc = " The owner of a key. The key is the `KeyTypeId` + the encoded key."] pub fn key_owner( &self, _0: impl ::std::borrow::Borrow, _1: impl ::std::borrow::Borrow<[::core::primitive::u8]>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, ::subxt::utils::AccountId32, ::subxt::storage::address::Yes, (), ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( "Session", "KeyOwner", vec![ ::subxt::storage::address::make_static_storage_map_key(_0.borrow()), ::subxt::storage::address::make_static_storage_map_key(_1.borrow()), ], [ 177u8, 90u8, 148u8, 24u8, 251u8, 26u8, 65u8, 235u8, 46u8, 25u8, 109u8, 212u8, 208u8, 218u8, 58u8, 196u8, 29u8, 73u8, 145u8, 41u8, 30u8, 251u8, 185u8, 26u8, 205u8, 50u8, 32u8, 200u8, 206u8, 178u8, 255u8, 146u8, ], ) } #[doc = " The owner of a key. The key is the `KeyTypeId` + the encoded key."] pub fn key_owner_root( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, ::subxt::utils::AccountId32, (), (), ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( "Session", "KeyOwner", Vec::new(), [ 177u8, 90u8, 148u8, 24u8, 251u8, 26u8, 65u8, 235u8, 46u8, 25u8, 109u8, 212u8, 208u8, 218u8, 58u8, 196u8, 29u8, 73u8, 145u8, 41u8, 30u8, 251u8, 185u8, 26u8, 205u8, 50u8, 32u8, 200u8, 206u8, 178u8, 255u8, 146u8, ], ) } } } } pub mod grandpa { use super::root_mod; use super::runtime_types; #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] pub type Error = runtime_types::pallet_grandpa::pallet::Error; #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] pub type Call = runtime_types::pallet_grandpa::pallet::Call; pub mod calls { use super::root_mod; use super::runtime_types; type DispatchError = runtime_types::sp_runtime::DispatchError; pub mod types { use super::runtime_types; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ReportEquivocation { pub equivocation_proof: ::std::boxed::Box< runtime_types::sp_consensus_grandpa::EquivocationProof< ::subxt::utils::H256, ::core::primitive::u32, >, >, pub key_owner_proof: runtime_types::sp_session::MembershipProof, } impl ::subxt::blocks::StaticExtrinsic for ReportEquivocation { const PALLET: &'static str = "Grandpa"; const CALL: &'static str = "report_equivocation"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ReportEquivocationUnsigned { pub equivocation_proof: ::std::boxed::Box< runtime_types::sp_consensus_grandpa::EquivocationProof< ::subxt::utils::H256, ::core::primitive::u32, >, >, pub key_owner_proof: runtime_types::sp_session::MembershipProof, } impl ::subxt::blocks::StaticExtrinsic for ReportEquivocationUnsigned { const PALLET: &'static str = "Grandpa"; const CALL: &'static str = "report_equivocation_unsigned"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct NoteStalled { pub delay: ::core::primitive::u32, pub best_finalized_block_number: ::core::primitive::u32, } impl ::subxt::blocks::StaticExtrinsic for NoteStalled { const PALLET: &'static str = "Grandpa"; const CALL: &'static str = "note_stalled"; } } pub struct TransactionApi; impl TransactionApi { #[doc = "Report voter equivocation/misbehavior. This method will verify the"] #[doc = "equivocation proof and validate the given key ownership proof"] #[doc = "against the extracted offender. If both are valid, the offence"] #[doc = "will be reported."] pub fn report_equivocation( &self, equivocation_proof: runtime_types::sp_consensus_grandpa::EquivocationProof< ::subxt::utils::H256, ::core::primitive::u32, >, key_owner_proof: runtime_types::sp_session::MembershipProof, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Grandpa", "report_equivocation", types::ReportEquivocation { equivocation_proof: ::std::boxed::Box::new(equivocation_proof), key_owner_proof, }, [ 239u8, 120u8, 210u8, 103u8, 106u8, 180u8, 41u8, 20u8, 164u8, 142u8, 156u8, 209u8, 183u8, 254u8, 192u8, 178u8, 22u8, 64u8, 91u8, 4u8, 222u8, 103u8, 37u8, 184u8, 252u8, 181u8, 65u8, 136u8, 103u8, 199u8, 250u8, 66u8, ], ) } #[doc = "Report voter equivocation/misbehavior. This method will verify the"] #[doc = "equivocation proof and validate the given key ownership proof"] #[doc = "against the extracted offender. If both are valid, the offence"] #[doc = "will be reported."] #[doc = ""] #[doc = "This extrinsic must be called unsigned and it is expected that only"] #[doc = "block authors will call it (validated in `ValidateUnsigned`), as such"] #[doc = "if the block author is defined it will be defined as the equivocation"] #[doc = "reporter."] pub fn report_equivocation_unsigned( &self, equivocation_proof: runtime_types::sp_consensus_grandpa::EquivocationProof< ::subxt::utils::H256, ::core::primitive::u32, >, key_owner_proof: runtime_types::sp_session::MembershipProof, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Grandpa", "report_equivocation_unsigned", types::ReportEquivocationUnsigned { equivocation_proof: ::std::boxed::Box::new(equivocation_proof), key_owner_proof, }, [ 238u8, 22u8, 92u8, 27u8, 26u8, 218u8, 114u8, 129u8, 133u8, 211u8, 34u8, 239u8, 8u8, 11u8, 62u8, 201u8, 29u8, 38u8, 231u8, 63u8, 204u8, 13u8, 82u8, 164u8, 83u8, 149u8, 0u8, 0u8, 102u8, 113u8, 106u8, 156u8, ], ) } #[doc = "Note that the current authority set of the GRANDPA finality gadget has stalled."] #[doc = ""] #[doc = "This will trigger a forced authority set change at the beginning of the next session, to"] #[doc = "be enacted `delay` blocks after that. The `delay` should be high enough to safely assume"] #[doc = "that the block signalling the forced change will not be re-orged e.g. 1000 blocks."] #[doc = "The block production rate (which may be slowed down because of finality lagging) should"] #[doc = "be taken into account when choosing the `delay`. The GRANDPA voters based on the new"] #[doc = "authority will start voting on top of `best_finalized_block_number` for new finalized"] #[doc = "blocks. `best_finalized_block_number` should be the highest of the latest finalized"] #[doc = "block of all validators of the new authority set."] #[doc = ""] #[doc = "Only callable by root."] pub fn note_stalled( &self, delay: ::core::primitive::u32, best_finalized_block_number: ::core::primitive::u32, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Grandpa", "note_stalled", types::NoteStalled { delay, best_finalized_block_number, }, [ 232u8, 162u8, 42u8, 199u8, 101u8, 116u8, 38u8, 27u8, 147u8, 15u8, 224u8, 76u8, 229u8, 244u8, 13u8, 49u8, 218u8, 232u8, 253u8, 37u8, 7u8, 222u8, 97u8, 158u8, 201u8, 199u8, 169u8, 218u8, 201u8, 136u8, 192u8, 128u8, ], ) } } } #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] pub type Event = runtime_types::pallet_grandpa::pallet::Event; pub mod events { use super::runtime_types; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "New authority set has been applied."] pub struct NewAuthorities { pub authority_set: ::std::vec::Vec<( runtime_types::sp_consensus_grandpa::app::Public, ::core::primitive::u64, )>, } impl ::subxt::events::StaticEvent for NewAuthorities { const PALLET: &'static str = "Grandpa"; const EVENT: &'static str = "NewAuthorities"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Current authority set has been paused."] pub struct Paused; impl ::subxt::events::StaticEvent for Paused { const PALLET: &'static str = "Grandpa"; const EVENT: &'static str = "Paused"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Current authority set has been resumed."] pub struct Resumed; impl ::subxt::events::StaticEvent for Resumed { const PALLET: &'static str = "Grandpa"; const EVENT: &'static str = "Resumed"; } } pub mod storage { use super::runtime_types; pub struct StorageApi; impl StorageApi { #[doc = " State of the current authority set."] pub fn state( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, runtime_types::pallet_grandpa::StoredState<::core::primitive::u32>, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), > { ::subxt::storage::address::Address::new_static( "Grandpa", "State", vec![], [ 254u8, 81u8, 54u8, 203u8, 26u8, 74u8, 162u8, 215u8, 165u8, 247u8, 143u8, 139u8, 242u8, 164u8, 67u8, 27u8, 97u8, 172u8, 66u8, 98u8, 28u8, 151u8, 32u8, 38u8, 209u8, 82u8, 41u8, 209u8, 72u8, 3u8, 167u8, 42u8, ], ) } #[doc = " Pending change: (signaled at, scheduled change)."] pub fn pending_change( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, runtime_types::pallet_grandpa::StoredPendingChange<::core::primitive::u32>, ::subxt::storage::address::Yes, (), (), > { ::subxt::storage::address::Address::new_static( "Grandpa", "PendingChange", vec![], [ 207u8, 134u8, 15u8, 77u8, 9u8, 253u8, 20u8, 132u8, 226u8, 115u8, 150u8, 184u8, 18u8, 15u8, 143u8, 172u8, 71u8, 114u8, 221u8, 162u8, 174u8, 205u8, 46u8, 144u8, 70u8, 116u8, 18u8, 105u8, 250u8, 44u8, 75u8, 27u8, ], ) } #[doc = " next block number where we can force a change."] pub fn next_forced( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, ::core::primitive::u32, ::subxt::storage::address::Yes, (), (), > { ::subxt::storage::address::Address::new_static( "Grandpa", "NextForced", vec![], [ 3u8, 231u8, 56u8, 18u8, 87u8, 112u8, 227u8, 126u8, 180u8, 131u8, 255u8, 141u8, 82u8, 34u8, 61u8, 47u8, 234u8, 37u8, 95u8, 62u8, 33u8, 235u8, 231u8, 122u8, 125u8, 8u8, 223u8, 95u8, 255u8, 204u8, 40u8, 97u8, ], ) } #[doc = " `true` if we are currently stalled."] pub fn stalled( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, (::core::primitive::u32, ::core::primitive::u32), ::subxt::storage::address::Yes, (), (), > { ::subxt::storage::address::Address::new_static( "Grandpa", "Stalled", vec![], [ 146u8, 18u8, 59u8, 59u8, 21u8, 246u8, 5u8, 167u8, 221u8, 8u8, 230u8, 74u8, 81u8, 217u8, 67u8, 158u8, 136u8, 36u8, 23u8, 106u8, 136u8, 89u8, 110u8, 217u8, 31u8, 138u8, 107u8, 251u8, 164u8, 10u8, 119u8, 18u8, ], ) } #[doc = " The number of changes (both in terms of keys and underlying economic responsibilities)"] #[doc = " in the \"set\" of Grandpa validators from genesis."] pub fn current_set_id( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, ::core::primitive::u64, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), > { ::subxt::storage::address::Address::new_static( "Grandpa", "CurrentSetId", vec![], [ 234u8, 215u8, 218u8, 42u8, 30u8, 76u8, 129u8, 40u8, 125u8, 137u8, 207u8, 47u8, 46u8, 213u8, 159u8, 50u8, 175u8, 81u8, 155u8, 123u8, 246u8, 175u8, 156u8, 68u8, 22u8, 113u8, 135u8, 137u8, 163u8, 18u8, 115u8, 73u8, ], ) } #[doc = " A mapping from grandpa set ID to the index of the *most recent* session for which its"] #[doc = " members were responsible."] #[doc = ""] #[doc = " This is only used for validating equivocation proofs. An equivocation proof must"] #[doc = " contains a key-ownership proof for a given session, therefore we need a way to tie"] #[doc = " together sessions and GRANDPA set ids, i.e. we need to validate that a validator"] #[doc = " was the owner of a given key on a given session, and what the active set ID was"] #[doc = " during that session."] #[doc = ""] #[doc = " TWOX-NOTE: `SetId` is not under user control."] pub fn set_id_session( &self, _0: impl ::std::borrow::Borrow<::core::primitive::u64>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, ::core::primitive::u32, ::subxt::storage::address::Yes, (), ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( "Grandpa", "SetIdSession", vec![::subxt::storage::address::make_static_storage_map_key( _0.borrow(), )], [ 47u8, 0u8, 239u8, 121u8, 187u8, 213u8, 254u8, 50u8, 238u8, 10u8, 162u8, 65u8, 189u8, 166u8, 37u8, 74u8, 82u8, 81u8, 160u8, 20u8, 180u8, 253u8, 238u8, 18u8, 209u8, 203u8, 38u8, 148u8, 16u8, 105u8, 72u8, 169u8, ], ) } #[doc = " A mapping from grandpa set ID to the index of the *most recent* session for which its"] #[doc = " members were responsible."] #[doc = ""] #[doc = " This is only used for validating equivocation proofs. An equivocation proof must"] #[doc = " contains a key-ownership proof for a given session, therefore we need a way to tie"] #[doc = " together sessions and GRANDPA set ids, i.e. we need to validate that a validator"] #[doc = " was the owner of a given key on a given session, and what the active set ID was"] #[doc = " during that session."] #[doc = ""] #[doc = " TWOX-NOTE: `SetId` is not under user control."] pub fn set_id_session_root( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, ::core::primitive::u32, (), (), ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( "Grandpa", "SetIdSession", Vec::new(), [ 47u8, 0u8, 239u8, 121u8, 187u8, 213u8, 254u8, 50u8, 238u8, 10u8, 162u8, 65u8, 189u8, 166u8, 37u8, 74u8, 82u8, 81u8, 160u8, 20u8, 180u8, 253u8, 238u8, 18u8, 209u8, 203u8, 38u8, 148u8, 16u8, 105u8, 72u8, 169u8, ], ) } } } pub mod constants { use super::runtime_types; pub struct ConstantsApi; impl ConstantsApi { #[doc = " Max Authorities in use"] pub fn max_authorities( &self, ) -> ::subxt::constants::Address<::core::primitive::u32> { ::subxt::constants::Address::new_static( "Grandpa", "MaxAuthorities", [ 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, 145u8, ], ) } #[doc = " The maximum number of entries to keep in the set id to session index mapping."] #[doc = ""] #[doc = " Since the `SetIdSession` map is only used for validating equivocations this"] #[doc = " value should relate to the bonding duration of whatever staking system is"] #[doc = " being used (if any). If equivocation handling is not enabled then this value"] #[doc = " can be zero."] pub fn max_set_id_session_entries( &self, ) -> ::subxt::constants::Address<::core::primitive::u64> { ::subxt::constants::Address::new_static( "Grandpa", "MaxSetIdSessionEntries", [ 128u8, 214u8, 205u8, 242u8, 181u8, 142u8, 124u8, 231u8, 190u8, 146u8, 59u8, 226u8, 157u8, 101u8, 103u8, 117u8, 249u8, 65u8, 18u8, 191u8, 103u8, 119u8, 53u8, 85u8, 81u8, 96u8, 220u8, 42u8, 184u8, 239u8, 42u8, 246u8, ], ) } } } } pub mod im_online { use super::root_mod; use super::runtime_types; #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] pub type Error = runtime_types::pallet_im_online::pallet::Error; #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] pub type Call = runtime_types::pallet_im_online::pallet::Call; pub mod calls { use super::root_mod; use super::runtime_types; type DispatchError = runtime_types::sp_runtime::DispatchError; pub mod types { use super::runtime_types; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Heartbeat { pub heartbeat: runtime_types::pallet_im_online::Heartbeat<::core::primitive::u32>, pub signature: runtime_types::pallet_im_online::sr25519::app_sr25519::Signature, } impl ::subxt::blocks::StaticExtrinsic for Heartbeat { const PALLET: &'static str = "ImOnline"; const CALL: &'static str = "heartbeat"; } } pub struct TransactionApi; impl TransactionApi { #[doc = "## Complexity:"] #[doc = "- `O(K + E)` where K is length of `Keys` (heartbeat.validators_len) and E is length of"] #[doc = " `heartbeat.network_state.external_address`"] #[doc = " - `O(K)`: decoding of length `K`"] #[doc = " - `O(E)`: decoding/encoding of length `E`"] pub fn heartbeat( &self, heartbeat: runtime_types::pallet_im_online::Heartbeat<::core::primitive::u32>, signature: runtime_types::pallet_im_online::sr25519::app_sr25519::Signature, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "ImOnline", "heartbeat", types::Heartbeat { heartbeat, signature, }, [ 191u8, 155u8, 217u8, 65u8, 8u8, 34u8, 41u8, 185u8, 187u8, 199u8, 164u8, 48u8, 76u8, 123u8, 235u8, 182u8, 85u8, 107u8, 48u8, 158u8, 110u8, 206u8, 145u8, 119u8, 165u8, 253u8, 27u8, 59u8, 0u8, 112u8, 241u8, 242u8, ], ) } } } #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] pub type Event = runtime_types::pallet_im_online::pallet::Event; pub mod events { use super::runtime_types; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A new heartbeat was received from `AuthorityId`."] pub struct HeartbeatReceived { pub authority_id: runtime_types::pallet_im_online::sr25519::app_sr25519::Public, } impl ::subxt::events::StaticEvent for HeartbeatReceived { const PALLET: &'static str = "ImOnline"; const EVENT: &'static str = "HeartbeatReceived"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "At the end of the session, no offence was committed."] pub struct AllGood; impl ::subxt::events::StaticEvent for AllGood { const PALLET: &'static str = "ImOnline"; const EVENT: &'static str = "AllGood"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "At the end of the session, at least one validator was found to be offline."] pub struct SomeOffline { pub offline: ::std::vec::Vec<( ::subxt::utils::AccountId32, runtime_types::pallet_staking::Exposure< ::subxt::utils::AccountId32, ::core::primitive::u128, >, )>, } impl ::subxt::events::StaticEvent for SomeOffline { const PALLET: &'static str = "ImOnline"; const EVENT: &'static str = "SomeOffline"; } } pub mod storage { use super::runtime_types; pub struct StorageApi; impl StorageApi { #[doc = " The block number after which it's ok to send heartbeats in the current"] #[doc = " session."] #[doc = ""] #[doc = " At the beginning of each session we set this to a value that should fall"] #[doc = " roughly in the middle of the session duration. The idea is to first wait for"] #[doc = " the validators to produce a block in the current session, so that the"] #[doc = " heartbeat later on will not be necessary."] #[doc = ""] #[doc = " This value will only be used as a fallback if we fail to get a proper session"] #[doc = " progress estimate from `NextSessionRotation`, as those estimates should be"] #[doc = " more accurate then the value we calculate for `HeartbeatAfter`."] pub fn heartbeat_after( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, ::core::primitive::u32, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), > { ::subxt::storage::address::Address::new_static( "ImOnline", "HeartbeatAfter", vec![], [ 36u8, 179u8, 76u8, 254u8, 3u8, 184u8, 154u8, 142u8, 70u8, 104u8, 44u8, 244u8, 39u8, 97u8, 31u8, 31u8, 93u8, 228u8, 185u8, 224u8, 13u8, 160u8, 231u8, 210u8, 110u8, 143u8, 116u8, 29u8, 0u8, 215u8, 217u8, 137u8, ], ) } #[doc = " The current set of keys that may issue a heartbeat."] pub fn keys( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, runtime_types::bounded_collections::weak_bounded_vec::WeakBoundedVec< runtime_types::pallet_im_online::sr25519::app_sr25519::Public, >, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), > { ::subxt::storage::address::Address::new_static( "ImOnline", "Keys", vec![], [ 111u8, 104u8, 188u8, 46u8, 152u8, 140u8, 137u8, 244u8, 52u8, 214u8, 115u8, 156u8, 39u8, 239u8, 15u8, 168u8, 193u8, 125u8, 57u8, 195u8, 250u8, 156u8, 234u8, 222u8, 222u8, 253u8, 135u8, 232u8, 196u8, 163u8, 29u8, 218u8, ], ) } #[doc = " For each session index, we keep a mapping of `SessionIndex` and `AuthIndex` to"] #[doc = " `WrapperOpaque`."] pub fn received_heartbeats( &self, _0: impl ::std::borrow::Borrow<::core::primitive::u32>, _1: impl ::std::borrow::Borrow<::core::primitive::u32>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, runtime_types::frame_support::traits::misc::WrapperOpaque< runtime_types::pallet_im_online::BoundedOpaqueNetworkState, >, ::subxt::storage::address::Yes, (), ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( "ImOnline", "ReceivedHeartbeats", vec![ ::subxt::storage::address::make_static_storage_map_key(_0.borrow()), ::subxt::storage::address::make_static_storage_map_key(_1.borrow()), ], [ 244u8, 195u8, 226u8, 146u8, 31u8, 109u8, 70u8, 31u8, 198u8, 97u8, 116u8, 249u8, 115u8, 191u8, 13u8, 96u8, 12u8, 200u8, 235u8, 254u8, 3u8, 36u8, 51u8, 43u8, 224u8, 251u8, 76u8, 197u8, 157u8, 173u8, 125u8, 161u8, ], ) } #[doc = " For each session index, we keep a mapping of `SessionIndex` and `AuthIndex` to"] #[doc = " `WrapperOpaque`."] pub fn received_heartbeats_root( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, runtime_types::frame_support::traits::misc::WrapperOpaque< runtime_types::pallet_im_online::BoundedOpaqueNetworkState, >, (), (), ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( "ImOnline", "ReceivedHeartbeats", Vec::new(), [ 244u8, 195u8, 226u8, 146u8, 31u8, 109u8, 70u8, 31u8, 198u8, 97u8, 116u8, 249u8, 115u8, 191u8, 13u8, 96u8, 12u8, 200u8, 235u8, 254u8, 3u8, 36u8, 51u8, 43u8, 224u8, 251u8, 76u8, 197u8, 157u8, 173u8, 125u8, 161u8, ], ) } #[doc = " For each session index, we keep a mapping of `ValidatorId` to the"] #[doc = " number of blocks authored by the given authority."] pub fn authored_blocks( &self, _0: impl ::std::borrow::Borrow<::core::primitive::u32>, _1: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, ::core::primitive::u32, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( "ImOnline", "AuthoredBlocks", vec![ ::subxt::storage::address::make_static_storage_map_key(_0.borrow()), ::subxt::storage::address::make_static_storage_map_key(_1.borrow()), ], [ 121u8, 246u8, 100u8, 191u8, 5u8, 211u8, 190u8, 244u8, 61u8, 73u8, 169u8, 127u8, 116u8, 80u8, 118u8, 139u8, 115u8, 58u8, 125u8, 81u8, 75u8, 20u8, 194u8, 74u8, 97u8, 188u8, 55u8, 160u8, 33u8, 155u8, 186u8, 74u8, ], ) } #[doc = " For each session index, we keep a mapping of `ValidatorId` to the"] #[doc = " number of blocks authored by the given authority."] pub fn authored_blocks_root( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, ::core::primitive::u32, (), ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( "ImOnline", "AuthoredBlocks", Vec::new(), [ 121u8, 246u8, 100u8, 191u8, 5u8, 211u8, 190u8, 244u8, 61u8, 73u8, 169u8, 127u8, 116u8, 80u8, 118u8, 139u8, 115u8, 58u8, 125u8, 81u8, 75u8, 20u8, 194u8, 74u8, 97u8, 188u8, 55u8, 160u8, 33u8, 155u8, 186u8, 74u8, ], ) } } } pub mod constants { use super::runtime_types; pub struct ConstantsApi; impl ConstantsApi { #[doc = " A configuration for base priority of unsigned transactions."] #[doc = ""] #[doc = " This is exposed so that it can be tuned for particular runtime, when"] #[doc = " multiple pallets send unsigned transactions."] pub fn unsigned_priority( &self, ) -> ::subxt::constants::Address<::core::primitive::u64> { ::subxt::constants::Address::new_static( "ImOnline", "UnsignedPriority", [ 128u8, 214u8, 205u8, 242u8, 181u8, 142u8, 124u8, 231u8, 190u8, 146u8, 59u8, 226u8, 157u8, 101u8, 103u8, 117u8, 249u8, 65u8, 18u8, 191u8, 103u8, 119u8, 53u8, 85u8, 81u8, 96u8, 220u8, 42u8, 184u8, 239u8, 42u8, 246u8, ], ) } } } } pub mod authority_discovery { use super::root_mod; use super::runtime_types; } pub mod democracy { use super::root_mod; use super::runtime_types; #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] pub type Error = runtime_types::pallet_democracy::pallet::Error; #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] pub type Call = runtime_types::pallet_democracy::pallet::Call; pub mod calls { use super::root_mod; use super::runtime_types; type DispatchError = runtime_types::sp_runtime::DispatchError; pub mod types { use super::runtime_types; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Propose { pub proposal: runtime_types::frame_support::traits::preimages::Bounded< runtime_types::polkadot_runtime::RuntimeCall, >, #[codec(compact)] pub value: ::core::primitive::u128, } impl ::subxt::blocks::StaticExtrinsic for Propose { const PALLET: &'static str = "Democracy"; const CALL: &'static str = "propose"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Second { #[codec(compact)] pub proposal: ::core::primitive::u32, } impl ::subxt::blocks::StaticExtrinsic for Second { const PALLET: &'static str = "Democracy"; const CALL: &'static str = "second"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Vote { #[codec(compact)] pub ref_index: ::core::primitive::u32, pub vote: runtime_types::pallet_democracy::vote::AccountVote<::core::primitive::u128>, } impl ::subxt::blocks::StaticExtrinsic for Vote { const PALLET: &'static str = "Democracy"; const CALL: &'static str = "vote"; } #[derive( :: subxt :: ext :: codec :: CompactAs, :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct EmergencyCancel { pub ref_index: ::core::primitive::u32, } impl ::subxt::blocks::StaticExtrinsic for EmergencyCancel { const PALLET: &'static str = "Democracy"; const CALL: &'static str = "emergency_cancel"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ExternalPropose { pub proposal: runtime_types::frame_support::traits::preimages::Bounded< runtime_types::polkadot_runtime::RuntimeCall, >, } impl ::subxt::blocks::StaticExtrinsic for ExternalPropose { const PALLET: &'static str = "Democracy"; const CALL: &'static str = "external_propose"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ExternalProposeMajority { pub proposal: runtime_types::frame_support::traits::preimages::Bounded< runtime_types::polkadot_runtime::RuntimeCall, >, } impl ::subxt::blocks::StaticExtrinsic for ExternalProposeMajority { const PALLET: &'static str = "Democracy"; const CALL: &'static str = "external_propose_majority"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ExternalProposeDefault { pub proposal: runtime_types::frame_support::traits::preimages::Bounded< runtime_types::polkadot_runtime::RuntimeCall, >, } impl ::subxt::blocks::StaticExtrinsic for ExternalProposeDefault { const PALLET: &'static str = "Democracy"; const CALL: &'static str = "external_propose_default"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct FastTrack { pub proposal_hash: ::subxt::utils::H256, pub voting_period: ::core::primitive::u32, pub delay: ::core::primitive::u32, } impl ::subxt::blocks::StaticExtrinsic for FastTrack { const PALLET: &'static str = "Democracy"; const CALL: &'static str = "fast_track"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct VetoExternal { pub proposal_hash: ::subxt::utils::H256, } impl ::subxt::blocks::StaticExtrinsic for VetoExternal { const PALLET: &'static str = "Democracy"; const CALL: &'static str = "veto_external"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct CancelReferendum { #[codec(compact)] pub ref_index: ::core::primitive::u32, } impl ::subxt::blocks::StaticExtrinsic for CancelReferendum { const PALLET: &'static str = "Democracy"; const CALL: &'static str = "cancel_referendum"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Delegate { pub to: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, pub conviction: runtime_types::pallet_democracy::conviction::Conviction, pub balance: ::core::primitive::u128, } impl ::subxt::blocks::StaticExtrinsic for Delegate { const PALLET: &'static str = "Democracy"; const CALL: &'static str = "delegate"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Undelegate; impl ::subxt::blocks::StaticExtrinsic for Undelegate { const PALLET: &'static str = "Democracy"; const CALL: &'static str = "undelegate"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ClearPublicProposals; impl ::subxt::blocks::StaticExtrinsic for ClearPublicProposals { const PALLET: &'static str = "Democracy"; const CALL: &'static str = "clear_public_proposals"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Unlock { pub target: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, } impl ::subxt::blocks::StaticExtrinsic for Unlock { const PALLET: &'static str = "Democracy"; const CALL: &'static str = "unlock"; } #[derive( :: subxt :: ext :: codec :: CompactAs, :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct RemoveVote { pub index: ::core::primitive::u32, } impl ::subxt::blocks::StaticExtrinsic for RemoveVote { const PALLET: &'static str = "Democracy"; const CALL: &'static str = "remove_vote"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct RemoveOtherVote { pub target: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, pub index: ::core::primitive::u32, } impl ::subxt::blocks::StaticExtrinsic for RemoveOtherVote { const PALLET: &'static str = "Democracy"; const CALL: &'static str = "remove_other_vote"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Blacklist { pub proposal_hash: ::subxt::utils::H256, pub maybe_ref_index: ::core::option::Option<::core::primitive::u32>, } impl ::subxt::blocks::StaticExtrinsic for Blacklist { const PALLET: &'static str = "Democracy"; const CALL: &'static str = "blacklist"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct CancelProposal { #[codec(compact)] pub prop_index: ::core::primitive::u32, } impl ::subxt::blocks::StaticExtrinsic for CancelProposal { const PALLET: &'static str = "Democracy"; const CALL: &'static str = "cancel_proposal"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SetMetadata { pub owner: runtime_types::pallet_democracy::types::MetadataOwner, pub maybe_hash: ::core::option::Option<::subxt::utils::H256>, } impl ::subxt::blocks::StaticExtrinsic for SetMetadata { const PALLET: &'static str = "Democracy"; const CALL: &'static str = "set_metadata"; } } pub struct TransactionApi; impl TransactionApi { #[doc = "Propose a sensitive action to be taken."] #[doc = ""] #[doc = "The dispatch origin of this call must be _Signed_ and the sender must"] #[doc = "have funds to cover the deposit."] #[doc = ""] #[doc = "- `proposal_hash`: The hash of the proposal preimage."] #[doc = "- `value`: The amount of deposit (must be at least `MinimumDeposit`)."] #[doc = ""] #[doc = "Emits `Proposed`."] pub fn propose( &self, proposal: runtime_types::frame_support::traits::preimages::Bounded< runtime_types::polkadot_runtime::RuntimeCall, >, value: ::core::primitive::u128, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Democracy", "propose", types::Propose { proposal, value }, [ 230u8, 248u8, 57u8, 131u8, 96u8, 178u8, 225u8, 150u8, 97u8, 77u8, 246u8, 143u8, 151u8, 204u8, 201u8, 252u8, 133u8, 53u8, 34u8, 27u8, 156u8, 2u8, 242u8, 170u8, 198u8, 157u8, 166u8, 84u8, 246u8, 86u8, 78u8, 128u8, ], ) } #[doc = "Signals agreement with a particular proposal."] #[doc = ""] #[doc = "The dispatch origin of this call must be _Signed_ and the sender"] #[doc = "must have funds to cover the deposit, equal to the original deposit."] #[doc = ""] #[doc = "- `proposal`: The index of the proposal to second."] pub fn second( &self, proposal: ::core::primitive::u32, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Democracy", "second", types::Second { proposal }, [ 195u8, 55u8, 178u8, 55u8, 129u8, 64u8, 10u8, 131u8, 217u8, 79u8, 1u8, 187u8, 73u8, 126u8, 191u8, 221u8, 110u8, 10u8, 13u8, 65u8, 190u8, 107u8, 21u8, 236u8, 175u8, 130u8, 227u8, 179u8, 173u8, 39u8, 32u8, 147u8, ], ) } #[doc = "Vote in a referendum. If `vote.is_aye()`, the vote is to enact the proposal;"] #[doc = "otherwise it is a vote to keep the status quo."] #[doc = ""] #[doc = "The dispatch origin of this call must be _Signed_."] #[doc = ""] #[doc = "- `ref_index`: The index of the referendum to vote for."] #[doc = "- `vote`: The vote configuration."] pub fn vote( &self, ref_index: ::core::primitive::u32, vote: runtime_types::pallet_democracy::vote::AccountVote< ::core::primitive::u128, >, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Democracy", "vote", types::Vote { ref_index, vote }, [ 39u8, 113u8, 23u8, 175u8, 197u8, 225u8, 225u8, 129u8, 66u8, 50u8, 236u8, 220u8, 50u8, 49u8, 98u8, 163u8, 176u8, 96u8, 17u8, 91u8, 28u8, 187u8, 139u8, 148u8, 108u8, 110u8, 78u8, 253u8, 229u8, 3u8, 244u8, 126u8, ], ) } #[doc = "Schedule an emergency cancellation of a referendum. Cannot happen twice to the same"] #[doc = "referendum."] #[doc = ""] #[doc = "The dispatch origin of this call must be `CancellationOrigin`."] #[doc = ""] #[doc = "-`ref_index`: The index of the referendum to cancel."] #[doc = ""] #[doc = "Weight: `O(1)`."] pub fn emergency_cancel( &self, ref_index: ::core::primitive::u32, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Democracy", "emergency_cancel", types::EmergencyCancel { ref_index }, [ 82u8, 232u8, 19u8, 158u8, 88u8, 69u8, 96u8, 225u8, 106u8, 253u8, 6u8, 136u8, 87u8, 0u8, 68u8, 128u8, 122u8, 16u8, 107u8, 76u8, 209u8, 14u8, 230u8, 49u8, 228u8, 100u8, 187u8, 10u8, 76u8, 71u8, 197u8, 72u8, ], ) } #[doc = "Schedule a referendum to be tabled once it is legal to schedule an external"] #[doc = "referendum."] #[doc = ""] #[doc = "The dispatch origin of this call must be `ExternalOrigin`."] #[doc = ""] #[doc = "- `proposal_hash`: The preimage hash of the proposal."] pub fn external_propose( &self, proposal: runtime_types::frame_support::traits::preimages::Bounded< runtime_types::polkadot_runtime::RuntimeCall, >, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Democracy", "external_propose", types::ExternalPropose { proposal }, [ 247u8, 47u8, 180u8, 40u8, 205u8, 53u8, 99u8, 158u8, 4u8, 45u8, 157u8, 247u8, 32u8, 117u8, 153u8, 170u8, 226u8, 250u8, 142u8, 38u8, 237u8, 238u8, 75u8, 245u8, 184u8, 27u8, 157u8, 255u8, 213u8, 163u8, 92u8, 251u8, ], ) } #[doc = "Schedule a majority-carries referendum to be tabled next once it is legal to schedule"] #[doc = "an external referendum."] #[doc = ""] #[doc = "The dispatch of this call must be `ExternalMajorityOrigin`."] #[doc = ""] #[doc = "- `proposal_hash`: The preimage hash of the proposal."] #[doc = ""] #[doc = "Unlike `external_propose`, blacklisting has no effect on this and it may replace a"] #[doc = "pre-scheduled `external_propose` call."] #[doc = ""] #[doc = "Weight: `O(1)`"] pub fn external_propose_majority( &self, proposal: runtime_types::frame_support::traits::preimages::Bounded< runtime_types::polkadot_runtime::RuntimeCall, >, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Democracy", "external_propose_majority", types::ExternalProposeMajority { proposal }, [ 107u8, 81u8, 160u8, 130u8, 242u8, 208u8, 22u8, 70u8, 237u8, 235u8, 236u8, 60u8, 206u8, 172u8, 251u8, 138u8, 168u8, 124u8, 136u8, 95u8, 3u8, 184u8, 12u8, 55u8, 125u8, 233u8, 20u8, 148u8, 36u8, 189u8, 16u8, 245u8, ], ) } #[doc = "Schedule a negative-turnout-bias referendum to be tabled next once it is legal to"] #[doc = "schedule an external referendum."] #[doc = ""] #[doc = "The dispatch of this call must be `ExternalDefaultOrigin`."] #[doc = ""] #[doc = "- `proposal_hash`: The preimage hash of the proposal."] #[doc = ""] #[doc = "Unlike `external_propose`, blacklisting has no effect on this and it may replace a"] #[doc = "pre-scheduled `external_propose` call."] #[doc = ""] #[doc = "Weight: `O(1)`"] pub fn external_propose_default( &self, proposal: runtime_types::frame_support::traits::preimages::Bounded< runtime_types::polkadot_runtime::RuntimeCall, >, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Democracy", "external_propose_default", types::ExternalProposeDefault { proposal }, [ 238u8, 247u8, 252u8, 35u8, 78u8, 158u8, 221u8, 87u8, 252u8, 98u8, 67u8, 44u8, 200u8, 206u8, 28u8, 19u8, 204u8, 13u8, 253u8, 133u8, 229u8, 195u8, 166u8, 218u8, 114u8, 69u8, 23u8, 169u8, 67u8, 168u8, 46u8, 176u8, ], ) } #[doc = "Schedule the currently externally-proposed majority-carries referendum to be tabled"] #[doc = "immediately. If there is no externally-proposed referendum currently, or if there is one"] #[doc = "but it is not a majority-carries referendum then it fails."] #[doc = ""] #[doc = "The dispatch of this call must be `FastTrackOrigin`."] #[doc = ""] #[doc = "- `proposal_hash`: The hash of the current external proposal."] #[doc = "- `voting_period`: The period that is allowed for voting on this proposal. Increased to"] #[doc = "\tMust be always greater than zero."] #[doc = "\tFor `FastTrackOrigin` must be equal or greater than `FastTrackVotingPeriod`."] #[doc = "- `delay`: The number of block after voting has ended in approval and this should be"] #[doc = " enacted. This doesn't have a minimum amount."] #[doc = ""] #[doc = "Emits `Started`."] #[doc = ""] #[doc = "Weight: `O(1)`"] pub fn fast_track( &self, proposal_hash: ::subxt::utils::H256, voting_period: ::core::primitive::u32, delay: ::core::primitive::u32, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Democracy", "fast_track", types::FastTrack { proposal_hash, voting_period, delay, }, [ 147u8, 226u8, 166u8, 105u8, 149u8, 171u8, 86u8, 165u8, 168u8, 78u8, 233u8, 182u8, 118u8, 36u8, 82u8, 155u8, 209u8, 55u8, 153u8, 141u8, 120u8, 223u8, 46u8, 170u8, 48u8, 94u8, 32u8, 144u8, 84u8, 203u8, 68u8, 62u8, ], ) } #[doc = "Veto and blacklist the external proposal hash."] #[doc = ""] #[doc = "The dispatch origin of this call must be `VetoOrigin`."] #[doc = ""] #[doc = "- `proposal_hash`: The preimage hash of the proposal to veto and blacklist."] #[doc = ""] #[doc = "Emits `Vetoed`."] #[doc = ""] #[doc = "Weight: `O(V + log(V))` where V is number of `existing vetoers`"] pub fn veto_external( &self, proposal_hash: ::subxt::utils::H256, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Democracy", "veto_external", types::VetoExternal { proposal_hash }, [ 121u8, 217u8, 249u8, 134u8, 45u8, 19u8, 126u8, 166u8, 218u8, 223u8, 165u8, 124u8, 162u8, 59u8, 56u8, 200u8, 227u8, 125u8, 23u8, 133u8, 196u8, 93u8, 210u8, 15u8, 39u8, 26u8, 58u8, 236u8, 9u8, 101u8, 202u8, 168u8, ], ) } #[doc = "Remove a referendum."] #[doc = ""] #[doc = "The dispatch origin of this call must be _Root_."] #[doc = ""] #[doc = "- `ref_index`: The index of the referendum to cancel."] #[doc = ""] #[doc = "# Weight: `O(1)`."] pub fn cancel_referendum( &self, ref_index: ::core::primitive::u32, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Democracy", "cancel_referendum", types::CancelReferendum { ref_index }, [ 149u8, 120u8, 70u8, 20u8, 126u8, 21u8, 30u8, 33u8, 82u8, 124u8, 229u8, 179u8, 169u8, 243u8, 173u8, 146u8, 140u8, 22u8, 124u8, 154u8, 228u8, 117u8, 109u8, 88u8, 11u8, 100u8, 235u8, 243u8, 118u8, 99u8, 250u8, 140u8, ], ) } #[doc = "Delegate the voting power (with some given conviction) of the sending account."] #[doc = ""] #[doc = "The balance delegated is locked for as long as it's delegated, and thereafter for the"] #[doc = "time appropriate for the conviction's lock period."] #[doc = ""] #[doc = "The dispatch origin of this call must be _Signed_, and the signing account must either:"] #[doc = " - be delegating already; or"] #[doc = " - have no voting activity (if there is, then it will need to be removed/consolidated"] #[doc = " through `reap_vote` or `unvote`)."] #[doc = ""] #[doc = "- `to`: The account whose voting the `target` account's voting power will follow."] #[doc = "- `conviction`: The conviction that will be attached to the delegated votes. When the"] #[doc = " account is undelegated, the funds will be locked for the corresponding period."] #[doc = "- `balance`: The amount of the account's balance to be used in delegating. This must not"] #[doc = " be more than the account's current balance."] #[doc = ""] #[doc = "Emits `Delegated`."] #[doc = ""] #[doc = "Weight: `O(R)` where R is the number of referendums the voter delegating to has"] #[doc = " voted on. Weight is charged as if maximum votes."] pub fn delegate( &self, to: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, conviction: runtime_types::pallet_democracy::conviction::Conviction, balance: ::core::primitive::u128, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Democracy", "delegate", types::Delegate { to, conviction, balance, }, [ 88u8, 58u8, 42u8, 172u8, 33u8, 212u8, 13u8, 24u8, 172u8, 217u8, 147u8, 144u8, 62u8, 28u8, 38u8, 65u8, 90u8, 94u8, 212u8, 217u8, 74u8, 38u8, 133u8, 168u8, 136u8, 43u8, 46u8, 136u8, 149u8, 22u8, 200u8, 217u8, ], ) } #[doc = "Undelegate the voting power of the sending account."] #[doc = ""] #[doc = "Tokens may be unlocked following once an amount of time consistent with the lock period"] #[doc = "of the conviction with which the delegation was issued."] #[doc = ""] #[doc = "The dispatch origin of this call must be _Signed_ and the signing account must be"] #[doc = "currently delegating."] #[doc = ""] #[doc = "Emits `Undelegated`."] #[doc = ""] #[doc = "Weight: `O(R)` where R is the number of referendums the voter delegating to has"] #[doc = " voted on. Weight is charged as if maximum votes."] pub fn undelegate(&self) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Democracy", "undelegate", types::Undelegate {}, [ 225u8, 156u8, 102u8, 1u8, 172u8, 145u8, 88u8, 12u8, 89u8, 32u8, 51u8, 83u8, 25u8, 149u8, 132u8, 203u8, 246u8, 98u8, 155u8, 36u8, 165u8, 206u8, 233u8, 169u8, 91u8, 85u8, 105u8, 67u8, 46u8, 134u8, 244u8, 250u8, ], ) } #[doc = "Clears all public proposals."] #[doc = ""] #[doc = "The dispatch origin of this call must be _Root_."] #[doc = ""] #[doc = "Weight: `O(1)`."] pub fn clear_public_proposals( &self, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Democracy", "clear_public_proposals", types::ClearPublicProposals {}, [ 116u8, 160u8, 246u8, 216u8, 23u8, 188u8, 144u8, 63u8, 97u8, 198u8, 11u8, 243u8, 165u8, 84u8, 159u8, 153u8, 235u8, 169u8, 166u8, 15u8, 23u8, 116u8, 30u8, 56u8, 133u8, 31u8, 158u8, 114u8, 158u8, 86u8, 106u8, 93u8, ], ) } #[doc = "Unlock tokens that have an expired lock."] #[doc = ""] #[doc = "The dispatch origin of this call must be _Signed_."] #[doc = ""] #[doc = "- `target`: The account to remove the lock on."] #[doc = ""] #[doc = "Weight: `O(R)` with R number of vote of target."] pub fn unlock( &self, target: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Democracy", "unlock", types::Unlock { target }, [ 158u8, 211u8, 121u8, 157u8, 250u8, 194u8, 139u8, 166u8, 111u8, 66u8, 114u8, 82u8, 190u8, 51u8, 40u8, 78u8, 35u8, 217u8, 91u8, 204u8, 85u8, 253u8, 175u8, 14u8, 205u8, 37u8, 22u8, 118u8, 0u8, 6u8, 235u8, 143u8, ], ) } #[doc = "Remove a vote for a referendum."] #[doc = ""] #[doc = "If:"] #[doc = "- the referendum was cancelled, or"] #[doc = "- the referendum is ongoing, or"] #[doc = "- the referendum has ended such that"] #[doc = " - the vote of the account was in opposition to the result; or"] #[doc = " - there was no conviction to the account's vote; or"] #[doc = " - the account made a split vote"] #[doc = "...then the vote is removed cleanly and a following call to `unlock` may result in more"] #[doc = "funds being available."] #[doc = ""] #[doc = "If, however, the referendum has ended and:"] #[doc = "- it finished corresponding to the vote of the account, and"] #[doc = "- the account made a standard vote with conviction, and"] #[doc = "- the lock period of the conviction is not over"] #[doc = "...then the lock will be aggregated into the overall account's lock, which may involve"] #[doc = "*overlocking* (where the two locks are combined into a single lock that is the maximum"] #[doc = "of both the amount locked and the time is it locked for)."] #[doc = ""] #[doc = "The dispatch origin of this call must be _Signed_, and the signer must have a vote"] #[doc = "registered for referendum `index`."] #[doc = ""] #[doc = "- `index`: The index of referendum of the vote to be removed."] #[doc = ""] #[doc = "Weight: `O(R + log R)` where R is the number of referenda that `target` has voted on."] #[doc = " Weight is calculated for the maximum number of vote."] pub fn remove_vote( &self, index: ::core::primitive::u32, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Democracy", "remove_vote", types::RemoveVote { index }, [ 98u8, 146u8, 215u8, 63u8, 222u8, 70u8, 61u8, 186u8, 90u8, 34u8, 63u8, 25u8, 195u8, 119u8, 228u8, 189u8, 38u8, 163u8, 58u8, 210u8, 216u8, 156u8, 20u8, 204u8, 136u8, 192u8, 33u8, 210u8, 124u8, 65u8, 153u8, 105u8, ], ) } #[doc = "Remove a vote for a referendum."] #[doc = ""] #[doc = "If the `target` is equal to the signer, then this function is exactly equivalent to"] #[doc = "`remove_vote`. If not equal to the signer, then the vote must have expired,"] #[doc = "either because the referendum was cancelled, because the voter lost the referendum or"] #[doc = "because the conviction period is over."] #[doc = ""] #[doc = "The dispatch origin of this call must be _Signed_."] #[doc = ""] #[doc = "- `target`: The account of the vote to be removed; this account must have voted for"] #[doc = " referendum `index`."] #[doc = "- `index`: The index of referendum of the vote to be removed."] #[doc = ""] #[doc = "Weight: `O(R + log R)` where R is the number of referenda that `target` has voted on."] #[doc = " Weight is calculated for the maximum number of vote."] pub fn remove_other_vote( &self, target: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, index: ::core::primitive::u32, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Democracy", "remove_other_vote", types::RemoveOtherVote { target, index }, [ 130u8, 92u8, 224u8, 67u8, 200u8, 201u8, 9u8, 178u8, 138u8, 81u8, 37u8, 130u8, 216u8, 75u8, 233u8, 119u8, 141u8, 89u8, 188u8, 61u8, 162u8, 43u8, 136u8, 92u8, 227u8, 1u8, 160u8, 240u8, 26u8, 77u8, 222u8, 245u8, ], ) } #[doc = "Permanently place a proposal into the blacklist. This prevents it from ever being"] #[doc = "proposed again."] #[doc = ""] #[doc = "If called on a queued public or external proposal, then this will result in it being"] #[doc = "removed. If the `ref_index` supplied is an active referendum with the proposal hash,"] #[doc = "then it will be cancelled."] #[doc = ""] #[doc = "The dispatch origin of this call must be `BlacklistOrigin`."] #[doc = ""] #[doc = "- `proposal_hash`: The proposal hash to blacklist permanently."] #[doc = "- `ref_index`: An ongoing referendum whose hash is `proposal_hash`, which will be"] #[doc = "cancelled."] #[doc = ""] #[doc = "Weight: `O(p)` (though as this is an high-privilege dispatch, we assume it has a"] #[doc = " reasonable value)."] pub fn blacklist( &self, proposal_hash: ::subxt::utils::H256, maybe_ref_index: ::core::option::Option<::core::primitive::u32>, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Democracy", "blacklist", types::Blacklist { proposal_hash, maybe_ref_index, }, [ 227u8, 200u8, 88u8, 154u8, 134u8, 121u8, 131u8, 177u8, 94u8, 119u8, 12u8, 129u8, 150u8, 59u8, 108u8, 103u8, 109u8, 55u8, 220u8, 211u8, 250u8, 103u8, 160u8, 170u8, 63u8, 142u8, 112u8, 244u8, 29u8, 238u8, 101u8, 24u8, ], ) } #[doc = "Remove a proposal."] #[doc = ""] #[doc = "The dispatch origin of this call must be `CancelProposalOrigin`."] #[doc = ""] #[doc = "- `prop_index`: The index of the proposal to cancel."] #[doc = ""] #[doc = "Weight: `O(p)` where `p = PublicProps::::decode_len()`"] pub fn cancel_proposal( &self, prop_index: ::core::primitive::u32, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Democracy", "cancel_proposal", types::CancelProposal { prop_index }, [ 213u8, 5u8, 215u8, 209u8, 71u8, 229u8, 66u8, 38u8, 171u8, 38u8, 14u8, 103u8, 248u8, 176u8, 217u8, 143u8, 234u8, 89u8, 110u8, 250u8, 3u8, 190u8, 151u8, 74u8, 55u8, 58u8, 249u8, 138u8, 25u8, 191u8, 55u8, 142u8, ], ) } #[doc = "Set or clear a metadata of a proposal or a referendum."] #[doc = ""] #[doc = "Parameters:"] #[doc = "- `origin`: Must correspond to the `MetadataOwner`."] #[doc = " - `ExternalOrigin` for an external proposal with the `SuperMajorityApprove`"] #[doc = " threshold."] #[doc = " - `ExternalDefaultOrigin` for an external proposal with the `SuperMajorityAgainst`"] #[doc = " threshold."] #[doc = " - `ExternalMajorityOrigin` for an external proposal with the `SimpleMajority`"] #[doc = " threshold."] #[doc = " - `Signed` by a creator for a public proposal."] #[doc = " - `Signed` to clear a metadata for a finished referendum."] #[doc = " - `Root` to set a metadata for an ongoing referendum."] #[doc = "- `owner`: an identifier of a metadata owner."] #[doc = "- `maybe_hash`: The hash of an on-chain stored preimage. `None` to clear a metadata."] pub fn set_metadata( &self, owner: runtime_types::pallet_democracy::types::MetadataOwner, maybe_hash: ::core::option::Option<::subxt::utils::H256>, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Democracy", "set_metadata", types::SetMetadata { owner, maybe_hash }, [ 192u8, 174u8, 122u8, 229u8, 149u8, 49u8, 155u8, 209u8, 226u8, 255u8, 46u8, 43u8, 77u8, 164u8, 226u8, 254u8, 207u8, 110u8, 222u8, 131u8, 220u8, 53u8, 95u8, 170u8, 128u8, 212u8, 236u8, 168u8, 156u8, 29u8, 151u8, 40u8, ], ) } } } #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] pub type Event = runtime_types::pallet_democracy::pallet::Event; pub mod events { use super::runtime_types; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A motion has been proposed by a public account."] pub struct Proposed { pub proposal_index: ::core::primitive::u32, pub deposit: ::core::primitive::u128, } impl ::subxt::events::StaticEvent for Proposed { const PALLET: &'static str = "Democracy"; const EVENT: &'static str = "Proposed"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A public proposal has been tabled for referendum vote."] pub struct Tabled { pub proposal_index: ::core::primitive::u32, pub deposit: ::core::primitive::u128, } impl ::subxt::events::StaticEvent for Tabled { const PALLET: &'static str = "Democracy"; const EVENT: &'static str = "Tabled"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "An external proposal has been tabled."] pub struct ExternalTabled; impl ::subxt::events::StaticEvent for ExternalTabled { const PALLET: &'static str = "Democracy"; const EVENT: &'static str = "ExternalTabled"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A referendum has begun."] pub struct Started { pub ref_index: ::core::primitive::u32, pub threshold: runtime_types::pallet_democracy::vote_threshold::VoteThreshold, } impl ::subxt::events::StaticEvent for Started { const PALLET: &'static str = "Democracy"; const EVENT: &'static str = "Started"; } #[derive( :: subxt :: ext :: codec :: CompactAs, :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A proposal has been approved by referendum."] pub struct Passed { pub ref_index: ::core::primitive::u32, } impl ::subxt::events::StaticEvent for Passed { const PALLET: &'static str = "Democracy"; const EVENT: &'static str = "Passed"; } #[derive( :: subxt :: ext :: codec :: CompactAs, :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A proposal has been rejected by referendum."] pub struct NotPassed { pub ref_index: ::core::primitive::u32, } impl ::subxt::events::StaticEvent for NotPassed { const PALLET: &'static str = "Democracy"; const EVENT: &'static str = "NotPassed"; } #[derive( :: subxt :: ext :: codec :: CompactAs, :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A referendum has been cancelled."] pub struct Cancelled { pub ref_index: ::core::primitive::u32, } impl ::subxt::events::StaticEvent for Cancelled { const PALLET: &'static str = "Democracy"; const EVENT: &'static str = "Cancelled"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "An account has delegated their vote to another account."] pub struct Delegated { pub who: ::subxt::utils::AccountId32, pub target: ::subxt::utils::AccountId32, } impl ::subxt::events::StaticEvent for Delegated { const PALLET: &'static str = "Democracy"; const EVENT: &'static str = "Delegated"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "An account has cancelled a previous delegation operation."] pub struct Undelegated { pub account: ::subxt::utils::AccountId32, } impl ::subxt::events::StaticEvent for Undelegated { const PALLET: &'static str = "Democracy"; const EVENT: &'static str = "Undelegated"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "An external proposal has been vetoed."] pub struct Vetoed { pub who: ::subxt::utils::AccountId32, pub proposal_hash: ::subxt::utils::H256, pub until: ::core::primitive::u32, } impl ::subxt::events::StaticEvent for Vetoed { const PALLET: &'static str = "Democracy"; const EVENT: &'static str = "Vetoed"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A proposal_hash has been blacklisted permanently."] pub struct Blacklisted { pub proposal_hash: ::subxt::utils::H256, } impl ::subxt::events::StaticEvent for Blacklisted { const PALLET: &'static str = "Democracy"; const EVENT: &'static str = "Blacklisted"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "An account has voted in a referendum"] pub struct Voted { pub voter: ::subxt::utils::AccountId32, pub ref_index: ::core::primitive::u32, pub vote: runtime_types::pallet_democracy::vote::AccountVote<::core::primitive::u128>, } impl ::subxt::events::StaticEvent for Voted { const PALLET: &'static str = "Democracy"; const EVENT: &'static str = "Voted"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "An account has secconded a proposal"] pub struct Seconded { pub seconder: ::subxt::utils::AccountId32, pub prop_index: ::core::primitive::u32, } impl ::subxt::events::StaticEvent for Seconded { const PALLET: &'static str = "Democracy"; const EVENT: &'static str = "Seconded"; } #[derive( :: subxt :: ext :: codec :: CompactAs, :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A proposal got canceled."] pub struct ProposalCanceled { pub prop_index: ::core::primitive::u32, } impl ::subxt::events::StaticEvent for ProposalCanceled { const PALLET: &'static str = "Democracy"; const EVENT: &'static str = "ProposalCanceled"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Metadata for a proposal or a referendum has been set."] pub struct MetadataSet { pub owner: runtime_types::pallet_democracy::types::MetadataOwner, pub hash: ::subxt::utils::H256, } impl ::subxt::events::StaticEvent for MetadataSet { const PALLET: &'static str = "Democracy"; const EVENT: &'static str = "MetadataSet"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Metadata for a proposal or a referendum has been cleared."] pub struct MetadataCleared { pub owner: runtime_types::pallet_democracy::types::MetadataOwner, pub hash: ::subxt::utils::H256, } impl ::subxt::events::StaticEvent for MetadataCleared { const PALLET: &'static str = "Democracy"; const EVENT: &'static str = "MetadataCleared"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Metadata has been transferred to new owner."] pub struct MetadataTransferred { pub prev_owner: runtime_types::pallet_democracy::types::MetadataOwner, pub owner: runtime_types::pallet_democracy::types::MetadataOwner, pub hash: ::subxt::utils::H256, } impl ::subxt::events::StaticEvent for MetadataTransferred { const PALLET: &'static str = "Democracy"; const EVENT: &'static str = "MetadataTransferred"; } } pub mod storage { use super::runtime_types; pub struct StorageApi; impl StorageApi { #[doc = " The number of (public) proposals that have been made so far."] pub fn public_prop_count( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, ::core::primitive::u32, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), > { ::subxt::storage::address::Address::new_static( "Democracy", "PublicPropCount", vec![], [ 51u8, 175u8, 184u8, 94u8, 91u8, 212u8, 100u8, 108u8, 127u8, 162u8, 233u8, 137u8, 12u8, 209u8, 29u8, 130u8, 125u8, 179u8, 208u8, 160u8, 173u8, 149u8, 12u8, 111u8, 1u8, 82u8, 196u8, 137u8, 51u8, 204u8, 153u8, 198u8, ], ) } #[doc = " The public proposals. Unsorted. The second item is the proposal."] pub fn public_props( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, runtime_types::bounded_collections::bounded_vec::BoundedVec<( ::core::primitive::u32, runtime_types::frame_support::traits::preimages::Bounded< runtime_types::polkadot_runtime::RuntimeCall, >, ::subxt::utils::AccountId32, )>, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), > { ::subxt::storage::address::Address::new_static( "Democracy", "PublicProps", vec![], [ 156u8, 21u8, 84u8, 229u8, 193u8, 34u8, 28u8, 230u8, 11u8, 108u8, 2u8, 84u8, 188u8, 11u8, 25u8, 55u8, 130u8, 80u8, 164u8, 239u8, 150u8, 77u8, 4u8, 246u8, 174u8, 16u8, 232u8, 23u8, 9u8, 194u8, 177u8, 73u8, ], ) } #[doc = " Those who have locked a deposit."] #[doc = ""] #[doc = " TWOX-NOTE: Safe, as increasing integer keys are safe."] pub fn deposit_of( &self, _0: impl ::std::borrow::Borrow<::core::primitive::u32>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, ( runtime_types::bounded_collections::bounded_vec::BoundedVec< ::subxt::utils::AccountId32, >, ::core::primitive::u128, ), ::subxt::storage::address::Yes, (), ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( "Democracy", "DepositOf", vec![::subxt::storage::address::make_static_storage_map_key( _0.borrow(), )], [ 115u8, 12u8, 250u8, 191u8, 201u8, 165u8, 90u8, 140u8, 101u8, 47u8, 46u8, 3u8, 78u8, 30u8, 180u8, 22u8, 28u8, 154u8, 36u8, 99u8, 255u8, 84u8, 33u8, 21u8, 65u8, 110u8, 52u8, 245u8, 19u8, 6u8, 104u8, 167u8, ], ) } #[doc = " Those who have locked a deposit."] #[doc = ""] #[doc = " TWOX-NOTE: Safe, as increasing integer keys are safe."] pub fn deposit_of_root( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, ( runtime_types::bounded_collections::bounded_vec::BoundedVec< ::subxt::utils::AccountId32, >, ::core::primitive::u128, ), (), (), ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( "Democracy", "DepositOf", Vec::new(), [ 115u8, 12u8, 250u8, 191u8, 201u8, 165u8, 90u8, 140u8, 101u8, 47u8, 46u8, 3u8, 78u8, 30u8, 180u8, 22u8, 28u8, 154u8, 36u8, 99u8, 255u8, 84u8, 33u8, 21u8, 65u8, 110u8, 52u8, 245u8, 19u8, 6u8, 104u8, 167u8, ], ) } #[doc = " The next free referendum index, aka the number of referenda started so far."] pub fn referendum_count( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, ::core::primitive::u32, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), > { ::subxt::storage::address::Address::new_static( "Democracy", "ReferendumCount", vec![], [ 64u8, 145u8, 232u8, 153u8, 121u8, 87u8, 128u8, 253u8, 170u8, 192u8, 139u8, 18u8, 0u8, 33u8, 243u8, 11u8, 238u8, 222u8, 244u8, 5u8, 247u8, 198u8, 149u8, 31u8, 122u8, 208u8, 86u8, 179u8, 166u8, 167u8, 93u8, 67u8, ], ) } #[doc = " The lowest referendum index representing an unbaked referendum. Equal to"] #[doc = " `ReferendumCount` if there isn't a unbaked referendum."] pub fn lowest_unbaked( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, ::core::primitive::u32, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), > { ::subxt::storage::address::Address::new_static( "Democracy", "LowestUnbaked", vec![], [ 237u8, 222u8, 144u8, 214u8, 0u8, 186u8, 81u8, 176u8, 51u8, 14u8, 204u8, 184u8, 147u8, 97u8, 187u8, 84u8, 40u8, 8u8, 86u8, 241u8, 16u8, 157u8, 202u8, 44u8, 185u8, 111u8, 70u8, 114u8, 40u8, 135u8, 1u8, 155u8, ], ) } #[doc = " Information concerning any given referendum."] #[doc = ""] #[doc = " TWOX-NOTE: SAFE as indexes are not under an attacker’s control."] pub fn referendum_info_of( &self, _0: impl ::std::borrow::Borrow<::core::primitive::u32>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, runtime_types::pallet_democracy::types::ReferendumInfo< ::core::primitive::u32, runtime_types::frame_support::traits::preimages::Bounded< runtime_types::polkadot_runtime::RuntimeCall, >, ::core::primitive::u128, >, ::subxt::storage::address::Yes, (), ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( "Democracy", "ReferendumInfoOf", vec![::subxt::storage::address::make_static_storage_map_key( _0.borrow(), )], [ 250u8, 201u8, 144u8, 220u8, 13u8, 14u8, 69u8, 171u8, 240u8, 119u8, 158u8, 200u8, 86u8, 77u8, 115u8, 156u8, 156u8, 101u8, 215u8, 233u8, 165u8, 96u8, 62u8, 201u8, 83u8, 203u8, 58u8, 67u8, 49u8, 174u8, 86u8, 242u8, ], ) } #[doc = " Information concerning any given referendum."] #[doc = ""] #[doc = " TWOX-NOTE: SAFE as indexes are not under an attacker’s control."] pub fn referendum_info_of_root( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, runtime_types::pallet_democracy::types::ReferendumInfo< ::core::primitive::u32, runtime_types::frame_support::traits::preimages::Bounded< runtime_types::polkadot_runtime::RuntimeCall, >, ::core::primitive::u128, >, (), (), ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( "Democracy", "ReferendumInfoOf", Vec::new(), [ 250u8, 201u8, 144u8, 220u8, 13u8, 14u8, 69u8, 171u8, 240u8, 119u8, 158u8, 200u8, 86u8, 77u8, 115u8, 156u8, 156u8, 101u8, 215u8, 233u8, 165u8, 96u8, 62u8, 201u8, 83u8, 203u8, 58u8, 67u8, 49u8, 174u8, 86u8, 242u8, ], ) } #[doc = " All votes for a particular voter. We store the balance for the number of votes that we"] #[doc = " have recorded. The second item is the total amount of delegations, that will be added."] #[doc = ""] #[doc = " TWOX-NOTE: SAFE as `AccountId`s are crypto hashes anyway."] pub fn voting_of( &self, _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, runtime_types::pallet_democracy::vote::Voting< ::core::primitive::u128, ::subxt::utils::AccountId32, ::core::primitive::u32, >, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( "Democracy", "VotingOf", vec![::subxt::storage::address::make_static_storage_map_key( _0.borrow(), )], [ 170u8, 234u8, 179u8, 190u8, 153u8, 172u8, 83u8, 105u8, 57u8, 88u8, 183u8, 54u8, 172u8, 149u8, 222u8, 240u8, 128u8, 46u8, 25u8, 10u8, 205u8, 69u8, 164u8, 173u8, 55u8, 188u8, 196u8, 51u8, 129u8, 206u8, 87u8, 249u8, ], ) } #[doc = " All votes for a particular voter. We store the balance for the number of votes that we"] #[doc = " have recorded. The second item is the total amount of delegations, that will be added."] #[doc = ""] #[doc = " TWOX-NOTE: SAFE as `AccountId`s are crypto hashes anyway."] pub fn voting_of_root( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, runtime_types::pallet_democracy::vote::Voting< ::core::primitive::u128, ::subxt::utils::AccountId32, ::core::primitive::u32, >, (), ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( "Democracy", "VotingOf", Vec::new(), [ 170u8, 234u8, 179u8, 190u8, 153u8, 172u8, 83u8, 105u8, 57u8, 88u8, 183u8, 54u8, 172u8, 149u8, 222u8, 240u8, 128u8, 46u8, 25u8, 10u8, 205u8, 69u8, 164u8, 173u8, 55u8, 188u8, 196u8, 51u8, 129u8, 206u8, 87u8, 249u8, ], ) } #[doc = " True if the last referendum tabled was submitted externally. False if it was a public"] #[doc = " proposal."] pub fn last_tabled_was_external( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, ::core::primitive::bool, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), > { ::subxt::storage::address::Address::new_static( "Democracy", "LastTabledWasExternal", vec![], [ 162u8, 201u8, 72u8, 9u8, 78u8, 49u8, 72u8, 62u8, 240u8, 69u8, 20u8, 135u8, 26u8, 59u8, 71u8, 46u8, 19u8, 25u8, 195u8, 11u8, 99u8, 31u8, 104u8, 4u8, 24u8, 129u8, 47u8, 69u8, 219u8, 178u8, 104u8, 190u8, ], ) } #[doc = " The referendum to be tabled whenever it would be valid to table an external proposal."] #[doc = " This happens when a referendum needs to be tabled and one of two conditions are met:"] #[doc = " - `LastTabledWasExternal` is `false`; or"] #[doc = " - `PublicProps` is empty."] pub fn next_external( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, ( runtime_types::frame_support::traits::preimages::Bounded< runtime_types::polkadot_runtime::RuntimeCall, >, runtime_types::pallet_democracy::vote_threshold::VoteThreshold, ), ::subxt::storage::address::Yes, (), (), > { ::subxt::storage::address::Address::new_static( "Democracy", "NextExternal", vec![], [ 130u8, 253u8, 139u8, 228u8, 253u8, 181u8, 172u8, 14u8, 214u8, 128u8, 17u8, 195u8, 104u8, 64u8, 64u8, 132u8, 40u8, 212u8, 80u8, 47u8, 225u8, 224u8, 9u8, 186u8, 80u8, 118u8, 120u8, 174u8, 174u8, 20u8, 150u8, 13u8, ], ) } #[doc = " A record of who vetoed what. Maps proposal hash to a possible existent block number"] #[doc = " (until when it may not be resubmitted) and who vetoed it."] pub fn blacklist( &self, _0: impl ::std::borrow::Borrow<::subxt::utils::H256>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, ( ::core::primitive::u32, runtime_types::bounded_collections::bounded_vec::BoundedVec< ::subxt::utils::AccountId32, >, ), ::subxt::storage::address::Yes, (), ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( "Democracy", "Blacklist", vec![::subxt::storage::address::make_static_storage_map_key( _0.borrow(), )], [ 238u8, 119u8, 98u8, 220u8, 11u8, 209u8, 90u8, 9u8, 69u8, 51u8, 59u8, 177u8, 169u8, 113u8, 138u8, 13u8, 134u8, 14u8, 184u8, 6u8, 80u8, 182u8, 154u8, 10u8, 100u8, 71u8, 117u8, 2u8, 150u8, 170u8, 154u8, 255u8, ], ) } #[doc = " A record of who vetoed what. Maps proposal hash to a possible existent block number"] #[doc = " (until when it may not be resubmitted) and who vetoed it."] pub fn blacklist_root( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, ( ::core::primitive::u32, runtime_types::bounded_collections::bounded_vec::BoundedVec< ::subxt::utils::AccountId32, >, ), (), (), ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( "Democracy", "Blacklist", Vec::new(), [ 238u8, 119u8, 98u8, 220u8, 11u8, 209u8, 90u8, 9u8, 69u8, 51u8, 59u8, 177u8, 169u8, 113u8, 138u8, 13u8, 134u8, 14u8, 184u8, 6u8, 80u8, 182u8, 154u8, 10u8, 100u8, 71u8, 117u8, 2u8, 150u8, 170u8, 154u8, 255u8, ], ) } #[doc = " Record of all proposals that have been subject to emergency cancellation."] pub fn cancellations( &self, _0: impl ::std::borrow::Borrow<::subxt::utils::H256>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, ::core::primitive::bool, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( "Democracy", "Cancellations", vec![::subxt::storage::address::make_static_storage_map_key( _0.borrow(), )], [ 80u8, 190u8, 98u8, 105u8, 129u8, 25u8, 167u8, 180u8, 74u8, 128u8, 232u8, 29u8, 193u8, 209u8, 185u8, 60u8, 18u8, 180u8, 59u8, 192u8, 149u8, 13u8, 123u8, 232u8, 34u8, 208u8, 48u8, 104u8, 35u8, 181u8, 186u8, 244u8, ], ) } #[doc = " Record of all proposals that have been subject to emergency cancellation."] pub fn cancellations_root( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, ::core::primitive::bool, (), ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( "Democracy", "Cancellations", Vec::new(), [ 80u8, 190u8, 98u8, 105u8, 129u8, 25u8, 167u8, 180u8, 74u8, 128u8, 232u8, 29u8, 193u8, 209u8, 185u8, 60u8, 18u8, 180u8, 59u8, 192u8, 149u8, 13u8, 123u8, 232u8, 34u8, 208u8, 48u8, 104u8, 35u8, 181u8, 186u8, 244u8, ], ) } #[doc = " General information concerning any proposal or referendum."] #[doc = " The `PreimageHash` refers to the preimage of the `Preimages` provider which can be a JSON"] #[doc = " dump or IPFS hash of a JSON file."] #[doc = ""] #[doc = " Consider a garbage collection for a metadata of finished referendums to `unrequest` (remove)"] #[doc = " large preimages."] pub fn metadata_of( &self, _0: impl ::std::borrow::Borrow< runtime_types::pallet_democracy::types::MetadataOwner, >, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, ::subxt::utils::H256, ::subxt::storage::address::Yes, (), ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( "Democracy", "MetadataOf", vec![::subxt::storage::address::make_static_storage_map_key( _0.borrow(), )], [ 241u8, 106u8, 118u8, 66u8, 219u8, 192u8, 185u8, 117u8, 144u8, 174u8, 171u8, 207u8, 181u8, 32u8, 133u8, 127u8, 160u8, 218u8, 113u8, 153u8, 160u8, 7u8, 72u8, 58u8, 187u8, 96u8, 51u8, 236u8, 64u8, 80u8, 123u8, 254u8, ], ) } #[doc = " General information concerning any proposal or referendum."] #[doc = " The `PreimageHash` refers to the preimage of the `Preimages` provider which can be a JSON"] #[doc = " dump or IPFS hash of a JSON file."] #[doc = ""] #[doc = " Consider a garbage collection for a metadata of finished referendums to `unrequest` (remove)"] #[doc = " large preimages."] pub fn metadata_of_root( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, ::subxt::utils::H256, (), (), ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( "Democracy", "MetadataOf", Vec::new(), [ 241u8, 106u8, 118u8, 66u8, 219u8, 192u8, 185u8, 117u8, 144u8, 174u8, 171u8, 207u8, 181u8, 32u8, 133u8, 127u8, 160u8, 218u8, 113u8, 153u8, 160u8, 7u8, 72u8, 58u8, 187u8, 96u8, 51u8, 236u8, 64u8, 80u8, 123u8, 254u8, ], ) } } } pub mod constants { use super::runtime_types; pub struct ConstantsApi; impl ConstantsApi { #[doc = " The period between a proposal being approved and enacted."] #[doc = ""] #[doc = " It should generally be a little more than the unstake period to ensure that"] #[doc = " voting stakers have an opportunity to remove themselves from the system in the case"] #[doc = " where they are on the losing side of a vote."] pub fn enactment_period( &self, ) -> ::subxt::constants::Address<::core::primitive::u32> { ::subxt::constants::Address::new_static( "Democracy", "EnactmentPeriod", [ 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, 145u8, ], ) } #[doc = " How often (in blocks) new public referenda are launched."] pub fn launch_period(&self) -> ::subxt::constants::Address<::core::primitive::u32> { ::subxt::constants::Address::new_static( "Democracy", "LaunchPeriod", [ 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, 145u8, ], ) } #[doc = " How often (in blocks) to check for new votes."] pub fn voting_period(&self) -> ::subxt::constants::Address<::core::primitive::u32> { ::subxt::constants::Address::new_static( "Democracy", "VotingPeriod", [ 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, 145u8, ], ) } #[doc = " The minimum period of vote locking."] #[doc = ""] #[doc = " It should be no shorter than enactment period to ensure that in the case of an approval,"] #[doc = " those successful voters are locked into the consequences that their votes entail."] pub fn vote_locking_period( &self, ) -> ::subxt::constants::Address<::core::primitive::u32> { ::subxt::constants::Address::new_static( "Democracy", "VoteLockingPeriod", [ 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, 145u8, ], ) } #[doc = " The minimum amount to be used as a deposit for a public referendum proposal."] pub fn minimum_deposit( &self, ) -> ::subxt::constants::Address<::core::primitive::u128> { ::subxt::constants::Address::new_static( "Democracy", "MinimumDeposit", [ 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8, 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, 136u8, 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, 148u8, 156u8, ], ) } #[doc = " Indicator for whether an emergency origin is even allowed to happen. Some chains may"] #[doc = " want to set this permanently to `false`, others may want to condition it on things such"] #[doc = " as an upgrade having happened recently."] pub fn instant_allowed( &self, ) -> ::subxt::constants::Address<::core::primitive::bool> { ::subxt::constants::Address::new_static( "Democracy", "InstantAllowed", [ 165u8, 28u8, 112u8, 190u8, 18u8, 129u8, 182u8, 206u8, 237u8, 1u8, 68u8, 252u8, 125u8, 234u8, 185u8, 50u8, 149u8, 164u8, 47u8, 126u8, 134u8, 100u8, 14u8, 86u8, 209u8, 39u8, 20u8, 4u8, 233u8, 115u8, 102u8, 131u8, ], ) } #[doc = " Minimum voting period allowed for a fast-track referendum."] pub fn fast_track_voting_period( &self, ) -> ::subxt::constants::Address<::core::primitive::u32> { ::subxt::constants::Address::new_static( "Democracy", "FastTrackVotingPeriod", [ 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, 145u8, ], ) } #[doc = " Period in blocks where an external proposal may not be re-submitted after being vetoed."] pub fn cooloff_period( &self, ) -> ::subxt::constants::Address<::core::primitive::u32> { ::subxt::constants::Address::new_static( "Democracy", "CooloffPeriod", [ 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, 145u8, ], ) } #[doc = " The maximum number of votes for an account."] #[doc = ""] #[doc = " Also used to compute weight, an overly big value can"] #[doc = " lead to extrinsic with very big weight: see `delegate` for instance."] pub fn max_votes(&self) -> ::subxt::constants::Address<::core::primitive::u32> { ::subxt::constants::Address::new_static( "Democracy", "MaxVotes", [ 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, 145u8, ], ) } #[doc = " The maximum number of public proposals that can exist at any time."] pub fn max_proposals(&self) -> ::subxt::constants::Address<::core::primitive::u32> { ::subxt::constants::Address::new_static( "Democracy", "MaxProposals", [ 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, 145u8, ], ) } #[doc = " The maximum number of deposits a public proposal may have at any time."] pub fn max_deposits(&self) -> ::subxt::constants::Address<::core::primitive::u32> { ::subxt::constants::Address::new_static( "Democracy", "MaxDeposits", [ 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, 145u8, ], ) } #[doc = " The maximum number of items which can be blacklisted."] pub fn max_blacklisted( &self, ) -> ::subxt::constants::Address<::core::primitive::u32> { ::subxt::constants::Address::new_static( "Democracy", "MaxBlacklisted", [ 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, 145u8, ], ) } } } } pub mod council { use super::root_mod; use super::runtime_types; #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] pub type Error = runtime_types::pallet_collective::pallet::Error; #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] pub type Call = runtime_types::pallet_collective::pallet::Call; pub mod calls { use super::root_mod; use super::runtime_types; type DispatchError = runtime_types::sp_runtime::DispatchError; pub mod types { use super::runtime_types; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SetMembers { pub new_members: ::std::vec::Vec<::subxt::utils::AccountId32>, pub prime: ::core::option::Option<::subxt::utils::AccountId32>, pub old_count: ::core::primitive::u32, } impl ::subxt::blocks::StaticExtrinsic for SetMembers { const PALLET: &'static str = "Council"; const CALL: &'static str = "set_members"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Execute { pub proposal: ::std::boxed::Box, #[codec(compact)] pub length_bound: ::core::primitive::u32, } impl ::subxt::blocks::StaticExtrinsic for Execute { const PALLET: &'static str = "Council"; const CALL: &'static str = "execute"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Propose { #[codec(compact)] pub threshold: ::core::primitive::u32, pub proposal: ::std::boxed::Box, #[codec(compact)] pub length_bound: ::core::primitive::u32, } impl ::subxt::blocks::StaticExtrinsic for Propose { const PALLET: &'static str = "Council"; const CALL: &'static str = "propose"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Vote { pub proposal: ::subxt::utils::H256, #[codec(compact)] pub index: ::core::primitive::u32, pub approve: ::core::primitive::bool, } impl ::subxt::blocks::StaticExtrinsic for Vote { const PALLET: &'static str = "Council"; const CALL: &'static str = "vote"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct DisapproveProposal { pub proposal_hash: ::subxt::utils::H256, } impl ::subxt::blocks::StaticExtrinsic for DisapproveProposal { const PALLET: &'static str = "Council"; const CALL: &'static str = "disapprove_proposal"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Close { pub proposal_hash: ::subxt::utils::H256, #[codec(compact)] pub index: ::core::primitive::u32, pub proposal_weight_bound: runtime_types::sp_weights::weight_v2::Weight, #[codec(compact)] pub length_bound: ::core::primitive::u32, } impl ::subxt::blocks::StaticExtrinsic for Close { const PALLET: &'static str = "Council"; const CALL: &'static str = "close"; } } pub struct TransactionApi; impl TransactionApi { #[doc = "Set the collective's membership."] #[doc = ""] #[doc = "- `new_members`: The new member list. Be nice to the chain and provide it sorted."] #[doc = "- `prime`: The prime member whose vote sets the default."] #[doc = "- `old_count`: The upper bound for the previous number of members in storage. Used for"] #[doc = " weight estimation."] #[doc = ""] #[doc = "The dispatch of this call must be `SetMembersOrigin`."] #[doc = ""] #[doc = "NOTE: Does not enforce the expected `MaxMembers` limit on the amount of members, but"] #[doc = " the weight estimations rely on it to estimate dispatchable weight."] #[doc = ""] #[doc = "# WARNING:"] #[doc = ""] #[doc = "The `pallet-collective` can also be managed by logic outside of the pallet through the"] #[doc = "implementation of the trait [`ChangeMembers`]."] #[doc = "Any call to `set_members` must be careful that the member set doesn't get out of sync"] #[doc = "with other logic managing the member set."] #[doc = ""] #[doc = "## Complexity:"] #[doc = "- `O(MP + N)` where:"] #[doc = " - `M` old-members-count (code- and governance-bounded)"] #[doc = " - `N` new-members-count (code- and governance-bounded)"] #[doc = " - `P` proposals-count (code-bounded)"] pub fn set_members( &self, new_members: ::std::vec::Vec<::subxt::utils::AccountId32>, prime: ::core::option::Option<::subxt::utils::AccountId32>, old_count: ::core::primitive::u32, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Council", "set_members", types::SetMembers { new_members, prime, old_count, }, [ 141u8, 113u8, 137u8, 46u8, 75u8, 22u8, 143u8, 204u8, 50u8, 24u8, 137u8, 25u8, 226u8, 166u8, 121u8, 161u8, 54u8, 144u8, 12u8, 145u8, 157u8, 153u8, 47u8, 144u8, 94u8, 34u8, 217u8, 115u8, 125u8, 152u8, 110u8, 28u8, ], ) } #[doc = "Dispatch a proposal from a member using the `Member` origin."] #[doc = ""] #[doc = "Origin must be a member of the collective."] #[doc = ""] #[doc = "## Complexity:"] #[doc = "- `O(B + M + P)` where:"] #[doc = "- `B` is `proposal` size in bytes (length-fee-bounded)"] #[doc = "- `M` members-count (code-bounded)"] #[doc = "- `P` complexity of dispatching `proposal`"] pub fn execute( &self, proposal: runtime_types::polkadot_runtime::RuntimeCall, length_bound: ::core::primitive::u32, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Council", "execute", types::Execute { proposal: ::std::boxed::Box::new(proposal), length_bound, }, [ 118u8, 178u8, 220u8, 249u8, 127u8, 175u8, 151u8, 231u8, 41u8, 91u8, 48u8, 28u8, 181u8, 249u8, 95u8, 131u8, 89u8, 144u8, 70u8, 9u8, 58u8, 172u8, 78u8, 224u8, 166u8, 166u8, 159u8, 110u8, 248u8, 32u8, 35u8, 213u8, ], ) } #[doc = "Add a new proposal to either be voted on or executed directly."] #[doc = ""] #[doc = "Requires the sender to be member."] #[doc = ""] #[doc = "`threshold` determines whether `proposal` is executed directly (`threshold < 2`)"] #[doc = "or put up for voting."] #[doc = ""] #[doc = "## Complexity"] #[doc = "- `O(B + M + P1)` or `O(B + M + P2)` where:"] #[doc = " - `B` is `proposal` size in bytes (length-fee-bounded)"] #[doc = " - `M` is members-count (code- and governance-bounded)"] #[doc = " - branching is influenced by `threshold` where:"] #[doc = " - `P1` is proposal execution complexity (`threshold < 2`)"] #[doc = " - `P2` is proposals-count (code-bounded) (`threshold >= 2`)"] pub fn propose( &self, threshold: ::core::primitive::u32, proposal: runtime_types::polkadot_runtime::RuntimeCall, length_bound: ::core::primitive::u32, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Council", "propose", types::Propose { threshold, proposal: ::std::boxed::Box::new(proposal), length_bound, }, [ 196u8, 235u8, 52u8, 130u8, 42u8, 10u8, 1u8, 177u8, 190u8, 43u8, 229u8, 23u8, 17u8, 69u8, 209u8, 120u8, 238u8, 245u8, 250u8, 237u8, 137u8, 42u8, 100u8, 193u8, 18u8, 89u8, 81u8, 108u8, 30u8, 0u8, 253u8, 92u8, ], ) } #[doc = "Add an aye or nay vote for the sender to the given proposal."] #[doc = ""] #[doc = "Requires the sender to be a member."] #[doc = ""] #[doc = "Transaction fees will be waived if the member is voting on any particular proposal"] #[doc = "for the first time and the call is successful. Subsequent vote changes will charge a"] #[doc = "fee."] #[doc = "## Complexity"] #[doc = "- `O(M)` where `M` is members-count (code- and governance-bounded)"] pub fn vote( &self, proposal: ::subxt::utils::H256, index: ::core::primitive::u32, approve: ::core::primitive::bool, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Council", "vote", types::Vote { proposal, index, approve, }, [ 110u8, 141u8, 24u8, 33u8, 91u8, 7u8, 89u8, 198u8, 54u8, 10u8, 76u8, 129u8, 45u8, 20u8, 216u8, 104u8, 231u8, 246u8, 174u8, 205u8, 190u8, 176u8, 171u8, 113u8, 33u8, 37u8, 155u8, 203u8, 251u8, 34u8, 25u8, 120u8, ], ) } #[doc = "Disapprove a proposal, close, and remove it from the system, regardless of its current"] #[doc = "state."] #[doc = ""] #[doc = "Must be called by the Root origin."] #[doc = ""] #[doc = "Parameters:"] #[doc = "* `proposal_hash`: The hash of the proposal that should be disapproved."] #[doc = ""] #[doc = "## Complexity"] #[doc = "O(P) where P is the number of max proposals"] pub fn disapprove_proposal( &self, proposal_hash: ::subxt::utils::H256, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Council", "disapprove_proposal", types::DisapproveProposal { proposal_hash }, [ 26u8, 140u8, 111u8, 193u8, 229u8, 59u8, 53u8, 196u8, 230u8, 60u8, 7u8, 155u8, 168u8, 7u8, 201u8, 177u8, 70u8, 103u8, 190u8, 57u8, 244u8, 156u8, 67u8, 101u8, 228u8, 6u8, 213u8, 83u8, 225u8, 95u8, 148u8, 96u8, ], ) } #[doc = "Close a vote that is either approved, disapproved or whose voting period has ended."] #[doc = ""] #[doc = "May be called by any signed account in order to finish voting and close the proposal."] #[doc = ""] #[doc = "If called before the end of the voting period it will only close the vote if it is"] #[doc = "has enough votes to be approved or disapproved."] #[doc = ""] #[doc = "If called after the end of the voting period abstentions are counted as rejections"] #[doc = "unless there is a prime member set and the prime member cast an approval."] #[doc = ""] #[doc = "If the close operation completes successfully with disapproval, the transaction fee will"] #[doc = "be waived. Otherwise execution of the approved operation will be charged to the caller."] #[doc = ""] #[doc = "+ `proposal_weight_bound`: The maximum amount of weight consumed by executing the closed"] #[doc = "proposal."] #[doc = "+ `length_bound`: The upper bound for the length of the proposal in storage. Checked via"] #[doc = "`storage::read` so it is `size_of::() == 4` larger than the pure length."] #[doc = ""] #[doc = "## Complexity"] #[doc = "- `O(B + M + P1 + P2)` where:"] #[doc = " - `B` is `proposal` size in bytes (length-fee-bounded)"] #[doc = " - `M` is members-count (code- and governance-bounded)"] #[doc = " - `P1` is the complexity of `proposal` preimage."] #[doc = " - `P2` is proposal-count (code-bounded)"] pub fn close( &self, proposal_hash: ::subxt::utils::H256, index: ::core::primitive::u32, proposal_weight_bound: runtime_types::sp_weights::weight_v2::Weight, length_bound: ::core::primitive::u32, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Council", "close", types::Close { proposal_hash, index, proposal_weight_bound, length_bound, }, [ 189u8, 149u8, 125u8, 63u8, 39u8, 201u8, 247u8, 4u8, 220u8, 74u8, 78u8, 14u8, 113u8, 163u8, 1u8, 159u8, 81u8, 248u8, 141u8, 111u8, 34u8, 243u8, 67u8, 70u8, 60u8, 92u8, 47u8, 70u8, 66u8, 246u8, 236u8, 153u8, ], ) } } } #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] pub type Event = runtime_types::pallet_collective::pallet::Event; pub mod events { use super::runtime_types; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A motion (given hash) has been proposed (by given account) with a threshold (given"] #[doc = "`MemberCount`)."] pub struct Proposed { pub account: ::subxt::utils::AccountId32, pub proposal_index: ::core::primitive::u32, pub proposal_hash: ::subxt::utils::H256, pub threshold: ::core::primitive::u32, } impl ::subxt::events::StaticEvent for Proposed { const PALLET: &'static str = "Council"; const EVENT: &'static str = "Proposed"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A motion (given hash) has been voted on by given account, leaving"] #[doc = "a tally (yes votes and no votes given respectively as `MemberCount`)."] pub struct Voted { pub account: ::subxt::utils::AccountId32, pub proposal_hash: ::subxt::utils::H256, pub voted: ::core::primitive::bool, pub yes: ::core::primitive::u32, pub no: ::core::primitive::u32, } impl ::subxt::events::StaticEvent for Voted { const PALLET: &'static str = "Council"; const EVENT: &'static str = "Voted"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A motion was approved by the required threshold."] pub struct Approved { pub proposal_hash: ::subxt::utils::H256, } impl ::subxt::events::StaticEvent for Approved { const PALLET: &'static str = "Council"; const EVENT: &'static str = "Approved"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A motion was not approved by the required threshold."] pub struct Disapproved { pub proposal_hash: ::subxt::utils::H256, } impl ::subxt::events::StaticEvent for Disapproved { const PALLET: &'static str = "Council"; const EVENT: &'static str = "Disapproved"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A motion was executed; result will be `Ok` if it returned without error."] pub struct Executed { pub proposal_hash: ::subxt::utils::H256, pub result: ::core::result::Result<(), runtime_types::sp_runtime::DispatchError>, } impl ::subxt::events::StaticEvent for Executed { const PALLET: &'static str = "Council"; const EVENT: &'static str = "Executed"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A single member did some action; result will be `Ok` if it returned without error."] pub struct MemberExecuted { pub proposal_hash: ::subxt::utils::H256, pub result: ::core::result::Result<(), runtime_types::sp_runtime::DispatchError>, } impl ::subxt::events::StaticEvent for MemberExecuted { const PALLET: &'static str = "Council"; const EVENT: &'static str = "MemberExecuted"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A proposal was closed because its threshold was reached or after its duration was up."] pub struct Closed { pub proposal_hash: ::subxt::utils::H256, pub yes: ::core::primitive::u32, pub no: ::core::primitive::u32, } impl ::subxt::events::StaticEvent for Closed { const PALLET: &'static str = "Council"; const EVENT: &'static str = "Closed"; } } pub mod storage { use super::runtime_types; pub struct StorageApi; impl StorageApi { #[doc = " The hashes of the active proposals."] pub fn proposals( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, runtime_types::bounded_collections::bounded_vec::BoundedVec< ::subxt::utils::H256, >, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), > { ::subxt::storage::address::Address::new_static( "Council", "Proposals", vec![], [ 210u8, 234u8, 7u8, 29u8, 231u8, 80u8, 17u8, 36u8, 189u8, 34u8, 175u8, 147u8, 56u8, 92u8, 201u8, 104u8, 207u8, 150u8, 58u8, 110u8, 90u8, 28u8, 198u8, 79u8, 236u8, 245u8, 19u8, 38u8, 68u8, 59u8, 215u8, 74u8, ], ) } #[doc = " Actual proposal for a given hash, if it's current."] pub fn proposal_of( &self, _0: impl ::std::borrow::Borrow<::subxt::utils::H256>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, runtime_types::polkadot_runtime::RuntimeCall, ::subxt::storage::address::Yes, (), ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( "Council", "ProposalOf", vec![::subxt::storage::address::make_static_storage_map_key( _0.borrow(), )], [ 121u8, 123u8, 184u8, 84u8, 246u8, 113u8, 189u8, 253u8, 37u8, 96u8, 99u8, 188u8, 43u8, 159u8, 53u8, 140u8, 148u8, 127u8, 87u8, 178u8, 240u8, 104u8, 9u8, 10u8, 84u8, 21u8, 217u8, 6u8, 247u8, 69u8, 87u8, 151u8, ], ) } #[doc = " Actual proposal for a given hash, if it's current."] pub fn proposal_of_root( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, runtime_types::polkadot_runtime::RuntimeCall, (), (), ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( "Council", "ProposalOf", Vec::new(), [ 121u8, 123u8, 184u8, 84u8, 246u8, 113u8, 189u8, 253u8, 37u8, 96u8, 99u8, 188u8, 43u8, 159u8, 53u8, 140u8, 148u8, 127u8, 87u8, 178u8, 240u8, 104u8, 9u8, 10u8, 84u8, 21u8, 217u8, 6u8, 247u8, 69u8, 87u8, 151u8, ], ) } #[doc = " Votes on a given proposal, if it is ongoing."] pub fn voting( &self, _0: impl ::std::borrow::Borrow<::subxt::utils::H256>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, runtime_types::pallet_collective::Votes< ::subxt::utils::AccountId32, ::core::primitive::u32, >, ::subxt::storage::address::Yes, (), ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( "Council", "Voting", vec![::subxt::storage::address::make_static_storage_map_key( _0.borrow(), )], [ 56u8, 192u8, 111u8, 180u8, 253u8, 5u8, 232u8, 126u8, 177u8, 48u8, 135u8, 39u8, 89u8, 71u8, 62u8, 239u8, 216u8, 17u8, 64u8, 82u8, 130u8, 236u8, 96u8, 89u8, 167u8, 2u8, 118u8, 113u8, 63u8, 176u8, 124u8, 73u8, ], ) } #[doc = " Votes on a given proposal, if it is ongoing."] pub fn voting_root( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, runtime_types::pallet_collective::Votes< ::subxt::utils::AccountId32, ::core::primitive::u32, >, (), (), ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( "Council", "Voting", Vec::new(), [ 56u8, 192u8, 111u8, 180u8, 253u8, 5u8, 232u8, 126u8, 177u8, 48u8, 135u8, 39u8, 89u8, 71u8, 62u8, 239u8, 216u8, 17u8, 64u8, 82u8, 130u8, 236u8, 96u8, 89u8, 167u8, 2u8, 118u8, 113u8, 63u8, 176u8, 124u8, 73u8, ], ) } #[doc = " Proposals so far."] pub fn proposal_count( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, ::core::primitive::u32, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), > { ::subxt::storage::address::Address::new_static( "Council", "ProposalCount", vec![], [ 91u8, 238u8, 246u8, 106u8, 95u8, 66u8, 83u8, 134u8, 1u8, 225u8, 164u8, 216u8, 113u8, 101u8, 203u8, 200u8, 113u8, 97u8, 246u8, 228u8, 140u8, 29u8, 29u8, 48u8, 176u8, 137u8, 93u8, 230u8, 56u8, 75u8, 51u8, 149u8, ], ) } #[doc = " The current members of the collective. This is stored sorted (just by value)."] pub fn members( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, ::std::vec::Vec<::subxt::utils::AccountId32>, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), > { ::subxt::storage::address::Address::new_static( "Council", "Members", vec![], [ 16u8, 29u8, 32u8, 222u8, 175u8, 136u8, 111u8, 101u8, 43u8, 74u8, 209u8, 81u8, 47u8, 97u8, 129u8, 39u8, 225u8, 243u8, 110u8, 229u8, 237u8, 21u8, 90u8, 127u8, 80u8, 239u8, 156u8, 32u8, 90u8, 109u8, 179u8, 0u8, ], ) } #[doc = " The prime member that helps determine the default vote behavior in case of absentations."] pub fn prime( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, ::subxt::utils::AccountId32, ::subxt::storage::address::Yes, (), (), > { ::subxt::storage::address::Address::new_static( "Council", "Prime", vec![], [ 72u8, 128u8, 214u8, 72u8, 78u8, 80u8, 100u8, 198u8, 114u8, 215u8, 59u8, 3u8, 103u8, 14u8, 152u8, 202u8, 12u8, 165u8, 224u8, 10u8, 41u8, 154u8, 77u8, 95u8, 116u8, 143u8, 250u8, 250u8, 176u8, 92u8, 238u8, 154u8, ], ) } } } pub mod constants { use super::runtime_types; pub struct ConstantsApi; impl ConstantsApi { #[doc = " The maximum weight of a dispatch call that can be proposed and executed."] pub fn max_proposal_weight( &self, ) -> ::subxt::constants::Address { ::subxt::constants::Address::new_static( "Council", "MaxProposalWeight", [ 222u8, 183u8, 203u8, 169u8, 31u8, 134u8, 28u8, 12u8, 47u8, 140u8, 71u8, 74u8, 61u8, 55u8, 71u8, 236u8, 215u8, 83u8, 28u8, 70u8, 45u8, 128u8, 184u8, 57u8, 101u8, 83u8, 42u8, 165u8, 34u8, 155u8, 64u8, 145u8, ], ) } } } } pub mod technical_committee { use super::root_mod; use super::runtime_types; #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] pub type Error = runtime_types::pallet_collective::pallet::Error2; #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] pub type Call = runtime_types::pallet_collective::pallet::Call2; pub mod calls { use super::root_mod; use super::runtime_types; type DispatchError = runtime_types::sp_runtime::DispatchError; pub mod types { use super::runtime_types; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SetMembers { pub new_members: ::std::vec::Vec<::subxt::utils::AccountId32>, pub prime: ::core::option::Option<::subxt::utils::AccountId32>, pub old_count: ::core::primitive::u32, } impl ::subxt::blocks::StaticExtrinsic for SetMembers { const PALLET: &'static str = "TechnicalCommittee"; const CALL: &'static str = "set_members"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Execute { pub proposal: ::std::boxed::Box, #[codec(compact)] pub length_bound: ::core::primitive::u32, } impl ::subxt::blocks::StaticExtrinsic for Execute { const PALLET: &'static str = "TechnicalCommittee"; const CALL: &'static str = "execute"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Propose { #[codec(compact)] pub threshold: ::core::primitive::u32, pub proposal: ::std::boxed::Box, #[codec(compact)] pub length_bound: ::core::primitive::u32, } impl ::subxt::blocks::StaticExtrinsic for Propose { const PALLET: &'static str = "TechnicalCommittee"; const CALL: &'static str = "propose"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Vote { pub proposal: ::subxt::utils::H256, #[codec(compact)] pub index: ::core::primitive::u32, pub approve: ::core::primitive::bool, } impl ::subxt::blocks::StaticExtrinsic for Vote { const PALLET: &'static str = "TechnicalCommittee"; const CALL: &'static str = "vote"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct DisapproveProposal { pub proposal_hash: ::subxt::utils::H256, } impl ::subxt::blocks::StaticExtrinsic for DisapproveProposal { const PALLET: &'static str = "TechnicalCommittee"; const CALL: &'static str = "disapprove_proposal"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Close { pub proposal_hash: ::subxt::utils::H256, #[codec(compact)] pub index: ::core::primitive::u32, pub proposal_weight_bound: runtime_types::sp_weights::weight_v2::Weight, #[codec(compact)] pub length_bound: ::core::primitive::u32, } impl ::subxt::blocks::StaticExtrinsic for Close { const PALLET: &'static str = "TechnicalCommittee"; const CALL: &'static str = "close"; } } pub struct TransactionApi; impl TransactionApi { #[doc = "Set the collective's membership."] #[doc = ""] #[doc = "- `new_members`: The new member list. Be nice to the chain and provide it sorted."] #[doc = "- `prime`: The prime member whose vote sets the default."] #[doc = "- `old_count`: The upper bound for the previous number of members in storage. Used for"] #[doc = " weight estimation."] #[doc = ""] #[doc = "The dispatch of this call must be `SetMembersOrigin`."] #[doc = ""] #[doc = "NOTE: Does not enforce the expected `MaxMembers` limit on the amount of members, but"] #[doc = " the weight estimations rely on it to estimate dispatchable weight."] #[doc = ""] #[doc = "# WARNING:"] #[doc = ""] #[doc = "The `pallet-collective` can also be managed by logic outside of the pallet through the"] #[doc = "implementation of the trait [`ChangeMembers`]."] #[doc = "Any call to `set_members` must be careful that the member set doesn't get out of sync"] #[doc = "with other logic managing the member set."] #[doc = ""] #[doc = "## Complexity:"] #[doc = "- `O(MP + N)` where:"] #[doc = " - `M` old-members-count (code- and governance-bounded)"] #[doc = " - `N` new-members-count (code- and governance-bounded)"] #[doc = " - `P` proposals-count (code-bounded)"] pub fn set_members( &self, new_members: ::std::vec::Vec<::subxt::utils::AccountId32>, prime: ::core::option::Option<::subxt::utils::AccountId32>, old_count: ::core::primitive::u32, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "TechnicalCommittee", "set_members", types::SetMembers { new_members, prime, old_count, }, [ 141u8, 113u8, 137u8, 46u8, 75u8, 22u8, 143u8, 204u8, 50u8, 24u8, 137u8, 25u8, 226u8, 166u8, 121u8, 161u8, 54u8, 144u8, 12u8, 145u8, 157u8, 153u8, 47u8, 144u8, 94u8, 34u8, 217u8, 115u8, 125u8, 152u8, 110u8, 28u8, ], ) } #[doc = "Dispatch a proposal from a member using the `Member` origin."] #[doc = ""] #[doc = "Origin must be a member of the collective."] #[doc = ""] #[doc = "## Complexity:"] #[doc = "- `O(B + M + P)` where:"] #[doc = "- `B` is `proposal` size in bytes (length-fee-bounded)"] #[doc = "- `M` members-count (code-bounded)"] #[doc = "- `P` complexity of dispatching `proposal`"] pub fn execute( &self, proposal: runtime_types::polkadot_runtime::RuntimeCall, length_bound: ::core::primitive::u32, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "TechnicalCommittee", "execute", types::Execute { proposal: ::std::boxed::Box::new(proposal), length_bound, }, [ 118u8, 178u8, 220u8, 249u8, 127u8, 175u8, 151u8, 231u8, 41u8, 91u8, 48u8, 28u8, 181u8, 249u8, 95u8, 131u8, 89u8, 144u8, 70u8, 9u8, 58u8, 172u8, 78u8, 224u8, 166u8, 166u8, 159u8, 110u8, 248u8, 32u8, 35u8, 213u8, ], ) } #[doc = "Add a new proposal to either be voted on or executed directly."] #[doc = ""] #[doc = "Requires the sender to be member."] #[doc = ""] #[doc = "`threshold` determines whether `proposal` is executed directly (`threshold < 2`)"] #[doc = "or put up for voting."] #[doc = ""] #[doc = "## Complexity"] #[doc = "- `O(B + M + P1)` or `O(B + M + P2)` where:"] #[doc = " - `B` is `proposal` size in bytes (length-fee-bounded)"] #[doc = " - `M` is members-count (code- and governance-bounded)"] #[doc = " - branching is influenced by `threshold` where:"] #[doc = " - `P1` is proposal execution complexity (`threshold < 2`)"] #[doc = " - `P2` is proposals-count (code-bounded) (`threshold >= 2`)"] pub fn propose( &self, threshold: ::core::primitive::u32, proposal: runtime_types::polkadot_runtime::RuntimeCall, length_bound: ::core::primitive::u32, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "TechnicalCommittee", "propose", types::Propose { threshold, proposal: ::std::boxed::Box::new(proposal), length_bound, }, [ 196u8, 235u8, 52u8, 130u8, 42u8, 10u8, 1u8, 177u8, 190u8, 43u8, 229u8, 23u8, 17u8, 69u8, 209u8, 120u8, 238u8, 245u8, 250u8, 237u8, 137u8, 42u8, 100u8, 193u8, 18u8, 89u8, 81u8, 108u8, 30u8, 0u8, 253u8, 92u8, ], ) } #[doc = "Add an aye or nay vote for the sender to the given proposal."] #[doc = ""] #[doc = "Requires the sender to be a member."] #[doc = ""] #[doc = "Transaction fees will be waived if the member is voting on any particular proposal"] #[doc = "for the first time and the call is successful. Subsequent vote changes will charge a"] #[doc = "fee."] #[doc = "## Complexity"] #[doc = "- `O(M)` where `M` is members-count (code- and governance-bounded)"] pub fn vote( &self, proposal: ::subxt::utils::H256, index: ::core::primitive::u32, approve: ::core::primitive::bool, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "TechnicalCommittee", "vote", types::Vote { proposal, index, approve, }, [ 110u8, 141u8, 24u8, 33u8, 91u8, 7u8, 89u8, 198u8, 54u8, 10u8, 76u8, 129u8, 45u8, 20u8, 216u8, 104u8, 231u8, 246u8, 174u8, 205u8, 190u8, 176u8, 171u8, 113u8, 33u8, 37u8, 155u8, 203u8, 251u8, 34u8, 25u8, 120u8, ], ) } #[doc = "Disapprove a proposal, close, and remove it from the system, regardless of its current"] #[doc = "state."] #[doc = ""] #[doc = "Must be called by the Root origin."] #[doc = ""] #[doc = "Parameters:"] #[doc = "* `proposal_hash`: The hash of the proposal that should be disapproved."] #[doc = ""] #[doc = "## Complexity"] #[doc = "O(P) where P is the number of max proposals"] pub fn disapprove_proposal( &self, proposal_hash: ::subxt::utils::H256, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "TechnicalCommittee", "disapprove_proposal", types::DisapproveProposal { proposal_hash }, [ 26u8, 140u8, 111u8, 193u8, 229u8, 59u8, 53u8, 196u8, 230u8, 60u8, 7u8, 155u8, 168u8, 7u8, 201u8, 177u8, 70u8, 103u8, 190u8, 57u8, 244u8, 156u8, 67u8, 101u8, 228u8, 6u8, 213u8, 83u8, 225u8, 95u8, 148u8, 96u8, ], ) } #[doc = "Close a vote that is either approved, disapproved or whose voting period has ended."] #[doc = ""] #[doc = "May be called by any signed account in order to finish voting and close the proposal."] #[doc = ""] #[doc = "If called before the end of the voting period it will only close the vote if it is"] #[doc = "has enough votes to be approved or disapproved."] #[doc = ""] #[doc = "If called after the end of the voting period abstentions are counted as rejections"] #[doc = "unless there is a prime member set and the prime member cast an approval."] #[doc = ""] #[doc = "If the close operation completes successfully with disapproval, the transaction fee will"] #[doc = "be waived. Otherwise execution of the approved operation will be charged to the caller."] #[doc = ""] #[doc = "+ `proposal_weight_bound`: The maximum amount of weight consumed by executing the closed"] #[doc = "proposal."] #[doc = "+ `length_bound`: The upper bound for the length of the proposal in storage. Checked via"] #[doc = "`storage::read` so it is `size_of::() == 4` larger than the pure length."] #[doc = ""] #[doc = "## Complexity"] #[doc = "- `O(B + M + P1 + P2)` where:"] #[doc = " - `B` is `proposal` size in bytes (length-fee-bounded)"] #[doc = " - `M` is members-count (code- and governance-bounded)"] #[doc = " - `P1` is the complexity of `proposal` preimage."] #[doc = " - `P2` is proposal-count (code-bounded)"] pub fn close( &self, proposal_hash: ::subxt::utils::H256, index: ::core::primitive::u32, proposal_weight_bound: runtime_types::sp_weights::weight_v2::Weight, length_bound: ::core::primitive::u32, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "TechnicalCommittee", "close", types::Close { proposal_hash, index, proposal_weight_bound, length_bound, }, [ 189u8, 149u8, 125u8, 63u8, 39u8, 201u8, 247u8, 4u8, 220u8, 74u8, 78u8, 14u8, 113u8, 163u8, 1u8, 159u8, 81u8, 248u8, 141u8, 111u8, 34u8, 243u8, 67u8, 70u8, 60u8, 92u8, 47u8, 70u8, 66u8, 246u8, 236u8, 153u8, ], ) } } } #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] pub type Event = runtime_types::pallet_collective::pallet::Event2; pub mod events { use super::runtime_types; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A motion (given hash) has been proposed (by given account) with a threshold (given"] #[doc = "`MemberCount`)."] pub struct Proposed { pub account: ::subxt::utils::AccountId32, pub proposal_index: ::core::primitive::u32, pub proposal_hash: ::subxt::utils::H256, pub threshold: ::core::primitive::u32, } impl ::subxt::events::StaticEvent for Proposed { const PALLET: &'static str = "TechnicalCommittee"; const EVENT: &'static str = "Proposed"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A motion (given hash) has been voted on by given account, leaving"] #[doc = "a tally (yes votes and no votes given respectively as `MemberCount`)."] pub struct Voted { pub account: ::subxt::utils::AccountId32, pub proposal_hash: ::subxt::utils::H256, pub voted: ::core::primitive::bool, pub yes: ::core::primitive::u32, pub no: ::core::primitive::u32, } impl ::subxt::events::StaticEvent for Voted { const PALLET: &'static str = "TechnicalCommittee"; const EVENT: &'static str = "Voted"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A motion was approved by the required threshold."] pub struct Approved { pub proposal_hash: ::subxt::utils::H256, } impl ::subxt::events::StaticEvent for Approved { const PALLET: &'static str = "TechnicalCommittee"; const EVENT: &'static str = "Approved"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A motion was not approved by the required threshold."] pub struct Disapproved { pub proposal_hash: ::subxt::utils::H256, } impl ::subxt::events::StaticEvent for Disapproved { const PALLET: &'static str = "TechnicalCommittee"; const EVENT: &'static str = "Disapproved"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A motion was executed; result will be `Ok` if it returned without error."] pub struct Executed { pub proposal_hash: ::subxt::utils::H256, pub result: ::core::result::Result<(), runtime_types::sp_runtime::DispatchError>, } impl ::subxt::events::StaticEvent for Executed { const PALLET: &'static str = "TechnicalCommittee"; const EVENT: &'static str = "Executed"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A single member did some action; result will be `Ok` if it returned without error."] pub struct MemberExecuted { pub proposal_hash: ::subxt::utils::H256, pub result: ::core::result::Result<(), runtime_types::sp_runtime::DispatchError>, } impl ::subxt::events::StaticEvent for MemberExecuted { const PALLET: &'static str = "TechnicalCommittee"; const EVENT: &'static str = "MemberExecuted"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A proposal was closed because its threshold was reached or after its duration was up."] pub struct Closed { pub proposal_hash: ::subxt::utils::H256, pub yes: ::core::primitive::u32, pub no: ::core::primitive::u32, } impl ::subxt::events::StaticEvent for Closed { const PALLET: &'static str = "TechnicalCommittee"; const EVENT: &'static str = "Closed"; } } pub mod storage { use super::runtime_types; pub struct StorageApi; impl StorageApi { #[doc = " The hashes of the active proposals."] pub fn proposals( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, runtime_types::bounded_collections::bounded_vec::BoundedVec< ::subxt::utils::H256, >, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), > { ::subxt::storage::address::Address::new_static( "TechnicalCommittee", "Proposals", vec![], [ 210u8, 234u8, 7u8, 29u8, 231u8, 80u8, 17u8, 36u8, 189u8, 34u8, 175u8, 147u8, 56u8, 92u8, 201u8, 104u8, 207u8, 150u8, 58u8, 110u8, 90u8, 28u8, 198u8, 79u8, 236u8, 245u8, 19u8, 38u8, 68u8, 59u8, 215u8, 74u8, ], ) } #[doc = " Actual proposal for a given hash, if it's current."] pub fn proposal_of( &self, _0: impl ::std::borrow::Borrow<::subxt::utils::H256>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, runtime_types::polkadot_runtime::RuntimeCall, ::subxt::storage::address::Yes, (), ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( "TechnicalCommittee", "ProposalOf", vec![::subxt::storage::address::make_static_storage_map_key( _0.borrow(), )], [ 121u8, 123u8, 184u8, 84u8, 246u8, 113u8, 189u8, 253u8, 37u8, 96u8, 99u8, 188u8, 43u8, 159u8, 53u8, 140u8, 148u8, 127u8, 87u8, 178u8, 240u8, 104u8, 9u8, 10u8, 84u8, 21u8, 217u8, 6u8, 247u8, 69u8, 87u8, 151u8, ], ) } #[doc = " Actual proposal for a given hash, if it's current."] pub fn proposal_of_root( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, runtime_types::polkadot_runtime::RuntimeCall, (), (), ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( "TechnicalCommittee", "ProposalOf", Vec::new(), [ 121u8, 123u8, 184u8, 84u8, 246u8, 113u8, 189u8, 253u8, 37u8, 96u8, 99u8, 188u8, 43u8, 159u8, 53u8, 140u8, 148u8, 127u8, 87u8, 178u8, 240u8, 104u8, 9u8, 10u8, 84u8, 21u8, 217u8, 6u8, 247u8, 69u8, 87u8, 151u8, ], ) } #[doc = " Votes on a given proposal, if it is ongoing."] pub fn voting( &self, _0: impl ::std::borrow::Borrow<::subxt::utils::H256>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, runtime_types::pallet_collective::Votes< ::subxt::utils::AccountId32, ::core::primitive::u32, >, ::subxt::storage::address::Yes, (), ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( "TechnicalCommittee", "Voting", vec![::subxt::storage::address::make_static_storage_map_key( _0.borrow(), )], [ 56u8, 192u8, 111u8, 180u8, 253u8, 5u8, 232u8, 126u8, 177u8, 48u8, 135u8, 39u8, 89u8, 71u8, 62u8, 239u8, 216u8, 17u8, 64u8, 82u8, 130u8, 236u8, 96u8, 89u8, 167u8, 2u8, 118u8, 113u8, 63u8, 176u8, 124u8, 73u8, ], ) } #[doc = " Votes on a given proposal, if it is ongoing."] pub fn voting_root( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, runtime_types::pallet_collective::Votes< ::subxt::utils::AccountId32, ::core::primitive::u32, >, (), (), ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( "TechnicalCommittee", "Voting", Vec::new(), [ 56u8, 192u8, 111u8, 180u8, 253u8, 5u8, 232u8, 126u8, 177u8, 48u8, 135u8, 39u8, 89u8, 71u8, 62u8, 239u8, 216u8, 17u8, 64u8, 82u8, 130u8, 236u8, 96u8, 89u8, 167u8, 2u8, 118u8, 113u8, 63u8, 176u8, 124u8, 73u8, ], ) } #[doc = " Proposals so far."] pub fn proposal_count( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, ::core::primitive::u32, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), > { ::subxt::storage::address::Address::new_static( "TechnicalCommittee", "ProposalCount", vec![], [ 91u8, 238u8, 246u8, 106u8, 95u8, 66u8, 83u8, 134u8, 1u8, 225u8, 164u8, 216u8, 113u8, 101u8, 203u8, 200u8, 113u8, 97u8, 246u8, 228u8, 140u8, 29u8, 29u8, 48u8, 176u8, 137u8, 93u8, 230u8, 56u8, 75u8, 51u8, 149u8, ], ) } #[doc = " The current members of the collective. This is stored sorted (just by value)."] pub fn members( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, ::std::vec::Vec<::subxt::utils::AccountId32>, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), > { ::subxt::storage::address::Address::new_static( "TechnicalCommittee", "Members", vec![], [ 16u8, 29u8, 32u8, 222u8, 175u8, 136u8, 111u8, 101u8, 43u8, 74u8, 209u8, 81u8, 47u8, 97u8, 129u8, 39u8, 225u8, 243u8, 110u8, 229u8, 237u8, 21u8, 90u8, 127u8, 80u8, 239u8, 156u8, 32u8, 90u8, 109u8, 179u8, 0u8, ], ) } #[doc = " The prime member that helps determine the default vote behavior in case of absentations."] pub fn prime( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, ::subxt::utils::AccountId32, ::subxt::storage::address::Yes, (), (), > { ::subxt::storage::address::Address::new_static( "TechnicalCommittee", "Prime", vec![], [ 72u8, 128u8, 214u8, 72u8, 78u8, 80u8, 100u8, 198u8, 114u8, 215u8, 59u8, 3u8, 103u8, 14u8, 152u8, 202u8, 12u8, 165u8, 224u8, 10u8, 41u8, 154u8, 77u8, 95u8, 116u8, 143u8, 250u8, 250u8, 176u8, 92u8, 238u8, 154u8, ], ) } } } pub mod constants { use super::runtime_types; pub struct ConstantsApi; impl ConstantsApi { #[doc = " The maximum weight of a dispatch call that can be proposed and executed."] pub fn max_proposal_weight( &self, ) -> ::subxt::constants::Address { ::subxt::constants::Address::new_static( "TechnicalCommittee", "MaxProposalWeight", [ 222u8, 183u8, 203u8, 169u8, 31u8, 134u8, 28u8, 12u8, 47u8, 140u8, 71u8, 74u8, 61u8, 55u8, 71u8, 236u8, 215u8, 83u8, 28u8, 70u8, 45u8, 128u8, 184u8, 57u8, 101u8, 83u8, 42u8, 165u8, 34u8, 155u8, 64u8, 145u8, ], ) } } } } pub mod phragmen_election { use super::root_mod; use super::runtime_types; #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] pub type Error = runtime_types::pallet_elections_phragmen::pallet::Error; #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] pub type Call = runtime_types::pallet_elections_phragmen::pallet::Call; pub mod calls { use super::root_mod; use super::runtime_types; type DispatchError = runtime_types::sp_runtime::DispatchError; pub mod types { use super::runtime_types; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Vote { pub votes: ::std::vec::Vec<::subxt::utils::AccountId32>, #[codec(compact)] pub value: ::core::primitive::u128, } impl ::subxt::blocks::StaticExtrinsic for Vote { const PALLET: &'static str = "PhragmenElection"; const CALL: &'static str = "vote"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct RemoveVoter; impl ::subxt::blocks::StaticExtrinsic for RemoveVoter { const PALLET: &'static str = "PhragmenElection"; const CALL: &'static str = "remove_voter"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SubmitCandidacy { #[codec(compact)] pub candidate_count: ::core::primitive::u32, } impl ::subxt::blocks::StaticExtrinsic for SubmitCandidacy { const PALLET: &'static str = "PhragmenElection"; const CALL: &'static str = "submit_candidacy"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct RenounceCandidacy { pub renouncing: runtime_types::pallet_elections_phragmen::Renouncing, } impl ::subxt::blocks::StaticExtrinsic for RenounceCandidacy { const PALLET: &'static str = "PhragmenElection"; const CALL: &'static str = "renounce_candidacy"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct RemoveMember { pub who: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, pub slash_bond: ::core::primitive::bool, pub rerun_election: ::core::primitive::bool, } impl ::subxt::blocks::StaticExtrinsic for RemoveMember { const PALLET: &'static str = "PhragmenElection"; const CALL: &'static str = "remove_member"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct CleanDefunctVoters { pub num_voters: ::core::primitive::u32, pub num_defunct: ::core::primitive::u32, } impl ::subxt::blocks::StaticExtrinsic for CleanDefunctVoters { const PALLET: &'static str = "PhragmenElection"; const CALL: &'static str = "clean_defunct_voters"; } } pub struct TransactionApi; impl TransactionApi { #[doc = "Vote for a set of candidates for the upcoming round of election. This can be called to"] #[doc = "set the initial votes, or update already existing votes."] #[doc = ""] #[doc = "Upon initial voting, `value` units of `who`'s balance is locked and a deposit amount is"] #[doc = "reserved. The deposit is based on the number of votes and can be updated over time."] #[doc = ""] #[doc = "The `votes` should:"] #[doc = " - not be empty."] #[doc = " - be less than the number of possible candidates. Note that all current members and"] #[doc = " runners-up are also automatically candidates for the next round."] #[doc = ""] #[doc = "If `value` is more than `who`'s free balance, then the maximum of the two is used."] #[doc = ""] #[doc = "The dispatch origin of this call must be signed."] #[doc = ""] #[doc = "### Warning"] #[doc = ""] #[doc = "It is the responsibility of the caller to **NOT** place all of their balance into the"] #[doc = "lock and keep some for further operations."] pub fn vote( &self, votes: ::std::vec::Vec<::subxt::utils::AccountId32>, value: ::core::primitive::u128, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "PhragmenElection", "vote", types::Vote { votes, value }, [ 229u8, 163u8, 1u8, 49u8, 26u8, 130u8, 7u8, 228u8, 34u8, 80u8, 17u8, 125u8, 32u8, 180u8, 174u8, 69u8, 17u8, 171u8, 163u8, 54u8, 42u8, 139u8, 201u8, 205u8, 196u8, 18u8, 16u8, 211u8, 252u8, 64u8, 73u8, 5u8, ], ) } #[doc = "Remove `origin` as a voter."] #[doc = ""] #[doc = "This removes the lock and returns the deposit."] #[doc = ""] #[doc = "The dispatch origin of this call must be signed and be a voter."] pub fn remove_voter(&self) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "PhragmenElection", "remove_voter", types::RemoveVoter {}, [ 89u8, 43u8, 70u8, 117u8, 76u8, 84u8, 230u8, 114u8, 229u8, 91u8, 75u8, 213u8, 47u8, 143u8, 233u8, 47u8, 108u8, 120u8, 171u8, 167u8, 14u8, 62u8, 52u8, 20u8, 227u8, 106u8, 249u8, 239u8, 33u8, 115u8, 155u8, 106u8, ], ) } #[doc = "Submit oneself for candidacy. A fixed amount of deposit is recorded."] #[doc = ""] #[doc = "All candidates are wiped at the end of the term. They either become a member/runner-up,"] #[doc = "or leave the system while their deposit is slashed."] #[doc = ""] #[doc = "The dispatch origin of this call must be signed."] #[doc = ""] #[doc = "### Warning"] #[doc = ""] #[doc = "Even if a candidate ends up being a member, they must call [`Call::renounce_candidacy`]"] #[doc = "to get their deposit back. Losing the spot in an election will always lead to a slash."] #[doc = ""] #[doc = "The number of current candidates must be provided as witness data."] #[doc = "## Complexity"] #[doc = "O(C + log(C)) where C is candidate_count."] pub fn submit_candidacy( &self, candidate_count: ::core::primitive::u32, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "PhragmenElection", "submit_candidacy", types::SubmitCandidacy { candidate_count }, [ 229u8, 169u8, 247u8, 102u8, 33u8, 7u8, 9u8, 125u8, 190u8, 179u8, 241u8, 220u8, 205u8, 242u8, 168u8, 112u8, 197u8, 169u8, 135u8, 133u8, 102u8, 173u8, 168u8, 203u8, 17u8, 135u8, 224u8, 145u8, 101u8, 204u8, 253u8, 4u8, ], ) } #[doc = "Renounce one's intention to be a candidate for the next election round. 3 potential"] #[doc = "outcomes exist:"] #[doc = ""] #[doc = "- `origin` is a candidate and not elected in any set. In this case, the deposit is"] #[doc = " unreserved, returned and origin is removed as a candidate."] #[doc = "- `origin` is a current runner-up. In this case, the deposit is unreserved, returned and"] #[doc = " origin is removed as a runner-up."] #[doc = "- `origin` is a current member. In this case, the deposit is unreserved and origin is"] #[doc = " removed as a member, consequently not being a candidate for the next round anymore."] #[doc = " Similar to [`remove_member`](Self::remove_member), if replacement runners exists, they"] #[doc = " are immediately used. If the prime is renouncing, then no prime will exist until the"] #[doc = " next round."] #[doc = ""] #[doc = "The dispatch origin of this call must be signed, and have one of the above roles."] #[doc = "The type of renouncing must be provided as witness data."] #[doc = ""] #[doc = "## Complexity"] #[doc = " - Renouncing::Candidate(count): O(count + log(count))"] #[doc = " - Renouncing::Member: O(1)"] #[doc = " - Renouncing::RunnerUp: O(1)"] pub fn renounce_candidacy( &self, renouncing: runtime_types::pallet_elections_phragmen::Renouncing, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "PhragmenElection", "renounce_candidacy", types::RenounceCandidacy { renouncing }, [ 230u8, 140u8, 205u8, 240u8, 110u8, 247u8, 242u8, 185u8, 228u8, 135u8, 243u8, 73u8, 71u8, 200u8, 88u8, 134u8, 132u8, 174u8, 190u8, 251u8, 81u8, 85u8, 174u8, 230u8, 94u8, 97u8, 96u8, 230u8, 15u8, 204u8, 247u8, 214u8, ], ) } #[doc = "Remove a particular member from the set. This is effective immediately and the bond of"] #[doc = "the outgoing member is slashed."] #[doc = ""] #[doc = "If a runner-up is available, then the best runner-up will be removed and replaces the"] #[doc = "outgoing member. Otherwise, if `rerun_election` is `true`, a new phragmen election is"] #[doc = "started, else, nothing happens."] #[doc = ""] #[doc = "If `slash_bond` is set to true, the bond of the member being removed is slashed. Else,"] #[doc = "it is returned."] #[doc = ""] #[doc = "The dispatch origin of this call must be root."] #[doc = ""] #[doc = "Note that this does not affect the designated block number of the next election."] #[doc = ""] #[doc = "## Complexity"] #[doc = "- Check details of remove_and_replace_member() and do_phragmen()."] pub fn remove_member( &self, who: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, slash_bond: ::core::primitive::bool, rerun_election: ::core::primitive::bool, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "PhragmenElection", "remove_member", types::RemoveMember { who, slash_bond, rerun_election, }, [ 33u8, 195u8, 242u8, 73u8, 130u8, 196u8, 55u8, 38u8, 18u8, 190u8, 235u8, 86u8, 10u8, 69u8, 3u8, 203u8, 11u8, 164u8, 35u8, 51u8, 20u8, 163u8, 28u8, 226u8, 234u8, 113u8, 98u8, 155u8, 224u8, 190u8, 255u8, 138u8, ], ) } #[doc = "Clean all voters who are defunct (i.e. they do not serve any purpose at all). The"] #[doc = "deposit of the removed voters are returned."] #[doc = ""] #[doc = "This is an root function to be used only for cleaning the state."] #[doc = ""] #[doc = "The dispatch origin of this call must be root."] #[doc = ""] #[doc = "## Complexity"] #[doc = "- Check is_defunct_voter() details."] pub fn clean_defunct_voters( &self, num_voters: ::core::primitive::u32, num_defunct: ::core::primitive::u32, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "PhragmenElection", "clean_defunct_voters", types::CleanDefunctVoters { num_voters, num_defunct, }, [ 103u8, 241u8, 66u8, 156u8, 118u8, 36u8, 101u8, 148u8, 76u8, 162u8, 240u8, 31u8, 114u8, 10u8, 247u8, 68u8, 163u8, 187u8, 117u8, 47u8, 14u8, 16u8, 103u8, 211u8, 243u8, 44u8, 235u8, 200u8, 127u8, 113u8, 98u8, 83u8, ], ) } } } #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] pub type Event = runtime_types::pallet_elections_phragmen::pallet::Event; pub mod events { use super::runtime_types; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A new term with new_members. This indicates that enough candidates existed to run"] #[doc = "the election, not that enough have has been elected. The inner value must be examined"] #[doc = "for this purpose. A `NewTerm(\\[\\])` indicates that some candidates got their bond"] #[doc = "slashed and none were elected, whilst `EmptyTerm` means that no candidates existed to"] #[doc = "begin with."] pub struct NewTerm { pub new_members: ::std::vec::Vec<(::subxt::utils::AccountId32, ::core::primitive::u128)>, } impl ::subxt::events::StaticEvent for NewTerm { const PALLET: &'static str = "PhragmenElection"; const EVENT: &'static str = "NewTerm"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "No (or not enough) candidates existed for this round. This is different from"] #[doc = "`NewTerm(\\[\\])`. See the description of `NewTerm`."] pub struct EmptyTerm; impl ::subxt::events::StaticEvent for EmptyTerm { const PALLET: &'static str = "PhragmenElection"; const EVENT: &'static str = "EmptyTerm"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Internal error happened while trying to perform election."] pub struct ElectionError; impl ::subxt::events::StaticEvent for ElectionError { const PALLET: &'static str = "PhragmenElection"; const EVENT: &'static str = "ElectionError"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A member has been removed. This should always be followed by either `NewTerm` or"] #[doc = "`EmptyTerm`."] pub struct MemberKicked { pub member: ::subxt::utils::AccountId32, } impl ::subxt::events::StaticEvent for MemberKicked { const PALLET: &'static str = "PhragmenElection"; const EVENT: &'static str = "MemberKicked"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Someone has renounced their candidacy."] pub struct Renounced { pub candidate: ::subxt::utils::AccountId32, } impl ::subxt::events::StaticEvent for Renounced { const PALLET: &'static str = "PhragmenElection"; const EVENT: &'static str = "Renounced"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A candidate was slashed by amount due to failing to obtain a seat as member or"] #[doc = "runner-up."] #[doc = ""] #[doc = "Note that old members and runners-up are also candidates."] pub struct CandidateSlashed { pub candidate: ::subxt::utils::AccountId32, pub amount: ::core::primitive::u128, } impl ::subxt::events::StaticEvent for CandidateSlashed { const PALLET: &'static str = "PhragmenElection"; const EVENT: &'static str = "CandidateSlashed"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A seat holder was slashed by amount by being forcefully removed from the set."] pub struct SeatHolderSlashed { pub seat_holder: ::subxt::utils::AccountId32, pub amount: ::core::primitive::u128, } impl ::subxt::events::StaticEvent for SeatHolderSlashed { const PALLET: &'static str = "PhragmenElection"; const EVENT: &'static str = "SeatHolderSlashed"; } } pub mod storage { use super::runtime_types; pub struct StorageApi; impl StorageApi { #[doc = " The current elected members."] #[doc = ""] #[doc = " Invariant: Always sorted based on account id."] pub fn members( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, ::std::vec::Vec< runtime_types::pallet_elections_phragmen::SeatHolder< ::subxt::utils::AccountId32, ::core::primitive::u128, >, >, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), > { ::subxt::storage::address::Address::new_static( "PhragmenElection", "Members", vec![], [ 210u8, 86u8, 209u8, 114u8, 170u8, 238u8, 106u8, 102u8, 0u8, 140u8, 113u8, 238u8, 36u8, 115u8, 162u8, 167u8, 194u8, 3u8, 57u8, 171u8, 41u8, 219u8, 39u8, 120u8, 192u8, 208u8, 155u8, 163u8, 26u8, 209u8, 42u8, 73u8, ], ) } #[doc = " The current reserved runners-up."] #[doc = ""] #[doc = " Invariant: Always sorted based on rank (worse to best). Upon removal of a member, the"] #[doc = " last (i.e. _best_) runner-up will be replaced."] pub fn runners_up( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, ::std::vec::Vec< runtime_types::pallet_elections_phragmen::SeatHolder< ::subxt::utils::AccountId32, ::core::primitive::u128, >, >, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), > { ::subxt::storage::address::Address::new_static( "PhragmenElection", "RunnersUp", vec![], [ 102u8, 255u8, 105u8, 141u8, 24u8, 140u8, 180u8, 249u8, 19u8, 52u8, 144u8, 157u8, 139u8, 156u8, 5u8, 30u8, 148u8, 36u8, 67u8, 25u8, 238u8, 196u8, 163u8, 165u8, 11u8, 1u8, 162u8, 131u8, 65u8, 207u8, 140u8, 171u8, ], ) } #[doc = " The present candidate list. A current member or runner-up can never enter this vector"] #[doc = " and is always implicitly assumed to be a candidate."] #[doc = ""] #[doc = " Second element is the deposit."] #[doc = ""] #[doc = " Invariant: Always sorted based on account id."] pub fn candidates( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, ::std::vec::Vec<(::subxt::utils::AccountId32, ::core::primitive::u128)>, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), > { ::subxt::storage::address::Address::new_static( "PhragmenElection", "Candidates", vec![], [ 220u8, 219u8, 115u8, 204u8, 15u8, 0u8, 135u8, 72u8, 241u8, 89u8, 10u8, 105u8, 106u8, 93u8, 18u8, 63u8, 43u8, 117u8, 120u8, 73u8, 8u8, 143u8, 244u8, 144u8, 223u8, 155u8, 217u8, 132u8, 246u8, 228u8, 210u8, 53u8, ], ) } #[doc = " The total number of vote rounds that have happened, excluding the upcoming one."] pub fn election_rounds( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, ::core::primitive::u32, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), > { ::subxt::storage::address::Address::new_static( "PhragmenElection", "ElectionRounds", vec![], [ 97u8, 151u8, 159u8, 133u8, 59u8, 215u8, 12u8, 178u8, 203u8, 24u8, 138u8, 36u8, 108u8, 134u8, 217u8, 137u8, 24u8, 6u8, 126u8, 87u8, 49u8, 90u8, 198u8, 16u8, 36u8, 109u8, 223u8, 190u8, 81u8, 7u8, 239u8, 243u8, ], ) } #[doc = " Votes and locked stake of a particular voter."] #[doc = ""] #[doc = " TWOX-NOTE: SAFE as `AccountId` is a crypto hash."] pub fn voting( &self, _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, runtime_types::pallet_elections_phragmen::Voter< ::subxt::utils::AccountId32, ::core::primitive::u128, >, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( "PhragmenElection", "Voting", vec![::subxt::storage::address::make_static_storage_map_key( _0.borrow(), )], [ 18u8, 65u8, 68u8, 10u8, 123u8, 174u8, 185u8, 95u8, 75u8, 37u8, 201u8, 31u8, 93u8, 189u8, 184u8, 76u8, 199u8, 168u8, 74u8, 199u8, 75u8, 78u8, 55u8, 222u8, 234u8, 48u8, 81u8, 52u8, 187u8, 64u8, 41u8, 93u8, ], ) } #[doc = " Votes and locked stake of a particular voter."] #[doc = ""] #[doc = " TWOX-NOTE: SAFE as `AccountId` is a crypto hash."] pub fn voting_root( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, runtime_types::pallet_elections_phragmen::Voter< ::subxt::utils::AccountId32, ::core::primitive::u128, >, (), ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( "PhragmenElection", "Voting", Vec::new(), [ 18u8, 65u8, 68u8, 10u8, 123u8, 174u8, 185u8, 95u8, 75u8, 37u8, 201u8, 31u8, 93u8, 189u8, 184u8, 76u8, 199u8, 168u8, 74u8, 199u8, 75u8, 78u8, 55u8, 222u8, 234u8, 48u8, 81u8, 52u8, 187u8, 64u8, 41u8, 93u8, ], ) } } } pub mod constants { use super::runtime_types; pub struct ConstantsApi; impl ConstantsApi { #[doc = " Identifier for the elections-phragmen pallet's lock"] pub fn pallet_id( &self, ) -> ::subxt::constants::Address<[::core::primitive::u8; 8usize]> { ::subxt::constants::Address::new_static( "PhragmenElection", "PalletId", [ 157u8, 118u8, 79u8, 88u8, 241u8, 22u8, 185u8, 37u8, 42u8, 20u8, 133u8, 240u8, 11u8, 25u8, 66u8, 154u8, 84u8, 163u8, 78u8, 92u8, 171u8, 82u8, 248u8, 76u8, 189u8, 70u8, 142u8, 249u8, 153u8, 84u8, 180u8, 60u8, ], ) } #[doc = " How much should be locked up in order to submit one's candidacy."] pub fn candidacy_bond( &self, ) -> ::subxt::constants::Address<::core::primitive::u128> { ::subxt::constants::Address::new_static( "PhragmenElection", "CandidacyBond", [ 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8, 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, 136u8, 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, 148u8, 156u8, ], ) } #[doc = " Base deposit associated with voting."] #[doc = ""] #[doc = " This should be sensibly high to economically ensure the pallet cannot be attacked by"] #[doc = " creating a gigantic number of votes."] pub fn voting_bond_base( &self, ) -> ::subxt::constants::Address<::core::primitive::u128> { ::subxt::constants::Address::new_static( "PhragmenElection", "VotingBondBase", [ 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8, 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, 136u8, 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, 148u8, 156u8, ], ) } #[doc = " The amount of bond that need to be locked for each vote (32 bytes)."] pub fn voting_bond_factor( &self, ) -> ::subxt::constants::Address<::core::primitive::u128> { ::subxt::constants::Address::new_static( "PhragmenElection", "VotingBondFactor", [ 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8, 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, 136u8, 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, 148u8, 156u8, ], ) } #[doc = " Number of members to elect."] pub fn desired_members( &self, ) -> ::subxt::constants::Address<::core::primitive::u32> { ::subxt::constants::Address::new_static( "PhragmenElection", "DesiredMembers", [ 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, 145u8, ], ) } #[doc = " Number of runners_up to keep."] pub fn desired_runners_up( &self, ) -> ::subxt::constants::Address<::core::primitive::u32> { ::subxt::constants::Address::new_static( "PhragmenElection", "DesiredRunnersUp", [ 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, 145u8, ], ) } #[doc = " How long each seat is kept. This defines the next block number at which an election"] #[doc = " round will happen. If set to zero, no elections are ever triggered and the module will"] #[doc = " be in passive mode."] pub fn term_duration(&self) -> ::subxt::constants::Address<::core::primitive::u32> { ::subxt::constants::Address::new_static( "PhragmenElection", "TermDuration", [ 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, 145u8, ], ) } #[doc = " The maximum number of candidates in a phragmen election."] #[doc = ""] #[doc = " Warning: This impacts the size of the election which is run onchain. Chose wisely, and"] #[doc = " consider how it will impact `T::WeightInfo::election_phragmen`."] #[doc = ""] #[doc = " When this limit is reached no more candidates are accepted in the election."] pub fn max_candidates( &self, ) -> ::subxt::constants::Address<::core::primitive::u32> { ::subxt::constants::Address::new_static( "PhragmenElection", "MaxCandidates", [ 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, 145u8, ], ) } #[doc = " The maximum number of voters to allow in a phragmen election."] #[doc = ""] #[doc = " Warning: This impacts the size of the election which is run onchain. Chose wisely, and"] #[doc = " consider how it will impact `T::WeightInfo::election_phragmen`."] #[doc = ""] #[doc = " When the limit is reached the new voters are ignored."] pub fn max_voters(&self) -> ::subxt::constants::Address<::core::primitive::u32> { ::subxt::constants::Address::new_static( "PhragmenElection", "MaxVoters", [ 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, 145u8, ], ) } #[doc = " Maximum numbers of votes per voter."] #[doc = ""] #[doc = " Warning: This impacts the size of the election which is run onchain. Chose wisely, and"] #[doc = " consider how it will impact `T::WeightInfo::election_phragmen`."] pub fn max_votes_per_voter( &self, ) -> ::subxt::constants::Address<::core::primitive::u32> { ::subxt::constants::Address::new_static( "PhragmenElection", "MaxVotesPerVoter", [ 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, 145u8, ], ) } } } } pub mod technical_membership { use super::root_mod; use super::runtime_types; #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] pub type Error = runtime_types::pallet_membership::pallet::Error; #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] pub type Call = runtime_types::pallet_membership::pallet::Call; pub mod calls { use super::root_mod; use super::runtime_types; type DispatchError = runtime_types::sp_runtime::DispatchError; pub mod types { use super::runtime_types; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct AddMember { pub who: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, } impl ::subxt::blocks::StaticExtrinsic for AddMember { const PALLET: &'static str = "TechnicalMembership"; const CALL: &'static str = "add_member"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct RemoveMember { pub who: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, } impl ::subxt::blocks::StaticExtrinsic for RemoveMember { const PALLET: &'static str = "TechnicalMembership"; const CALL: &'static str = "remove_member"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SwapMember { pub remove: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, pub add: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, } impl ::subxt::blocks::StaticExtrinsic for SwapMember { const PALLET: &'static str = "TechnicalMembership"; const CALL: &'static str = "swap_member"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ResetMembers { pub members: ::std::vec::Vec<::subxt::utils::AccountId32>, } impl ::subxt::blocks::StaticExtrinsic for ResetMembers { const PALLET: &'static str = "TechnicalMembership"; const CALL: &'static str = "reset_members"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ChangeKey { pub new: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, } impl ::subxt::blocks::StaticExtrinsic for ChangeKey { const PALLET: &'static str = "TechnicalMembership"; const CALL: &'static str = "change_key"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SetPrime { pub who: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, } impl ::subxt::blocks::StaticExtrinsic for SetPrime { const PALLET: &'static str = "TechnicalMembership"; const CALL: &'static str = "set_prime"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ClearPrime; impl ::subxt::blocks::StaticExtrinsic for ClearPrime { const PALLET: &'static str = "TechnicalMembership"; const CALL: &'static str = "clear_prime"; } } pub struct TransactionApi; impl TransactionApi { #[doc = "Add a member `who` to the set."] #[doc = ""] #[doc = "May only be called from `T::AddOrigin`."] pub fn add_member( &self, who: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "TechnicalMembership", "add_member", types::AddMember { who }, [ 37u8, 124u8, 242u8, 135u8, 3u8, 22u8, 117u8, 212u8, 153u8, 90u8, 101u8, 140u8, 35u8, 239u8, 233u8, 242u8, 55u8, 95u8, 104u8, 178u8, 215u8, 109u8, 67u8, 190u8, 175u8, 246u8, 132u8, 98u8, 80u8, 82u8, 209u8, 198u8, ], ) } #[doc = "Remove a member `who` from the set."] #[doc = ""] #[doc = "May only be called from `T::RemoveOrigin`."] pub fn remove_member( &self, who: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "TechnicalMembership", "remove_member", types::RemoveMember { who }, [ 224u8, 141u8, 97u8, 0u8, 111u8, 196u8, 47u8, 15u8, 234u8, 111u8, 130u8, 51u8, 162u8, 60u8, 47u8, 105u8, 96u8, 98u8, 128u8, 109u8, 99u8, 23u8, 80u8, 207u8, 147u8, 32u8, 71u8, 152u8, 43u8, 253u8, 152u8, 146u8, ], ) } #[doc = "Swap out one member `remove` for another `add`."] #[doc = ""] #[doc = "May only be called from `T::SwapOrigin`."] #[doc = ""] #[doc = "Prime membership is *not* passed from `remove` to `add`, if extant."] pub fn swap_member( &self, remove: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, add: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "TechnicalMembership", "swap_member", types::SwapMember { remove, add }, [ 198u8, 53u8, 206u8, 187u8, 15u8, 43u8, 96u8, 5u8, 220u8, 99u8, 145u8, 138u8, 151u8, 194u8, 188u8, 17u8, 11u8, 131u8, 95u8, 85u8, 95u8, 17u8, 209u8, 207u8, 135u8, 197u8, 196u8, 182u8, 156u8, 161u8, 58u8, 208u8, ], ) } #[doc = "Change the membership to a new set, disregarding the existing membership. Be nice and"] #[doc = "pass `members` pre-sorted."] #[doc = ""] #[doc = "May only be called from `T::ResetOrigin`."] pub fn reset_members( &self, members: ::std::vec::Vec<::subxt::utils::AccountId32>, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "TechnicalMembership", "reset_members", types::ResetMembers { members }, [ 212u8, 144u8, 99u8, 156u8, 70u8, 4u8, 219u8, 227u8, 150u8, 25u8, 86u8, 8u8, 215u8, 128u8, 193u8, 206u8, 33u8, 193u8, 71u8, 15u8, 20u8, 92u8, 99u8, 89u8, 174u8, 236u8, 102u8, 82u8, 164u8, 234u8, 12u8, 45u8, ], ) } #[doc = "Swap out the sending member for some other key `new`."] #[doc = ""] #[doc = "May only be called from `Signed` origin of a current member."] #[doc = ""] #[doc = "Prime membership is passed from the origin account to `new`, if extant."] pub fn change_key( &self, new: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "TechnicalMembership", "change_key", types::ChangeKey { new }, [ 79u8, 102u8, 49u8, 223u8, 182u8, 153u8, 183u8, 19u8, 154u8, 254u8, 64u8, 75u8, 42u8, 235u8, 130u8, 78u8, 16u8, 132u8, 152u8, 215u8, 73u8, 75u8, 129u8, 189u8, 218u8, 129u8, 127u8, 32u8, 134u8, 25u8, 55u8, 152u8, ], ) } #[doc = "Set the prime member. Must be a current member."] #[doc = ""] #[doc = "May only be called from `T::PrimeOrigin`."] pub fn set_prime( &self, who: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "TechnicalMembership", "set_prime", types::SetPrime { who }, [ 149u8, 62u8, 210u8, 85u8, 246u8, 206u8, 43u8, 214u8, 160u8, 153u8, 134u8, 140u8, 145u8, 214u8, 65u8, 60u8, 26u8, 167u8, 248u8, 4u8, 96u8, 237u8, 198u8, 97u8, 118u8, 41u8, 102u8, 20u8, 138u8, 67u8, 201u8, 192u8, ], ) } #[doc = "Remove the prime member if it exists."] #[doc = ""] #[doc = "May only be called from `T::PrimeOrigin`."] pub fn clear_prime(&self) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "TechnicalMembership", "clear_prime", types::ClearPrime {}, [ 71u8, 213u8, 34u8, 23u8, 186u8, 63u8, 240u8, 216u8, 190u8, 251u8, 84u8, 109u8, 140u8, 137u8, 210u8, 211u8, 242u8, 231u8, 212u8, 133u8, 151u8, 125u8, 25u8, 46u8, 210u8, 53u8, 133u8, 222u8, 21u8, 107u8, 120u8, 52u8, ], ) } } } #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] pub type Event = runtime_types::pallet_membership::pallet::Event; pub mod events { use super::runtime_types; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "The given member was added; see the transaction for who."] pub struct MemberAdded; impl ::subxt::events::StaticEvent for MemberAdded { const PALLET: &'static str = "TechnicalMembership"; const EVENT: &'static str = "MemberAdded"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "The given member was removed; see the transaction for who."] pub struct MemberRemoved; impl ::subxt::events::StaticEvent for MemberRemoved { const PALLET: &'static str = "TechnicalMembership"; const EVENT: &'static str = "MemberRemoved"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Two members were swapped; see the transaction for who."] pub struct MembersSwapped; impl ::subxt::events::StaticEvent for MembersSwapped { const PALLET: &'static str = "TechnicalMembership"; const EVENT: &'static str = "MembersSwapped"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "The membership was reset; see the transaction for who the new set is."] pub struct MembersReset; impl ::subxt::events::StaticEvent for MembersReset { const PALLET: &'static str = "TechnicalMembership"; const EVENT: &'static str = "MembersReset"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "One of the members' keys changed."] pub struct KeyChanged; impl ::subxt::events::StaticEvent for KeyChanged { const PALLET: &'static str = "TechnicalMembership"; const EVENT: &'static str = "KeyChanged"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Phantom member, never used."] pub struct Dummy; impl ::subxt::events::StaticEvent for Dummy { const PALLET: &'static str = "TechnicalMembership"; const EVENT: &'static str = "Dummy"; } } pub mod storage { use super::runtime_types; pub struct StorageApi; impl StorageApi { #[doc = " The current membership, stored as an ordered Vec."] pub fn members( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, runtime_types::bounded_collections::bounded_vec::BoundedVec< ::subxt::utils::AccountId32, >, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), > { ::subxt::storage::address::Address::new_static( "TechnicalMembership", "Members", vec![], [ 109u8, 100u8, 14u8, 195u8, 213u8, 67u8, 44u8, 218u8, 84u8, 254u8, 76u8, 80u8, 210u8, 155u8, 155u8, 30u8, 18u8, 169u8, 195u8, 92u8, 208u8, 223u8, 242u8, 97u8, 147u8, 20u8, 168u8, 145u8, 254u8, 115u8, 225u8, 193u8, ], ) } #[doc = " The current prime member, if one exists."] pub fn prime( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, ::subxt::utils::AccountId32, ::subxt::storage::address::Yes, (), (), > { ::subxt::storage::address::Address::new_static( "TechnicalMembership", "Prime", vec![], [ 72u8, 128u8, 214u8, 72u8, 78u8, 80u8, 100u8, 198u8, 114u8, 215u8, 59u8, 3u8, 103u8, 14u8, 152u8, 202u8, 12u8, 165u8, 224u8, 10u8, 41u8, 154u8, 77u8, 95u8, 116u8, 143u8, 250u8, 250u8, 176u8, 92u8, 238u8, 154u8, ], ) } } } } pub mod treasury { use super::root_mod; use super::runtime_types; #[doc = "Error for the treasury pallet."] pub type Error = runtime_types::pallet_treasury::pallet::Error; #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] pub type Call = runtime_types::pallet_treasury::pallet::Call; pub mod calls { use super::root_mod; use super::runtime_types; type DispatchError = runtime_types::sp_runtime::DispatchError; pub mod types { use super::runtime_types; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ProposeSpend { #[codec(compact)] pub value: ::core::primitive::u128, pub beneficiary: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, } impl ::subxt::blocks::StaticExtrinsic for ProposeSpend { const PALLET: &'static str = "Treasury"; const CALL: &'static str = "propose_spend"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct RejectProposal { #[codec(compact)] pub proposal_id: ::core::primitive::u32, } impl ::subxt::blocks::StaticExtrinsic for RejectProposal { const PALLET: &'static str = "Treasury"; const CALL: &'static str = "reject_proposal"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ApproveProposal { #[codec(compact)] pub proposal_id: ::core::primitive::u32, } impl ::subxt::blocks::StaticExtrinsic for ApproveProposal { const PALLET: &'static str = "Treasury"; const CALL: &'static str = "approve_proposal"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Spend { #[codec(compact)] pub amount: ::core::primitive::u128, pub beneficiary: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, } impl ::subxt::blocks::StaticExtrinsic for Spend { const PALLET: &'static str = "Treasury"; const CALL: &'static str = "spend"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct RemoveApproval { #[codec(compact)] pub proposal_id: ::core::primitive::u32, } impl ::subxt::blocks::StaticExtrinsic for RemoveApproval { const PALLET: &'static str = "Treasury"; const CALL: &'static str = "remove_approval"; } } pub struct TransactionApi; impl TransactionApi { #[doc = "Put forward a suggestion for spending. A deposit proportional to the value"] #[doc = "is reserved and slashed if the proposal is rejected. It is returned once the"] #[doc = "proposal is awarded."] #[doc = ""] #[doc = "## Complexity"] #[doc = "- O(1)"] pub fn propose_spend( &self, value: ::core::primitive::u128, beneficiary: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Treasury", "propose_spend", types::ProposeSpend { value, beneficiary }, [ 36u8, 227u8, 126u8, 190u8, 233u8, 70u8, 167u8, 246u8, 56u8, 238u8, 67u8, 181u8, 166u8, 108u8, 129u8, 28u8, 55u8, 177u8, 94u8, 166u8, 125u8, 198u8, 225u8, 38u8, 91u8, 248u8, 19u8, 177u8, 135u8, 62u8, 236u8, 114u8, ], ) } #[doc = "Reject a proposed spend. The original deposit will be slashed."] #[doc = ""] #[doc = "May only be called from `T::RejectOrigin`."] #[doc = ""] #[doc = "## Complexity"] #[doc = "- O(1)"] pub fn reject_proposal( &self, proposal_id: ::core::primitive::u32, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Treasury", "reject_proposal", types::RejectProposal { proposal_id }, [ 18u8, 166u8, 80u8, 141u8, 222u8, 230u8, 4u8, 36u8, 7u8, 76u8, 12u8, 40u8, 145u8, 114u8, 12u8, 43u8, 223u8, 78u8, 189u8, 222u8, 120u8, 80u8, 225u8, 215u8, 119u8, 68u8, 200u8, 15u8, 25u8, 172u8, 192u8, 173u8, ], ) } #[doc = "Approve a proposal. At a later time, the proposal will be allocated to the beneficiary"] #[doc = "and the original deposit will be returned."] #[doc = ""] #[doc = "May only be called from `T::ApproveOrigin`."] #[doc = ""] #[doc = "## Complexity"] #[doc = " - O(1)."] pub fn approve_proposal( &self, proposal_id: ::core::primitive::u32, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Treasury", "approve_proposal", types::ApproveProposal { proposal_id }, [ 154u8, 176u8, 152u8, 97u8, 167u8, 177u8, 78u8, 9u8, 235u8, 229u8, 199u8, 193u8, 214u8, 3u8, 16u8, 30u8, 4u8, 104u8, 27u8, 184u8, 100u8, 65u8, 179u8, 13u8, 91u8, 62u8, 115u8, 5u8, 219u8, 211u8, 251u8, 153u8, ], ) } #[doc = "Propose and approve a spend of treasury funds."] #[doc = ""] #[doc = "- `origin`: Must be `SpendOrigin` with the `Success` value being at least `amount`."] #[doc = "- `amount`: The amount to be transferred from the treasury to the `beneficiary`."] #[doc = "- `beneficiary`: The destination account for the transfer."] #[doc = ""] #[doc = "NOTE: For record-keeping purposes, the proposer is deemed to be equivalent to the"] #[doc = "beneficiary."] pub fn spend( &self, amount: ::core::primitive::u128, beneficiary: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Treasury", "spend", types::Spend { amount, beneficiary, }, [ 57u8, 32u8, 140u8, 106u8, 181u8, 124u8, 122u8, 61u8, 130u8, 130u8, 165u8, 131u8, 46u8, 249u8, 119u8, 102u8, 225u8, 174u8, 101u8, 161u8, 76u8, 173u8, 253u8, 23u8, 173u8, 229u8, 135u8, 183u8, 168u8, 159u8, 112u8, 88u8, ], ) } #[doc = "Force a previously approved proposal to be removed from the approval queue."] #[doc = "The original deposit will no longer be returned."] #[doc = ""] #[doc = "May only be called from `T::RejectOrigin`."] #[doc = "- `proposal_id`: The index of a proposal"] #[doc = ""] #[doc = "## Complexity"] #[doc = "- O(A) where `A` is the number of approvals"] #[doc = ""] #[doc = "Errors:"] #[doc = "- `ProposalNotApproved`: The `proposal_id` supplied was not found in the approval queue,"] #[doc = "i.e., the proposal has not been approved. This could also mean the proposal does not"] #[doc = "exist altogether, thus there is no way it would have been approved in the first place."] pub fn remove_approval( &self, proposal_id: ::core::primitive::u32, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Treasury", "remove_approval", types::RemoveApproval { proposal_id }, [ 180u8, 20u8, 39u8, 227u8, 29u8, 228u8, 234u8, 36u8, 155u8, 114u8, 197u8, 135u8, 185u8, 31u8, 56u8, 247u8, 224u8, 168u8, 254u8, 233u8, 250u8, 134u8, 186u8, 155u8, 108u8, 84u8, 94u8, 226u8, 207u8, 130u8, 196u8, 100u8, ], ) } } } #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] pub type Event = runtime_types::pallet_treasury::pallet::Event; pub mod events { use super::runtime_types; #[derive( :: subxt :: ext :: codec :: CompactAs, :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "New proposal."] pub struct Proposed { pub proposal_index: ::core::primitive::u32, } impl ::subxt::events::StaticEvent for Proposed { const PALLET: &'static str = "Treasury"; const EVENT: &'static str = "Proposed"; } #[derive( :: subxt :: ext :: codec :: CompactAs, :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "We have ended a spend period and will now allocate funds."] pub struct Spending { pub budget_remaining: ::core::primitive::u128, } impl ::subxt::events::StaticEvent for Spending { const PALLET: &'static str = "Treasury"; const EVENT: &'static str = "Spending"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Some funds have been allocated."] pub struct Awarded { pub proposal_index: ::core::primitive::u32, pub award: ::core::primitive::u128, pub account: ::subxt::utils::AccountId32, } impl ::subxt::events::StaticEvent for Awarded { const PALLET: &'static str = "Treasury"; const EVENT: &'static str = "Awarded"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A proposal was rejected; funds were slashed."] pub struct Rejected { pub proposal_index: ::core::primitive::u32, pub slashed: ::core::primitive::u128, } impl ::subxt::events::StaticEvent for Rejected { const PALLET: &'static str = "Treasury"; const EVENT: &'static str = "Rejected"; } #[derive( :: subxt :: ext :: codec :: CompactAs, :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Some of our funds have been burnt."] pub struct Burnt { pub burnt_funds: ::core::primitive::u128, } impl ::subxt::events::StaticEvent for Burnt { const PALLET: &'static str = "Treasury"; const EVENT: &'static str = "Burnt"; } #[derive( :: subxt :: ext :: codec :: CompactAs, :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Spending has finished; this is the amount that rolls over until next spend."] pub struct Rollover { pub rollover_balance: ::core::primitive::u128, } impl ::subxt::events::StaticEvent for Rollover { const PALLET: &'static str = "Treasury"; const EVENT: &'static str = "Rollover"; } #[derive( :: subxt :: ext :: codec :: CompactAs, :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Some funds have been deposited."] pub struct Deposit { pub value: ::core::primitive::u128, } impl ::subxt::events::StaticEvent for Deposit { const PALLET: &'static str = "Treasury"; const EVENT: &'static str = "Deposit"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A new spend proposal has been approved."] pub struct SpendApproved { pub proposal_index: ::core::primitive::u32, pub amount: ::core::primitive::u128, pub beneficiary: ::subxt::utils::AccountId32, } impl ::subxt::events::StaticEvent for SpendApproved { const PALLET: &'static str = "Treasury"; const EVENT: &'static str = "SpendApproved"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "The inactive funds of the pallet have been updated."] pub struct UpdatedInactive { pub reactivated: ::core::primitive::u128, pub deactivated: ::core::primitive::u128, } impl ::subxt::events::StaticEvent for UpdatedInactive { const PALLET: &'static str = "Treasury"; const EVENT: &'static str = "UpdatedInactive"; } } pub mod storage { use super::runtime_types; pub struct StorageApi; impl StorageApi { #[doc = " Number of proposals that have been made."] pub fn proposal_count( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, ::core::primitive::u32, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), > { ::subxt::storage::address::Address::new_static( "Treasury", "ProposalCount", vec![], [ 91u8, 238u8, 246u8, 106u8, 95u8, 66u8, 83u8, 134u8, 1u8, 225u8, 164u8, 216u8, 113u8, 101u8, 203u8, 200u8, 113u8, 97u8, 246u8, 228u8, 140u8, 29u8, 29u8, 48u8, 176u8, 137u8, 93u8, 230u8, 56u8, 75u8, 51u8, 149u8, ], ) } #[doc = " Proposals that have been made."] pub fn proposals( &self, _0: impl ::std::borrow::Borrow<::core::primitive::u32>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, runtime_types::pallet_treasury::Proposal< ::subxt::utils::AccountId32, ::core::primitive::u128, >, ::subxt::storage::address::Yes, (), ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( "Treasury", "Proposals", vec![::subxt::storage::address::make_static_storage_map_key( _0.borrow(), )], [ 182u8, 12u8, 98u8, 64u8, 117u8, 17u8, 90u8, 245u8, 80u8, 99u8, 161u8, 17u8, 59u8, 80u8, 64u8, 139u8, 89u8, 179u8, 254u8, 239u8, 143u8, 114u8, 77u8, 79u8, 75u8, 126u8, 52u8, 227u8, 1u8, 138u8, 35u8, 62u8, ], ) } #[doc = " Proposals that have been made."] pub fn proposals_root( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, runtime_types::pallet_treasury::Proposal< ::subxt::utils::AccountId32, ::core::primitive::u128, >, (), (), ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( "Treasury", "Proposals", Vec::new(), [ 182u8, 12u8, 98u8, 64u8, 117u8, 17u8, 90u8, 245u8, 80u8, 99u8, 161u8, 17u8, 59u8, 80u8, 64u8, 139u8, 89u8, 179u8, 254u8, 239u8, 143u8, 114u8, 77u8, 79u8, 75u8, 126u8, 52u8, 227u8, 1u8, 138u8, 35u8, 62u8, ], ) } #[doc = " The amount which has been reported as inactive to Currency."] pub fn deactivated( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, ::core::primitive::u128, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), > { ::subxt::storage::address::Address::new_static( "Treasury", "Deactivated", vec![], [ 120u8, 221u8, 159u8, 56u8, 161u8, 44u8, 54u8, 233u8, 47u8, 114u8, 170u8, 150u8, 52u8, 24u8, 137u8, 212u8, 122u8, 247u8, 40u8, 17u8, 208u8, 130u8, 42u8, 154u8, 33u8, 222u8, 59u8, 116u8, 0u8, 15u8, 79u8, 123u8, ], ) } #[doc = " Proposal indices that have been approved but not yet awarded."] pub fn approvals( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, runtime_types::bounded_collections::bounded_vec::BoundedVec< ::core::primitive::u32, >, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), > { ::subxt::storage::address::Address::new_static( "Treasury", "Approvals", vec![], [ 78u8, 147u8, 186u8, 235u8, 17u8, 40u8, 247u8, 235u8, 67u8, 222u8, 3u8, 14u8, 248u8, 17u8, 67u8, 180u8, 93u8, 161u8, 64u8, 35u8, 119u8, 194u8, 187u8, 226u8, 135u8, 162u8, 147u8, 174u8, 139u8, 72u8, 99u8, 212u8, ], ) } } } pub mod constants { use super::runtime_types; pub struct ConstantsApi; impl ConstantsApi { #[doc = " Fraction of a proposal's value that should be bonded in order to place the proposal."] #[doc = " An accepted proposal gets these back. A rejected proposal does not."] pub fn proposal_bond( &self, ) -> ::subxt::constants::Address { ::subxt::constants::Address::new_static( "Treasury", "ProposalBond", [ 65u8, 93u8, 120u8, 165u8, 204u8, 81u8, 159u8, 163u8, 93u8, 135u8, 114u8, 121u8, 147u8, 35u8, 215u8, 213u8, 4u8, 223u8, 83u8, 37u8, 225u8, 200u8, 189u8, 156u8, 140u8, 36u8, 58u8, 46u8, 42u8, 232u8, 155u8, 0u8, ], ) } #[doc = " Minimum amount of funds that should be placed in a deposit for making a proposal."] pub fn proposal_bond_minimum( &self, ) -> ::subxt::constants::Address<::core::primitive::u128> { ::subxt::constants::Address::new_static( "Treasury", "ProposalBondMinimum", [ 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8, 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, 136u8, 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, 148u8, 156u8, ], ) } #[doc = " Maximum amount of funds that should be placed in a deposit for making a proposal."] pub fn proposal_bond_maximum( &self, ) -> ::subxt::constants::Address<::core::option::Option<::core::primitive::u128>> { ::subxt::constants::Address::new_static( "Treasury", "ProposalBondMaximum", [ 198u8, 51u8, 89u8, 159u8, 124u8, 251u8, 51u8, 80u8, 167u8, 193u8, 44u8, 199u8, 80u8, 36u8, 41u8, 130u8, 137u8, 229u8, 178u8, 208u8, 37u8, 215u8, 169u8, 183u8, 180u8, 191u8, 140u8, 240u8, 250u8, 61u8, 42u8, 147u8, ], ) } #[doc = " Period between successive spends."] pub fn spend_period(&self) -> ::subxt::constants::Address<::core::primitive::u32> { ::subxt::constants::Address::new_static( "Treasury", "SpendPeriod", [ 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, 145u8, ], ) } #[doc = " Percentage of spare funds (if any) that are burnt per spend period."] pub fn burn( &self, ) -> ::subxt::constants::Address { ::subxt::constants::Address::new_static( "Treasury", "Burn", [ 65u8, 93u8, 120u8, 165u8, 204u8, 81u8, 159u8, 163u8, 93u8, 135u8, 114u8, 121u8, 147u8, 35u8, 215u8, 213u8, 4u8, 223u8, 83u8, 37u8, 225u8, 200u8, 189u8, 156u8, 140u8, 36u8, 58u8, 46u8, 42u8, 232u8, 155u8, 0u8, ], ) } #[doc = " The treasury's pallet id, used for deriving its sovereign account ID."] pub fn pallet_id( &self, ) -> ::subxt::constants::Address { ::subxt::constants::Address::new_static( "Treasury", "PalletId", [ 56u8, 243u8, 53u8, 83u8, 154u8, 179u8, 170u8, 80u8, 133u8, 173u8, 61u8, 161u8, 47u8, 225u8, 146u8, 21u8, 50u8, 229u8, 248u8, 27u8, 104u8, 58u8, 129u8, 197u8, 102u8, 160u8, 168u8, 205u8, 154u8, 42u8, 217u8, 53u8, ], ) } #[doc = " The maximum number of approvals that can wait in the spending queue."] #[doc = ""] #[doc = " NOTE: This parameter is also used within the Bounties Pallet extension if enabled."] pub fn max_approvals(&self) -> ::subxt::constants::Address<::core::primitive::u32> { ::subxt::constants::Address::new_static( "Treasury", "MaxApprovals", [ 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, 145u8, ], ) } } } } pub mod conviction_voting { use super::root_mod; use super::runtime_types; #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] pub type Error = runtime_types::pallet_conviction_voting::pallet::Error; #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] pub type Call = runtime_types::pallet_conviction_voting::pallet::Call; pub mod calls { use super::root_mod; use super::runtime_types; type DispatchError = runtime_types::sp_runtime::DispatchError; pub mod types { use super::runtime_types; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Vote { #[codec(compact)] pub poll_index: ::core::primitive::u32, pub vote: runtime_types::pallet_conviction_voting::vote::AccountVote< ::core::primitive::u128, >, } impl ::subxt::blocks::StaticExtrinsic for Vote { const PALLET: &'static str = "ConvictionVoting"; const CALL: &'static str = "vote"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Delegate { pub class: ::core::primitive::u16, pub to: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, pub conviction: runtime_types::pallet_conviction_voting::conviction::Conviction, pub balance: ::core::primitive::u128, } impl ::subxt::blocks::StaticExtrinsic for Delegate { const PALLET: &'static str = "ConvictionVoting"; const CALL: &'static str = "delegate"; } #[derive( :: subxt :: ext :: codec :: CompactAs, :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Undelegate { pub class: ::core::primitive::u16, } impl ::subxt::blocks::StaticExtrinsic for Undelegate { const PALLET: &'static str = "ConvictionVoting"; const CALL: &'static str = "undelegate"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Unlock { pub class: ::core::primitive::u16, pub target: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, } impl ::subxt::blocks::StaticExtrinsic for Unlock { const PALLET: &'static str = "ConvictionVoting"; const CALL: &'static str = "unlock"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct RemoveVote { pub class: ::core::option::Option<::core::primitive::u16>, pub index: ::core::primitive::u32, } impl ::subxt::blocks::StaticExtrinsic for RemoveVote { const PALLET: &'static str = "ConvictionVoting"; const CALL: &'static str = "remove_vote"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct RemoveOtherVote { pub target: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, pub class: ::core::primitive::u16, pub index: ::core::primitive::u32, } impl ::subxt::blocks::StaticExtrinsic for RemoveOtherVote { const PALLET: &'static str = "ConvictionVoting"; const CALL: &'static str = "remove_other_vote"; } } pub struct TransactionApi; impl TransactionApi { #[doc = "Vote in a poll. If `vote.is_aye()`, the vote is to enact the proposal;"] #[doc = "otherwise it is a vote to keep the status quo."] #[doc = ""] #[doc = "The dispatch origin of this call must be _Signed_."] #[doc = ""] #[doc = "- `poll_index`: The index of the poll to vote for."] #[doc = "- `vote`: The vote configuration."] #[doc = ""] #[doc = "Weight: `O(R)` where R is the number of polls the voter has voted on."] pub fn vote( &self, poll_index: ::core::primitive::u32, vote: runtime_types::pallet_conviction_voting::vote::AccountVote< ::core::primitive::u128, >, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "ConvictionVoting", "vote", types::Vote { poll_index, vote }, [ 83u8, 161u8, 37u8, 200u8, 183u8, 70u8, 26u8, 196u8, 131u8, 173u8, 165u8, 3u8, 77u8, 144u8, 17u8, 78u8, 115u8, 118u8, 209u8, 112u8, 250u8, 48u8, 75u8, 0u8, 1u8, 57u8, 34u8, 137u8, 136u8, 98u8, 120u8, 224u8, ], ) } #[doc = "Delegate the voting power (with some given conviction) of the sending account for a"] #[doc = "particular class of polls."] #[doc = ""] #[doc = "The balance delegated is locked for as long as it's delegated, and thereafter for the"] #[doc = "time appropriate for the conviction's lock period."] #[doc = ""] #[doc = "The dispatch origin of this call must be _Signed_, and the signing account must either:"] #[doc = " - be delegating already; or"] #[doc = " - have no voting activity (if there is, then it will need to be removed/consolidated"] #[doc = " through `reap_vote` or `unvote`)."] #[doc = ""] #[doc = "- `to`: The account whose voting the `target` account's voting power will follow."] #[doc = "- `class`: The class of polls to delegate. To delegate multiple classes, multiple calls"] #[doc = " to this function are required."] #[doc = "- `conviction`: The conviction that will be attached to the delegated votes. When the"] #[doc = " account is undelegated, the funds will be locked for the corresponding period."] #[doc = "- `balance`: The amount of the account's balance to be used in delegating. This must not"] #[doc = " be more than the account's current balance."] #[doc = ""] #[doc = "Emits `Delegated`."] #[doc = ""] #[doc = "Weight: `O(R)` where R is the number of polls the voter delegating to has"] #[doc = " voted on. Weight is initially charged as if maximum votes, but is refunded later."] pub fn delegate( &self, class: ::core::primitive::u16, to: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, conviction: runtime_types::pallet_conviction_voting::conviction::Conviction, balance: ::core::primitive::u128, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "ConvictionVoting", "delegate", types::Delegate { class, to, conviction, balance, }, [ 126u8, 116u8, 4u8, 84u8, 189u8, 250u8, 216u8, 17u8, 113u8, 34u8, 92u8, 7u8, 113u8, 74u8, 122u8, 202u8, 63u8, 223u8, 174u8, 200u8, 84u8, 31u8, 207u8, 25u8, 161u8, 185u8, 31u8, 241u8, 43u8, 93u8, 48u8, 186u8, ], ) } #[doc = "Undelegate the voting power of the sending account for a particular class of polls."] #[doc = ""] #[doc = "Tokens may be unlocked following once an amount of time consistent with the lock period"] #[doc = "of the conviction with which the delegation was issued has passed."] #[doc = ""] #[doc = "The dispatch origin of this call must be _Signed_ and the signing account must be"] #[doc = "currently delegating."] #[doc = ""] #[doc = "- `class`: The class of polls to remove the delegation from."] #[doc = ""] #[doc = "Emits `Undelegated`."] #[doc = ""] #[doc = "Weight: `O(R)` where R is the number of polls the voter delegating to has"] #[doc = " voted on. Weight is initially charged as if maximum votes, but is refunded later."] pub fn undelegate( &self, class: ::core::primitive::u16, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "ConvictionVoting", "undelegate", types::Undelegate { class }, [ 140u8, 232u8, 6u8, 53u8, 228u8, 8u8, 131u8, 144u8, 65u8, 66u8, 245u8, 247u8, 147u8, 135u8, 198u8, 57u8, 82u8, 212u8, 89u8, 46u8, 236u8, 168u8, 200u8, 220u8, 93u8, 168u8, 101u8, 29u8, 110u8, 76u8, 67u8, 181u8, ], ) } #[doc = "Remove the lock caused by prior voting/delegating which has expired within a particular"] #[doc = "class."] #[doc = ""] #[doc = "The dispatch origin of this call must be _Signed_."] #[doc = ""] #[doc = "- `class`: The class of polls to unlock."] #[doc = "- `target`: The account to remove the lock on."] #[doc = ""] #[doc = "Weight: `O(R)` with R number of vote of target."] pub fn unlock( &self, class: ::core::primitive::u16, target: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "ConvictionVoting", "unlock", types::Unlock { class, target }, [ 54u8, 193u8, 94u8, 255u8, 130u8, 55u8, 88u8, 65u8, 58u8, 101u8, 150u8, 82u8, 135u8, 26u8, 49u8, 102u8, 245u8, 253u8, 200u8, 38u8, 151u8, 44u8, 138u8, 116u8, 92u8, 202u8, 55u8, 243u8, 126u8, 60u8, 182u8, 157u8, ], ) } #[doc = "Remove a vote for a poll."] #[doc = ""] #[doc = "If:"] #[doc = "- the poll was cancelled, or"] #[doc = "- the poll is ongoing, or"] #[doc = "- the poll has ended such that"] #[doc = " - the vote of the account was in opposition to the result; or"] #[doc = " - there was no conviction to the account's vote; or"] #[doc = " - the account made a split vote"] #[doc = "...then the vote is removed cleanly and a following call to `unlock` may result in more"] #[doc = "funds being available."] #[doc = ""] #[doc = "If, however, the poll has ended and:"] #[doc = "- it finished corresponding to the vote of the account, and"] #[doc = "- the account made a standard vote with conviction, and"] #[doc = "- the lock period of the conviction is not over"] #[doc = "...then the lock will be aggregated into the overall account's lock, which may involve"] #[doc = "*overlocking* (where the two locks are combined into a single lock that is the maximum"] #[doc = "of both the amount locked and the time is it locked for)."] #[doc = ""] #[doc = "The dispatch origin of this call must be _Signed_, and the signer must have a vote"] #[doc = "registered for poll `index`."] #[doc = ""] #[doc = "- `index`: The index of poll of the vote to be removed."] #[doc = "- `class`: Optional parameter, if given it indicates the class of the poll. For polls"] #[doc = " which have finished or are cancelled, this must be `Some`."] #[doc = ""] #[doc = "Weight: `O(R + log R)` where R is the number of polls that `target` has voted on."] #[doc = " Weight is calculated for the maximum number of vote."] pub fn remove_vote( &self, class: ::core::option::Option<::core::primitive::u16>, index: ::core::primitive::u32, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "ConvictionVoting", "remove_vote", types::RemoveVote { class, index }, [ 255u8, 108u8, 211u8, 146u8, 168u8, 231u8, 207u8, 44u8, 76u8, 24u8, 235u8, 60u8, 23u8, 79u8, 192u8, 192u8, 46u8, 40u8, 134u8, 27u8, 125u8, 114u8, 125u8, 247u8, 85u8, 102u8, 76u8, 159u8, 34u8, 167u8, 152u8, 148u8, ], ) } #[doc = "Remove a vote for a poll."] #[doc = ""] #[doc = "If the `target` is equal to the signer, then this function is exactly equivalent to"] #[doc = "`remove_vote`. If not equal to the signer, then the vote must have expired,"] #[doc = "either because the poll was cancelled, because the voter lost the poll or"] #[doc = "because the conviction period is over."] #[doc = ""] #[doc = "The dispatch origin of this call must be _Signed_."] #[doc = ""] #[doc = "- `target`: The account of the vote to be removed; this account must have voted for poll"] #[doc = " `index`."] #[doc = "- `index`: The index of poll of the vote to be removed."] #[doc = "- `class`: The class of the poll."] #[doc = ""] #[doc = "Weight: `O(R + log R)` where R is the number of polls that `target` has voted on."] #[doc = " Weight is calculated for the maximum number of vote."] pub fn remove_other_vote( &self, target: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, class: ::core::primitive::u16, index: ::core::primitive::u32, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "ConvictionVoting", "remove_other_vote", types::RemoveOtherVote { target, class, index, }, [ 211u8, 69u8, 54u8, 243u8, 241u8, 50u8, 231u8, 13u8, 157u8, 180u8, 17u8, 245u8, 85u8, 92u8, 207u8, 184u8, 224u8, 163u8, 15u8, 222u8, 41u8, 179u8, 174u8, 170u8, 192u8, 241u8, 202u8, 127u8, 213u8, 0u8, 91u8, 45u8, ], ) } } } #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] pub type Event = runtime_types::pallet_conviction_voting::pallet::Event; pub mod events { use super::runtime_types; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "An account has delegated their vote to another account. \\[who, target\\]"] pub struct Delegated( pub ::subxt::utils::AccountId32, pub ::subxt::utils::AccountId32, ); impl ::subxt::events::StaticEvent for Delegated { const PALLET: &'static str = "ConvictionVoting"; const EVENT: &'static str = "Delegated"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "An \\[account\\] has cancelled a previous delegation operation."] pub struct Undelegated(pub ::subxt::utils::AccountId32); impl ::subxt::events::StaticEvent for Undelegated { const PALLET: &'static str = "ConvictionVoting"; const EVENT: &'static str = "Undelegated"; } } pub mod storage { use super::runtime_types; pub struct StorageApi; impl StorageApi { #[doc = " All voting for a particular voter in a particular voting class. We store the balance for the"] #[doc = " number of votes that we have recorded."] pub fn voting_for( &self, _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, _1: impl ::std::borrow::Borrow<::core::primitive::u16>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, runtime_types::pallet_conviction_voting::vote::Voting< ::core::primitive::u128, ::subxt::utils::AccountId32, ::core::primitive::u32, ::core::primitive::u32, >, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( "ConvictionVoting", "VotingFor", vec![ ::subxt::storage::address::make_static_storage_map_key(_0.borrow()), ::subxt::storage::address::make_static_storage_map_key(_1.borrow()), ], [ 84u8, 208u8, 38u8, 249u8, 230u8, 78u8, 135u8, 30u8, 99u8, 20u8, 152u8, 104u8, 61u8, 29u8, 146u8, 195u8, 67u8, 83u8, 246u8, 251u8, 47u8, 147u8, 83u8, 154u8, 36u8, 63u8, 34u8, 209u8, 134u8, 71u8, 210u8, 250u8, ], ) } #[doc = " All voting for a particular voter in a particular voting class. We store the balance for the"] #[doc = " number of votes that we have recorded."] pub fn voting_for_root( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, runtime_types::pallet_conviction_voting::vote::Voting< ::core::primitive::u128, ::subxt::utils::AccountId32, ::core::primitive::u32, ::core::primitive::u32, >, (), ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( "ConvictionVoting", "VotingFor", Vec::new(), [ 84u8, 208u8, 38u8, 249u8, 230u8, 78u8, 135u8, 30u8, 99u8, 20u8, 152u8, 104u8, 61u8, 29u8, 146u8, 195u8, 67u8, 83u8, 246u8, 251u8, 47u8, 147u8, 83u8, 154u8, 36u8, 63u8, 34u8, 209u8, 134u8, 71u8, 210u8, 250u8, ], ) } #[doc = " The voting classes which have a non-zero lock requirement and the lock amounts which they"] #[doc = " require. The actual amount locked on behalf of this pallet should always be the maximum of"] #[doc = " this list."] pub fn class_locks_for( &self, _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, runtime_types::bounded_collections::bounded_vec::BoundedVec<( ::core::primitive::u16, ::core::primitive::u128, )>, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( "ConvictionVoting", "ClassLocksFor", vec![::subxt::storage::address::make_static_storage_map_key( _0.borrow(), )], [ 74u8, 74u8, 8u8, 82u8, 215u8, 61u8, 13u8, 9u8, 44u8, 222u8, 33u8, 245u8, 195u8, 124u8, 6u8, 174u8, 65u8, 245u8, 71u8, 42u8, 47u8, 46u8, 164u8, 231u8, 11u8, 245u8, 115u8, 207u8, 209u8, 137u8, 90u8, 6u8, ], ) } #[doc = " The voting classes which have a non-zero lock requirement and the lock amounts which they"] #[doc = " require. The actual amount locked on behalf of this pallet should always be the maximum of"] #[doc = " this list."] pub fn class_locks_for_root( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, runtime_types::bounded_collections::bounded_vec::BoundedVec<( ::core::primitive::u16, ::core::primitive::u128, )>, (), ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( "ConvictionVoting", "ClassLocksFor", Vec::new(), [ 74u8, 74u8, 8u8, 82u8, 215u8, 61u8, 13u8, 9u8, 44u8, 222u8, 33u8, 245u8, 195u8, 124u8, 6u8, 174u8, 65u8, 245u8, 71u8, 42u8, 47u8, 46u8, 164u8, 231u8, 11u8, 245u8, 115u8, 207u8, 209u8, 137u8, 90u8, 6u8, ], ) } } } pub mod constants { use super::runtime_types; pub struct ConstantsApi; impl ConstantsApi { #[doc = " The maximum number of concurrent votes an account may have."] #[doc = ""] #[doc = " Also used to compute weight, an overly large value can lead to extrinsics with large"] #[doc = " weight estimation: see `delegate` for instance."] pub fn max_votes(&self) -> ::subxt::constants::Address<::core::primitive::u32> { ::subxt::constants::Address::new_static( "ConvictionVoting", "MaxVotes", [ 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, 145u8, ], ) } #[doc = " The minimum period of vote locking."] #[doc = ""] #[doc = " It should be no shorter than enactment period to ensure that in the case of an approval,"] #[doc = " those successful voters are locked into the consequences that their votes entail."] pub fn vote_locking_period( &self, ) -> ::subxt::constants::Address<::core::primitive::u32> { ::subxt::constants::Address::new_static( "ConvictionVoting", "VoteLockingPeriod", [ 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, 145u8, ], ) } } } } pub mod referenda { use super::root_mod; use super::runtime_types; #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] pub type Error = runtime_types::pallet_referenda::pallet::Error; #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] pub type Call = runtime_types::pallet_referenda::pallet::Call; pub mod calls { use super::root_mod; use super::runtime_types; type DispatchError = runtime_types::sp_runtime::DispatchError; pub mod types { use super::runtime_types; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Submit { pub proposal_origin: ::std::boxed::Box, pub proposal: runtime_types::frame_support::traits::preimages::Bounded< runtime_types::polkadot_runtime::RuntimeCall, >, pub enactment_moment: runtime_types::frame_support::traits::schedule::DispatchTime< ::core::primitive::u32, >, } impl ::subxt::blocks::StaticExtrinsic for Submit { const PALLET: &'static str = "Referenda"; const CALL: &'static str = "submit"; } #[derive( :: subxt :: ext :: codec :: CompactAs, :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct PlaceDecisionDeposit { pub index: ::core::primitive::u32, } impl ::subxt::blocks::StaticExtrinsic for PlaceDecisionDeposit { const PALLET: &'static str = "Referenda"; const CALL: &'static str = "place_decision_deposit"; } #[derive( :: subxt :: ext :: codec :: CompactAs, :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct RefundDecisionDeposit { pub index: ::core::primitive::u32, } impl ::subxt::blocks::StaticExtrinsic for RefundDecisionDeposit { const PALLET: &'static str = "Referenda"; const CALL: &'static str = "refund_decision_deposit"; } #[derive( :: subxt :: ext :: codec :: CompactAs, :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Cancel { pub index: ::core::primitive::u32, } impl ::subxt::blocks::StaticExtrinsic for Cancel { const PALLET: &'static str = "Referenda"; const CALL: &'static str = "cancel"; } #[derive( :: subxt :: ext :: codec :: CompactAs, :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Kill { pub index: ::core::primitive::u32, } impl ::subxt::blocks::StaticExtrinsic for Kill { const PALLET: &'static str = "Referenda"; const CALL: &'static str = "kill"; } #[derive( :: subxt :: ext :: codec :: CompactAs, :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct NudgeReferendum { pub index: ::core::primitive::u32, } impl ::subxt::blocks::StaticExtrinsic for NudgeReferendum { const PALLET: &'static str = "Referenda"; const CALL: &'static str = "nudge_referendum"; } #[derive( :: subxt :: ext :: codec :: CompactAs, :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct OneFewerDeciding { pub track: ::core::primitive::u16, } impl ::subxt::blocks::StaticExtrinsic for OneFewerDeciding { const PALLET: &'static str = "Referenda"; const CALL: &'static str = "one_fewer_deciding"; } #[derive( :: subxt :: ext :: codec :: CompactAs, :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct RefundSubmissionDeposit { pub index: ::core::primitive::u32, } impl ::subxt::blocks::StaticExtrinsic for RefundSubmissionDeposit { const PALLET: &'static str = "Referenda"; const CALL: &'static str = "refund_submission_deposit"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SetMetadata { pub index: ::core::primitive::u32, pub maybe_hash: ::core::option::Option<::subxt::utils::H256>, } impl ::subxt::blocks::StaticExtrinsic for SetMetadata { const PALLET: &'static str = "Referenda"; const CALL: &'static str = "set_metadata"; } } pub struct TransactionApi; impl TransactionApi { #[doc = "Propose a referendum on a privileged action."] #[doc = ""] #[doc = "- `origin`: must be `SubmitOrigin` and the account must have `SubmissionDeposit` funds"] #[doc = " available."] #[doc = "- `proposal_origin`: The origin from which the proposal should be executed."] #[doc = "- `proposal`: The proposal."] #[doc = "- `enactment_moment`: The moment that the proposal should be enacted."] #[doc = ""] #[doc = "Emits `Submitted`."] pub fn submit( &self, proposal_origin: runtime_types::polkadot_runtime::OriginCaller, proposal: runtime_types::frame_support::traits::preimages::Bounded< runtime_types::polkadot_runtime::RuntimeCall, >, enactment_moment: runtime_types::frame_support::traits::schedule::DispatchTime< ::core::primitive::u32, >, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Referenda", "submit", types::Submit { proposal_origin: ::std::boxed::Box::new(proposal_origin), proposal, enactment_moment, }, [ 59u8, 231u8, 190u8, 146u8, 252u8, 214u8, 34u8, 221u8, 11u8, 165u8, 38u8, 37u8, 117u8, 188u8, 250u8, 138u8, 114u8, 135u8, 234u8, 177u8, 72u8, 34u8, 192u8, 254u8, 70u8, 69u8, 217u8, 104u8, 103u8, 196u8, 111u8, 230u8, ], ) } #[doc = "Post the Decision Deposit for a referendum."] #[doc = ""] #[doc = "- `origin`: must be `Signed` and the account must have funds available for the"] #[doc = " referendum's track's Decision Deposit."] #[doc = "- `index`: The index of the submitted referendum whose Decision Deposit is yet to be"] #[doc = " posted."] #[doc = ""] #[doc = "Emits `DecisionDepositPlaced`."] pub fn place_decision_deposit( &self, index: ::core::primitive::u32, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Referenda", "place_decision_deposit", types::PlaceDecisionDeposit { index }, [ 247u8, 158u8, 55u8, 191u8, 188u8, 200u8, 3u8, 47u8, 20u8, 175u8, 86u8, 203u8, 52u8, 253u8, 91u8, 131u8, 21u8, 213u8, 56u8, 68u8, 40u8, 84u8, 184u8, 30u8, 9u8, 193u8, 63u8, 182u8, 178u8, 241u8, 247u8, 220u8, ], ) } #[doc = "Refund the Decision Deposit for a closed referendum back to the depositor."] #[doc = ""] #[doc = "- `origin`: must be `Signed` or `Root`."] #[doc = "- `index`: The index of a closed referendum whose Decision Deposit has not yet been"] #[doc = " refunded."] #[doc = ""] #[doc = "Emits `DecisionDepositRefunded`."] pub fn refund_decision_deposit( &self, index: ::core::primitive::u32, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Referenda", "refund_decision_deposit", types::RefundDecisionDeposit { index }, [ 159u8, 19u8, 35u8, 216u8, 114u8, 105u8, 18u8, 42u8, 148u8, 151u8, 136u8, 92u8, 117u8, 30u8, 29u8, 41u8, 238u8, 58u8, 195u8, 91u8, 115u8, 135u8, 96u8, 99u8, 154u8, 233u8, 8u8, 249u8, 145u8, 165u8, 77u8, 164u8, ], ) } #[doc = "Cancel an ongoing referendum."] #[doc = ""] #[doc = "- `origin`: must be the `CancelOrigin`."] #[doc = "- `index`: The index of the referendum to be cancelled."] #[doc = ""] #[doc = "Emits `Cancelled`."] pub fn cancel( &self, index: ::core::primitive::u32, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Referenda", "cancel", types::Cancel { index }, [ 55u8, 206u8, 119u8, 156u8, 238u8, 165u8, 193u8, 73u8, 242u8, 13u8, 212u8, 75u8, 136u8, 156u8, 151u8, 14u8, 35u8, 41u8, 156u8, 107u8, 60u8, 190u8, 39u8, 216u8, 8u8, 74u8, 213u8, 130u8, 160u8, 131u8, 237u8, 122u8, ], ) } #[doc = "Cancel an ongoing referendum and slash the deposits."] #[doc = ""] #[doc = "- `origin`: must be the `KillOrigin`."] #[doc = "- `index`: The index of the referendum to be cancelled."] #[doc = ""] #[doc = "Emits `Killed` and `DepositSlashed`."] pub fn kill( &self, index: ::core::primitive::u32, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Referenda", "kill", types::Kill { index }, [ 50u8, 89u8, 57u8, 0u8, 87u8, 129u8, 113u8, 140u8, 179u8, 178u8, 126u8, 198u8, 92u8, 92u8, 189u8, 64u8, 123u8, 232u8, 57u8, 227u8, 223u8, 219u8, 73u8, 217u8, 179u8, 44u8, 210u8, 125u8, 180u8, 10u8, 143u8, 48u8, ], ) } #[doc = "Advance a referendum onto its next logical state. Only used internally."] #[doc = ""] #[doc = "- `origin`: must be `Root`."] #[doc = "- `index`: the referendum to be advanced."] pub fn nudge_referendum( &self, index: ::core::primitive::u32, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Referenda", "nudge_referendum", types::NudgeReferendum { index }, [ 75u8, 99u8, 172u8, 30u8, 170u8, 150u8, 211u8, 229u8, 249u8, 128u8, 194u8, 246u8, 100u8, 142u8, 193u8, 184u8, 232u8, 81u8, 29u8, 17u8, 99u8, 91u8, 236u8, 85u8, 230u8, 226u8, 57u8, 115u8, 45u8, 170u8, 54u8, 213u8, ], ) } #[doc = "Advance a track onto its next logical state. Only used internally."] #[doc = ""] #[doc = "- `origin`: must be `Root`."] #[doc = "- `track`: the track to be advanced."] #[doc = ""] #[doc = "Action item for when there is now one fewer referendum in the deciding phase and the"] #[doc = "`DecidingCount` is not yet updated. This means that we should either:"] #[doc = "- begin deciding another referendum (and leave `DecidingCount` alone); or"] #[doc = "- decrement `DecidingCount`."] pub fn one_fewer_deciding( &self, track: ::core::primitive::u16, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Referenda", "one_fewer_deciding", types::OneFewerDeciding { track }, [ 15u8, 84u8, 79u8, 231u8, 21u8, 239u8, 244u8, 143u8, 183u8, 215u8, 181u8, 25u8, 225u8, 195u8, 95u8, 171u8, 17u8, 156u8, 182u8, 128u8, 111u8, 40u8, 151u8, 102u8, 196u8, 55u8, 36u8, 212u8, 89u8, 190u8, 131u8, 167u8, ], ) } #[doc = "Refund the Submission Deposit for a closed referendum back to the depositor."] #[doc = ""] #[doc = "- `origin`: must be `Signed` or `Root`."] #[doc = "- `index`: The index of a closed referendum whose Submission Deposit has not yet been"] #[doc = " refunded."] #[doc = ""] #[doc = "Emits `SubmissionDepositRefunded`."] pub fn refund_submission_deposit( &self, index: ::core::primitive::u32, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Referenda", "refund_submission_deposit", types::RefundSubmissionDeposit { index }, [ 20u8, 217u8, 115u8, 6u8, 1u8, 60u8, 54u8, 136u8, 35u8, 41u8, 38u8, 23u8, 85u8, 100u8, 141u8, 126u8, 30u8, 160u8, 61u8, 46u8, 134u8, 98u8, 82u8, 38u8, 211u8, 124u8, 208u8, 222u8, 210u8, 10u8, 155u8, 122u8, ], ) } #[doc = "Set or clear metadata of a referendum."] #[doc = ""] #[doc = "Parameters:"] #[doc = "- `origin`: Must be `Signed` by a creator of a referendum or by anyone to clear a"] #[doc = " metadata of a finished referendum."] #[doc = "- `index`: The index of a referendum to set or clear metadata for."] #[doc = "- `maybe_hash`: The hash of an on-chain stored preimage. `None` to clear a metadata."] pub fn set_metadata( &self, index: ::core::primitive::u32, maybe_hash: ::core::option::Option<::subxt::utils::H256>, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Referenda", "set_metadata", types::SetMetadata { index, maybe_hash }, [ 207u8, 29u8, 146u8, 233u8, 219u8, 205u8, 88u8, 118u8, 106u8, 61u8, 124u8, 101u8, 2u8, 41u8, 169u8, 70u8, 114u8, 189u8, 162u8, 118u8, 1u8, 108u8, 234u8, 98u8, 245u8, 245u8, 183u8, 126u8, 89u8, 13u8, 112u8, 88u8, ], ) } } } #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] pub type Event = runtime_types::pallet_referenda::pallet::Event; pub mod events { use super::runtime_types; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A referendum has been submitted."] pub struct Submitted { pub index: ::core::primitive::u32, pub track: ::core::primitive::u16, pub proposal: runtime_types::frame_support::traits::preimages::Bounded< runtime_types::polkadot_runtime::RuntimeCall, >, } impl ::subxt::events::StaticEvent for Submitted { const PALLET: &'static str = "Referenda"; const EVENT: &'static str = "Submitted"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "The decision deposit has been placed."] pub struct DecisionDepositPlaced { pub index: ::core::primitive::u32, pub who: ::subxt::utils::AccountId32, pub amount: ::core::primitive::u128, } impl ::subxt::events::StaticEvent for DecisionDepositPlaced { const PALLET: &'static str = "Referenda"; const EVENT: &'static str = "DecisionDepositPlaced"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "The decision deposit has been refunded."] pub struct DecisionDepositRefunded { pub index: ::core::primitive::u32, pub who: ::subxt::utils::AccountId32, pub amount: ::core::primitive::u128, } impl ::subxt::events::StaticEvent for DecisionDepositRefunded { const PALLET: &'static str = "Referenda"; const EVENT: &'static str = "DecisionDepositRefunded"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A deposit has been slashaed."] pub struct DepositSlashed { pub who: ::subxt::utils::AccountId32, pub amount: ::core::primitive::u128, } impl ::subxt::events::StaticEvent for DepositSlashed { const PALLET: &'static str = "Referenda"; const EVENT: &'static str = "DepositSlashed"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A referendum has moved into the deciding phase."] pub struct DecisionStarted { pub index: ::core::primitive::u32, pub track: ::core::primitive::u16, pub proposal: runtime_types::frame_support::traits::preimages::Bounded< runtime_types::polkadot_runtime::RuntimeCall, >, pub tally: runtime_types::pallet_conviction_voting::types::Tally<::core::primitive::u128>, } impl ::subxt::events::StaticEvent for DecisionStarted { const PALLET: &'static str = "Referenda"; const EVENT: &'static str = "DecisionStarted"; } #[derive( :: subxt :: ext :: codec :: CompactAs, :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ConfirmStarted { pub index: ::core::primitive::u32, } impl ::subxt::events::StaticEvent for ConfirmStarted { const PALLET: &'static str = "Referenda"; const EVENT: &'static str = "ConfirmStarted"; } #[derive( :: subxt :: ext :: codec :: CompactAs, :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ConfirmAborted { pub index: ::core::primitive::u32, } impl ::subxt::events::StaticEvent for ConfirmAborted { const PALLET: &'static str = "Referenda"; const EVENT: &'static str = "ConfirmAborted"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A referendum has ended its confirmation phase and is ready for approval."] pub struct Confirmed { pub index: ::core::primitive::u32, pub tally: runtime_types::pallet_conviction_voting::types::Tally<::core::primitive::u128>, } impl ::subxt::events::StaticEvent for Confirmed { const PALLET: &'static str = "Referenda"; const EVENT: &'static str = "Confirmed"; } #[derive( :: subxt :: ext :: codec :: CompactAs, :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A referendum has been approved and its proposal has been scheduled."] pub struct Approved { pub index: ::core::primitive::u32, } impl ::subxt::events::StaticEvent for Approved { const PALLET: &'static str = "Referenda"; const EVENT: &'static str = "Approved"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A proposal has been rejected by referendum."] pub struct Rejected { pub index: ::core::primitive::u32, pub tally: runtime_types::pallet_conviction_voting::types::Tally<::core::primitive::u128>, } impl ::subxt::events::StaticEvent for Rejected { const PALLET: &'static str = "Referenda"; const EVENT: &'static str = "Rejected"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A referendum has been timed out without being decided."] pub struct TimedOut { pub index: ::core::primitive::u32, pub tally: runtime_types::pallet_conviction_voting::types::Tally<::core::primitive::u128>, } impl ::subxt::events::StaticEvent for TimedOut { const PALLET: &'static str = "Referenda"; const EVENT: &'static str = "TimedOut"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A referendum has been cancelled."] pub struct Cancelled { pub index: ::core::primitive::u32, pub tally: runtime_types::pallet_conviction_voting::types::Tally<::core::primitive::u128>, } impl ::subxt::events::StaticEvent for Cancelled { const PALLET: &'static str = "Referenda"; const EVENT: &'static str = "Cancelled"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A referendum has been killed."] pub struct Killed { pub index: ::core::primitive::u32, pub tally: runtime_types::pallet_conviction_voting::types::Tally<::core::primitive::u128>, } impl ::subxt::events::StaticEvent for Killed { const PALLET: &'static str = "Referenda"; const EVENT: &'static str = "Killed"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "The submission deposit has been refunded."] pub struct SubmissionDepositRefunded { pub index: ::core::primitive::u32, pub who: ::subxt::utils::AccountId32, pub amount: ::core::primitive::u128, } impl ::subxt::events::StaticEvent for SubmissionDepositRefunded { const PALLET: &'static str = "Referenda"; const EVENT: &'static str = "SubmissionDepositRefunded"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Metadata for a referendum has been set."] pub struct MetadataSet { pub index: ::core::primitive::u32, pub hash: ::subxt::utils::H256, } impl ::subxt::events::StaticEvent for MetadataSet { const PALLET: &'static str = "Referenda"; const EVENT: &'static str = "MetadataSet"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Metadata for a referendum has been cleared."] pub struct MetadataCleared { pub index: ::core::primitive::u32, pub hash: ::subxt::utils::H256, } impl ::subxt::events::StaticEvent for MetadataCleared { const PALLET: &'static str = "Referenda"; const EVENT: &'static str = "MetadataCleared"; } } pub mod storage { use super::runtime_types; pub struct StorageApi; impl StorageApi { #[doc = " The next free referendum index, aka the number of referenda started so far."] pub fn referendum_count( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, ::core::primitive::u32, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), > { ::subxt::storage::address::Address::new_static( "Referenda", "ReferendumCount", vec![], [ 64u8, 145u8, 232u8, 153u8, 121u8, 87u8, 128u8, 253u8, 170u8, 192u8, 139u8, 18u8, 0u8, 33u8, 243u8, 11u8, 238u8, 222u8, 244u8, 5u8, 247u8, 198u8, 149u8, 31u8, 122u8, 208u8, 86u8, 179u8, 166u8, 167u8, 93u8, 67u8, ], ) } #[doc = " Information concerning any given referendum."] pub fn referendum_info_for( &self, _0: impl ::std::borrow::Borrow<::core::primitive::u32>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, runtime_types::pallet_referenda::types::ReferendumInfo< ::core::primitive::u16, runtime_types::polkadot_runtime::OriginCaller, ::core::primitive::u32, runtime_types::frame_support::traits::preimages::Bounded< runtime_types::polkadot_runtime::RuntimeCall, >, ::core::primitive::u128, runtime_types::pallet_conviction_voting::types::Tally< ::core::primitive::u128, >, ::subxt::utils::AccountId32, (::core::primitive::u32, ::core::primitive::u32), >, ::subxt::storage::address::Yes, (), ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( "Referenda", "ReferendumInfoFor", vec![::subxt::storage::address::make_static_storage_map_key( _0.borrow(), )], [ 4u8, 176u8, 130u8, 171u8, 233u8, 114u8, 73u8, 10u8, 99u8, 89u8, 34u8, 91u8, 255u8, 21u8, 145u8, 5u8, 228u8, 56u8, 203u8, 233u8, 60u8, 236u8, 58u8, 208u8, 163u8, 206u8, 122u8, 50u8, 208u8, 203u8, 220u8, 38u8, ], ) } #[doc = " Information concerning any given referendum."] pub fn referendum_info_for_root( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, runtime_types::pallet_referenda::types::ReferendumInfo< ::core::primitive::u16, runtime_types::polkadot_runtime::OriginCaller, ::core::primitive::u32, runtime_types::frame_support::traits::preimages::Bounded< runtime_types::polkadot_runtime::RuntimeCall, >, ::core::primitive::u128, runtime_types::pallet_conviction_voting::types::Tally< ::core::primitive::u128, >, ::subxt::utils::AccountId32, (::core::primitive::u32, ::core::primitive::u32), >, (), (), ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( "Referenda", "ReferendumInfoFor", Vec::new(), [ 4u8, 176u8, 130u8, 171u8, 233u8, 114u8, 73u8, 10u8, 99u8, 89u8, 34u8, 91u8, 255u8, 21u8, 145u8, 5u8, 228u8, 56u8, 203u8, 233u8, 60u8, 236u8, 58u8, 208u8, 163u8, 206u8, 122u8, 50u8, 208u8, 203u8, 220u8, 38u8, ], ) } #[doc = " The sorted list of referenda ready to be decided but not yet being decided, ordered by"] #[doc = " conviction-weighted approvals."] #[doc = ""] #[doc = " This should be empty if `DecidingCount` is less than `TrackInfo::max_deciding`."] pub fn track_queue( &self, _0: impl ::std::borrow::Borrow<::core::primitive::u16>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, runtime_types::bounded_collections::bounded_vec::BoundedVec<( ::core::primitive::u32, ::core::primitive::u128, )>, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( "Referenda", "TrackQueue", vec![::subxt::storage::address::make_static_storage_map_key( _0.borrow(), )], [ 125u8, 59u8, 111u8, 68u8, 27u8, 236u8, 82u8, 55u8, 83u8, 159u8, 105u8, 20u8, 241u8, 118u8, 58u8, 141u8, 103u8, 60u8, 246u8, 49u8, 121u8, 183u8, 7u8, 203u8, 225u8, 67u8, 132u8, 79u8, 150u8, 107u8, 71u8, 89u8, ], ) } #[doc = " The sorted list of referenda ready to be decided but not yet being decided, ordered by"] #[doc = " conviction-weighted approvals."] #[doc = ""] #[doc = " This should be empty if `DecidingCount` is less than `TrackInfo::max_deciding`."] pub fn track_queue_root( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, runtime_types::bounded_collections::bounded_vec::BoundedVec<( ::core::primitive::u32, ::core::primitive::u128, )>, (), ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( "Referenda", "TrackQueue", Vec::new(), [ 125u8, 59u8, 111u8, 68u8, 27u8, 236u8, 82u8, 55u8, 83u8, 159u8, 105u8, 20u8, 241u8, 118u8, 58u8, 141u8, 103u8, 60u8, 246u8, 49u8, 121u8, 183u8, 7u8, 203u8, 225u8, 67u8, 132u8, 79u8, 150u8, 107u8, 71u8, 89u8, ], ) } #[doc = " The number of referenda being decided currently."] pub fn deciding_count( &self, _0: impl ::std::borrow::Borrow<::core::primitive::u16>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, ::core::primitive::u32, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( "Referenda", "DecidingCount", vec![::subxt::storage::address::make_static_storage_map_key( _0.borrow(), )], [ 203u8, 89u8, 158u8, 179u8, 194u8, 82u8, 248u8, 162u8, 93u8, 140u8, 146u8, 51u8, 110u8, 232u8, 51u8, 1u8, 128u8, 212u8, 199u8, 14u8, 182u8, 103u8, 47u8, 252u8, 126u8, 108u8, 166u8, 69u8, 252u8, 179u8, 126u8, 245u8, ], ) } #[doc = " The number of referenda being decided currently."] pub fn deciding_count_root( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, ::core::primitive::u32, (), ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( "Referenda", "DecidingCount", Vec::new(), [ 203u8, 89u8, 158u8, 179u8, 194u8, 82u8, 248u8, 162u8, 93u8, 140u8, 146u8, 51u8, 110u8, 232u8, 51u8, 1u8, 128u8, 212u8, 199u8, 14u8, 182u8, 103u8, 47u8, 252u8, 126u8, 108u8, 166u8, 69u8, 252u8, 179u8, 126u8, 245u8, ], ) } #[doc = " The metadata is a general information concerning the referendum."] #[doc = " The `PreimageHash` refers to the preimage of the `Preimages` provider which can be a JSON"] #[doc = " dump or IPFS hash of a JSON file."] #[doc = ""] #[doc = " Consider a garbage collection for a metadata of finished referendums to `unrequest` (remove)"] #[doc = " large preimages."] pub fn metadata_of( &self, _0: impl ::std::borrow::Borrow<::core::primitive::u32>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, ::subxt::utils::H256, ::subxt::storage::address::Yes, (), ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( "Referenda", "MetadataOf", vec![::subxt::storage::address::make_static_storage_map_key( _0.borrow(), )], [ 159u8, 250u8, 56u8, 189u8, 247u8, 165u8, 206u8, 166u8, 91u8, 139u8, 124u8, 164u8, 25u8, 246u8, 199u8, 36u8, 159u8, 56u8, 227u8, 136u8, 4u8, 45u8, 193u8, 72u8, 200u8, 164u8, 39u8, 207u8, 224u8, 124u8, 191u8, 110u8, ], ) } #[doc = " The metadata is a general information concerning the referendum."] #[doc = " The `PreimageHash` refers to the preimage of the `Preimages` provider which can be a JSON"] #[doc = " dump or IPFS hash of a JSON file."] #[doc = ""] #[doc = " Consider a garbage collection for a metadata of finished referendums to `unrequest` (remove)"] #[doc = " large preimages."] pub fn metadata_of_root( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, ::subxt::utils::H256, (), (), ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( "Referenda", "MetadataOf", Vec::new(), [ 159u8, 250u8, 56u8, 189u8, 247u8, 165u8, 206u8, 166u8, 91u8, 139u8, 124u8, 164u8, 25u8, 246u8, 199u8, 36u8, 159u8, 56u8, 227u8, 136u8, 4u8, 45u8, 193u8, 72u8, 200u8, 164u8, 39u8, 207u8, 224u8, 124u8, 191u8, 110u8, ], ) } } } pub mod constants { use super::runtime_types; pub struct ConstantsApi; impl ConstantsApi { #[doc = " The minimum amount to be used as a deposit for a public referendum proposal."] pub fn submission_deposit( &self, ) -> ::subxt::constants::Address<::core::primitive::u128> { ::subxt::constants::Address::new_static( "Referenda", "SubmissionDeposit", [ 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8, 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, 136u8, 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, 148u8, 156u8, ], ) } #[doc = " Maximum size of the referendum queue for a single track."] pub fn max_queued(&self) -> ::subxt::constants::Address<::core::primitive::u32> { ::subxt::constants::Address::new_static( "Referenda", "MaxQueued", [ 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, 145u8, ], ) } #[doc = " The number of blocks after submission that a referendum must begin being decided by."] #[doc = " Once this passes, then anyone may cancel the referendum."] pub fn undeciding_timeout( &self, ) -> ::subxt::constants::Address<::core::primitive::u32> { ::subxt::constants::Address::new_static( "Referenda", "UndecidingTimeout", [ 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, 145u8, ], ) } #[doc = " Quantization level for the referendum wakeup scheduler. A higher number will result in"] #[doc = " fewer storage reads/writes needed for smaller voters, but also result in delays to the"] #[doc = " automatic referendum status changes. Explicit servicing instructions are unaffected."] pub fn alarm_interval( &self, ) -> ::subxt::constants::Address<::core::primitive::u32> { ::subxt::constants::Address::new_static( "Referenda", "AlarmInterval", [ 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, 145u8, ], ) } #[doc = " Information concerning the different referendum tracks."] pub fn tracks( &self, ) -> ::subxt::constants::Address< ::std::vec::Vec<( ::core::primitive::u16, runtime_types::pallet_referenda::types::TrackInfo< ::core::primitive::u128, ::core::primitive::u32, >, )>, > { ::subxt::constants::Address::new_static( "Referenda", "Tracks", [ 230u8, 179u8, 170u8, 9u8, 42u8, 168u8, 158u8, 174u8, 177u8, 159u8, 93u8, 152u8, 63u8, 111u8, 23u8, 80u8, 133u8, 232u8, 101u8, 2u8, 206u8, 230u8, 248u8, 62u8, 145u8, 15u8, 147u8, 251u8, 196u8, 182u8, 95u8, 33u8, ], ) } } } } pub mod whitelist { use super::root_mod; use super::runtime_types; #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] pub type Error = runtime_types::pallet_whitelist::pallet::Error; #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] pub type Call = runtime_types::pallet_whitelist::pallet::Call; pub mod calls { use super::root_mod; use super::runtime_types; type DispatchError = runtime_types::sp_runtime::DispatchError; pub mod types { use super::runtime_types; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct WhitelistCall { pub call_hash: ::subxt::utils::H256, } impl ::subxt::blocks::StaticExtrinsic for WhitelistCall { const PALLET: &'static str = "Whitelist"; const CALL: &'static str = "whitelist_call"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct RemoveWhitelistedCall { pub call_hash: ::subxt::utils::H256, } impl ::subxt::blocks::StaticExtrinsic for RemoveWhitelistedCall { const PALLET: &'static str = "Whitelist"; const CALL: &'static str = "remove_whitelisted_call"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct DispatchWhitelistedCall { pub call_hash: ::subxt::utils::H256, pub call_encoded_len: ::core::primitive::u32, pub call_weight_witness: runtime_types::sp_weights::weight_v2::Weight, } impl ::subxt::blocks::StaticExtrinsic for DispatchWhitelistedCall { const PALLET: &'static str = "Whitelist"; const CALL: &'static str = "dispatch_whitelisted_call"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct DispatchWhitelistedCallWithPreimage { pub call: ::std::boxed::Box, } impl ::subxt::blocks::StaticExtrinsic for DispatchWhitelistedCallWithPreimage { const PALLET: &'static str = "Whitelist"; const CALL: &'static str = "dispatch_whitelisted_call_with_preimage"; } } pub struct TransactionApi; impl TransactionApi { pub fn whitelist_call( &self, call_hash: ::subxt::utils::H256, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Whitelist", "whitelist_call", types::WhitelistCall { call_hash }, [ 121u8, 165u8, 49u8, 37u8, 127u8, 38u8, 126u8, 213u8, 115u8, 148u8, 122u8, 211u8, 24u8, 91u8, 147u8, 27u8, 87u8, 210u8, 84u8, 104u8, 229u8, 155u8, 133u8, 30u8, 34u8, 249u8, 107u8, 110u8, 31u8, 191u8, 128u8, 28u8, ], ) } pub fn remove_whitelisted_call( &self, call_hash: ::subxt::utils::H256, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Whitelist", "remove_whitelisted_call", types::RemoveWhitelistedCall { call_hash }, [ 30u8, 47u8, 13u8, 231u8, 165u8, 219u8, 246u8, 210u8, 11u8, 38u8, 219u8, 218u8, 151u8, 226u8, 101u8, 175u8, 0u8, 239u8, 35u8, 46u8, 156u8, 104u8, 145u8, 173u8, 105u8, 100u8, 21u8, 189u8, 123u8, 227u8, 196u8, 40u8, ], ) } pub fn dispatch_whitelisted_call( &self, call_hash: ::subxt::utils::H256, call_encoded_len: ::core::primitive::u32, call_weight_witness: runtime_types::sp_weights::weight_v2::Weight, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Whitelist", "dispatch_whitelisted_call", types::DispatchWhitelistedCall { call_hash, call_encoded_len, call_weight_witness, }, [ 10u8, 3u8, 194u8, 156u8, 211u8, 102u8, 188u8, 53u8, 232u8, 129u8, 199u8, 113u8, 190u8, 88u8, 202u8, 126u8, 210u8, 144u8, 185u8, 169u8, 233u8, 114u8, 237u8, 99u8, 244u8, 41u8, 35u8, 198u8, 93u8, 234u8, 200u8, 20u8, ], ) } pub fn dispatch_whitelisted_call_with_preimage( &self, call: runtime_types::polkadot_runtime::RuntimeCall, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Whitelist", "dispatch_whitelisted_call_with_preimage", types::DispatchWhitelistedCallWithPreimage { call: ::std::boxed::Box::new(call), }, [ 165u8, 145u8, 232u8, 196u8, 0u8, 120u8, 40u8, 224u8, 54u8, 58u8, 90u8, 6u8, 161u8, 131u8, 151u8, 169u8, 150u8, 219u8, 126u8, 151u8, 27u8, 96u8, 237u8, 148u8, 119u8, 137u8, 130u8, 144u8, 133u8, 223u8, 133u8, 86u8, ], ) } } } #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] pub type Event = runtime_types::pallet_whitelist::pallet::Event; pub mod events { use super::runtime_types; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct CallWhitelisted { pub call_hash: ::subxt::utils::H256, } impl ::subxt::events::StaticEvent for CallWhitelisted { const PALLET: &'static str = "Whitelist"; const EVENT: &'static str = "CallWhitelisted"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct WhitelistedCallRemoved { pub call_hash: ::subxt::utils::H256, } impl ::subxt::events::StaticEvent for WhitelistedCallRemoved { const PALLET: &'static str = "Whitelist"; const EVENT: &'static str = "WhitelistedCallRemoved"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct WhitelistedCallDispatched { pub call_hash: ::subxt::utils::H256, pub result: ::core::result::Result< runtime_types::frame_support::dispatch::PostDispatchInfo, runtime_types::sp_runtime::DispatchErrorWithPostInfo< runtime_types::frame_support::dispatch::PostDispatchInfo, >, >, } impl ::subxt::events::StaticEvent for WhitelistedCallDispatched { const PALLET: &'static str = "Whitelist"; const EVENT: &'static str = "WhitelistedCallDispatched"; } } pub mod storage { use super::runtime_types; pub struct StorageApi; impl StorageApi { pub fn whitelisted_call( &self, _0: impl ::std::borrow::Borrow<::subxt::utils::H256>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, (), ::subxt::storage::address::Yes, (), ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( "Whitelist", "WhitelistedCall", vec![::subxt::storage::address::make_static_storage_map_key( _0.borrow(), )], [ 82u8, 208u8, 214u8, 72u8, 225u8, 35u8, 51u8, 212u8, 25u8, 138u8, 30u8, 87u8, 54u8, 232u8, 72u8, 132u8, 4u8, 9u8, 28u8, 143u8, 251u8, 106u8, 167u8, 218u8, 130u8, 185u8, 253u8, 185u8, 113u8, 154u8, 202u8, 66u8, ], ) } pub fn whitelisted_call_root( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, (), (), (), ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( "Whitelist", "WhitelistedCall", Vec::new(), [ 82u8, 208u8, 214u8, 72u8, 225u8, 35u8, 51u8, 212u8, 25u8, 138u8, 30u8, 87u8, 54u8, 232u8, 72u8, 132u8, 4u8, 9u8, 28u8, 143u8, 251u8, 106u8, 167u8, 218u8, 130u8, 185u8, 253u8, 185u8, 113u8, 154u8, 202u8, 66u8, ], ) } } } } pub mod claims { use super::root_mod; use super::runtime_types; #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] pub type Error = runtime_types::polkadot_runtime_common::claims::pallet::Error; #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] pub type Call = runtime_types::polkadot_runtime_common::claims::pallet::Call; pub mod calls { use super::root_mod; use super::runtime_types; type DispatchError = runtime_types::sp_runtime::DispatchError; pub mod types { use super::runtime_types; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Claim { pub dest: ::subxt::utils::AccountId32, pub ethereum_signature: runtime_types::polkadot_runtime_common::claims::EcdsaSignature, } impl ::subxt::blocks::StaticExtrinsic for Claim { const PALLET: &'static str = "Claims"; const CALL: &'static str = "claim"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct MintClaim { pub who: runtime_types::polkadot_runtime_common::claims::EthereumAddress, pub value: ::core::primitive::u128, pub vesting_schedule: ::core::option::Option<( ::core::primitive::u128, ::core::primitive::u128, ::core::primitive::u32, )>, pub statement: ::core::option::Option< runtime_types::polkadot_runtime_common::claims::StatementKind, >, } impl ::subxt::blocks::StaticExtrinsic for MintClaim { const PALLET: &'static str = "Claims"; const CALL: &'static str = "mint_claim"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ClaimAttest { pub dest: ::subxt::utils::AccountId32, pub ethereum_signature: runtime_types::polkadot_runtime_common::claims::EcdsaSignature, pub statement: ::std::vec::Vec<::core::primitive::u8>, } impl ::subxt::blocks::StaticExtrinsic for ClaimAttest { const PALLET: &'static str = "Claims"; const CALL: &'static str = "claim_attest"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Attest { pub statement: ::std::vec::Vec<::core::primitive::u8>, } impl ::subxt::blocks::StaticExtrinsic for Attest { const PALLET: &'static str = "Claims"; const CALL: &'static str = "attest"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct MoveClaim { pub old: runtime_types::polkadot_runtime_common::claims::EthereumAddress, pub new: runtime_types::polkadot_runtime_common::claims::EthereumAddress, pub maybe_preclaim: ::core::option::Option<::subxt::utils::AccountId32>, } impl ::subxt::blocks::StaticExtrinsic for MoveClaim { const PALLET: &'static str = "Claims"; const CALL: &'static str = "move_claim"; } } pub struct TransactionApi; impl TransactionApi { #[doc = "Make a claim to collect your DOTs."] #[doc = ""] #[doc = "The dispatch origin for this call must be _None_."] #[doc = ""] #[doc = "Unsigned Validation:"] #[doc = "A call to claim is deemed valid if the signature provided matches"] #[doc = "the expected signed message of:"] #[doc = ""] #[doc = "> Ethereum Signed Message:"] #[doc = "> (configured prefix string)(address)"] #[doc = ""] #[doc = "and `address` matches the `dest` account."] #[doc = ""] #[doc = "Parameters:"] #[doc = "- `dest`: The destination account to payout the claim."] #[doc = "- `ethereum_signature`: The signature of an ethereum signed message"] #[doc = " matching the format described above."] #[doc = ""] #[doc = ""] #[doc = "The weight of this call is invariant over the input parameters."] #[doc = "Weight includes logic to validate unsigned `claim` call."] #[doc = ""] #[doc = "Total Complexity: O(1)"] #[doc = ""] pub fn claim( &self, dest: ::subxt::utils::AccountId32, ethereum_signature : runtime_types :: polkadot_runtime_common :: claims :: EcdsaSignature, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Claims", "claim", types::Claim { dest, ethereum_signature, }, [ 83u8, 166u8, 82u8, 164u8, 185u8, 116u8, 35u8, 29u8, 60u8, 10u8, 92u8, 61u8, 212u8, 63u8, 236u8, 107u8, 19u8, 110u8, 100u8, 58u8, 154u8, 143u8, 188u8, 153u8, 34u8, 237u8, 60u8, 140u8, 194u8, 135u8, 227u8, 8u8, ], ) } #[doc = "Mint a new claim to collect DOTs."] #[doc = ""] #[doc = "The dispatch origin for this call must be _Root_."] #[doc = ""] #[doc = "Parameters:"] #[doc = "- `who`: The Ethereum address allowed to collect this claim."] #[doc = "- `value`: The number of DOTs that will be claimed."] #[doc = "- `vesting_schedule`: An optional vesting schedule for these DOTs."] #[doc = ""] #[doc = ""] #[doc = "The weight of this call is invariant over the input parameters."] #[doc = "We assume worst case that both vesting and statement is being inserted."] #[doc = ""] #[doc = "Total Complexity: O(1)"] #[doc = ""] pub fn mint_claim( &self, who: runtime_types::polkadot_runtime_common::claims::EthereumAddress, value: ::core::primitive::u128, vesting_schedule: ::core::option::Option<( ::core::primitive::u128, ::core::primitive::u128, ::core::primitive::u32, )>, statement: ::core::option::Option< runtime_types::polkadot_runtime_common::claims::StatementKind, >, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Claims", "mint_claim", types::MintClaim { who, value, vesting_schedule, statement, }, [ 254u8, 174u8, 70u8, 0u8, 70u8, 79u8, 195u8, 176u8, 196u8, 52u8, 204u8, 219u8, 158u8, 73u8, 158u8, 126u8, 14u8, 37u8, 45u8, 29u8, 249u8, 246u8, 3u8, 40u8, 72u8, 111u8, 213u8, 180u8, 201u8, 139u8, 175u8, 194u8, ], ) } #[doc = "Make a claim to collect your DOTs by signing a statement."] #[doc = ""] #[doc = "The dispatch origin for this call must be _None_."] #[doc = ""] #[doc = "Unsigned Validation:"] #[doc = "A call to `claim_attest` is deemed valid if the signature provided matches"] #[doc = "the expected signed message of:"] #[doc = ""] #[doc = "> Ethereum Signed Message:"] #[doc = "> (configured prefix string)(address)(statement)"] #[doc = ""] #[doc = "and `address` matches the `dest` account; the `statement` must match that which is"] #[doc = "expected according to your purchase arrangement."] #[doc = ""] #[doc = "Parameters:"] #[doc = "- `dest`: The destination account to payout the claim."] #[doc = "- `ethereum_signature`: The signature of an ethereum signed message"] #[doc = " matching the format described above."] #[doc = "- `statement`: The identity of the statement which is being attested to in the signature."] #[doc = ""] #[doc = ""] #[doc = "The weight of this call is invariant over the input parameters."] #[doc = "Weight includes logic to validate unsigned `claim_attest` call."] #[doc = ""] #[doc = "Total Complexity: O(1)"] #[doc = ""] pub fn claim_attest( &self, dest: ::subxt::utils::AccountId32, ethereum_signature : runtime_types :: polkadot_runtime_common :: claims :: EcdsaSignature, statement: ::std::vec::Vec<::core::primitive::u8>, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Claims", "claim_attest", types::ClaimAttest { dest, ethereum_signature, statement, }, [ 18u8, 79u8, 43u8, 28u8, 88u8, 151u8, 46u8, 15u8, 28u8, 146u8, 210u8, 235u8, 158u8, 64u8, 236u8, 204u8, 89u8, 174u8, 250u8, 114u8, 45u8, 3u8, 17u8, 129u8, 147u8, 69u8, 232u8, 181u8, 71u8, 98u8, 5u8, 244u8, ], ) } #[doc = "Attest to a statement, needed to finalize the claims process."] #[doc = ""] #[doc = "WARNING: Insecure unless your chain includes `PrevalidateAttests` as a `SignedExtension`."] #[doc = ""] #[doc = "Unsigned Validation:"] #[doc = "A call to attest is deemed valid if the sender has a `Preclaim` registered"] #[doc = "and provides a `statement` which is expected for the account."] #[doc = ""] #[doc = "Parameters:"] #[doc = "- `statement`: The identity of the statement which is being attested to in the signature."] #[doc = ""] #[doc = ""] #[doc = "The weight of this call is invariant over the input parameters."] #[doc = "Weight includes logic to do pre-validation on `attest` call."] #[doc = ""] #[doc = "Total Complexity: O(1)"] #[doc = ""] pub fn attest( &self, statement: ::std::vec::Vec<::core::primitive::u8>, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Claims", "attest", types::Attest { statement }, [ 254u8, 56u8, 140u8, 129u8, 227u8, 155u8, 161u8, 107u8, 167u8, 148u8, 167u8, 104u8, 139u8, 174u8, 204u8, 124u8, 126u8, 198u8, 165u8, 61u8, 83u8, 197u8, 242u8, 13u8, 70u8, 153u8, 14u8, 62u8, 214u8, 129u8, 64u8, 93u8, ], ) } pub fn move_claim( &self, old: runtime_types::polkadot_runtime_common::claims::EthereumAddress, new: runtime_types::polkadot_runtime_common::claims::EthereumAddress, maybe_preclaim: ::core::option::Option<::subxt::utils::AccountId32>, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Claims", "move_claim", types::MoveClaim { old, new, maybe_preclaim, }, [ 82u8, 63u8, 8u8, 178u8, 205u8, 16u8, 182u8, 216u8, 80u8, 254u8, 48u8, 10u8, 52u8, 159u8, 198u8, 116u8, 164u8, 108u8, 209u8, 193u8, 60u8, 139u8, 241u8, 135u8, 92u8, 103u8, 241u8, 52u8, 103u8, 52u8, 243u8, 0u8, ], ) } } } #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] pub type Event = runtime_types::polkadot_runtime_common::claims::pallet::Event; pub mod events { use super::runtime_types; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Someone claimed some DOTs."] pub struct Claimed { pub who: ::subxt::utils::AccountId32, pub ethereum_address: runtime_types::polkadot_runtime_common::claims::EthereumAddress, pub amount: ::core::primitive::u128, } impl ::subxt::events::StaticEvent for Claimed { const PALLET: &'static str = "Claims"; const EVENT: &'static str = "Claimed"; } } pub mod storage { use super::runtime_types; pub struct StorageApi; impl StorageApi { pub fn claims( &self, _0: impl ::std::borrow::Borrow< runtime_types::polkadot_runtime_common::claims::EthereumAddress, >, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, ::core::primitive::u128, ::subxt::storage::address::Yes, (), ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( "Claims", "Claims", vec![::subxt::storage::address::make_static_storage_map_key( _0.borrow(), )], [ 148u8, 115u8, 159u8, 169u8, 36u8, 116u8, 15u8, 108u8, 57u8, 195u8, 226u8, 180u8, 187u8, 112u8, 114u8, 63u8, 3u8, 205u8, 113u8, 141u8, 149u8, 149u8, 118u8, 246u8, 45u8, 245u8, 148u8, 108u8, 22u8, 184u8, 152u8, 132u8, ], ) } pub fn claims_root( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, ::core::primitive::u128, (), (), ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( "Claims", "Claims", Vec::new(), [ 148u8, 115u8, 159u8, 169u8, 36u8, 116u8, 15u8, 108u8, 57u8, 195u8, 226u8, 180u8, 187u8, 112u8, 114u8, 63u8, 3u8, 205u8, 113u8, 141u8, 149u8, 149u8, 118u8, 246u8, 45u8, 245u8, 148u8, 108u8, 22u8, 184u8, 152u8, 132u8, ], ) } pub fn total( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, ::core::primitive::u128, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), > { ::subxt::storage::address::Address::new_static( "Claims", "Total", vec![], [ 188u8, 31u8, 219u8, 189u8, 49u8, 213u8, 203u8, 89u8, 125u8, 58u8, 232u8, 159u8, 131u8, 155u8, 166u8, 113u8, 99u8, 24u8, 40u8, 242u8, 118u8, 183u8, 108u8, 230u8, 135u8, 150u8, 84u8, 86u8, 118u8, 91u8, 168u8, 62u8, ], ) } #[doc = " Vesting schedule for a claim."] #[doc = " First balance is the total amount that should be held for vesting."] #[doc = " Second balance is how much should be unlocked per block."] #[doc = " The block number is when the vesting should start."] pub fn vesting( &self, _0: impl ::std::borrow::Borrow< runtime_types::polkadot_runtime_common::claims::EthereumAddress, >, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, ( ::core::primitive::u128, ::core::primitive::u128, ::core::primitive::u32, ), ::subxt::storage::address::Yes, (), ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( "Claims", "Vesting", vec![::subxt::storage::address::make_static_storage_map_key( _0.borrow(), )], [ 16u8, 107u8, 69u8, 162u8, 210u8, 200u8, 188u8, 185u8, 69u8, 90u8, 209u8, 238u8, 167u8, 173u8, 193u8, 118u8, 58u8, 17u8, 68u8, 136u8, 163u8, 207u8, 34u8, 226u8, 174u8, 199u8, 127u8, 4u8, 225u8, 198u8, 143u8, 180u8, ], ) } #[doc = " Vesting schedule for a claim."] #[doc = " First balance is the total amount that should be held for vesting."] #[doc = " Second balance is how much should be unlocked per block."] #[doc = " The block number is when the vesting should start."] pub fn vesting_root( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, ( ::core::primitive::u128, ::core::primitive::u128, ::core::primitive::u32, ), (), (), ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( "Claims", "Vesting", Vec::new(), [ 16u8, 107u8, 69u8, 162u8, 210u8, 200u8, 188u8, 185u8, 69u8, 90u8, 209u8, 238u8, 167u8, 173u8, 193u8, 118u8, 58u8, 17u8, 68u8, 136u8, 163u8, 207u8, 34u8, 226u8, 174u8, 199u8, 127u8, 4u8, 225u8, 198u8, 143u8, 180u8, ], ) } #[doc = " The statement kind that must be signed, if any."] pub fn signing( &self, _0: impl ::std::borrow::Borrow< runtime_types::polkadot_runtime_common::claims::EthereumAddress, >, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, runtime_types::polkadot_runtime_common::claims::StatementKind, ::subxt::storage::address::Yes, (), ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( "Claims", "Signing", vec![::subxt::storage::address::make_static_storage_map_key( _0.borrow(), )], [ 111u8, 90u8, 178u8, 121u8, 241u8, 28u8, 169u8, 231u8, 61u8, 189u8, 113u8, 207u8, 26u8, 153u8, 189u8, 15u8, 192u8, 25u8, 22u8, 22u8, 124u8, 26u8, 191u8, 39u8, 130u8, 164u8, 34u8, 4u8, 44u8, 91u8, 82u8, 186u8, ], ) } #[doc = " The statement kind that must be signed, if any."] pub fn signing_root( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, runtime_types::polkadot_runtime_common::claims::StatementKind, (), (), ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( "Claims", "Signing", Vec::new(), [ 111u8, 90u8, 178u8, 121u8, 241u8, 28u8, 169u8, 231u8, 61u8, 189u8, 113u8, 207u8, 26u8, 153u8, 189u8, 15u8, 192u8, 25u8, 22u8, 22u8, 124u8, 26u8, 191u8, 39u8, 130u8, 164u8, 34u8, 4u8, 44u8, 91u8, 82u8, 186u8, ], ) } #[doc = " Pre-claimed Ethereum accounts, by the Account ID that they are claimed to."] pub fn preclaims( &self, _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, runtime_types::polkadot_runtime_common::claims::EthereumAddress, ::subxt::storage::address::Yes, (), ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( "Claims", "Preclaims", vec![::subxt::storage::address::make_static_storage_map_key( _0.borrow(), )], [ 154u8, 182u8, 178u8, 76u8, 81u8, 63u8, 87u8, 179u8, 243u8, 104u8, 206u8, 75u8, 114u8, 83u8, 16u8, 233u8, 22u8, 132u8, 207u8, 36u8, 151u8, 179u8, 94u8, 208u8, 210u8, 202u8, 149u8, 248u8, 9u8, 49u8, 140u8, 94u8, ], ) } #[doc = " Pre-claimed Ethereum accounts, by the Account ID that they are claimed to."] pub fn preclaims_root( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, runtime_types::polkadot_runtime_common::claims::EthereumAddress, (), (), ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( "Claims", "Preclaims", Vec::new(), [ 154u8, 182u8, 178u8, 76u8, 81u8, 63u8, 87u8, 179u8, 243u8, 104u8, 206u8, 75u8, 114u8, 83u8, 16u8, 233u8, 22u8, 132u8, 207u8, 36u8, 151u8, 179u8, 94u8, 208u8, 210u8, 202u8, 149u8, 248u8, 9u8, 49u8, 140u8, 94u8, ], ) } } } pub mod constants { use super::runtime_types; pub struct ConstantsApi; impl ConstantsApi { pub fn prefix( &self, ) -> ::subxt::constants::Address<::std::vec::Vec<::core::primitive::u8>> { ::subxt::constants::Address::new_static( "Claims", "Prefix", [ 64u8, 190u8, 244u8, 122u8, 87u8, 182u8, 217u8, 16u8, 55u8, 223u8, 128u8, 6u8, 112u8, 30u8, 236u8, 222u8, 153u8, 53u8, 247u8, 102u8, 196u8, 31u8, 6u8, 186u8, 251u8, 209u8, 114u8, 125u8, 213u8, 222u8, 240u8, 8u8, ], ) } } } } pub mod vesting { use super::root_mod; use super::runtime_types; #[doc = "Error for the vesting pallet."] pub type Error = runtime_types::pallet_vesting::pallet::Error; #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] pub type Call = runtime_types::pallet_vesting::pallet::Call; pub mod calls { use super::root_mod; use super::runtime_types; type DispatchError = runtime_types::sp_runtime::DispatchError; pub mod types { use super::runtime_types; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Vest; impl ::subxt::blocks::StaticExtrinsic for Vest { const PALLET: &'static str = "Vesting"; const CALL: &'static str = "vest"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct VestOther { pub target: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, } impl ::subxt::blocks::StaticExtrinsic for VestOther { const PALLET: &'static str = "Vesting"; const CALL: &'static str = "vest_other"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct VestedTransfer { pub target: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, pub schedule: runtime_types::pallet_vesting::vesting_info::VestingInfo< ::core::primitive::u128, ::core::primitive::u32, >, } impl ::subxt::blocks::StaticExtrinsic for VestedTransfer { const PALLET: &'static str = "Vesting"; const CALL: &'static str = "vested_transfer"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ForceVestedTransfer { pub source: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, pub target: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, pub schedule: runtime_types::pallet_vesting::vesting_info::VestingInfo< ::core::primitive::u128, ::core::primitive::u32, >, } impl ::subxt::blocks::StaticExtrinsic for ForceVestedTransfer { const PALLET: &'static str = "Vesting"; const CALL: &'static str = "force_vested_transfer"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct MergeSchedules { pub schedule1_index: ::core::primitive::u32, pub schedule2_index: ::core::primitive::u32, } impl ::subxt::blocks::StaticExtrinsic for MergeSchedules { const PALLET: &'static str = "Vesting"; const CALL: &'static str = "merge_schedules"; } } pub struct TransactionApi; impl TransactionApi { #[doc = "Unlock any vested funds of the sender account."] #[doc = ""] #[doc = "The dispatch origin for this call must be _Signed_ and the sender must have funds still"] #[doc = "locked under this pallet."] #[doc = ""] #[doc = "Emits either `VestingCompleted` or `VestingUpdated`."] #[doc = ""] #[doc = "## Complexity"] #[doc = "- `O(1)`."] pub fn vest(&self) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Vesting", "vest", types::Vest {}, [ 149u8, 89u8, 178u8, 148u8, 127u8, 127u8, 155u8, 60u8, 114u8, 126u8, 204u8, 123u8, 166u8, 70u8, 104u8, 208u8, 186u8, 69u8, 139u8, 181u8, 151u8, 154u8, 235u8, 161u8, 191u8, 35u8, 111u8, 60u8, 21u8, 165u8, 44u8, 122u8, ], ) } #[doc = "Unlock any vested funds of a `target` account."] #[doc = ""] #[doc = "The dispatch origin for this call must be _Signed_."] #[doc = ""] #[doc = "- `target`: The account whose vested funds should be unlocked. Must have funds still"] #[doc = "locked under this pallet."] #[doc = ""] #[doc = "Emits either `VestingCompleted` or `VestingUpdated`."] #[doc = ""] #[doc = "## Complexity"] #[doc = "- `O(1)`."] pub fn vest_other( &self, target: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Vesting", "vest_other", types::VestOther { target }, [ 110u8, 68u8, 150u8, 149u8, 107u8, 90u8, 168u8, 177u8, 73u8, 114u8, 18u8, 18u8, 5u8, 75u8, 23u8, 149u8, 236u8, 123u8, 221u8, 240u8, 139u8, 238u8, 208u8, 0u8, 218u8, 209u8, 53u8, 193u8, 180u8, 245u8, 48u8, 229u8, ], ) } #[doc = "Create a vested transfer."] #[doc = ""] #[doc = "The dispatch origin for this call must be _Signed_."] #[doc = ""] #[doc = "- `target`: The account receiving the vested funds."] #[doc = "- `schedule`: The vesting schedule attached to the transfer."] #[doc = ""] #[doc = "Emits `VestingCreated`."] #[doc = ""] #[doc = "NOTE: This will unlock all schedules through the current block."] #[doc = ""] #[doc = "## Complexity"] #[doc = "- `O(1)`."] pub fn vested_transfer( &self, target: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, schedule: runtime_types::pallet_vesting::vesting_info::VestingInfo< ::core::primitive::u128, ::core::primitive::u32, >, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Vesting", "vested_transfer", types::VestedTransfer { target, schedule }, [ 6u8, 238u8, 73u8, 156u8, 65u8, 39u8, 135u8, 115u8, 26u8, 55u8, 41u8, 171u8, 227u8, 86u8, 94u8, 157u8, 199u8, 151u8, 133u8, 253u8, 173u8, 59u8, 140u8, 239u8, 130u8, 248u8, 250u8, 253u8, 240u8, 30u8, 73u8, 217u8, ], ) } #[doc = "Force a vested transfer."] #[doc = ""] #[doc = "The dispatch origin for this call must be _Root_."] #[doc = ""] #[doc = "- `source`: The account whose funds should be transferred."] #[doc = "- `target`: The account that should be transferred the vested funds."] #[doc = "- `schedule`: The vesting schedule attached to the transfer."] #[doc = ""] #[doc = "Emits `VestingCreated`."] #[doc = ""] #[doc = "NOTE: This will unlock all schedules through the current block."] #[doc = ""] #[doc = "## Complexity"] #[doc = "- `O(1)`."] pub fn force_vested_transfer( &self, source: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, target: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, schedule: runtime_types::pallet_vesting::vesting_info::VestingInfo< ::core::primitive::u128, ::core::primitive::u32, >, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Vesting", "force_vested_transfer", types::ForceVestedTransfer { source, target, schedule, }, [ 69u8, 51u8, 162u8, 29u8, 192u8, 237u8, 135u8, 167u8, 176u8, 48u8, 33u8, 216u8, 195u8, 213u8, 176u8, 49u8, 202u8, 238u8, 197u8, 210u8, 8u8, 35u8, 77u8, 69u8, 30u8, 15u8, 145u8, 19u8, 28u8, 193u8, 197u8, 16u8, ], ) } #[doc = "Merge two vesting schedules together, creating a new vesting schedule that unlocks over"] #[doc = "the highest possible start and end blocks. If both schedules have already started the"] #[doc = "current block will be used as the schedule start; with the caveat that if one schedule"] #[doc = "is finished by the current block, the other will be treated as the new merged schedule,"] #[doc = "unmodified."] #[doc = ""] #[doc = "NOTE: If `schedule1_index == schedule2_index` this is a no-op."] #[doc = "NOTE: This will unlock all schedules through the current block prior to merging."] #[doc = "NOTE: If both schedules have ended by the current block, no new schedule will be created"] #[doc = "and both will be removed."] #[doc = ""] #[doc = "Merged schedule attributes:"] #[doc = "- `starting_block`: `MAX(schedule1.starting_block, scheduled2.starting_block,"] #[doc = " current_block)`."] #[doc = "- `ending_block`: `MAX(schedule1.ending_block, schedule2.ending_block)`."] #[doc = "- `locked`: `schedule1.locked_at(current_block) + schedule2.locked_at(current_block)`."] #[doc = ""] #[doc = "The dispatch origin for this call must be _Signed_."] #[doc = ""] #[doc = "- `schedule1_index`: index of the first schedule to merge."] #[doc = "- `schedule2_index`: index of the second schedule to merge."] pub fn merge_schedules( &self, schedule1_index: ::core::primitive::u32, schedule2_index: ::core::primitive::u32, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Vesting", "merge_schedules", types::MergeSchedules { schedule1_index, schedule2_index, }, [ 135u8, 49u8, 137u8, 222u8, 134u8, 94u8, 197u8, 182u8, 171u8, 57u8, 161u8, 6u8, 185u8, 130u8, 45u8, 30u8, 79u8, 77u8, 157u8, 118u8, 35u8, 249u8, 39u8, 10u8, 103u8, 160u8, 198u8, 75u8, 26u8, 50u8, 64u8, 26u8, ], ) } } } #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] pub type Event = runtime_types::pallet_vesting::pallet::Event; pub mod events { use super::runtime_types; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "The amount vested has been updated. This could indicate a change in funds available."] #[doc = "The balance given is the amount which is left unvested (and thus locked)."] pub struct VestingUpdated { pub account: ::subxt::utils::AccountId32, pub unvested: ::core::primitive::u128, } impl ::subxt::events::StaticEvent for VestingUpdated { const PALLET: &'static str = "Vesting"; const EVENT: &'static str = "VestingUpdated"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "An \\[account\\] has become fully vested."] pub struct VestingCompleted { pub account: ::subxt::utils::AccountId32, } impl ::subxt::events::StaticEvent for VestingCompleted { const PALLET: &'static str = "Vesting"; const EVENT: &'static str = "VestingCompleted"; } } pub mod storage { use super::runtime_types; pub struct StorageApi; impl StorageApi { #[doc = " Information regarding the vesting of a given account."] pub fn vesting( &self, _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, runtime_types::bounded_collections::bounded_vec::BoundedVec< runtime_types::pallet_vesting::vesting_info::VestingInfo< ::core::primitive::u128, ::core::primitive::u32, >, >, ::subxt::storage::address::Yes, (), ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( "Vesting", "Vesting", vec![::subxt::storage::address::make_static_storage_map_key( _0.borrow(), )], [ 10u8, 98u8, 73u8, 242u8, 215u8, 4u8, 45u8, 227u8, 73u8, 203u8, 33u8, 105u8, 228u8, 247u8, 125u8, 99u8, 98u8, 38u8, 176u8, 123u8, 233u8, 219u8, 174u8, 118u8, 49u8, 172u8, 58u8, 162u8, 186u8, 110u8, 147u8, 122u8, ], ) } #[doc = " Information regarding the vesting of a given account."] pub fn vesting_root( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, runtime_types::bounded_collections::bounded_vec::BoundedVec< runtime_types::pallet_vesting::vesting_info::VestingInfo< ::core::primitive::u128, ::core::primitive::u32, >, >, (), (), ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( "Vesting", "Vesting", Vec::new(), [ 10u8, 98u8, 73u8, 242u8, 215u8, 4u8, 45u8, 227u8, 73u8, 203u8, 33u8, 105u8, 228u8, 247u8, 125u8, 99u8, 98u8, 38u8, 176u8, 123u8, 233u8, 219u8, 174u8, 118u8, 49u8, 172u8, 58u8, 162u8, 186u8, 110u8, 147u8, 122u8, ], ) } #[doc = " Storage version of the pallet."] #[doc = ""] #[doc = " New networks start with latest version, as determined by the genesis build."] pub fn storage_version( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, runtime_types::pallet_vesting::Releases, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), > { ::subxt::storage::address::Address::new_static( "Vesting", "StorageVersion", vec![], [ 230u8, 137u8, 180u8, 133u8, 142u8, 124u8, 231u8, 234u8, 223u8, 10u8, 154u8, 98u8, 158u8, 253u8, 228u8, 80u8, 5u8, 9u8, 91u8, 210u8, 252u8, 9u8, 13u8, 195u8, 193u8, 164u8, 129u8, 113u8, 128u8, 218u8, 8u8, 40u8, ], ) } } } pub mod constants { use super::runtime_types; pub struct ConstantsApi; impl ConstantsApi { #[doc = " The minimum amount transferred to call `vested_transfer`."] pub fn min_vested_transfer( &self, ) -> ::subxt::constants::Address<::core::primitive::u128> { ::subxt::constants::Address::new_static( "Vesting", "MinVestedTransfer", [ 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8, 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, 136u8, 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, 148u8, 156u8, ], ) } pub fn max_vesting_schedules( &self, ) -> ::subxt::constants::Address<::core::primitive::u32> { ::subxt::constants::Address::new_static( "Vesting", "MaxVestingSchedules", [ 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, 145u8, ], ) } } } } pub mod utility { use super::root_mod; use super::runtime_types; #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] pub type Error = runtime_types::pallet_utility::pallet::Error; #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] pub type Call = runtime_types::pallet_utility::pallet::Call; pub mod calls { use super::root_mod; use super::runtime_types; type DispatchError = runtime_types::sp_runtime::DispatchError; pub mod types { use super::runtime_types; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Batch { pub calls: ::std::vec::Vec, } impl ::subxt::blocks::StaticExtrinsic for Batch { const PALLET: &'static str = "Utility"; const CALL: &'static str = "batch"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct AsDerivative { pub index: ::core::primitive::u16, pub call: ::std::boxed::Box, } impl ::subxt::blocks::StaticExtrinsic for AsDerivative { const PALLET: &'static str = "Utility"; const CALL: &'static str = "as_derivative"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct BatchAll { pub calls: ::std::vec::Vec, } impl ::subxt::blocks::StaticExtrinsic for BatchAll { const PALLET: &'static str = "Utility"; const CALL: &'static str = "batch_all"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct DispatchAs { pub as_origin: ::std::boxed::Box, pub call: ::std::boxed::Box, } impl ::subxt::blocks::StaticExtrinsic for DispatchAs { const PALLET: &'static str = "Utility"; const CALL: &'static str = "dispatch_as"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ForceBatch { pub calls: ::std::vec::Vec, } impl ::subxt::blocks::StaticExtrinsic for ForceBatch { const PALLET: &'static str = "Utility"; const CALL: &'static str = "force_batch"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct WithWeight { pub call: ::std::boxed::Box, pub weight: runtime_types::sp_weights::weight_v2::Weight, } impl ::subxt::blocks::StaticExtrinsic for WithWeight { const PALLET: &'static str = "Utility"; const CALL: &'static str = "with_weight"; } } pub struct TransactionApi; impl TransactionApi { #[doc = "Send a batch of dispatch calls."] #[doc = ""] #[doc = "May be called from any origin except `None`."] #[doc = ""] #[doc = "- `calls`: The calls to be dispatched from the same origin. The number of call must not"] #[doc = " exceed the constant: `batched_calls_limit` (available in constant metadata)."] #[doc = ""] #[doc = "If origin is root then the calls are dispatched without checking origin filter. (This"] #[doc = "includes bypassing `frame_system::Config::BaseCallFilter`)."] #[doc = ""] #[doc = "## Complexity"] #[doc = "- O(C) where C is the number of calls to be batched."] #[doc = ""] #[doc = "This will return `Ok` in all circumstances. To determine the success of the batch, an"] #[doc = "event is deposited. If a call failed and the batch was interrupted, then the"] #[doc = "`BatchInterrupted` event is deposited, along with the number of successful calls made"] #[doc = "and the error of the failed call. If all were successful, then the `BatchCompleted`"] #[doc = "event is deposited."] pub fn batch( &self, calls: ::std::vec::Vec, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Utility", "batch", types::Batch { calls }, [ 206u8, 63u8, 238u8, 29u8, 17u8, 76u8, 147u8, 42u8, 207u8, 102u8, 254u8, 73u8, 66u8, 84u8, 193u8, 60u8, 123u8, 228u8, 202u8, 16u8, 252u8, 116u8, 254u8, 116u8, 224u8, 201u8, 68u8, 81u8, 83u8, 52u8, 140u8, 162u8, ], ) } #[doc = "Send a call through an indexed pseudonym of the sender."] #[doc = ""] #[doc = "Filter from origin are passed along. The call will be dispatched with an origin which"] #[doc = "use the same filter as the origin of this call."] #[doc = ""] #[doc = "NOTE: If you need to ensure that any account-based filtering is not honored (i.e."] #[doc = "because you expect `proxy` to have been used prior in the call stack and you do not want"] #[doc = "the call restrictions to apply to any sub-accounts), then use `as_multi_threshold_1`"] #[doc = "in the Multisig pallet instead."] #[doc = ""] #[doc = "NOTE: Prior to version *12, this was called `as_limited_sub`."] #[doc = ""] #[doc = "The dispatch origin for this call must be _Signed_."] pub fn as_derivative( &self, index: ::core::primitive::u16, call: runtime_types::polkadot_runtime::RuntimeCall, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Utility", "as_derivative", types::AsDerivative { index, call: ::std::boxed::Box::new(call), }, [ 198u8, 130u8, 194u8, 65u8, 34u8, 1u8, 245u8, 50u8, 14u8, 19u8, 185u8, 163u8, 167u8, 10u8, 3u8, 14u8, 86u8, 151u8, 235u8, 254u8, 187u8, 119u8, 238u8, 234u8, 66u8, 171u8, 240u8, 29u8, 2u8, 12u8, 128u8, 232u8, ], ) } #[doc = "Send a batch of dispatch calls and atomically execute them."] #[doc = "The whole transaction will rollback and fail if any of the calls failed."] #[doc = ""] #[doc = "May be called from any origin except `None`."] #[doc = ""] #[doc = "- `calls`: The calls to be dispatched from the same origin. The number of call must not"] #[doc = " exceed the constant: `batched_calls_limit` (available in constant metadata)."] #[doc = ""] #[doc = "If origin is root then the calls are dispatched without checking origin filter. (This"] #[doc = "includes bypassing `frame_system::Config::BaseCallFilter`)."] #[doc = ""] #[doc = "## Complexity"] #[doc = "- O(C) where C is the number of calls to be batched."] pub fn batch_all( &self, calls: ::std::vec::Vec, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Utility", "batch_all", types::BatchAll { calls }, [ 111u8, 232u8, 44u8, 90u8, 148u8, 170u8, 209u8, 220u8, 197u8, 196u8, 75u8, 202u8, 206u8, 19u8, 42u8, 90u8, 76u8, 85u8, 28u8, 113u8, 182u8, 62u8, 194u8, 52u8, 54u8, 14u8, 250u8, 178u8, 121u8, 132u8, 52u8, 244u8, ], ) } #[doc = "Dispatches a function call with a provided origin."] #[doc = ""] #[doc = "The dispatch origin for this call must be _Root_."] #[doc = ""] #[doc = "## Complexity"] #[doc = "- O(1)."] pub fn dispatch_as( &self, as_origin: runtime_types::polkadot_runtime::OriginCaller, call: runtime_types::polkadot_runtime::RuntimeCall, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Utility", "dispatch_as", types::DispatchAs { as_origin: ::std::boxed::Box::new(as_origin), call: ::std::boxed::Box::new(call), }, [ 202u8, 82u8, 213u8, 197u8, 129u8, 136u8, 23u8, 223u8, 214u8, 54u8, 73u8, 126u8, 227u8, 240u8, 52u8, 222u8, 105u8, 46u8, 255u8, 66u8, 199u8, 200u8, 2u8, 226u8, 107u8, 98u8, 142u8, 44u8, 135u8, 220u8, 13u8, 62u8, ], ) } #[doc = "Send a batch of dispatch calls."] #[doc = "Unlike `batch`, it allows errors and won't interrupt."] #[doc = ""] #[doc = "May be called from any origin except `None`."] #[doc = ""] #[doc = "- `calls`: The calls to be dispatched from the same origin. The number of call must not"] #[doc = " exceed the constant: `batched_calls_limit` (available in constant metadata)."] #[doc = ""] #[doc = "If origin is root then the calls are dispatch without checking origin filter. (This"] #[doc = "includes bypassing `frame_system::Config::BaseCallFilter`)."] #[doc = ""] #[doc = "## Complexity"] #[doc = "- O(C) where C is the number of calls to be batched."] pub fn force_batch( &self, calls: ::std::vec::Vec, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Utility", "force_batch", types::ForceBatch { calls }, [ 5u8, 6u8, 194u8, 167u8, 95u8, 10u8, 18u8, 236u8, 102u8, 157u8, 249u8, 104u8, 170u8, 77u8, 215u8, 111u8, 95u8, 141u8, 65u8, 43u8, 227u8, 242u8, 24u8, 19u8, 241u8, 248u8, 191u8, 180u8, 157u8, 145u8, 140u8, 148u8, ], ) } #[doc = "Dispatch a function call with a specified weight."] #[doc = ""] #[doc = "This function does not check the weight of the call, and instead allows the"] #[doc = "Root origin to specify the weight of the call."] #[doc = ""] #[doc = "The dispatch origin for this call must be _Root_."] pub fn with_weight( &self, call: runtime_types::polkadot_runtime::RuntimeCall, weight: runtime_types::sp_weights::weight_v2::Weight, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Utility", "with_weight", types::WithWeight { call: ::std::boxed::Box::new(call), weight, }, [ 249u8, 241u8, 154u8, 18u8, 125u8, 189u8, 176u8, 39u8, 201u8, 244u8, 174u8, 187u8, 248u8, 48u8, 44u8, 144u8, 87u8, 67u8, 80u8, 108u8, 136u8, 181u8, 224u8, 45u8, 146u8, 9u8, 58u8, 132u8, 43u8, 222u8, 36u8, 20u8, ], ) } } } #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] pub type Event = runtime_types::pallet_utility::pallet::Event; pub mod events { use super::runtime_types; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Batch of dispatches did not complete fully. Index of first failing dispatch given, as"] #[doc = "well as the error."] pub struct BatchInterrupted { pub index: ::core::primitive::u32, pub error: runtime_types::sp_runtime::DispatchError, } impl ::subxt::events::StaticEvent for BatchInterrupted { const PALLET: &'static str = "Utility"; const EVENT: &'static str = "BatchInterrupted"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Batch of dispatches completed fully with no error."] pub struct BatchCompleted; impl ::subxt::events::StaticEvent for BatchCompleted { const PALLET: &'static str = "Utility"; const EVENT: &'static str = "BatchCompleted"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Batch of dispatches completed but has errors."] pub struct BatchCompletedWithErrors; impl ::subxt::events::StaticEvent for BatchCompletedWithErrors { const PALLET: &'static str = "Utility"; const EVENT: &'static str = "BatchCompletedWithErrors"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A single item within a Batch of dispatches has completed with no error."] pub struct ItemCompleted; impl ::subxt::events::StaticEvent for ItemCompleted { const PALLET: &'static str = "Utility"; const EVENT: &'static str = "ItemCompleted"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A single item within a Batch of dispatches has completed with error."] pub struct ItemFailed { pub error: runtime_types::sp_runtime::DispatchError, } impl ::subxt::events::StaticEvent for ItemFailed { const PALLET: &'static str = "Utility"; const EVENT: &'static str = "ItemFailed"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A call was dispatched."] pub struct DispatchedAs { pub result: ::core::result::Result<(), runtime_types::sp_runtime::DispatchError>, } impl ::subxt::events::StaticEvent for DispatchedAs { const PALLET: &'static str = "Utility"; const EVENT: &'static str = "DispatchedAs"; } } pub mod constants { use super::runtime_types; pub struct ConstantsApi; impl ConstantsApi { #[doc = " The limit on the number of batched calls."] pub fn batched_calls_limit( &self, ) -> ::subxt::constants::Address<::core::primitive::u32> { ::subxt::constants::Address::new_static( "Utility", "batched_calls_limit", [ 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, 145u8, ], ) } } } } pub mod identity { use super::root_mod; use super::runtime_types; #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] pub type Error = runtime_types::pallet_identity::pallet::Error; #[doc = "Identity pallet declaration."] pub type Call = runtime_types::pallet_identity::pallet::Call; pub mod calls { use super::root_mod; use super::runtime_types; type DispatchError = runtime_types::sp_runtime::DispatchError; pub mod types { use super::runtime_types; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct AddRegistrar { pub account: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, } impl ::subxt::blocks::StaticExtrinsic for AddRegistrar { const PALLET: &'static str = "Identity"; const CALL: &'static str = "add_registrar"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SetIdentity { pub info: ::std::boxed::Box, } impl ::subxt::blocks::StaticExtrinsic for SetIdentity { const PALLET: &'static str = "Identity"; const CALL: &'static str = "set_identity"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SetSubs { pub subs: ::std::vec::Vec<( ::subxt::utils::AccountId32, runtime_types::pallet_identity::types::Data, )>, } impl ::subxt::blocks::StaticExtrinsic for SetSubs { const PALLET: &'static str = "Identity"; const CALL: &'static str = "set_subs"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ClearIdentity; impl ::subxt::blocks::StaticExtrinsic for ClearIdentity { const PALLET: &'static str = "Identity"; const CALL: &'static str = "clear_identity"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct RequestJudgement { #[codec(compact)] pub reg_index: ::core::primitive::u32, #[codec(compact)] pub max_fee: ::core::primitive::u128, } impl ::subxt::blocks::StaticExtrinsic for RequestJudgement { const PALLET: &'static str = "Identity"; const CALL: &'static str = "request_judgement"; } #[derive( :: subxt :: ext :: codec :: CompactAs, :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct CancelRequest { pub reg_index: ::core::primitive::u32, } impl ::subxt::blocks::StaticExtrinsic for CancelRequest { const PALLET: &'static str = "Identity"; const CALL: &'static str = "cancel_request"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SetFee { #[codec(compact)] pub index: ::core::primitive::u32, #[codec(compact)] pub fee: ::core::primitive::u128, } impl ::subxt::blocks::StaticExtrinsic for SetFee { const PALLET: &'static str = "Identity"; const CALL: &'static str = "set_fee"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SetAccountId { #[codec(compact)] pub index: ::core::primitive::u32, pub new: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, } impl ::subxt::blocks::StaticExtrinsic for SetAccountId { const PALLET: &'static str = "Identity"; const CALL: &'static str = "set_account_id"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SetFields { #[codec(compact)] pub index: ::core::primitive::u32, pub fields: runtime_types::pallet_identity::types::BitFlags< runtime_types::pallet_identity::types::IdentityField, >, } impl ::subxt::blocks::StaticExtrinsic for SetFields { const PALLET: &'static str = "Identity"; const CALL: &'static str = "set_fields"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ProvideJudgement { #[codec(compact)] pub reg_index: ::core::primitive::u32, pub target: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, pub judgement: runtime_types::pallet_identity::types::Judgement<::core::primitive::u128>, pub identity: ::subxt::utils::H256, } impl ::subxt::blocks::StaticExtrinsic for ProvideJudgement { const PALLET: &'static str = "Identity"; const CALL: &'static str = "provide_judgement"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct KillIdentity { pub target: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, } impl ::subxt::blocks::StaticExtrinsic for KillIdentity { const PALLET: &'static str = "Identity"; const CALL: &'static str = "kill_identity"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct AddSub { pub sub: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, pub data: runtime_types::pallet_identity::types::Data, } impl ::subxt::blocks::StaticExtrinsic for AddSub { const PALLET: &'static str = "Identity"; const CALL: &'static str = "add_sub"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct RenameSub { pub sub: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, pub data: runtime_types::pallet_identity::types::Data, } impl ::subxt::blocks::StaticExtrinsic for RenameSub { const PALLET: &'static str = "Identity"; const CALL: &'static str = "rename_sub"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct RemoveSub { pub sub: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, } impl ::subxt::blocks::StaticExtrinsic for RemoveSub { const PALLET: &'static str = "Identity"; const CALL: &'static str = "remove_sub"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct QuitSub; impl ::subxt::blocks::StaticExtrinsic for QuitSub { const PALLET: &'static str = "Identity"; const CALL: &'static str = "quit_sub"; } } pub struct TransactionApi; impl TransactionApi { #[doc = "Add a registrar to the system."] #[doc = ""] #[doc = "The dispatch origin for this call must be `T::RegistrarOrigin`."] #[doc = ""] #[doc = "- `account`: the account of the registrar."] #[doc = ""] #[doc = "Emits `RegistrarAdded` if successful."] #[doc = ""] #[doc = "## Complexity"] #[doc = "- `O(R)` where `R` registrar-count (governance-bounded and code-bounded)."] pub fn add_registrar( &self, account: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Identity", "add_registrar", types::AddRegistrar { account }, [ 151u8, 254u8, 116u8, 168u8, 124u8, 236u8, 0u8, 15u8, 49u8, 117u8, 191u8, 181u8, 254u8, 152u8, 163u8, 69u8, 139u8, 157u8, 38u8, 231u8, 87u8, 4u8, 227u8, 0u8, 79u8, 188u8, 41u8, 31u8, 120u8, 28u8, 214u8, 31u8, ], ) } #[doc = "Set an account's identity information and reserve the appropriate deposit."] #[doc = ""] #[doc = "If the account already has identity information, the deposit is taken as part payment"] #[doc = "for the new deposit."] #[doc = ""] #[doc = "The dispatch origin for this call must be _Signed_."] #[doc = ""] #[doc = "- `info`: The identity information."] #[doc = ""] #[doc = "Emits `IdentitySet` if successful."] #[doc = ""] #[doc = "## Complexity"] #[doc = "- `O(X + X' + R)`"] #[doc = " - where `X` additional-field-count (deposit-bounded and code-bounded)"] #[doc = " - where `R` judgements-count (registrar-count-bounded)"] pub fn set_identity( &self, info: runtime_types::pallet_identity::types::IdentityInfo, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Identity", "set_identity", types::SetIdentity { info: ::std::boxed::Box::new(info), }, [ 205u8, 7u8, 54u8, 226u8, 123u8, 160u8, 173u8, 25u8, 179u8, 93u8, 172u8, 37u8, 222u8, 143u8, 209u8, 1u8, 230u8, 32u8, 84u8, 80u8, 110u8, 195u8, 87u8, 185u8, 27u8, 31u8, 185u8, 161u8, 154u8, 166u8, 177u8, 190u8, ], ) } #[doc = "Set the sub-accounts of the sender."] #[doc = ""] #[doc = "Payment: Any aggregate balance reserved by previous `set_subs` calls will be returned"] #[doc = "and an amount `SubAccountDeposit` will be reserved for each item in `subs`."] #[doc = ""] #[doc = "The dispatch origin for this call must be _Signed_ and the sender must have a registered"] #[doc = "identity."] #[doc = ""] #[doc = "- `subs`: The identity's (new) sub-accounts."] #[doc = ""] #[doc = "## Complexity"] #[doc = "- `O(P + S)`"] #[doc = " - where `P` old-subs-count (hard- and deposit-bounded)."] #[doc = " - where `S` subs-count (hard- and deposit-bounded)."] pub fn set_subs( &self, subs: ::std::vec::Vec<( ::subxt::utils::AccountId32, runtime_types::pallet_identity::types::Data, )>, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Identity", "set_subs", types::SetSubs { subs }, [ 76u8, 193u8, 92u8, 120u8, 9u8, 99u8, 102u8, 220u8, 177u8, 29u8, 65u8, 14u8, 250u8, 101u8, 118u8, 59u8, 251u8, 153u8, 136u8, 141u8, 89u8, 250u8, 74u8, 254u8, 111u8, 220u8, 132u8, 228u8, 248u8, 132u8, 177u8, 128u8, ], ) } #[doc = "Clear an account's identity info and all sub-accounts and return all deposits."] #[doc = ""] #[doc = "Payment: All reserved balances on the account are returned."] #[doc = ""] #[doc = "The dispatch origin for this call must be _Signed_ and the sender must have a registered"] #[doc = "identity."] #[doc = ""] #[doc = "Emits `IdentityCleared` if successful."] #[doc = ""] #[doc = "## Complexity"] #[doc = "- `O(R + S + X)`"] #[doc = " - where `R` registrar-count (governance-bounded)."] #[doc = " - where `S` subs-count (hard- and deposit-bounded)."] #[doc = " - where `X` additional-field-count (deposit-bounded and code-bounded)."] pub fn clear_identity(&self) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Identity", "clear_identity", types::ClearIdentity {}, [ 43u8, 115u8, 205u8, 44u8, 24u8, 130u8, 220u8, 69u8, 247u8, 176u8, 200u8, 175u8, 67u8, 183u8, 36u8, 200u8, 162u8, 132u8, 242u8, 25u8, 21u8, 106u8, 197u8, 219u8, 141u8, 51u8, 204u8, 13u8, 191u8, 201u8, 31u8, 31u8, ], ) } #[doc = "Request a judgement from a registrar."] #[doc = ""] #[doc = "Payment: At most `max_fee` will be reserved for payment to the registrar if judgement"] #[doc = "given."] #[doc = ""] #[doc = "The dispatch origin for this call must be _Signed_ and the sender must have a"] #[doc = "registered identity."] #[doc = ""] #[doc = "- `reg_index`: The index of the registrar whose judgement is requested."] #[doc = "- `max_fee`: The maximum fee that may be paid. This should just be auto-populated as:"] #[doc = ""] #[doc = "```nocompile"] #[doc = "Self::registrars().get(reg_index).unwrap().fee"] #[doc = "```"] #[doc = ""] #[doc = "Emits `JudgementRequested` if successful."] #[doc = ""] #[doc = "## Complexity"] #[doc = "- `O(R + X)`."] #[doc = " - where `R` registrar-count (governance-bounded)."] #[doc = " - where `X` additional-field-count (deposit-bounded and code-bounded)."] pub fn request_judgement( &self, reg_index: ::core::primitive::u32, max_fee: ::core::primitive::u128, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Identity", "request_judgement", types::RequestJudgement { reg_index, max_fee }, [ 83u8, 85u8, 55u8, 184u8, 14u8, 54u8, 49u8, 212u8, 26u8, 148u8, 33u8, 147u8, 182u8, 54u8, 180u8, 12u8, 61u8, 179u8, 216u8, 157u8, 103u8, 52u8, 120u8, 252u8, 83u8, 203u8, 144u8, 65u8, 15u8, 3u8, 21u8, 33u8, ], ) } #[doc = "Cancel a previous request."] #[doc = ""] #[doc = "Payment: A previously reserved deposit is returned on success."] #[doc = ""] #[doc = "The dispatch origin for this call must be _Signed_ and the sender must have a"] #[doc = "registered identity."] #[doc = ""] #[doc = "- `reg_index`: The index of the registrar whose judgement is no longer requested."] #[doc = ""] #[doc = "Emits `JudgementUnrequested` if successful."] #[doc = ""] #[doc = "## Complexity"] #[doc = "- `O(R + X)`."] #[doc = " - where `R` registrar-count (governance-bounded)."] #[doc = " - where `X` additional-field-count (deposit-bounded and code-bounded)."] pub fn cancel_request( &self, reg_index: ::core::primitive::u32, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Identity", "cancel_request", types::CancelRequest { reg_index }, [ 81u8, 14u8, 133u8, 219u8, 43u8, 84u8, 163u8, 208u8, 21u8, 185u8, 75u8, 117u8, 126u8, 33u8, 210u8, 106u8, 122u8, 210u8, 35u8, 207u8, 104u8, 206u8, 41u8, 117u8, 247u8, 108u8, 56u8, 23u8, 123u8, 169u8, 169u8, 61u8, ], ) } #[doc = "Set the fee required for a judgement to be requested from a registrar."] #[doc = ""] #[doc = "The dispatch origin for this call must be _Signed_ and the sender must be the account"] #[doc = "of the registrar whose index is `index`."] #[doc = ""] #[doc = "- `index`: the index of the registrar whose fee is to be set."] #[doc = "- `fee`: the new fee."] #[doc = ""] #[doc = "## Complexity"] #[doc = "- `O(R)`."] #[doc = " - where `R` registrar-count (governance-bounded)."] pub fn set_fee( &self, index: ::core::primitive::u32, fee: ::core::primitive::u128, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Identity", "set_fee", types::SetFee { index, fee }, [ 131u8, 20u8, 17u8, 127u8, 180u8, 65u8, 225u8, 144u8, 193u8, 60u8, 131u8, 241u8, 30u8, 149u8, 8u8, 76u8, 29u8, 52u8, 102u8, 108u8, 127u8, 130u8, 70u8, 18u8, 94u8, 145u8, 179u8, 109u8, 252u8, 219u8, 58u8, 163u8, ], ) } #[doc = "Change the account associated with a registrar."] #[doc = ""] #[doc = "The dispatch origin for this call must be _Signed_ and the sender must be the account"] #[doc = "of the registrar whose index is `index`."] #[doc = ""] #[doc = "- `index`: the index of the registrar whose fee is to be set."] #[doc = "- `new`: the new account ID."] #[doc = ""] #[doc = "## Complexity"] #[doc = "- `O(R)`."] #[doc = " - where `R` registrar-count (governance-bounded)."] pub fn set_account_id( &self, index: ::core::primitive::u32, new: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Identity", "set_account_id", types::SetAccountId { index, new }, [ 7u8, 72u8, 255u8, 4u8, 182u8, 226u8, 22u8, 255u8, 181u8, 64u8, 165u8, 247u8, 102u8, 190u8, 42u8, 236u8, 196u8, 201u8, 26u8, 6u8, 91u8, 113u8, 223u8, 237u8, 250u8, 182u8, 40u8, 184u8, 45u8, 255u8, 64u8, 137u8, ], ) } #[doc = "Set the field information for a registrar."] #[doc = ""] #[doc = "The dispatch origin for this call must be _Signed_ and the sender must be the account"] #[doc = "of the registrar whose index is `index`."] #[doc = ""] #[doc = "- `index`: the index of the registrar whose fee is to be set."] #[doc = "- `fields`: the fields that the registrar concerns themselves with."] #[doc = ""] #[doc = "## Complexity"] #[doc = "- `O(R)`."] #[doc = " - where `R` registrar-count (governance-bounded)."] pub fn set_fields( &self, index: ::core::primitive::u32, fields: runtime_types::pallet_identity::types::BitFlags< runtime_types::pallet_identity::types::IdentityField, >, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Identity", "set_fields", types::SetFields { index, fields }, [ 25u8, 129u8, 119u8, 232u8, 18u8, 32u8, 77u8, 23u8, 185u8, 56u8, 32u8, 199u8, 74u8, 174u8, 104u8, 203u8, 171u8, 253u8, 19u8, 225u8, 101u8, 239u8, 14u8, 242u8, 157u8, 51u8, 203u8, 74u8, 1u8, 65u8, 165u8, 205u8, ], ) } #[doc = "Provide a judgement for an account's identity."] #[doc = ""] #[doc = "The dispatch origin for this call must be _Signed_ and the sender must be the account"] #[doc = "of the registrar whose index is `reg_index`."] #[doc = ""] #[doc = "- `reg_index`: the index of the registrar whose judgement is being made."] #[doc = "- `target`: the account whose identity the judgement is upon. This must be an account"] #[doc = " with a registered identity."] #[doc = "- `judgement`: the judgement of the registrar of index `reg_index` about `target`."] #[doc = "- `identity`: The hash of the [`IdentityInfo`] for that the judgement is provided."] #[doc = ""] #[doc = "Emits `JudgementGiven` if successful."] #[doc = ""] #[doc = "## Complexity"] #[doc = "- `O(R + X)`."] #[doc = " - where `R` registrar-count (governance-bounded)."] #[doc = " - where `X` additional-field-count (deposit-bounded and code-bounded)."] pub fn provide_judgement( &self, reg_index: ::core::primitive::u32, target: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, judgement: runtime_types::pallet_identity::types::Judgement< ::core::primitive::u128, >, identity: ::subxt::utils::H256, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Identity", "provide_judgement", types::ProvideJudgement { reg_index, target, judgement, identity, }, [ 84u8, 65u8, 119u8, 246u8, 52u8, 71u8, 44u8, 213u8, 173u8, 21u8, 198u8, 91u8, 234u8, 186u8, 176u8, 168u8, 158u8, 232u8, 10u8, 230u8, 15u8, 34u8, 27u8, 241u8, 200u8, 58u8, 17u8, 112u8, 211u8, 88u8, 162u8, 228u8, ], ) } #[doc = "Remove an account's identity and sub-account information and slash the deposits."] #[doc = ""] #[doc = "Payment: Reserved balances from `set_subs` and `set_identity` are slashed and handled by"] #[doc = "`Slash`. Verification request deposits are not returned; they should be cancelled"] #[doc = "manually using `cancel_request`."] #[doc = ""] #[doc = "The dispatch origin for this call must match `T::ForceOrigin`."] #[doc = ""] #[doc = "- `target`: the account whose identity the judgement is upon. This must be an account"] #[doc = " with a registered identity."] #[doc = ""] #[doc = "Emits `IdentityKilled` if successful."] #[doc = ""] #[doc = "## Complexity"] #[doc = "- `O(R + S + X)`"] #[doc = " - where `R` registrar-count (governance-bounded)."] #[doc = " - where `S` subs-count (hard- and deposit-bounded)."] #[doc = " - where `X` additional-field-count (deposit-bounded and code-bounded)."] pub fn kill_identity( &self, target: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Identity", "kill_identity", types::KillIdentity { target }, [ 154u8, 203u8, 22u8, 126u8, 241u8, 51u8, 109u8, 221u8, 79u8, 203u8, 12u8, 113u8, 234u8, 162u8, 125u8, 39u8, 69u8, 105u8, 194u8, 7u8, 254u8, 196u8, 66u8, 104u8, 15u8, 41u8, 164u8, 11u8, 55u8, 98u8, 160u8, 175u8, ], ) } #[doc = "Add the given account to the sender's subs."] #[doc = ""] #[doc = "Payment: Balance reserved by a previous `set_subs` call for one sub will be repatriated"] #[doc = "to the sender."] #[doc = ""] #[doc = "The dispatch origin for this call must be _Signed_ and the sender must have a registered"] #[doc = "sub identity of `sub`."] pub fn add_sub( &self, sub: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, data: runtime_types::pallet_identity::types::Data, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Identity", "add_sub", types::AddSub { sub, data }, [ 157u8, 159u8, 194u8, 77u8, 105u8, 29u8, 238u8, 209u8, 145u8, 64u8, 24u8, 130u8, 102u8, 41u8, 124u8, 74u8, 190u8, 29u8, 142u8, 123u8, 131u8, 126u8, 58u8, 129u8, 46u8, 54u8, 160u8, 17u8, 178u8, 72u8, 15u8, 145u8, ], ) } #[doc = "Alter the associated name of the given sub-account."] #[doc = ""] #[doc = "The dispatch origin for this call must be _Signed_ and the sender must have a registered"] #[doc = "sub identity of `sub`."] pub fn rename_sub( &self, sub: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, data: runtime_types::pallet_identity::types::Data, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Identity", "rename_sub", types::RenameSub { sub, data }, [ 100u8, 82u8, 99u8, 104u8, 4u8, 129u8, 166u8, 128u8, 187u8, 80u8, 73u8, 57u8, 167u8, 74u8, 155u8, 125u8, 171u8, 229u8, 201u8, 246u8, 145u8, 190u8, 222u8, 1u8, 129u8, 139u8, 205u8, 96u8, 186u8, 221u8, 15u8, 35u8, ], ) } #[doc = "Remove the given account from the sender's subs."] #[doc = ""] #[doc = "Payment: Balance reserved by a previous `set_subs` call for one sub will be repatriated"] #[doc = "to the sender."] #[doc = ""] #[doc = "The dispatch origin for this call must be _Signed_ and the sender must have a registered"] #[doc = "sub identity of `sub`."] pub fn remove_sub( &self, sub: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Identity", "remove_sub", types::RemoveSub { sub }, [ 209u8, 217u8, 16u8, 99u8, 152u8, 250u8, 236u8, 172u8, 139u8, 229u8, 246u8, 165u8, 188u8, 59u8, 66u8, 31u8, 105u8, 237u8, 51u8, 218u8, 177u8, 108u8, 101u8, 115u8, 190u8, 105u8, 208u8, 241u8, 133u8, 224u8, 2u8, 38u8, ], ) } #[doc = "Remove the sender as a sub-account."] #[doc = ""] #[doc = "Payment: Balance reserved by a previous `set_subs` call for one sub will be repatriated"] #[doc = "to the sender (*not* the original depositor)."] #[doc = ""] #[doc = "The dispatch origin for this call must be _Signed_ and the sender must have a registered"] #[doc = "super-identity."] #[doc = ""] #[doc = "NOTE: This should not normally be used, but is provided in the case that the non-"] #[doc = "controller of an account is maliciously registered as a sub-account."] pub fn quit_sub(&self) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Identity", "quit_sub", types::QuitSub {}, [ 147u8, 131u8, 175u8, 171u8, 187u8, 201u8, 240u8, 26u8, 146u8, 224u8, 74u8, 166u8, 242u8, 193u8, 204u8, 247u8, 168u8, 93u8, 18u8, 32u8, 27u8, 208u8, 149u8, 146u8, 179u8, 172u8, 75u8, 112u8, 84u8, 141u8, 233u8, 223u8, ], ) } } } #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] pub type Event = runtime_types::pallet_identity::pallet::Event; pub mod events { use super::runtime_types; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A name was set or reset (which will remove all judgements)."] pub struct IdentitySet { pub who: ::subxt::utils::AccountId32, } impl ::subxt::events::StaticEvent for IdentitySet { const PALLET: &'static str = "Identity"; const EVENT: &'static str = "IdentitySet"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A name was cleared, and the given balance returned."] pub struct IdentityCleared { pub who: ::subxt::utils::AccountId32, pub deposit: ::core::primitive::u128, } impl ::subxt::events::StaticEvent for IdentityCleared { const PALLET: &'static str = "Identity"; const EVENT: &'static str = "IdentityCleared"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A name was removed and the given balance slashed."] pub struct IdentityKilled { pub who: ::subxt::utils::AccountId32, pub deposit: ::core::primitive::u128, } impl ::subxt::events::StaticEvent for IdentityKilled { const PALLET: &'static str = "Identity"; const EVENT: &'static str = "IdentityKilled"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A judgement was asked from a registrar."] pub struct JudgementRequested { pub who: ::subxt::utils::AccountId32, pub registrar_index: ::core::primitive::u32, } impl ::subxt::events::StaticEvent for JudgementRequested { const PALLET: &'static str = "Identity"; const EVENT: &'static str = "JudgementRequested"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A judgement request was retracted."] pub struct JudgementUnrequested { pub who: ::subxt::utils::AccountId32, pub registrar_index: ::core::primitive::u32, } impl ::subxt::events::StaticEvent for JudgementUnrequested { const PALLET: &'static str = "Identity"; const EVENT: &'static str = "JudgementUnrequested"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A judgement was given by a registrar."] pub struct JudgementGiven { pub target: ::subxt::utils::AccountId32, pub registrar_index: ::core::primitive::u32, } impl ::subxt::events::StaticEvent for JudgementGiven { const PALLET: &'static str = "Identity"; const EVENT: &'static str = "JudgementGiven"; } #[derive( :: subxt :: ext :: codec :: CompactAs, :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A registrar was added."] pub struct RegistrarAdded { pub registrar_index: ::core::primitive::u32, } impl ::subxt::events::StaticEvent for RegistrarAdded { const PALLET: &'static str = "Identity"; const EVENT: &'static str = "RegistrarAdded"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A sub-identity was added to an identity and the deposit paid."] pub struct SubIdentityAdded { pub sub: ::subxt::utils::AccountId32, pub main: ::subxt::utils::AccountId32, pub deposit: ::core::primitive::u128, } impl ::subxt::events::StaticEvent for SubIdentityAdded { const PALLET: &'static str = "Identity"; const EVENT: &'static str = "SubIdentityAdded"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A sub-identity was removed from an identity and the deposit freed."] pub struct SubIdentityRemoved { pub sub: ::subxt::utils::AccountId32, pub main: ::subxt::utils::AccountId32, pub deposit: ::core::primitive::u128, } impl ::subxt::events::StaticEvent for SubIdentityRemoved { const PALLET: &'static str = "Identity"; const EVENT: &'static str = "SubIdentityRemoved"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A sub-identity was cleared, and the given deposit repatriated from the"] #[doc = "main identity account to the sub-identity account."] pub struct SubIdentityRevoked { pub sub: ::subxt::utils::AccountId32, pub main: ::subxt::utils::AccountId32, pub deposit: ::core::primitive::u128, } impl ::subxt::events::StaticEvent for SubIdentityRevoked { const PALLET: &'static str = "Identity"; const EVENT: &'static str = "SubIdentityRevoked"; } } pub mod storage { use super::runtime_types; pub struct StorageApi; impl StorageApi { #[doc = " Information that is pertinent to identify the entity behind an account."] #[doc = ""] #[doc = " TWOX-NOTE: OK ― `AccountId` is a secure hash."] pub fn identity_of( &self, _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, runtime_types::pallet_identity::types::Registration<::core::primitive::u128>, ::subxt::storage::address::Yes, (), ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( "Identity", "IdentityOf", vec![::subxt::storage::address::make_static_storage_map_key( _0.borrow(), )], [ 239u8, 55u8, 5u8, 97u8, 227u8, 243u8, 118u8, 13u8, 98u8, 30u8, 141u8, 84u8, 170u8, 90u8, 166u8, 116u8, 17u8, 122u8, 190u8, 76u8, 34u8, 51u8, 239u8, 41u8, 14u8, 135u8, 11u8, 164u8, 106u8, 228u8, 48u8, 26u8, ], ) } #[doc = " Information that is pertinent to identify the entity behind an account."] #[doc = ""] #[doc = " TWOX-NOTE: OK ― `AccountId` is a secure hash."] pub fn identity_of_root( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, runtime_types::pallet_identity::types::Registration<::core::primitive::u128>, (), (), ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( "Identity", "IdentityOf", Vec::new(), [ 239u8, 55u8, 5u8, 97u8, 227u8, 243u8, 118u8, 13u8, 98u8, 30u8, 141u8, 84u8, 170u8, 90u8, 166u8, 116u8, 17u8, 122u8, 190u8, 76u8, 34u8, 51u8, 239u8, 41u8, 14u8, 135u8, 11u8, 164u8, 106u8, 228u8, 48u8, 26u8, ], ) } #[doc = " The super-identity of an alternative \"sub\" identity together with its name, within that"] #[doc = " context. If the account is not some other account's sub-identity, then just `None`."] pub fn super_of( &self, _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, ( ::subxt::utils::AccountId32, runtime_types::pallet_identity::types::Data, ), ::subxt::storage::address::Yes, (), ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( "Identity", "SuperOf", vec![::subxt::storage::address::make_static_storage_map_key( _0.borrow(), )], [ 51u8, 225u8, 21u8, 92u8, 85u8, 14u8, 14u8, 211u8, 61u8, 99u8, 176u8, 236u8, 212u8, 156u8, 103u8, 175u8, 208u8, 105u8, 94u8, 226u8, 136u8, 69u8, 162u8, 170u8, 11u8, 116u8, 72u8, 242u8, 119u8, 14u8, 14u8, 142u8, ], ) } #[doc = " The super-identity of an alternative \"sub\" identity together with its name, within that"] #[doc = " context. If the account is not some other account's sub-identity, then just `None`."] pub fn super_of_root( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, ( ::subxt::utils::AccountId32, runtime_types::pallet_identity::types::Data, ), (), (), ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( "Identity", "SuperOf", Vec::new(), [ 51u8, 225u8, 21u8, 92u8, 85u8, 14u8, 14u8, 211u8, 61u8, 99u8, 176u8, 236u8, 212u8, 156u8, 103u8, 175u8, 208u8, 105u8, 94u8, 226u8, 136u8, 69u8, 162u8, 170u8, 11u8, 116u8, 72u8, 242u8, 119u8, 14u8, 14u8, 142u8, ], ) } #[doc = " Alternative \"sub\" identities of this account."] #[doc = ""] #[doc = " The first item is the deposit, the second is a vector of the accounts."] #[doc = ""] #[doc = " TWOX-NOTE: OK ― `AccountId` is a secure hash."] pub fn subs_of( &self, _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, ( ::core::primitive::u128, runtime_types::bounded_collections::bounded_vec::BoundedVec< ::subxt::utils::AccountId32, >, ), ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( "Identity", "SubsOf", vec![::subxt::storage::address::make_static_storage_map_key( _0.borrow(), )], [ 93u8, 124u8, 154u8, 157u8, 159u8, 103u8, 233u8, 225u8, 59u8, 20u8, 201u8, 239u8, 128u8, 209u8, 207u8, 38u8, 123u8, 48u8, 119u8, 102u8, 88u8, 42u8, 245u8, 187u8, 244u8, 206u8, 124u8, 216u8, 185u8, 155u8, 207u8, 0u8, ], ) } #[doc = " Alternative \"sub\" identities of this account."] #[doc = ""] #[doc = " The first item is the deposit, the second is a vector of the accounts."] #[doc = ""] #[doc = " TWOX-NOTE: OK ― `AccountId` is a secure hash."] pub fn subs_of_root( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, ( ::core::primitive::u128, runtime_types::bounded_collections::bounded_vec::BoundedVec< ::subxt::utils::AccountId32, >, ), (), ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( "Identity", "SubsOf", Vec::new(), [ 93u8, 124u8, 154u8, 157u8, 159u8, 103u8, 233u8, 225u8, 59u8, 20u8, 201u8, 239u8, 128u8, 209u8, 207u8, 38u8, 123u8, 48u8, 119u8, 102u8, 88u8, 42u8, 245u8, 187u8, 244u8, 206u8, 124u8, 216u8, 185u8, 155u8, 207u8, 0u8, ], ) } #[doc = " The set of registrars. Not expected to get very big as can only be added through a"] #[doc = " special origin (likely a council motion)."] #[doc = ""] #[doc = " The index into this can be cast to `RegistrarIndex` to get a valid value."] pub fn registrars( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, runtime_types::bounded_collections::bounded_vec::BoundedVec< ::core::option::Option< runtime_types::pallet_identity::types::RegistrarInfo< ::core::primitive::u128, ::subxt::utils::AccountId32, >, >, >, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), > { ::subxt::storage::address::Address::new_static( "Identity", "Registrars", vec![], [ 207u8, 253u8, 229u8, 237u8, 228u8, 85u8, 173u8, 74u8, 164u8, 67u8, 144u8, 144u8, 5u8, 242u8, 84u8, 187u8, 110u8, 181u8, 2u8, 162u8, 239u8, 212u8, 72u8, 233u8, 160u8, 196u8, 121u8, 218u8, 100u8, 0u8, 219u8, 181u8, ], ) } } } pub mod constants { use super::runtime_types; pub struct ConstantsApi; impl ConstantsApi { #[doc = " The amount held on deposit for a registered identity"] pub fn basic_deposit( &self, ) -> ::subxt::constants::Address<::core::primitive::u128> { ::subxt::constants::Address::new_static( "Identity", "BasicDeposit", [ 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8, 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, 136u8, 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, 148u8, 156u8, ], ) } #[doc = " The amount held on deposit per additional field for a registered identity."] pub fn field_deposit( &self, ) -> ::subxt::constants::Address<::core::primitive::u128> { ::subxt::constants::Address::new_static( "Identity", "FieldDeposit", [ 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8, 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, 136u8, 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, 148u8, 156u8, ], ) } #[doc = " The amount held on deposit for a registered subaccount. This should account for the fact"] #[doc = " that one storage item's value will increase by the size of an account ID, and there will"] #[doc = " be another trie item whose value is the size of an account ID plus 32 bytes."] pub fn sub_account_deposit( &self, ) -> ::subxt::constants::Address<::core::primitive::u128> { ::subxt::constants::Address::new_static( "Identity", "SubAccountDeposit", [ 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8, 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, 136u8, 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, 148u8, 156u8, ], ) } #[doc = " The maximum number of sub-accounts allowed per identified account."] pub fn max_sub_accounts( &self, ) -> ::subxt::constants::Address<::core::primitive::u32> { ::subxt::constants::Address::new_static( "Identity", "MaxSubAccounts", [ 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, 145u8, ], ) } #[doc = " Maximum number of additional fields that may be stored in an ID. Needed to bound the I/O"] #[doc = " required to access an identity, but can be pretty high."] pub fn max_additional_fields( &self, ) -> ::subxt::constants::Address<::core::primitive::u32> { ::subxt::constants::Address::new_static( "Identity", "MaxAdditionalFields", [ 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, 145u8, ], ) } #[doc = " Maxmimum number of registrars allowed in the system. Needed to bound the complexity"] #[doc = " of, e.g., updating judgements."] pub fn max_registrars( &self, ) -> ::subxt::constants::Address<::core::primitive::u32> { ::subxt::constants::Address::new_static( "Identity", "MaxRegistrars", [ 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, 145u8, ], ) } } } } pub mod proxy { use super::root_mod; use super::runtime_types; #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] pub type Error = runtime_types::pallet_proxy::pallet::Error; #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] pub type Call = runtime_types::pallet_proxy::pallet::Call; pub mod calls { use super::root_mod; use super::runtime_types; type DispatchError = runtime_types::sp_runtime::DispatchError; pub mod types { use super::runtime_types; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Proxy { pub real: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, pub force_proxy_type: ::core::option::Option, pub call: ::std::boxed::Box, } impl ::subxt::blocks::StaticExtrinsic for Proxy { const PALLET: &'static str = "Proxy"; const CALL: &'static str = "proxy"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct AddProxy { pub delegate: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, pub proxy_type: runtime_types::polkadot_runtime::ProxyType, pub delay: ::core::primitive::u32, } impl ::subxt::blocks::StaticExtrinsic for AddProxy { const PALLET: &'static str = "Proxy"; const CALL: &'static str = "add_proxy"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct RemoveProxy { pub delegate: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, pub proxy_type: runtime_types::polkadot_runtime::ProxyType, pub delay: ::core::primitive::u32, } impl ::subxt::blocks::StaticExtrinsic for RemoveProxy { const PALLET: &'static str = "Proxy"; const CALL: &'static str = "remove_proxy"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct RemoveProxies; impl ::subxt::blocks::StaticExtrinsic for RemoveProxies { const PALLET: &'static str = "Proxy"; const CALL: &'static str = "remove_proxies"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct CreatePure { pub proxy_type: runtime_types::polkadot_runtime::ProxyType, pub delay: ::core::primitive::u32, pub index: ::core::primitive::u16, } impl ::subxt::blocks::StaticExtrinsic for CreatePure { const PALLET: &'static str = "Proxy"; const CALL: &'static str = "create_pure"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct KillPure { pub spawner: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, pub proxy_type: runtime_types::polkadot_runtime::ProxyType, pub index: ::core::primitive::u16, #[codec(compact)] pub height: ::core::primitive::u32, #[codec(compact)] pub ext_index: ::core::primitive::u32, } impl ::subxt::blocks::StaticExtrinsic for KillPure { const PALLET: &'static str = "Proxy"; const CALL: &'static str = "kill_pure"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Announce { pub real: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, pub call_hash: ::subxt::utils::H256, } impl ::subxt::blocks::StaticExtrinsic for Announce { const PALLET: &'static str = "Proxy"; const CALL: &'static str = "announce"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct RemoveAnnouncement { pub real: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, pub call_hash: ::subxt::utils::H256, } impl ::subxt::blocks::StaticExtrinsic for RemoveAnnouncement { const PALLET: &'static str = "Proxy"; const CALL: &'static str = "remove_announcement"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct RejectAnnouncement { pub delegate: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, pub call_hash: ::subxt::utils::H256, } impl ::subxt::blocks::StaticExtrinsic for RejectAnnouncement { const PALLET: &'static str = "Proxy"; const CALL: &'static str = "reject_announcement"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ProxyAnnounced { pub delegate: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, pub real: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, pub force_proxy_type: ::core::option::Option, pub call: ::std::boxed::Box, } impl ::subxt::blocks::StaticExtrinsic for ProxyAnnounced { const PALLET: &'static str = "Proxy"; const CALL: &'static str = "proxy_announced"; } } pub struct TransactionApi; impl TransactionApi { #[doc = "Dispatch the given `call` from an account that the sender is authorised for through"] #[doc = "`add_proxy`."] #[doc = ""] #[doc = "The dispatch origin for this call must be _Signed_."] #[doc = ""] #[doc = "Parameters:"] #[doc = "- `real`: The account that the proxy will make a call on behalf of."] #[doc = "- `force_proxy_type`: Specify the exact proxy type to be used and checked for this call."] #[doc = "- `call`: The call to be made by the `real` account."] pub fn proxy( &self, real: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, force_proxy_type: ::core::option::Option< runtime_types::polkadot_runtime::ProxyType, >, call: runtime_types::polkadot_runtime::RuntimeCall, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Proxy", "proxy", types::Proxy { real, force_proxy_type, call: ::std::boxed::Box::new(call), }, [ 136u8, 248u8, 134u8, 224u8, 164u8, 120u8, 212u8, 244u8, 156u8, 137u8, 17u8, 57u8, 50u8, 88u8, 91u8, 32u8, 12u8, 224u8, 82u8, 129u8, 146u8, 223u8, 93u8, 202u8, 130u8, 40u8, 231u8, 46u8, 126u8, 127u8, 201u8, 154u8, ], ) } #[doc = "Register a proxy account for the sender that is able to make calls on its behalf."] #[doc = ""] #[doc = "The dispatch origin for this call must be _Signed_."] #[doc = ""] #[doc = "Parameters:"] #[doc = "- `proxy`: The account that the `caller` would like to make a proxy."] #[doc = "- `proxy_type`: The permissions allowed for this proxy account."] #[doc = "- `delay`: The announcement period required of the initial proxy. Will generally be"] #[doc = "zero."] pub fn add_proxy( &self, delegate: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, proxy_type: runtime_types::polkadot_runtime::ProxyType, delay: ::core::primitive::u32, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Proxy", "add_proxy", types::AddProxy { delegate, proxy_type, delay, }, [ 98u8, 241u8, 149u8, 52u8, 147u8, 196u8, 144u8, 174u8, 150u8, 34u8, 14u8, 55u8, 169u8, 79u8, 24u8, 245u8, 170u8, 19u8, 48u8, 74u8, 52u8, 65u8, 136u8, 164u8, 180u8, 68u8, 40u8, 56u8, 14u8, 146u8, 252u8, 54u8, ], ) } #[doc = "Unregister a proxy account for the sender."] #[doc = ""] #[doc = "The dispatch origin for this call must be _Signed_."] #[doc = ""] #[doc = "Parameters:"] #[doc = "- `proxy`: The account that the `caller` would like to remove as a proxy."] #[doc = "- `proxy_type`: The permissions currently enabled for the removed proxy account."] pub fn remove_proxy( &self, delegate: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, proxy_type: runtime_types::polkadot_runtime::ProxyType, delay: ::core::primitive::u32, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Proxy", "remove_proxy", types::RemoveProxy { delegate, proxy_type, delay, }, [ 240u8, 43u8, 125u8, 111u8, 174u8, 178u8, 34u8, 121u8, 149u8, 35u8, 114u8, 77u8, 235u8, 34u8, 193u8, 7u8, 40u8, 159u8, 54u8, 186u8, 37u8, 240u8, 42u8, 32u8, 44u8, 207u8, 55u8, 3u8, 117u8, 208u8, 3u8, 129u8, ], ) } #[doc = "Unregister all proxy accounts for the sender."] #[doc = ""] #[doc = "The dispatch origin for this call must be _Signed_."] #[doc = ""] #[doc = "WARNING: This may be called on accounts created by `pure`, however if done, then"] #[doc = "the unreserved fees will be inaccessible. **All access to this account will be lost.**"] pub fn remove_proxies(&self) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Proxy", "remove_proxies", types::RemoveProxies {}, [ 1u8, 126u8, 36u8, 227u8, 185u8, 34u8, 218u8, 236u8, 125u8, 231u8, 68u8, 185u8, 145u8, 63u8, 250u8, 225u8, 103u8, 3u8, 189u8, 37u8, 172u8, 195u8, 197u8, 216u8, 99u8, 210u8, 240u8, 162u8, 158u8, 132u8, 24u8, 6u8, ], ) } #[doc = "Spawn a fresh new account that is guaranteed to be otherwise inaccessible, and"] #[doc = "initialize it with a proxy of `proxy_type` for `origin` sender."] #[doc = ""] #[doc = "Requires a `Signed` origin."] #[doc = ""] #[doc = "- `proxy_type`: The type of the proxy that the sender will be registered as over the"] #[doc = "new account. This will almost always be the most permissive `ProxyType` possible to"] #[doc = "allow for maximum flexibility."] #[doc = "- `index`: A disambiguation index, in case this is called multiple times in the same"] #[doc = "transaction (e.g. with `utility::batch`). Unless you're using `batch` you probably just"] #[doc = "want to use `0`."] #[doc = "- `delay`: The announcement period required of the initial proxy. Will generally be"] #[doc = "zero."] #[doc = ""] #[doc = "Fails with `Duplicate` if this has already been called in this transaction, from the"] #[doc = "same sender, with the same parameters."] #[doc = ""] #[doc = "Fails if there are insufficient funds to pay for deposit."] pub fn create_pure( &self, proxy_type: runtime_types::polkadot_runtime::ProxyType, delay: ::core::primitive::u32, index: ::core::primitive::u16, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Proxy", "create_pure", types::CreatePure { proxy_type, delay, index, }, [ 65u8, 193u8, 16u8, 29u8, 244u8, 34u8, 244u8, 210u8, 211u8, 61u8, 127u8, 20u8, 106u8, 84u8, 207u8, 204u8, 135u8, 176u8, 245u8, 209u8, 115u8, 67u8, 120u8, 133u8, 54u8, 26u8, 168u8, 45u8, 217u8, 177u8, 17u8, 219u8, ], ) } #[doc = "Removes a previously spawned pure proxy."] #[doc = ""] #[doc = "WARNING: **All access to this account will be lost.** Any funds held in it will be"] #[doc = "inaccessible."] #[doc = ""] #[doc = "Requires a `Signed` origin, and the sender account must have been created by a call to"] #[doc = "`pure` with corresponding parameters."] #[doc = ""] #[doc = "- `spawner`: The account that originally called `pure` to create this account."] #[doc = "- `index`: The disambiguation index originally passed to `pure`. Probably `0`."] #[doc = "- `proxy_type`: The proxy type originally passed to `pure`."] #[doc = "- `height`: The height of the chain when the call to `pure` was processed."] #[doc = "- `ext_index`: The extrinsic index in which the call to `pure` was processed."] #[doc = ""] #[doc = "Fails with `NoPermission` in case the caller is not a previously created pure"] #[doc = "account whose `pure` call has corresponding parameters."] pub fn kill_pure( &self, spawner: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, proxy_type: runtime_types::polkadot_runtime::ProxyType, index: ::core::primitive::u16, height: ::core::primitive::u32, ext_index: ::core::primitive::u32, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Proxy", "kill_pure", types::KillPure { spawner, proxy_type, index, height, ext_index, }, [ 221u8, 143u8, 132u8, 8u8, 33u8, 255u8, 123u8, 72u8, 4u8, 125u8, 28u8, 71u8, 218u8, 55u8, 59u8, 149u8, 15u8, 92u8, 149u8, 73u8, 6u8, 40u8, 4u8, 132u8, 128u8, 215u8, 84u8, 88u8, 210u8, 172u8, 129u8, 168u8, ], ) } #[doc = "Publish the hash of a proxy-call that will be made in the future."] #[doc = ""] #[doc = "This must be called some number of blocks before the corresponding `proxy` is attempted"] #[doc = "if the delay associated with the proxy relationship is greater than zero."] #[doc = ""] #[doc = "No more than `MaxPending` announcements may be made at any one time."] #[doc = ""] #[doc = "This will take a deposit of `AnnouncementDepositFactor` as well as"] #[doc = "`AnnouncementDepositBase` if there are no other pending announcements."] #[doc = ""] #[doc = "The dispatch origin for this call must be _Signed_ and a proxy of `real`."] #[doc = ""] #[doc = "Parameters:"] #[doc = "- `real`: The account that the proxy will make a call on behalf of."] #[doc = "- `call_hash`: The hash of the call to be made by the `real` account."] pub fn announce( &self, real: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, call_hash: ::subxt::utils::H256, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Proxy", "announce", types::Announce { real, call_hash }, [ 206u8, 1u8, 22u8, 172u8, 246u8, 31u8, 240u8, 30u8, 76u8, 122u8, 234u8, 175u8, 20u8, 134u8, 193u8, 101u8, 77u8, 87u8, 201u8, 226u8, 121u8, 67u8, 151u8, 55u8, 86u8, 16u8, 16u8, 144u8, 95u8, 69u8, 92u8, 255u8, ], ) } #[doc = "Remove a given announcement."] #[doc = ""] #[doc = "May be called by a proxy account to remove a call they previously announced and return"] #[doc = "the deposit."] #[doc = ""] #[doc = "The dispatch origin for this call must be _Signed_."] #[doc = ""] #[doc = "Parameters:"] #[doc = "- `real`: The account that the proxy will make a call on behalf of."] #[doc = "- `call_hash`: The hash of the call to be made by the `real` account."] pub fn remove_announcement( &self, real: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, call_hash: ::subxt::utils::H256, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Proxy", "remove_announcement", types::RemoveAnnouncement { real, call_hash }, [ 144u8, 72u8, 202u8, 26u8, 128u8, 116u8, 108u8, 243u8, 63u8, 227u8, 251u8, 207u8, 211u8, 35u8, 126u8, 30u8, 243u8, 199u8, 167u8, 209u8, 68u8, 44u8, 212u8, 139u8, 215u8, 230u8, 92u8, 42u8, 132u8, 48u8, 172u8, 176u8, ], ) } #[doc = "Remove the given announcement of a delegate."] #[doc = ""] #[doc = "May be called by a target (proxied) account to remove a call that one of their delegates"] #[doc = "(`delegate`) has announced they want to execute. The deposit is returned."] #[doc = ""] #[doc = "The dispatch origin for this call must be _Signed_."] #[doc = ""] #[doc = "Parameters:"] #[doc = "- `delegate`: The account that previously announced the call."] #[doc = "- `call_hash`: The hash of the call to be made."] pub fn reject_announcement( &self, delegate: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, call_hash: ::subxt::utils::H256, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Proxy", "reject_announcement", types::RejectAnnouncement { delegate, call_hash, }, [ 152u8, 133u8, 113u8, 234u8, 80u8, 247u8, 67u8, 136u8, 204u8, 144u8, 220u8, 36u8, 25u8, 44u8, 245u8, 206u8, 101u8, 104u8, 155u8, 214u8, 140u8, 233u8, 188u8, 37u8, 183u8, 212u8, 246u8, 42u8, 13u8, 207u8, 187u8, 58u8, ], ) } #[doc = "Dispatch the given `call` from an account that the sender is authorized for through"] #[doc = "`add_proxy`."] #[doc = ""] #[doc = "Removes any corresponding announcement(s)."] #[doc = ""] #[doc = "The dispatch origin for this call must be _Signed_."] #[doc = ""] #[doc = "Parameters:"] #[doc = "- `real`: The account that the proxy will make a call on behalf of."] #[doc = "- `force_proxy_type`: Specify the exact proxy type to be used and checked for this call."] #[doc = "- `call`: The call to be made by the `real` account."] pub fn proxy_announced( &self, delegate: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, real: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, force_proxy_type: ::core::option::Option< runtime_types::polkadot_runtime::ProxyType, >, call: runtime_types::polkadot_runtime::RuntimeCall, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Proxy", "proxy_announced", types::ProxyAnnounced { delegate, real, force_proxy_type, call: ::std::boxed::Box::new(call), }, [ 12u8, 189u8, 0u8, 232u8, 151u8, 222u8, 217u8, 130u8, 186u8, 212u8, 144u8, 137u8, 55u8, 81u8, 253u8, 63u8, 150u8, 52u8, 246u8, 57u8, 82u8, 121u8, 233u8, 175u8, 22u8, 171u8, 167u8, 216u8, 221u8, 135u8, 40u8, 237u8, ], ) } } } #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] pub type Event = runtime_types::pallet_proxy::pallet::Event; pub mod events { use super::runtime_types; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A proxy was executed correctly, with the given."] pub struct ProxyExecuted { pub result: ::core::result::Result<(), runtime_types::sp_runtime::DispatchError>, } impl ::subxt::events::StaticEvent for ProxyExecuted { const PALLET: &'static str = "Proxy"; const EVENT: &'static str = "ProxyExecuted"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A pure account has been created by new proxy with given"] #[doc = "disambiguation index and proxy type."] pub struct PureCreated { pub pure: ::subxt::utils::AccountId32, pub who: ::subxt::utils::AccountId32, pub proxy_type: runtime_types::polkadot_runtime::ProxyType, pub disambiguation_index: ::core::primitive::u16, } impl ::subxt::events::StaticEvent for PureCreated { const PALLET: &'static str = "Proxy"; const EVENT: &'static str = "PureCreated"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "An announcement was placed to make a call in the future."] pub struct Announced { pub real: ::subxt::utils::AccountId32, pub proxy: ::subxt::utils::AccountId32, pub call_hash: ::subxt::utils::H256, } impl ::subxt::events::StaticEvent for Announced { const PALLET: &'static str = "Proxy"; const EVENT: &'static str = "Announced"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A proxy was added."] pub struct ProxyAdded { pub delegator: ::subxt::utils::AccountId32, pub delegatee: ::subxt::utils::AccountId32, pub proxy_type: runtime_types::polkadot_runtime::ProxyType, pub delay: ::core::primitive::u32, } impl ::subxt::events::StaticEvent for ProxyAdded { const PALLET: &'static str = "Proxy"; const EVENT: &'static str = "ProxyAdded"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A proxy was removed."] pub struct ProxyRemoved { pub delegator: ::subxt::utils::AccountId32, pub delegatee: ::subxt::utils::AccountId32, pub proxy_type: runtime_types::polkadot_runtime::ProxyType, pub delay: ::core::primitive::u32, } impl ::subxt::events::StaticEvent for ProxyRemoved { const PALLET: &'static str = "Proxy"; const EVENT: &'static str = "ProxyRemoved"; } } pub mod storage { use super::runtime_types; pub struct StorageApi; impl StorageApi { #[doc = " The set of account proxies. Maps the account which has delegated to the accounts"] #[doc = " which are being delegated to, together with the amount held on deposit."] pub fn proxies( &self, _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, ( runtime_types::bounded_collections::bounded_vec::BoundedVec< runtime_types::pallet_proxy::ProxyDefinition< ::subxt::utils::AccountId32, runtime_types::polkadot_runtime::ProxyType, ::core::primitive::u32, >, >, ::core::primitive::u128, ), ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( "Proxy", "Proxies", vec![::subxt::storage::address::make_static_storage_map_key( _0.borrow(), )], [ 60u8, 50u8, 235u8, 231u8, 242u8, 45u8, 51u8, 138u8, 135u8, 226u8, 224u8, 76u8, 4u8, 0u8, 210u8, 137u8, 173u8, 56u8, 178u8, 95u8, 172u8, 43u8, 58u8, 120u8, 124u8, 13u8, 141u8, 68u8, 91u8, 171u8, 59u8, 101u8, ], ) } #[doc = " The set of account proxies. Maps the account which has delegated to the accounts"] #[doc = " which are being delegated to, together with the amount held on deposit."] pub fn proxies_root( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, ( runtime_types::bounded_collections::bounded_vec::BoundedVec< runtime_types::pallet_proxy::ProxyDefinition< ::subxt::utils::AccountId32, runtime_types::polkadot_runtime::ProxyType, ::core::primitive::u32, >, >, ::core::primitive::u128, ), (), ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( "Proxy", "Proxies", Vec::new(), [ 60u8, 50u8, 235u8, 231u8, 242u8, 45u8, 51u8, 138u8, 135u8, 226u8, 224u8, 76u8, 4u8, 0u8, 210u8, 137u8, 173u8, 56u8, 178u8, 95u8, 172u8, 43u8, 58u8, 120u8, 124u8, 13u8, 141u8, 68u8, 91u8, 171u8, 59u8, 101u8, ], ) } #[doc = " The announcements made by the proxy (key)."] pub fn announcements( &self, _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, ( runtime_types::bounded_collections::bounded_vec::BoundedVec< runtime_types::pallet_proxy::Announcement< ::subxt::utils::AccountId32, ::subxt::utils::H256, ::core::primitive::u32, >, >, ::core::primitive::u128, ), ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( "Proxy", "Announcements", vec![::subxt::storage::address::make_static_storage_map_key( _0.borrow(), )], [ 195u8, 103u8, 36u8, 115u8, 220u8, 178u8, 159u8, 50u8, 133u8, 198u8, 14u8, 54u8, 122u8, 123u8, 35u8, 134u8, 152u8, 84u8, 103u8, 52u8, 31u8, 78u8, 136u8, 206u8, 9u8, 83u8, 155u8, 94u8, 2u8, 135u8, 159u8, 72u8, ], ) } #[doc = " The announcements made by the proxy (key)."] pub fn announcements_root( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, ( runtime_types::bounded_collections::bounded_vec::BoundedVec< runtime_types::pallet_proxy::Announcement< ::subxt::utils::AccountId32, ::subxt::utils::H256, ::core::primitive::u32, >, >, ::core::primitive::u128, ), (), ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( "Proxy", "Announcements", Vec::new(), [ 195u8, 103u8, 36u8, 115u8, 220u8, 178u8, 159u8, 50u8, 133u8, 198u8, 14u8, 54u8, 122u8, 123u8, 35u8, 134u8, 152u8, 84u8, 103u8, 52u8, 31u8, 78u8, 136u8, 206u8, 9u8, 83u8, 155u8, 94u8, 2u8, 135u8, 159u8, 72u8, ], ) } } } pub mod constants { use super::runtime_types; pub struct ConstantsApi; impl ConstantsApi { #[doc = " The base amount of currency needed to reserve for creating a proxy."] #[doc = ""] #[doc = " This is held for an additional storage item whose value size is"] #[doc = " `sizeof(Balance)` bytes and whose key size is `sizeof(AccountId)` bytes."] pub fn proxy_deposit_base( &self, ) -> ::subxt::constants::Address<::core::primitive::u128> { ::subxt::constants::Address::new_static( "Proxy", "ProxyDepositBase", [ 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8, 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, 136u8, 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, 148u8, 156u8, ], ) } #[doc = " The amount of currency needed per proxy added."] #[doc = ""] #[doc = " This is held for adding 32 bytes plus an instance of `ProxyType` more into a"] #[doc = " pre-existing storage value. Thus, when configuring `ProxyDepositFactor` one should take"] #[doc = " into account `32 + proxy_type.encode().len()` bytes of data."] pub fn proxy_deposit_factor( &self, ) -> ::subxt::constants::Address<::core::primitive::u128> { ::subxt::constants::Address::new_static( "Proxy", "ProxyDepositFactor", [ 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8, 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, 136u8, 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, 148u8, 156u8, ], ) } #[doc = " The maximum amount of proxies allowed for a single account."] pub fn max_proxies(&self) -> ::subxt::constants::Address<::core::primitive::u32> { ::subxt::constants::Address::new_static( "Proxy", "MaxProxies", [ 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, 145u8, ], ) } #[doc = " The maximum amount of time-delayed announcements that are allowed to be pending."] pub fn max_pending(&self) -> ::subxt::constants::Address<::core::primitive::u32> { ::subxt::constants::Address::new_static( "Proxy", "MaxPending", [ 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, 145u8, ], ) } #[doc = " The base amount of currency needed to reserve for creating an announcement."] #[doc = ""] #[doc = " This is held when a new storage item holding a `Balance` is created (typically 16"] #[doc = " bytes)."] pub fn announcement_deposit_base( &self, ) -> ::subxt::constants::Address<::core::primitive::u128> { ::subxt::constants::Address::new_static( "Proxy", "AnnouncementDepositBase", [ 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8, 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, 136u8, 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, 148u8, 156u8, ], ) } #[doc = " The amount of currency needed per announcement made."] #[doc = ""] #[doc = " This is held for adding an `AccountId`, `Hash` and `BlockNumber` (typically 68 bytes)"] #[doc = " into a pre-existing storage value."] pub fn announcement_deposit_factor( &self, ) -> ::subxt::constants::Address<::core::primitive::u128> { ::subxt::constants::Address::new_static( "Proxy", "AnnouncementDepositFactor", [ 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8, 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, 136u8, 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, 148u8, 156u8, ], ) } } } } pub mod multisig { use super::root_mod; use super::runtime_types; #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] pub type Error = runtime_types::pallet_multisig::pallet::Error; #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] pub type Call = runtime_types::pallet_multisig::pallet::Call; pub mod calls { use super::root_mod; use super::runtime_types; type DispatchError = runtime_types::sp_runtime::DispatchError; pub mod types { use super::runtime_types; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct AsMultiThreshold1 { pub other_signatories: ::std::vec::Vec<::subxt::utils::AccountId32>, pub call: ::std::boxed::Box, } impl ::subxt::blocks::StaticExtrinsic for AsMultiThreshold1 { const PALLET: &'static str = "Multisig"; const CALL: &'static str = "as_multi_threshold_1"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct AsMulti { pub threshold: ::core::primitive::u16, pub other_signatories: ::std::vec::Vec<::subxt::utils::AccountId32>, pub maybe_timepoint: ::core::option::Option< runtime_types::pallet_multisig::Timepoint<::core::primitive::u32>, >, pub call: ::std::boxed::Box, pub max_weight: runtime_types::sp_weights::weight_v2::Weight, } impl ::subxt::blocks::StaticExtrinsic for AsMulti { const PALLET: &'static str = "Multisig"; const CALL: &'static str = "as_multi"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ApproveAsMulti { pub threshold: ::core::primitive::u16, pub other_signatories: ::std::vec::Vec<::subxt::utils::AccountId32>, pub maybe_timepoint: ::core::option::Option< runtime_types::pallet_multisig::Timepoint<::core::primitive::u32>, >, pub call_hash: [::core::primitive::u8; 32usize], pub max_weight: runtime_types::sp_weights::weight_v2::Weight, } impl ::subxt::blocks::StaticExtrinsic for ApproveAsMulti { const PALLET: &'static str = "Multisig"; const CALL: &'static str = "approve_as_multi"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct CancelAsMulti { pub threshold: ::core::primitive::u16, pub other_signatories: ::std::vec::Vec<::subxt::utils::AccountId32>, pub timepoint: runtime_types::pallet_multisig::Timepoint<::core::primitive::u32>, pub call_hash: [::core::primitive::u8; 32usize], } impl ::subxt::blocks::StaticExtrinsic for CancelAsMulti { const PALLET: &'static str = "Multisig"; const CALL: &'static str = "cancel_as_multi"; } } pub struct TransactionApi; impl TransactionApi { #[doc = "Immediately dispatch a multi-signature call using a single approval from the caller."] #[doc = ""] #[doc = "The dispatch origin for this call must be _Signed_."] #[doc = ""] #[doc = "- `other_signatories`: The accounts (other than the sender) who are part of the"] #[doc = "multi-signature, but do not participate in the approval process."] #[doc = "- `call`: The call to be executed."] #[doc = ""] #[doc = "Result is equivalent to the dispatched result."] #[doc = ""] #[doc = "## Complexity"] #[doc = "O(Z + C) where Z is the length of the call and C its execution weight."] pub fn as_multi_threshold_1( &self, other_signatories: ::std::vec::Vec<::subxt::utils::AccountId32>, call: runtime_types::polkadot_runtime::RuntimeCall, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Multisig", "as_multi_threshold_1", types::AsMultiThreshold1 { other_signatories, call: ::std::boxed::Box::new(call), }, [ 85u8, 252u8, 181u8, 111u8, 73u8, 191u8, 121u8, 79u8, 167u8, 59u8, 107u8, 66u8, 196u8, 206u8, 156u8, 114u8, 145u8, 184u8, 113u8, 83u8, 205u8, 195u8, 196u8, 222u8, 157u8, 177u8, 147u8, 250u8, 43u8, 112u8, 213u8, 176u8, ], ) } #[doc = "Register approval for a dispatch to be made from a deterministic composite account if"] #[doc = "approved by a total of `threshold - 1` of `other_signatories`."] #[doc = ""] #[doc = "If there are enough, then dispatch the call."] #[doc = ""] #[doc = "Payment: `DepositBase` will be reserved if this is the first approval, plus"] #[doc = "`threshold` times `DepositFactor`. It is returned once this dispatch happens or"] #[doc = "is cancelled."] #[doc = ""] #[doc = "The dispatch origin for this call must be _Signed_."] #[doc = ""] #[doc = "- `threshold`: The total number of approvals for this dispatch before it is executed."] #[doc = "- `other_signatories`: The accounts (other than the sender) who can approve this"] #[doc = "dispatch. May not be empty."] #[doc = "- `maybe_timepoint`: If this is the first approval, then this must be `None`. If it is"] #[doc = "not the first approval, then it must be `Some`, with the timepoint (block number and"] #[doc = "transaction index) of the first approval transaction."] #[doc = "- `call`: The call to be executed."] #[doc = ""] #[doc = "NOTE: Unless this is the final approval, you will generally want to use"] #[doc = "`approve_as_multi` instead, since it only requires a hash of the call."] #[doc = ""] #[doc = "Result is equivalent to the dispatched result if `threshold` is exactly `1`. Otherwise"] #[doc = "on success, result is `Ok` and the result from the interior call, if it was executed,"] #[doc = "may be found in the deposited `MultisigExecuted` event."] #[doc = ""] #[doc = "## Complexity"] #[doc = "- `O(S + Z + Call)`."] #[doc = "- Up to one balance-reserve or unreserve operation."] #[doc = "- One passthrough operation, one insert, both `O(S)` where `S` is the number of"] #[doc = " signatories. `S` is capped by `MaxSignatories`, with weight being proportional."] #[doc = "- One call encode & hash, both of complexity `O(Z)` where `Z` is tx-len."] #[doc = "- One encode & hash, both of complexity `O(S)`."] #[doc = "- Up to one binary search and insert (`O(logS + S)`)."] #[doc = "- I/O: 1 read `O(S)`, up to 1 mutate `O(S)`. Up to one remove."] #[doc = "- One event."] #[doc = "- The weight of the `call`."] #[doc = "- Storage: inserts one item, value size bounded by `MaxSignatories`, with a deposit"] #[doc = " taken for its lifetime of `DepositBase + threshold * DepositFactor`."] pub fn as_multi( &self, threshold: ::core::primitive::u16, other_signatories: ::std::vec::Vec<::subxt::utils::AccountId32>, maybe_timepoint: ::core::option::Option< runtime_types::pallet_multisig::Timepoint<::core::primitive::u32>, >, call: runtime_types::polkadot_runtime::RuntimeCall, max_weight: runtime_types::sp_weights::weight_v2::Weight, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Multisig", "as_multi", types::AsMulti { threshold, other_signatories, maybe_timepoint, call: ::std::boxed::Box::new(call), max_weight, }, [ 139u8, 231u8, 146u8, 130u8, 22u8, 182u8, 37u8, 110u8, 242u8, 10u8, 200u8, 68u8, 29u8, 116u8, 237u8, 231u8, 7u8, 85u8, 232u8, 192u8, 180u8, 187u8, 25u8, 109u8, 90u8, 58u8, 93u8, 164u8, 20u8, 190u8, 120u8, 226u8, ], ) } #[doc = "Register approval for a dispatch to be made from a deterministic composite account if"] #[doc = "approved by a total of `threshold - 1` of `other_signatories`."] #[doc = ""] #[doc = "Payment: `DepositBase` will be reserved if this is the first approval, plus"] #[doc = "`threshold` times `DepositFactor`. It is returned once this dispatch happens or"] #[doc = "is cancelled."] #[doc = ""] #[doc = "The dispatch origin for this call must be _Signed_."] #[doc = ""] #[doc = "- `threshold`: The total number of approvals for this dispatch before it is executed."] #[doc = "- `other_signatories`: The accounts (other than the sender) who can approve this"] #[doc = "dispatch. May not be empty."] #[doc = "- `maybe_timepoint`: If this is the first approval, then this must be `None`. If it is"] #[doc = "not the first approval, then it must be `Some`, with the timepoint (block number and"] #[doc = "transaction index) of the first approval transaction."] #[doc = "- `call_hash`: The hash of the call to be executed."] #[doc = ""] #[doc = "NOTE: If this is the final approval, you will want to use `as_multi` instead."] #[doc = ""] #[doc = "## Complexity"] #[doc = "- `O(S)`."] #[doc = "- Up to one balance-reserve or unreserve operation."] #[doc = "- One passthrough operation, one insert, both `O(S)` where `S` is the number of"] #[doc = " signatories. `S` is capped by `MaxSignatories`, with weight being proportional."] #[doc = "- One encode & hash, both of complexity `O(S)`."] #[doc = "- Up to one binary search and insert (`O(logS + S)`)."] #[doc = "- I/O: 1 read `O(S)`, up to 1 mutate `O(S)`. Up to one remove."] #[doc = "- One event."] #[doc = "- Storage: inserts one item, value size bounded by `MaxSignatories`, with a deposit"] #[doc = " taken for its lifetime of `DepositBase + threshold * DepositFactor`."] pub fn approve_as_multi( &self, threshold: ::core::primitive::u16, other_signatories: ::std::vec::Vec<::subxt::utils::AccountId32>, maybe_timepoint: ::core::option::Option< runtime_types::pallet_multisig::Timepoint<::core::primitive::u32>, >, call_hash: [::core::primitive::u8; 32usize], max_weight: runtime_types::sp_weights::weight_v2::Weight, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Multisig", "approve_as_multi", types::ApproveAsMulti { threshold, other_signatories, maybe_timepoint, call_hash, max_weight, }, [ 240u8, 17u8, 138u8, 10u8, 165u8, 3u8, 88u8, 240u8, 11u8, 208u8, 9u8, 123u8, 95u8, 53u8, 142u8, 8u8, 30u8, 5u8, 130u8, 205u8, 102u8, 95u8, 71u8, 92u8, 184u8, 92u8, 218u8, 224u8, 146u8, 87u8, 93u8, 224u8, ], ) } #[doc = "Cancel a pre-existing, on-going multisig transaction. Any deposit reserved previously"] #[doc = "for this operation will be unreserved on success."] #[doc = ""] #[doc = "The dispatch origin for this call must be _Signed_."] #[doc = ""] #[doc = "- `threshold`: The total number of approvals for this dispatch before it is executed."] #[doc = "- `other_signatories`: The accounts (other than the sender) who can approve this"] #[doc = "dispatch. May not be empty."] #[doc = "- `timepoint`: The timepoint (block number and transaction index) of the first approval"] #[doc = "transaction for this dispatch."] #[doc = "- `call_hash`: The hash of the call to be executed."] #[doc = ""] #[doc = "## Complexity"] #[doc = "- `O(S)`."] #[doc = "- Up to one balance-reserve or unreserve operation."] #[doc = "- One passthrough operation, one insert, both `O(S)` where `S` is the number of"] #[doc = " signatories. `S` is capped by `MaxSignatories`, with weight being proportional."] #[doc = "- One encode & hash, both of complexity `O(S)`."] #[doc = "- One event."] #[doc = "- I/O: 1 read `O(S)`, one remove."] #[doc = "- Storage: removes one item."] pub fn cancel_as_multi( &self, threshold: ::core::primitive::u16, other_signatories: ::std::vec::Vec<::subxt::utils::AccountId32>, timepoint: runtime_types::pallet_multisig::Timepoint<::core::primitive::u32>, call_hash: [::core::primitive::u8; 32usize], ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Multisig", "cancel_as_multi", types::CancelAsMulti { threshold, other_signatories, timepoint, call_hash, }, [ 14u8, 123u8, 126u8, 239u8, 174u8, 101u8, 28u8, 221u8, 117u8, 75u8, 82u8, 249u8, 151u8, 59u8, 224u8, 239u8, 54u8, 196u8, 244u8, 46u8, 31u8, 218u8, 224u8, 58u8, 146u8, 165u8, 135u8, 101u8, 189u8, 93u8, 149u8, 130u8, ], ) } } } #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] pub type Event = runtime_types::pallet_multisig::pallet::Event; pub mod events { use super::runtime_types; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A new multisig operation has begun."] pub struct NewMultisig { pub approving: ::subxt::utils::AccountId32, pub multisig: ::subxt::utils::AccountId32, pub call_hash: [::core::primitive::u8; 32usize], } impl ::subxt::events::StaticEvent for NewMultisig { const PALLET: &'static str = "Multisig"; const EVENT: &'static str = "NewMultisig"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A multisig operation has been approved by someone."] pub struct MultisigApproval { pub approving: ::subxt::utils::AccountId32, pub timepoint: runtime_types::pallet_multisig::Timepoint<::core::primitive::u32>, pub multisig: ::subxt::utils::AccountId32, pub call_hash: [::core::primitive::u8; 32usize], } impl ::subxt::events::StaticEvent for MultisigApproval { const PALLET: &'static str = "Multisig"; const EVENT: &'static str = "MultisigApproval"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A multisig operation has been executed."] pub struct MultisigExecuted { pub approving: ::subxt::utils::AccountId32, pub timepoint: runtime_types::pallet_multisig::Timepoint<::core::primitive::u32>, pub multisig: ::subxt::utils::AccountId32, pub call_hash: [::core::primitive::u8; 32usize], pub result: ::core::result::Result<(), runtime_types::sp_runtime::DispatchError>, } impl ::subxt::events::StaticEvent for MultisigExecuted { const PALLET: &'static str = "Multisig"; const EVENT: &'static str = "MultisigExecuted"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A multisig operation has been cancelled."] pub struct MultisigCancelled { pub cancelling: ::subxt::utils::AccountId32, pub timepoint: runtime_types::pallet_multisig::Timepoint<::core::primitive::u32>, pub multisig: ::subxt::utils::AccountId32, pub call_hash: [::core::primitive::u8; 32usize], } impl ::subxt::events::StaticEvent for MultisigCancelled { const PALLET: &'static str = "Multisig"; const EVENT: &'static str = "MultisigCancelled"; } } pub mod storage { use super::runtime_types; pub struct StorageApi; impl StorageApi { #[doc = " The set of open multisig operations."] pub fn multisigs( &self, _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, _1: impl ::std::borrow::Borrow<[::core::primitive::u8; 32usize]>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, runtime_types::pallet_multisig::Multisig< ::core::primitive::u32, ::core::primitive::u128, ::subxt::utils::AccountId32, >, ::subxt::storage::address::Yes, (), ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( "Multisig", "Multisigs", vec![ ::subxt::storage::address::make_static_storage_map_key(_0.borrow()), ::subxt::storage::address::make_static_storage_map_key(_1.borrow()), ], [ 22u8, 46u8, 92u8, 90u8, 193u8, 51u8, 12u8, 187u8, 247u8, 141u8, 101u8, 133u8, 220u8, 5u8, 124u8, 197u8, 149u8, 81u8, 51u8, 194u8, 194u8, 72u8, 63u8, 249u8, 227u8, 208u8, 58u8, 253u8, 33u8, 107u8, 10u8, 44u8, ], ) } #[doc = " The set of open multisig operations."] pub fn multisigs_root( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, runtime_types::pallet_multisig::Multisig< ::core::primitive::u32, ::core::primitive::u128, ::subxt::utils::AccountId32, >, (), (), ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( "Multisig", "Multisigs", Vec::new(), [ 22u8, 46u8, 92u8, 90u8, 193u8, 51u8, 12u8, 187u8, 247u8, 141u8, 101u8, 133u8, 220u8, 5u8, 124u8, 197u8, 149u8, 81u8, 51u8, 194u8, 194u8, 72u8, 63u8, 249u8, 227u8, 208u8, 58u8, 253u8, 33u8, 107u8, 10u8, 44u8, ], ) } } } pub mod constants { use super::runtime_types; pub struct ConstantsApi; impl ConstantsApi { #[doc = " The base amount of currency needed to reserve for creating a multisig execution or to"] #[doc = " store a dispatch call for later."] #[doc = ""] #[doc = " This is held for an additional storage item whose value size is"] #[doc = " `4 + sizeof((BlockNumber, Balance, AccountId))` bytes and whose key size is"] #[doc = " `32 + sizeof(AccountId)` bytes."] pub fn deposit_base(&self) -> ::subxt::constants::Address<::core::primitive::u128> { ::subxt::constants::Address::new_static( "Multisig", "DepositBase", [ 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8, 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, 136u8, 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, 148u8, 156u8, ], ) } #[doc = " The amount of currency needed per unit threshold when creating a multisig execution."] #[doc = ""] #[doc = " This is held for adding 32 bytes more into a pre-existing storage value."] pub fn deposit_factor( &self, ) -> ::subxt::constants::Address<::core::primitive::u128> { ::subxt::constants::Address::new_static( "Multisig", "DepositFactor", [ 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8, 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, 136u8, 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, 148u8, 156u8, ], ) } #[doc = " The maximum amount of signatories allowed in the multisig."] pub fn max_signatories( &self, ) -> ::subxt::constants::Address<::core::primitive::u32> { ::subxt::constants::Address::new_static( "Multisig", "MaxSignatories", [ 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, 145u8, ], ) } } } } pub mod bounties { use super::root_mod; use super::runtime_types; #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] pub type Error = runtime_types::pallet_bounties::pallet::Error; #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] pub type Call = runtime_types::pallet_bounties::pallet::Call; pub mod calls { use super::root_mod; use super::runtime_types; type DispatchError = runtime_types::sp_runtime::DispatchError; pub mod types { use super::runtime_types; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ProposeBounty { #[codec(compact)] pub value: ::core::primitive::u128, pub description: ::std::vec::Vec<::core::primitive::u8>, } impl ::subxt::blocks::StaticExtrinsic for ProposeBounty { const PALLET: &'static str = "Bounties"; const CALL: &'static str = "propose_bounty"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ApproveBounty { #[codec(compact)] pub bounty_id: ::core::primitive::u32, } impl ::subxt::blocks::StaticExtrinsic for ApproveBounty { const PALLET: &'static str = "Bounties"; const CALL: &'static str = "approve_bounty"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ProposeCurator { #[codec(compact)] pub bounty_id: ::core::primitive::u32, pub curator: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, #[codec(compact)] pub fee: ::core::primitive::u128, } impl ::subxt::blocks::StaticExtrinsic for ProposeCurator { const PALLET: &'static str = "Bounties"; const CALL: &'static str = "propose_curator"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct UnassignCurator { #[codec(compact)] pub bounty_id: ::core::primitive::u32, } impl ::subxt::blocks::StaticExtrinsic for UnassignCurator { const PALLET: &'static str = "Bounties"; const CALL: &'static str = "unassign_curator"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct AcceptCurator { #[codec(compact)] pub bounty_id: ::core::primitive::u32, } impl ::subxt::blocks::StaticExtrinsic for AcceptCurator { const PALLET: &'static str = "Bounties"; const CALL: &'static str = "accept_curator"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct AwardBounty { #[codec(compact)] pub bounty_id: ::core::primitive::u32, pub beneficiary: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, } impl ::subxt::blocks::StaticExtrinsic for AwardBounty { const PALLET: &'static str = "Bounties"; const CALL: &'static str = "award_bounty"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ClaimBounty { #[codec(compact)] pub bounty_id: ::core::primitive::u32, } impl ::subxt::blocks::StaticExtrinsic for ClaimBounty { const PALLET: &'static str = "Bounties"; const CALL: &'static str = "claim_bounty"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct CloseBounty { #[codec(compact)] pub bounty_id: ::core::primitive::u32, } impl ::subxt::blocks::StaticExtrinsic for CloseBounty { const PALLET: &'static str = "Bounties"; const CALL: &'static str = "close_bounty"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ExtendBountyExpiry { #[codec(compact)] pub bounty_id: ::core::primitive::u32, pub remark: ::std::vec::Vec<::core::primitive::u8>, } impl ::subxt::blocks::StaticExtrinsic for ExtendBountyExpiry { const PALLET: &'static str = "Bounties"; const CALL: &'static str = "extend_bounty_expiry"; } } pub struct TransactionApi; impl TransactionApi { #[doc = "Propose a new bounty."] #[doc = ""] #[doc = "The dispatch origin for this call must be _Signed_."] #[doc = ""] #[doc = "Payment: `TipReportDepositBase` will be reserved from the origin account, as well as"] #[doc = "`DataDepositPerByte` for each byte in `reason`. It will be unreserved upon approval,"] #[doc = "or slashed when rejected."] #[doc = ""] #[doc = "- `curator`: The curator account whom will manage this bounty."] #[doc = "- `fee`: The curator fee."] #[doc = "- `value`: The total payment amount of this bounty, curator fee included."] #[doc = "- `description`: The description of this bounty."] pub fn propose_bounty( &self, value: ::core::primitive::u128, description: ::std::vec::Vec<::core::primitive::u8>, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Bounties", "propose_bounty", types::ProposeBounty { value, description }, [ 131u8, 169u8, 55u8, 102u8, 212u8, 139u8, 9u8, 65u8, 75u8, 112u8, 6u8, 180u8, 92u8, 124u8, 43u8, 42u8, 38u8, 40u8, 226u8, 24u8, 28u8, 34u8, 169u8, 220u8, 184u8, 206u8, 109u8, 227u8, 53u8, 228u8, 88u8, 25u8, ], ) } #[doc = "Approve a bounty proposal. At a later time, the bounty will be funded and become active"] #[doc = "and the original deposit will be returned."] #[doc = ""] #[doc = "May only be called from `T::SpendOrigin`."] #[doc = ""] #[doc = "## Complexity"] #[doc = "- O(1)."] pub fn approve_bounty( &self, bounty_id: ::core::primitive::u32, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Bounties", "approve_bounty", types::ApproveBounty { bounty_id }, [ 85u8, 12u8, 177u8, 91u8, 183u8, 124u8, 175u8, 148u8, 188u8, 200u8, 237u8, 144u8, 6u8, 67u8, 159u8, 48u8, 177u8, 222u8, 183u8, 137u8, 173u8, 131u8, 128u8, 219u8, 255u8, 243u8, 80u8, 224u8, 126u8, 136u8, 90u8, 47u8, ], ) } #[doc = "Assign a curator to a funded bounty."] #[doc = ""] #[doc = "May only be called from `T::SpendOrigin`."] #[doc = ""] #[doc = "## Complexity"] #[doc = "- O(1)."] pub fn propose_curator( &self, bounty_id: ::core::primitive::u32, curator: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, fee: ::core::primitive::u128, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Bounties", "propose_curator", types::ProposeCurator { bounty_id, curator, fee, }, [ 76u8, 227u8, 186u8, 154u8, 152u8, 178u8, 20u8, 230u8, 100u8, 120u8, 205u8, 166u8, 252u8, 53u8, 181u8, 42u8, 209u8, 80u8, 21u8, 190u8, 253u8, 141u8, 169u8, 210u8, 164u8, 205u8, 55u8, 47u8, 222u8, 218u8, 23u8, 184u8, ], ) } #[doc = "Unassign curator from a bounty."] #[doc = ""] #[doc = "This function can only be called by the `RejectOrigin` a signed origin."] #[doc = ""] #[doc = "If this function is called by the `RejectOrigin`, we assume that the curator is"] #[doc = "malicious or inactive. As a result, we will slash the curator when possible."] #[doc = ""] #[doc = "If the origin is the curator, we take this as a sign they are unable to do their job and"] #[doc = "they willingly give up. We could slash them, but for now we allow them to recover their"] #[doc = "deposit and exit without issue. (We may want to change this if it is abused.)"] #[doc = ""] #[doc = "Finally, the origin can be anyone if and only if the curator is \"inactive\". This allows"] #[doc = "anyone in the community to call out that a curator is not doing their due diligence, and"] #[doc = "we should pick a new curator. In this case the curator should also be slashed."] #[doc = ""] #[doc = "## Complexity"] #[doc = "- O(1)."] pub fn unassign_curator( &self, bounty_id: ::core::primitive::u32, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Bounties", "unassign_curator", types::UnassignCurator { bounty_id }, [ 98u8, 94u8, 107u8, 111u8, 151u8, 182u8, 71u8, 239u8, 214u8, 88u8, 108u8, 11u8, 51u8, 163u8, 102u8, 162u8, 245u8, 247u8, 244u8, 159u8, 197u8, 23u8, 171u8, 6u8, 60u8, 146u8, 144u8, 101u8, 68u8, 133u8, 245u8, 74u8, ], ) } #[doc = "Accept the curator role for a bounty."] #[doc = "A deposit will be reserved from curator and refund upon successful payout."] #[doc = ""] #[doc = "May only be called from the curator."] #[doc = ""] #[doc = "## Complexity"] #[doc = "- O(1)."] pub fn accept_curator( &self, bounty_id: ::core::primitive::u32, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Bounties", "accept_curator", types::AcceptCurator { bounty_id }, [ 178u8, 142u8, 138u8, 15u8, 243u8, 10u8, 222u8, 169u8, 150u8, 200u8, 85u8, 185u8, 39u8, 167u8, 134u8, 3u8, 186u8, 84u8, 43u8, 140u8, 11u8, 70u8, 56u8, 197u8, 39u8, 84u8, 138u8, 139u8, 198u8, 104u8, 41u8, 238u8, ], ) } #[doc = "Award bounty to a beneficiary account. The beneficiary will be able to claim the funds"] #[doc = "after a delay."] #[doc = ""] #[doc = "The dispatch origin for this call must be the curator of this bounty."] #[doc = ""] #[doc = "- `bounty_id`: Bounty ID to award."] #[doc = "- `beneficiary`: The beneficiary account whom will receive the payout."] #[doc = ""] #[doc = "## Complexity"] #[doc = "- O(1)."] pub fn award_bounty( &self, bounty_id: ::core::primitive::u32, beneficiary: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Bounties", "award_bounty", types::AwardBounty { bounty_id, beneficiary, }, [ 63u8, 149u8, 201u8, 185u8, 220u8, 212u8, 27u8, 98u8, 198u8, 147u8, 153u8, 226u8, 189u8, 151u8, 8u8, 102u8, 88u8, 206u8, 225u8, 108u8, 111u8, 153u8, 196u8, 40u8, 144u8, 238u8, 136u8, 70u8, 168u8, 82u8, 220u8, 53u8, ], ) } #[doc = "Claim the payout from an awarded bounty after payout delay."] #[doc = ""] #[doc = "The dispatch origin for this call must be the beneficiary of this bounty."] #[doc = ""] #[doc = "- `bounty_id`: Bounty ID to claim."] #[doc = ""] #[doc = "## Complexity"] #[doc = "- O(1)."] pub fn claim_bounty( &self, bounty_id: ::core::primitive::u32, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Bounties", "claim_bounty", types::ClaimBounty { bounty_id }, [ 211u8, 143u8, 123u8, 205u8, 140u8, 43u8, 176u8, 103u8, 110u8, 125u8, 158u8, 131u8, 103u8, 62u8, 69u8, 215u8, 220u8, 110u8, 11u8, 3u8, 30u8, 193u8, 235u8, 177u8, 96u8, 241u8, 140u8, 53u8, 62u8, 133u8, 170u8, 25u8, ], ) } #[doc = "Cancel a proposed or active bounty. All the funds will be sent to treasury and"] #[doc = "the curator deposit will be unreserved if possible."] #[doc = ""] #[doc = "Only `T::RejectOrigin` is able to cancel a bounty."] #[doc = ""] #[doc = "- `bounty_id`: Bounty ID to cancel."] #[doc = ""] #[doc = "## Complexity"] #[doc = "- O(1)."] pub fn close_bounty( &self, bounty_id: ::core::primitive::u32, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Bounties", "close_bounty", types::CloseBounty { bounty_id }, [ 144u8, 234u8, 109u8, 39u8, 227u8, 231u8, 104u8, 48u8, 45u8, 196u8, 217u8, 220u8, 241u8, 197u8, 157u8, 227u8, 154u8, 156u8, 181u8, 69u8, 146u8, 77u8, 203u8, 167u8, 79u8, 102u8, 15u8, 253u8, 135u8, 53u8, 96u8, 60u8, ], ) } #[doc = "Extend the expiry time of an active bounty."] #[doc = ""] #[doc = "The dispatch origin for this call must be the curator of this bounty."] #[doc = ""] #[doc = "- `bounty_id`: Bounty ID to extend."] #[doc = "- `remark`: additional information."] #[doc = ""] #[doc = "## Complexity"] #[doc = "- O(1)."] pub fn extend_bounty_expiry( &self, bounty_id: ::core::primitive::u32, remark: ::std::vec::Vec<::core::primitive::u8>, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Bounties", "extend_bounty_expiry", types::ExtendBountyExpiry { bounty_id, remark }, [ 102u8, 118u8, 89u8, 189u8, 138u8, 157u8, 216u8, 10u8, 239u8, 3u8, 200u8, 217u8, 219u8, 19u8, 195u8, 182u8, 105u8, 220u8, 11u8, 146u8, 222u8, 79u8, 95u8, 136u8, 188u8, 230u8, 248u8, 119u8, 30u8, 6u8, 242u8, 194u8, ], ) } } } #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] pub type Event = runtime_types::pallet_bounties::pallet::Event; pub mod events { use super::runtime_types; #[derive( :: subxt :: ext :: codec :: CompactAs, :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "New bounty proposal."] pub struct BountyProposed { pub index: ::core::primitive::u32, } impl ::subxt::events::StaticEvent for BountyProposed { const PALLET: &'static str = "Bounties"; const EVENT: &'static str = "BountyProposed"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A bounty proposal was rejected; funds were slashed."] pub struct BountyRejected { pub index: ::core::primitive::u32, pub bond: ::core::primitive::u128, } impl ::subxt::events::StaticEvent for BountyRejected { const PALLET: &'static str = "Bounties"; const EVENT: &'static str = "BountyRejected"; } #[derive( :: subxt :: ext :: codec :: CompactAs, :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A bounty proposal is funded and became active."] pub struct BountyBecameActive { pub index: ::core::primitive::u32, } impl ::subxt::events::StaticEvent for BountyBecameActive { const PALLET: &'static str = "Bounties"; const EVENT: &'static str = "BountyBecameActive"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A bounty is awarded to a beneficiary."] pub struct BountyAwarded { pub index: ::core::primitive::u32, pub beneficiary: ::subxt::utils::AccountId32, } impl ::subxt::events::StaticEvent for BountyAwarded { const PALLET: &'static str = "Bounties"; const EVENT: &'static str = "BountyAwarded"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A bounty is claimed by beneficiary."] pub struct BountyClaimed { pub index: ::core::primitive::u32, pub payout: ::core::primitive::u128, pub beneficiary: ::subxt::utils::AccountId32, } impl ::subxt::events::StaticEvent for BountyClaimed { const PALLET: &'static str = "Bounties"; const EVENT: &'static str = "BountyClaimed"; } #[derive( :: subxt :: ext :: codec :: CompactAs, :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A bounty is cancelled."] pub struct BountyCanceled { pub index: ::core::primitive::u32, } impl ::subxt::events::StaticEvent for BountyCanceled { const PALLET: &'static str = "Bounties"; const EVENT: &'static str = "BountyCanceled"; } #[derive( :: subxt :: ext :: codec :: CompactAs, :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A bounty expiry is extended."] pub struct BountyExtended { pub index: ::core::primitive::u32, } impl ::subxt::events::StaticEvent for BountyExtended { const PALLET: &'static str = "Bounties"; const EVENT: &'static str = "BountyExtended"; } } pub mod storage { use super::runtime_types; pub struct StorageApi; impl StorageApi { #[doc = " Number of bounty proposals that have been made."] pub fn bounty_count( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, ::core::primitive::u32, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), > { ::subxt::storage::address::Address::new_static( "Bounties", "BountyCount", vec![], [ 120u8, 204u8, 26u8, 150u8, 37u8, 81u8, 43u8, 223u8, 180u8, 252u8, 142u8, 144u8, 109u8, 5u8, 184u8, 72u8, 223u8, 230u8, 66u8, 196u8, 14u8, 14u8, 164u8, 190u8, 246u8, 168u8, 190u8, 56u8, 212u8, 73u8, 175u8, 26u8, ], ) } #[doc = " Bounties that have been made."] pub fn bounties( &self, _0: impl ::std::borrow::Borrow<::core::primitive::u32>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, runtime_types::pallet_bounties::Bounty< ::subxt::utils::AccountId32, ::core::primitive::u128, ::core::primitive::u32, >, ::subxt::storage::address::Yes, (), ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( "Bounties", "Bounties", vec![::subxt::storage::address::make_static_storage_map_key( _0.borrow(), )], [ 197u8, 26u8, 141u8, 98u8, 53u8, 123u8, 87u8, 219u8, 248u8, 200u8, 207u8, 196u8, 211u8, 159u8, 124u8, 173u8, 143u8, 144u8, 85u8, 180u8, 227u8, 24u8, 7u8, 52u8, 130u8, 98u8, 107u8, 145u8, 162u8, 55u8, 64u8, 199u8, ], ) } #[doc = " Bounties that have been made."] pub fn bounties_root( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, runtime_types::pallet_bounties::Bounty< ::subxt::utils::AccountId32, ::core::primitive::u128, ::core::primitive::u32, >, (), (), ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( "Bounties", "Bounties", Vec::new(), [ 197u8, 26u8, 141u8, 98u8, 53u8, 123u8, 87u8, 219u8, 248u8, 200u8, 207u8, 196u8, 211u8, 159u8, 124u8, 173u8, 143u8, 144u8, 85u8, 180u8, 227u8, 24u8, 7u8, 52u8, 130u8, 98u8, 107u8, 145u8, 162u8, 55u8, 64u8, 199u8, ], ) } #[doc = " The description of each bounty."] pub fn bounty_descriptions( &self, _0: impl ::std::borrow::Borrow<::core::primitive::u32>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, runtime_types::bounded_collections::bounded_vec::BoundedVec< ::core::primitive::u8, >, ::subxt::storage::address::Yes, (), ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( "Bounties", "BountyDescriptions", vec![::subxt::storage::address::make_static_storage_map_key( _0.borrow(), )], [ 71u8, 40u8, 133u8, 84u8, 55u8, 207u8, 169u8, 189u8, 160u8, 51u8, 202u8, 144u8, 15u8, 226u8, 97u8, 114u8, 54u8, 247u8, 53u8, 26u8, 36u8, 54u8, 186u8, 163u8, 198u8, 100u8, 191u8, 121u8, 186u8, 160u8, 85u8, 97u8, ], ) } #[doc = " The description of each bounty."] pub fn bounty_descriptions_root( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, runtime_types::bounded_collections::bounded_vec::BoundedVec< ::core::primitive::u8, >, (), (), ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( "Bounties", "BountyDescriptions", Vec::new(), [ 71u8, 40u8, 133u8, 84u8, 55u8, 207u8, 169u8, 189u8, 160u8, 51u8, 202u8, 144u8, 15u8, 226u8, 97u8, 114u8, 54u8, 247u8, 53u8, 26u8, 36u8, 54u8, 186u8, 163u8, 198u8, 100u8, 191u8, 121u8, 186u8, 160u8, 85u8, 97u8, ], ) } #[doc = " Bounty indices that have been approved but not yet funded."] pub fn bounty_approvals( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, runtime_types::bounded_collections::bounded_vec::BoundedVec< ::core::primitive::u32, >, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), > { ::subxt::storage::address::Address::new_static( "Bounties", "BountyApprovals", vec![], [ 182u8, 228u8, 0u8, 46u8, 176u8, 25u8, 222u8, 180u8, 51u8, 57u8, 14u8, 0u8, 69u8, 160u8, 64u8, 27u8, 88u8, 29u8, 227u8, 146u8, 2u8, 121u8, 27u8, 85u8, 45u8, 110u8, 244u8, 62u8, 134u8, 77u8, 175u8, 188u8, ], ) } } } pub mod constants { use super::runtime_types; pub struct ConstantsApi; impl ConstantsApi { #[doc = " The amount held on deposit for placing a bounty proposal."] pub fn bounty_deposit_base( &self, ) -> ::subxt::constants::Address<::core::primitive::u128> { ::subxt::constants::Address::new_static( "Bounties", "BountyDepositBase", [ 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8, 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, 136u8, 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, 148u8, 156u8, ], ) } #[doc = " The delay period for which a bounty beneficiary need to wait before claim the payout."] pub fn bounty_deposit_payout_delay( &self, ) -> ::subxt::constants::Address<::core::primitive::u32> { ::subxt::constants::Address::new_static( "Bounties", "BountyDepositPayoutDelay", [ 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, 145u8, ], ) } #[doc = " Bounty duration in blocks."] pub fn bounty_update_period( &self, ) -> ::subxt::constants::Address<::core::primitive::u32> { ::subxt::constants::Address::new_static( "Bounties", "BountyUpdatePeriod", [ 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, 145u8, ], ) } #[doc = " The curator deposit is calculated as a percentage of the curator fee."] #[doc = ""] #[doc = " This deposit has optional upper and lower bounds with `CuratorDepositMax` and"] #[doc = " `CuratorDepositMin`."] pub fn curator_deposit_multiplier( &self, ) -> ::subxt::constants::Address { ::subxt::constants::Address::new_static( "Bounties", "CuratorDepositMultiplier", [ 65u8, 93u8, 120u8, 165u8, 204u8, 81u8, 159u8, 163u8, 93u8, 135u8, 114u8, 121u8, 147u8, 35u8, 215u8, 213u8, 4u8, 223u8, 83u8, 37u8, 225u8, 200u8, 189u8, 156u8, 140u8, 36u8, 58u8, 46u8, 42u8, 232u8, 155u8, 0u8, ], ) } #[doc = " Maximum amount of funds that should be placed in a deposit for making a proposal."] pub fn curator_deposit_max( &self, ) -> ::subxt::constants::Address<::core::option::Option<::core::primitive::u128>> { ::subxt::constants::Address::new_static( "Bounties", "CuratorDepositMax", [ 198u8, 51u8, 89u8, 159u8, 124u8, 251u8, 51u8, 80u8, 167u8, 193u8, 44u8, 199u8, 80u8, 36u8, 41u8, 130u8, 137u8, 229u8, 178u8, 208u8, 37u8, 215u8, 169u8, 183u8, 180u8, 191u8, 140u8, 240u8, 250u8, 61u8, 42u8, 147u8, ], ) } #[doc = " Minimum amount of funds that should be placed in a deposit for making a proposal."] pub fn curator_deposit_min( &self, ) -> ::subxt::constants::Address<::core::option::Option<::core::primitive::u128>> { ::subxt::constants::Address::new_static( "Bounties", "CuratorDepositMin", [ 198u8, 51u8, 89u8, 159u8, 124u8, 251u8, 51u8, 80u8, 167u8, 193u8, 44u8, 199u8, 80u8, 36u8, 41u8, 130u8, 137u8, 229u8, 178u8, 208u8, 37u8, 215u8, 169u8, 183u8, 180u8, 191u8, 140u8, 240u8, 250u8, 61u8, 42u8, 147u8, ], ) } #[doc = " Minimum value for a bounty."] pub fn bounty_value_minimum( &self, ) -> ::subxt::constants::Address<::core::primitive::u128> { ::subxt::constants::Address::new_static( "Bounties", "BountyValueMinimum", [ 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8, 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, 136u8, 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, 148u8, 156u8, ], ) } #[doc = " The amount held on deposit per byte within the tip report reason or bounty description."] pub fn data_deposit_per_byte( &self, ) -> ::subxt::constants::Address<::core::primitive::u128> { ::subxt::constants::Address::new_static( "Bounties", "DataDepositPerByte", [ 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8, 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, 136u8, 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, 148u8, 156u8, ], ) } #[doc = " Maximum acceptable reason length."] #[doc = ""] #[doc = " Benchmarks depend on this value, be sure to update weights file when changing this value"] pub fn maximum_reason_length( &self, ) -> ::subxt::constants::Address<::core::primitive::u32> { ::subxt::constants::Address::new_static( "Bounties", "MaximumReasonLength", [ 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, 145u8, ], ) } } } } pub mod child_bounties { use super::root_mod; use super::runtime_types; #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] pub type Error = runtime_types::pallet_child_bounties::pallet::Error; #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] pub type Call = runtime_types::pallet_child_bounties::pallet::Call; pub mod calls { use super::root_mod; use super::runtime_types; type DispatchError = runtime_types::sp_runtime::DispatchError; pub mod types { use super::runtime_types; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct AddChildBounty { #[codec(compact)] pub parent_bounty_id: ::core::primitive::u32, #[codec(compact)] pub value: ::core::primitive::u128, pub description: ::std::vec::Vec<::core::primitive::u8>, } impl ::subxt::blocks::StaticExtrinsic for AddChildBounty { const PALLET: &'static str = "ChildBounties"; const CALL: &'static str = "add_child_bounty"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ProposeCurator { #[codec(compact)] pub parent_bounty_id: ::core::primitive::u32, #[codec(compact)] pub child_bounty_id: ::core::primitive::u32, pub curator: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, #[codec(compact)] pub fee: ::core::primitive::u128, } impl ::subxt::blocks::StaticExtrinsic for ProposeCurator { const PALLET: &'static str = "ChildBounties"; const CALL: &'static str = "propose_curator"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct AcceptCurator { #[codec(compact)] pub parent_bounty_id: ::core::primitive::u32, #[codec(compact)] pub child_bounty_id: ::core::primitive::u32, } impl ::subxt::blocks::StaticExtrinsic for AcceptCurator { const PALLET: &'static str = "ChildBounties"; const CALL: &'static str = "accept_curator"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct UnassignCurator { #[codec(compact)] pub parent_bounty_id: ::core::primitive::u32, #[codec(compact)] pub child_bounty_id: ::core::primitive::u32, } impl ::subxt::blocks::StaticExtrinsic for UnassignCurator { const PALLET: &'static str = "ChildBounties"; const CALL: &'static str = "unassign_curator"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct AwardChildBounty { #[codec(compact)] pub parent_bounty_id: ::core::primitive::u32, #[codec(compact)] pub child_bounty_id: ::core::primitive::u32, pub beneficiary: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, } impl ::subxt::blocks::StaticExtrinsic for AwardChildBounty { const PALLET: &'static str = "ChildBounties"; const CALL: &'static str = "award_child_bounty"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ClaimChildBounty { #[codec(compact)] pub parent_bounty_id: ::core::primitive::u32, #[codec(compact)] pub child_bounty_id: ::core::primitive::u32, } impl ::subxt::blocks::StaticExtrinsic for ClaimChildBounty { const PALLET: &'static str = "ChildBounties"; const CALL: &'static str = "claim_child_bounty"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct CloseChildBounty { #[codec(compact)] pub parent_bounty_id: ::core::primitive::u32, #[codec(compact)] pub child_bounty_id: ::core::primitive::u32, } impl ::subxt::blocks::StaticExtrinsic for CloseChildBounty { const PALLET: &'static str = "ChildBounties"; const CALL: &'static str = "close_child_bounty"; } } pub struct TransactionApi; impl TransactionApi { #[doc = "Add a new child-bounty."] #[doc = ""] #[doc = "The dispatch origin for this call must be the curator of parent"] #[doc = "bounty and the parent bounty must be in \"active\" state."] #[doc = ""] #[doc = "Child-bounty gets added successfully & fund gets transferred from"] #[doc = "parent bounty to child-bounty account, if parent bounty has enough"] #[doc = "funds, else the call fails."] #[doc = ""] #[doc = "Upper bound to maximum number of active child bounties that can be"] #[doc = "added are managed via runtime trait config"] #[doc = "[`Config::MaxActiveChildBountyCount`]."] #[doc = ""] #[doc = "If the call is success, the status of child-bounty is updated to"] #[doc = "\"Added\"."] #[doc = ""] #[doc = "- `parent_bounty_id`: Index of parent bounty for which child-bounty is being added."] #[doc = "- `value`: Value for executing the proposal."] #[doc = "- `description`: Text description for the child-bounty."] pub fn add_child_bounty( &self, parent_bounty_id: ::core::primitive::u32, value: ::core::primitive::u128, description: ::std::vec::Vec<::core::primitive::u8>, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "ChildBounties", "add_child_bounty", types::AddChildBounty { parent_bounty_id, value, description, }, [ 249u8, 159u8, 185u8, 144u8, 114u8, 142u8, 104u8, 215u8, 136u8, 52u8, 255u8, 125u8, 54u8, 243u8, 220u8, 171u8, 254u8, 49u8, 105u8, 134u8, 137u8, 221u8, 100u8, 111u8, 72u8, 38u8, 184u8, 122u8, 72u8, 204u8, 182u8, 123u8, ], ) } #[doc = "Propose curator for funded child-bounty."] #[doc = ""] #[doc = "The dispatch origin for this call must be curator of parent bounty."] #[doc = ""] #[doc = "Parent bounty must be in active state, for this child-bounty call to"] #[doc = "work."] #[doc = ""] #[doc = "Child-bounty must be in \"Added\" state, for processing the call. And"] #[doc = "state of child-bounty is moved to \"CuratorProposed\" on successful"] #[doc = "call completion."] #[doc = ""] #[doc = "- `parent_bounty_id`: Index of parent bounty."] #[doc = "- `child_bounty_id`: Index of child bounty."] #[doc = "- `curator`: Address of child-bounty curator."] #[doc = "- `fee`: payment fee to child-bounty curator for execution."] pub fn propose_curator( &self, parent_bounty_id: ::core::primitive::u32, child_bounty_id: ::core::primitive::u32, curator: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, fee: ::core::primitive::u128, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "ChildBounties", "propose_curator", types::ProposeCurator { parent_bounty_id, child_bounty_id, curator, fee, }, [ 116u8, 56u8, 236u8, 218u8, 2u8, 75u8, 84u8, 32u8, 154u8, 92u8, 189u8, 138u8, 10u8, 84u8, 121u8, 152u8, 48u8, 229u8, 169u8, 29u8, 129u8, 87u8, 47u8, 16u8, 193u8, 21u8, 146u8, 143u8, 5u8, 210u8, 24u8, 31u8, ], ) } #[doc = "Accept the curator role for the child-bounty."] #[doc = ""] #[doc = "The dispatch origin for this call must be the curator of this"] #[doc = "child-bounty."] #[doc = ""] #[doc = "A deposit will be reserved from the curator and refund upon"] #[doc = "successful payout or cancellation."] #[doc = ""] #[doc = "Fee for curator is deducted from curator fee of parent bounty."] #[doc = ""] #[doc = "Parent bounty must be in active state, for this child-bounty call to"] #[doc = "work."] #[doc = ""] #[doc = "Child-bounty must be in \"CuratorProposed\" state, for processing the"] #[doc = "call. And state of child-bounty is moved to \"Active\" on successful"] #[doc = "call completion."] #[doc = ""] #[doc = "- `parent_bounty_id`: Index of parent bounty."] #[doc = "- `child_bounty_id`: Index of child bounty."] pub fn accept_curator( &self, parent_bounty_id: ::core::primitive::u32, child_bounty_id: ::core::primitive::u32, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "ChildBounties", "accept_curator", types::AcceptCurator { parent_bounty_id, child_bounty_id, }, [ 167u8, 196u8, 221u8, 73u8, 86u8, 83u8, 173u8, 219u8, 241u8, 116u8, 28u8, 109u8, 21u8, 209u8, 62u8, 131u8, 182u8, 252u8, 54u8, 114u8, 9u8, 51u8, 225u8, 37u8, 4u8, 127u8, 110u8, 80u8, 172u8, 97u8, 11u8, 78u8, ], ) } #[doc = "Unassign curator from a child-bounty."] #[doc = ""] #[doc = "The dispatch origin for this call can be either `RejectOrigin`, or"] #[doc = "the curator of the parent bounty, or any signed origin."] #[doc = ""] #[doc = "For the origin other than T::RejectOrigin and the child-bounty"] #[doc = "curator, parent bounty must be in active state, for this call to"] #[doc = "work. We allow child-bounty curator and T::RejectOrigin to execute"] #[doc = "this call irrespective of the parent bounty state."] #[doc = ""] #[doc = "If this function is called by the `RejectOrigin` or the"] #[doc = "parent bounty curator, we assume that the child-bounty curator is"] #[doc = "malicious or inactive. As a result, child-bounty curator deposit is"] #[doc = "slashed."] #[doc = ""] #[doc = "If the origin is the child-bounty curator, we take this as a sign"] #[doc = "that they are unable to do their job, and are willingly giving up."] #[doc = "We could slash the deposit, but for now we allow them to unreserve"] #[doc = "their deposit and exit without issue. (We may want to change this if"] #[doc = "it is abused.)"] #[doc = ""] #[doc = "Finally, the origin can be anyone iff the child-bounty curator is"] #[doc = "\"inactive\". Expiry update due of parent bounty is used to estimate"] #[doc = "inactive state of child-bounty curator."] #[doc = ""] #[doc = "This allows anyone in the community to call out that a child-bounty"] #[doc = "curator is not doing their due diligence, and we should pick a new"] #[doc = "one. In this case the child-bounty curator deposit is slashed."] #[doc = ""] #[doc = "State of child-bounty is moved to Added state on successful call"] #[doc = "completion."] #[doc = ""] #[doc = "- `parent_bounty_id`: Index of parent bounty."] #[doc = "- `child_bounty_id`: Index of child bounty."] pub fn unassign_curator( &self, parent_bounty_id: ::core::primitive::u32, child_bounty_id: ::core::primitive::u32, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "ChildBounties", "unassign_curator", types::UnassignCurator { parent_bounty_id, child_bounty_id, }, [ 217u8, 24u8, 147u8, 239u8, 116u8, 226u8, 244u8, 189u8, 62u8, 141u8, 173u8, 70u8, 213u8, 147u8, 68u8, 51u8, 200u8, 66u8, 200u8, 174u8, 243u8, 49u8, 54u8, 219u8, 243u8, 255u8, 250u8, 215u8, 216u8, 248u8, 32u8, 90u8, ], ) } #[doc = "Award child-bounty to a beneficiary."] #[doc = ""] #[doc = "The beneficiary will be able to claim the funds after a delay."] #[doc = ""] #[doc = "The dispatch origin for this call must be the parent curator or"] #[doc = "curator of this child-bounty."] #[doc = ""] #[doc = "Parent bounty must be in active state, for this child-bounty call to"] #[doc = "work."] #[doc = ""] #[doc = "Child-bounty must be in active state, for processing the call. And"] #[doc = "state of child-bounty is moved to \"PendingPayout\" on successful call"] #[doc = "completion."] #[doc = ""] #[doc = "- `parent_bounty_id`: Index of parent bounty."] #[doc = "- `child_bounty_id`: Index of child bounty."] #[doc = "- `beneficiary`: Beneficiary account."] pub fn award_child_bounty( &self, parent_bounty_id: ::core::primitive::u32, child_bounty_id: ::core::primitive::u32, beneficiary: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "ChildBounties", "award_child_bounty", types::AwardChildBounty { parent_bounty_id, child_bounty_id, beneficiary, }, [ 76u8, 85u8, 36u8, 192u8, 231u8, 112u8, 236u8, 167u8, 84u8, 172u8, 239u8, 171u8, 49u8, 199u8, 102u8, 147u8, 176u8, 66u8, 31u8, 56u8, 104u8, 50u8, 163u8, 252u8, 213u8, 22u8, 115u8, 44u8, 249u8, 34u8, 198u8, 133u8, ], ) } #[doc = "Claim the payout from an awarded child-bounty after payout delay."] #[doc = ""] #[doc = "The dispatch origin for this call may be any signed origin."] #[doc = ""] #[doc = "Call works independent of parent bounty state, No need for parent"] #[doc = "bounty to be in active state."] #[doc = ""] #[doc = "The Beneficiary is paid out with agreed bounty value. Curator fee is"] #[doc = "paid & curator deposit is unreserved."] #[doc = ""] #[doc = "Child-bounty must be in \"PendingPayout\" state, for processing the"] #[doc = "call. And instance of child-bounty is removed from the state on"] #[doc = "successful call completion."] #[doc = ""] #[doc = "- `parent_bounty_id`: Index of parent bounty."] #[doc = "- `child_bounty_id`: Index of child bounty."] pub fn claim_child_bounty( &self, parent_bounty_id: ::core::primitive::u32, child_bounty_id: ::core::primitive::u32, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "ChildBounties", "claim_child_bounty", types::ClaimChildBounty { parent_bounty_id, child_bounty_id, }, [ 72u8, 55u8, 100u8, 52u8, 218u8, 49u8, 63u8, 107u8, 45u8, 43u8, 34u8, 6u8, 48u8, 56u8, 240u8, 3u8, 96u8, 128u8, 202u8, 30u8, 233u8, 116u8, 86u8, 141u8, 36u8, 184u8, 217u8, 48u8, 20u8, 54u8, 45u8, 65u8, ], ) } #[doc = "Cancel a proposed or active child-bounty. Child-bounty account funds"] #[doc = "are transferred to parent bounty account. The child-bounty curator"] #[doc = "deposit may be unreserved if possible."] #[doc = ""] #[doc = "The dispatch origin for this call must be either parent curator or"] #[doc = "`T::RejectOrigin`."] #[doc = ""] #[doc = "If the state of child-bounty is `Active`, curator deposit is"] #[doc = "unreserved."] #[doc = ""] #[doc = "If the state of child-bounty is `PendingPayout`, call fails &"] #[doc = "returns `PendingPayout` error."] #[doc = ""] #[doc = "For the origin other than T::RejectOrigin, parent bounty must be in"] #[doc = "active state, for this child-bounty call to work. For origin"] #[doc = "T::RejectOrigin execution is forced."] #[doc = ""] #[doc = "Instance of child-bounty is removed from the state on successful"] #[doc = "call completion."] #[doc = ""] #[doc = "- `parent_bounty_id`: Index of parent bounty."] #[doc = "- `child_bounty_id`: Index of child bounty."] pub fn close_child_bounty( &self, parent_bounty_id: ::core::primitive::u32, child_bounty_id: ::core::primitive::u32, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "ChildBounties", "close_child_bounty", types::CloseChildBounty { parent_bounty_id, child_bounty_id, }, [ 127u8, 210u8, 46u8, 3u8, 33u8, 232u8, 159u8, 245u8, 249u8, 217u8, 51u8, 254u8, 167u8, 10u8, 30u8, 195u8, 30u8, 0u8, 204u8, 251u8, 113u8, 1u8, 104u8, 215u8, 88u8, 10u8, 200u8, 144u8, 62u8, 93u8, 223u8, 106u8, ], ) } } } #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] pub type Event = runtime_types::pallet_child_bounties::pallet::Event; pub mod events { use super::runtime_types; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A child-bounty is added."] pub struct Added { pub index: ::core::primitive::u32, pub child_index: ::core::primitive::u32, } impl ::subxt::events::StaticEvent for Added { const PALLET: &'static str = "ChildBounties"; const EVENT: &'static str = "Added"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A child-bounty is awarded to a beneficiary."] pub struct Awarded { pub index: ::core::primitive::u32, pub child_index: ::core::primitive::u32, pub beneficiary: ::subxt::utils::AccountId32, } impl ::subxt::events::StaticEvent for Awarded { const PALLET: &'static str = "ChildBounties"; const EVENT: &'static str = "Awarded"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A child-bounty is claimed by beneficiary."] pub struct Claimed { pub index: ::core::primitive::u32, pub child_index: ::core::primitive::u32, pub payout: ::core::primitive::u128, pub beneficiary: ::subxt::utils::AccountId32, } impl ::subxt::events::StaticEvent for Claimed { const PALLET: &'static str = "ChildBounties"; const EVENT: &'static str = "Claimed"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A child-bounty is cancelled."] pub struct Canceled { pub index: ::core::primitive::u32, pub child_index: ::core::primitive::u32, } impl ::subxt::events::StaticEvent for Canceled { const PALLET: &'static str = "ChildBounties"; const EVENT: &'static str = "Canceled"; } } pub mod storage { use super::runtime_types; pub struct StorageApi; impl StorageApi { #[doc = " Number of total child bounties."] pub fn child_bounty_count( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, ::core::primitive::u32, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), > { ::subxt::storage::address::Address::new_static( "ChildBounties", "ChildBountyCount", vec![], [ 206u8, 1u8, 40u8, 132u8, 51u8, 139u8, 234u8, 20u8, 89u8, 86u8, 247u8, 107u8, 169u8, 252u8, 5u8, 180u8, 218u8, 24u8, 232u8, 94u8, 82u8, 135u8, 24u8, 16u8, 134u8, 23u8, 201u8, 86u8, 12u8, 19u8, 199u8, 0u8, ], ) } #[doc = " Number of child bounties per parent bounty."] #[doc = " Map of parent bounty index to number of child bounties."] pub fn parent_child_bounties( &self, _0: impl ::std::borrow::Borrow<::core::primitive::u32>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, ::core::primitive::u32, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( "ChildBounties", "ParentChildBounties", vec![::subxt::storage::address::make_static_storage_map_key( _0.borrow(), )], [ 12u8, 238u8, 185u8, 135u8, 158u8, 191u8, 208u8, 104u8, 37u8, 235u8, 101u8, 15u8, 89u8, 20u8, 191u8, 191u8, 78u8, 206u8, 9u8, 19u8, 169u8, 17u8, 13u8, 213u8, 238u8, 220u8, 189u8, 100u8, 194u8, 62u8, 85u8, 150u8, ], ) } #[doc = " Number of child bounties per parent bounty."] #[doc = " Map of parent bounty index to number of child bounties."] pub fn parent_child_bounties_root( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, ::core::primitive::u32, (), ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( "ChildBounties", "ParentChildBounties", Vec::new(), [ 12u8, 238u8, 185u8, 135u8, 158u8, 191u8, 208u8, 104u8, 37u8, 235u8, 101u8, 15u8, 89u8, 20u8, 191u8, 191u8, 78u8, 206u8, 9u8, 19u8, 169u8, 17u8, 13u8, 213u8, 238u8, 220u8, 189u8, 100u8, 194u8, 62u8, 85u8, 150u8, ], ) } #[doc = " Child bounties that have been added."] pub fn child_bounties( &self, _0: impl ::std::borrow::Borrow<::core::primitive::u32>, _1: impl ::std::borrow::Borrow<::core::primitive::u32>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, runtime_types::pallet_child_bounties::ChildBounty< ::subxt::utils::AccountId32, ::core::primitive::u128, ::core::primitive::u32, >, ::subxt::storage::address::Yes, (), ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( "ChildBounties", "ChildBounties", vec![ ::subxt::storage::address::make_static_storage_map_key(_0.borrow()), ::subxt::storage::address::make_static_storage_map_key(_1.borrow()), ], [ 236u8, 41u8, 10u8, 227u8, 176u8, 177u8, 196u8, 79u8, 112u8, 117u8, 171u8, 175u8, 84u8, 180u8, 69u8, 146u8, 252u8, 228u8, 32u8, 113u8, 226u8, 136u8, 175u8, 129u8, 1u8, 161u8, 145u8, 60u8, 142u8, 25u8, 162u8, 42u8, ], ) } #[doc = " Child bounties that have been added."] pub fn child_bounties_root( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, runtime_types::pallet_child_bounties::ChildBounty< ::subxt::utils::AccountId32, ::core::primitive::u128, ::core::primitive::u32, >, (), (), ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( "ChildBounties", "ChildBounties", Vec::new(), [ 236u8, 41u8, 10u8, 227u8, 176u8, 177u8, 196u8, 79u8, 112u8, 117u8, 171u8, 175u8, 84u8, 180u8, 69u8, 146u8, 252u8, 228u8, 32u8, 113u8, 226u8, 136u8, 175u8, 129u8, 1u8, 161u8, 145u8, 60u8, 142u8, 25u8, 162u8, 42u8, ], ) } #[doc = " The description of each child-bounty."] pub fn child_bounty_descriptions( &self, _0: impl ::std::borrow::Borrow<::core::primitive::u32>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, runtime_types::bounded_collections::bounded_vec::BoundedVec< ::core::primitive::u8, >, ::subxt::storage::address::Yes, (), ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( "ChildBounties", "ChildBountyDescriptions", vec![::subxt::storage::address::make_static_storage_map_key( _0.borrow(), )], [ 192u8, 0u8, 220u8, 156u8, 109u8, 65u8, 113u8, 102u8, 119u8, 0u8, 109u8, 141u8, 211u8, 128u8, 237u8, 61u8, 28u8, 56u8, 206u8, 93u8, 183u8, 74u8, 192u8, 220u8, 76u8, 175u8, 85u8, 105u8, 179u8, 11u8, 164u8, 100u8, ], ) } #[doc = " The description of each child-bounty."] pub fn child_bounty_descriptions_root( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, runtime_types::bounded_collections::bounded_vec::BoundedVec< ::core::primitive::u8, >, (), (), ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( "ChildBounties", "ChildBountyDescriptions", Vec::new(), [ 192u8, 0u8, 220u8, 156u8, 109u8, 65u8, 113u8, 102u8, 119u8, 0u8, 109u8, 141u8, 211u8, 128u8, 237u8, 61u8, 28u8, 56u8, 206u8, 93u8, 183u8, 74u8, 192u8, 220u8, 76u8, 175u8, 85u8, 105u8, 179u8, 11u8, 164u8, 100u8, ], ) } #[doc = " The cumulative child-bounty curator fee for each parent bounty."] pub fn children_curator_fees( &self, _0: impl ::std::borrow::Borrow<::core::primitive::u32>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, ::core::primitive::u128, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( "ChildBounties", "ChildrenCuratorFees", vec![::subxt::storage::address::make_static_storage_map_key( _0.borrow(), )], [ 32u8, 16u8, 190u8, 193u8, 6u8, 80u8, 163u8, 16u8, 85u8, 111u8, 39u8, 141u8, 209u8, 70u8, 213u8, 167u8, 22u8, 12u8, 93u8, 17u8, 104u8, 94u8, 129u8, 37u8, 179u8, 41u8, 156u8, 117u8, 39u8, 202u8, 227u8, 235u8, ], ) } #[doc = " The cumulative child-bounty curator fee for each parent bounty."] pub fn children_curator_fees_root( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, ::core::primitive::u128, (), ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( "ChildBounties", "ChildrenCuratorFees", Vec::new(), [ 32u8, 16u8, 190u8, 193u8, 6u8, 80u8, 163u8, 16u8, 85u8, 111u8, 39u8, 141u8, 209u8, 70u8, 213u8, 167u8, 22u8, 12u8, 93u8, 17u8, 104u8, 94u8, 129u8, 37u8, 179u8, 41u8, 156u8, 117u8, 39u8, 202u8, 227u8, 235u8, ], ) } } } pub mod constants { use super::runtime_types; pub struct ConstantsApi; impl ConstantsApi { #[doc = " Maximum number of child bounties that can be added to a parent bounty."] pub fn max_active_child_bounty_count( &self, ) -> ::subxt::constants::Address<::core::primitive::u32> { ::subxt::constants::Address::new_static( "ChildBounties", "MaxActiveChildBountyCount", [ 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, 145u8, ], ) } #[doc = " Minimum value for a child-bounty."] pub fn child_bounty_value_minimum( &self, ) -> ::subxt::constants::Address<::core::primitive::u128> { ::subxt::constants::Address::new_static( "ChildBounties", "ChildBountyValueMinimum", [ 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8, 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, 136u8, 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, 148u8, 156u8, ], ) } } } } pub mod tips { use super::root_mod; use super::runtime_types; #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] pub type Error = runtime_types::pallet_tips::pallet::Error; #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] pub type Call = runtime_types::pallet_tips::pallet::Call; pub mod calls { use super::root_mod; use super::runtime_types; type DispatchError = runtime_types::sp_runtime::DispatchError; pub mod types { use super::runtime_types; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ReportAwesome { pub reason: ::std::vec::Vec<::core::primitive::u8>, pub who: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, } impl ::subxt::blocks::StaticExtrinsic for ReportAwesome { const PALLET: &'static str = "Tips"; const CALL: &'static str = "report_awesome"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct RetractTip { pub hash: ::subxt::utils::H256, } impl ::subxt::blocks::StaticExtrinsic for RetractTip { const PALLET: &'static str = "Tips"; const CALL: &'static str = "retract_tip"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct TipNew { pub reason: ::std::vec::Vec<::core::primitive::u8>, pub who: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, #[codec(compact)] pub tip_value: ::core::primitive::u128, } impl ::subxt::blocks::StaticExtrinsic for TipNew { const PALLET: &'static str = "Tips"; const CALL: &'static str = "tip_new"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Tip { pub hash: ::subxt::utils::H256, #[codec(compact)] pub tip_value: ::core::primitive::u128, } impl ::subxt::blocks::StaticExtrinsic for Tip { const PALLET: &'static str = "Tips"; const CALL: &'static str = "tip"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct CloseTip { pub hash: ::subxt::utils::H256, } impl ::subxt::blocks::StaticExtrinsic for CloseTip { const PALLET: &'static str = "Tips"; const CALL: &'static str = "close_tip"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SlashTip { pub hash: ::subxt::utils::H256, } impl ::subxt::blocks::StaticExtrinsic for SlashTip { const PALLET: &'static str = "Tips"; const CALL: &'static str = "slash_tip"; } } pub struct TransactionApi; impl TransactionApi { #[doc = "Report something `reason` that deserves a tip and claim any eventual the finder's fee."] #[doc = ""] #[doc = "The dispatch origin for this call must be _Signed_."] #[doc = ""] #[doc = "Payment: `TipReportDepositBase` will be reserved from the origin account, as well as"] #[doc = "`DataDepositPerByte` for each byte in `reason`."] #[doc = ""] #[doc = "- `reason`: The reason for, or the thing that deserves, the tip; generally this will be"] #[doc = " a UTF-8-encoded URL."] #[doc = "- `who`: The account which should be credited for the tip."] #[doc = ""] #[doc = "Emits `NewTip` if successful."] #[doc = ""] #[doc = "## Complexity"] #[doc = "- `O(R)` where `R` length of `reason`."] #[doc = " - encoding and hashing of 'reason'"] pub fn report_awesome( &self, reason: ::std::vec::Vec<::core::primitive::u8>, who: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Tips", "report_awesome", types::ReportAwesome { reason, who }, [ 88u8, 73u8, 244u8, 114u8, 223u8, 87u8, 16u8, 90u8, 73u8, 203u8, 236u8, 87u8, 89u8, 89u8, 200u8, 188u8, 17u8, 179u8, 22u8, 185u8, 102u8, 114u8, 227u8, 208u8, 93u8, 137u8, 184u8, 153u8, 88u8, 36u8, 46u8, 148u8, ], ) } #[doc = "Retract a prior tip-report from `report_awesome`, and cancel the process of tipping."] #[doc = ""] #[doc = "If successful, the original deposit will be unreserved."] #[doc = ""] #[doc = "The dispatch origin for this call must be _Signed_ and the tip identified by `hash`"] #[doc = "must have been reported by the signing account through `report_awesome` (and not"] #[doc = "through `tip_new`)."] #[doc = ""] #[doc = "- `hash`: The identity of the open tip for which a tip value is declared. This is formed"] #[doc = " as the hash of the tuple of the original tip `reason` and the beneficiary account ID."] #[doc = ""] #[doc = "Emits `TipRetracted` if successful."] #[doc = ""] #[doc = "## Complexity"] #[doc = "- `O(1)`"] #[doc = " - Depends on the length of `T::Hash` which is fixed."] pub fn retract_tip( &self, hash: ::subxt::utils::H256, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Tips", "retract_tip", types::RetractTip { hash }, [ 127u8, 232u8, 112u8, 136u8, 48u8, 227u8, 202u8, 51u8, 78u8, 191u8, 248u8, 44u8, 159u8, 76u8, 101u8, 107u8, 212u8, 55u8, 85u8, 250u8, 222u8, 181u8, 58u8, 130u8, 53u8, 103u8, 190u8, 31u8, 113u8, 195u8, 186u8, 44u8, ], ) } #[doc = "Give a tip for something new; no finder's fee will be taken."] #[doc = ""] #[doc = "The dispatch origin for this call must be _Signed_ and the signing account must be a"] #[doc = "member of the `Tippers` set."] #[doc = ""] #[doc = "- `reason`: The reason for, or the thing that deserves, the tip; generally this will be"] #[doc = " a UTF-8-encoded URL."] #[doc = "- `who`: The account which should be credited for the tip."] #[doc = "- `tip_value`: The amount of tip that the sender would like to give. The median tip"] #[doc = " value of active tippers will be given to the `who`."] #[doc = ""] #[doc = "Emits `NewTip` if successful."] #[doc = ""] #[doc = "## Complexity"] #[doc = "- `O(R + T)` where `R` length of `reason`, `T` is the number of tippers."] #[doc = " - `O(T)`: decoding `Tipper` vec of length `T`. `T` is charged as upper bound given by"] #[doc = " `ContainsLengthBound`. The actual cost depends on the implementation of"] #[doc = " `T::Tippers`."] #[doc = " - `O(R)`: hashing and encoding of reason of length `R`"] pub fn tip_new( &self, reason: ::std::vec::Vec<::core::primitive::u8>, who: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, tip_value: ::core::primitive::u128, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Tips", "tip_new", types::TipNew { reason, who, tip_value, }, [ 182u8, 65u8, 198u8, 63u8, 79u8, 227u8, 237u8, 30u8, 180u8, 102u8, 246u8, 47u8, 50u8, 208u8, 17u8, 102u8, 239u8, 93u8, 90u8, 139u8, 170u8, 101u8, 203u8, 101u8, 246u8, 127u8, 252u8, 92u8, 169u8, 23u8, 155u8, 8u8, ], ) } #[doc = "Declare a tip value for an already-open tip."] #[doc = ""] #[doc = "The dispatch origin for this call must be _Signed_ and the signing account must be a"] #[doc = "member of the `Tippers` set."] #[doc = ""] #[doc = "- `hash`: The identity of the open tip for which a tip value is declared. This is formed"] #[doc = " as the hash of the tuple of the hash of the original tip `reason` and the beneficiary"] #[doc = " account ID."] #[doc = "- `tip_value`: The amount of tip that the sender would like to give. The median tip"] #[doc = " value of active tippers will be given to the `who`."] #[doc = ""] #[doc = "Emits `TipClosing` if the threshold of tippers has been reached and the countdown period"] #[doc = "has started."] #[doc = ""] #[doc = "## Complexity"] #[doc = "- `O(T)` where `T` is the number of tippers. decoding `Tipper` vec of length `T`, insert"] #[doc = " tip and check closing, `T` is charged as upper bound given by `ContainsLengthBound`."] #[doc = " The actual cost depends on the implementation of `T::Tippers`."] #[doc = ""] #[doc = " Actually weight could be lower as it depends on how many tips are in `OpenTip` but it"] #[doc = " is weighted as if almost full i.e of length `T-1`."] pub fn tip( &self, hash: ::subxt::utils::H256, tip_value: ::core::primitive::u128, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Tips", "tip", types::Tip { hash, tip_value }, [ 241u8, 5u8, 164u8, 248u8, 140u8, 60u8, 29u8, 9u8, 63u8, 208u8, 249u8, 210u8, 221u8, 173u8, 70u8, 240u8, 50u8, 131u8, 80u8, 236u8, 131u8, 101u8, 191u8, 49u8, 94u8, 216u8, 74u8, 234u8, 184u8, 167u8, 159u8, 176u8, ], ) } #[doc = "Close and payout a tip."] #[doc = ""] #[doc = "The dispatch origin for this call must be _Signed_."] #[doc = ""] #[doc = "The tip identified by `hash` must have finished its countdown period."] #[doc = ""] #[doc = "- `hash`: The identity of the open tip for which a tip value is declared. This is formed"] #[doc = " as the hash of the tuple of the original tip `reason` and the beneficiary account ID."] #[doc = ""] #[doc = "## Complexity"] #[doc = "- : `O(T)` where `T` is the number of tippers. decoding `Tipper` vec of length `T`. `T`"] #[doc = " is charged as upper bound given by `ContainsLengthBound`. The actual cost depends on"] #[doc = " the implementation of `T::Tippers`."] pub fn close_tip( &self, hash: ::subxt::utils::H256, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Tips", "close_tip", types::CloseTip { hash }, [ 85u8, 213u8, 248u8, 146u8, 90u8, 110u8, 217u8, 109u8, 78u8, 6u8, 104u8, 71u8, 184u8, 209u8, 148u8, 81u8, 145u8, 71u8, 151u8, 174u8, 25u8, 238u8, 48u8, 0u8, 51u8, 102u8, 155u8, 143u8, 130u8, 157u8, 100u8, 246u8, ], ) } #[doc = "Remove and slash an already-open tip."] #[doc = ""] #[doc = "May only be called from `T::RejectOrigin`."] #[doc = ""] #[doc = "As a result, the finder is slashed and the deposits are lost."] #[doc = ""] #[doc = "Emits `TipSlashed` if successful."] #[doc = ""] #[doc = "## Complexity"] #[doc = "- O(1)."] pub fn slash_tip( &self, hash: ::subxt::utils::H256, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Tips", "slash_tip", types::SlashTip { hash }, [ 127u8, 21u8, 252u8, 189u8, 121u8, 103u8, 54u8, 155u8, 71u8, 81u8, 109u8, 0u8, 159u8, 151u8, 62u8, 81u8, 104u8, 31u8, 2u8, 83u8, 248u8, 141u8, 252u8, 162u8, 173u8, 189u8, 252u8, 249u8, 54u8, 142u8, 108u8, 19u8, ], ) } } } #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] pub type Event = runtime_types::pallet_tips::pallet::Event; pub mod events { use super::runtime_types; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A new tip suggestion has been opened."] pub struct NewTip { pub tip_hash: ::subxt::utils::H256, } impl ::subxt::events::StaticEvent for NewTip { const PALLET: &'static str = "Tips"; const EVENT: &'static str = "NewTip"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A tip suggestion has reached threshold and is closing."] pub struct TipClosing { pub tip_hash: ::subxt::utils::H256, } impl ::subxt::events::StaticEvent for TipClosing { const PALLET: &'static str = "Tips"; const EVENT: &'static str = "TipClosing"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A tip suggestion has been closed."] pub struct TipClosed { pub tip_hash: ::subxt::utils::H256, pub who: ::subxt::utils::AccountId32, pub payout: ::core::primitive::u128, } impl ::subxt::events::StaticEvent for TipClosed { const PALLET: &'static str = "Tips"; const EVENT: &'static str = "TipClosed"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A tip suggestion has been retracted."] pub struct TipRetracted { pub tip_hash: ::subxt::utils::H256, } impl ::subxt::events::StaticEvent for TipRetracted { const PALLET: &'static str = "Tips"; const EVENT: &'static str = "TipRetracted"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A tip suggestion has been slashed."] pub struct TipSlashed { pub tip_hash: ::subxt::utils::H256, pub finder: ::subxt::utils::AccountId32, pub deposit: ::core::primitive::u128, } impl ::subxt::events::StaticEvent for TipSlashed { const PALLET: &'static str = "Tips"; const EVENT: &'static str = "TipSlashed"; } } pub mod storage { use super::runtime_types; pub struct StorageApi; impl StorageApi { #[doc = " TipsMap that are not yet completed. Keyed by the hash of `(reason, who)` from the value."] #[doc = " This has the insecure enumerable hash function since the key itself is already"] #[doc = " guaranteed to be a secure hash."] pub fn tips( &self, _0: impl ::std::borrow::Borrow<::subxt::utils::H256>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, runtime_types::pallet_tips::OpenTip< ::subxt::utils::AccountId32, ::core::primitive::u128, ::core::primitive::u32, ::subxt::utils::H256, >, ::subxt::storage::address::Yes, (), ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( "Tips", "Tips", vec![::subxt::storage::address::make_static_storage_map_key( _0.borrow(), )], [ 173u8, 172u8, 116u8, 247u8, 202u8, 228u8, 47u8, 222u8, 67u8, 146u8, 225u8, 0u8, 74u8, 189u8, 226u8, 206u8, 245u8, 209u8, 26u8, 49u8, 189u8, 73u8, 20u8, 117u8, 30u8, 41u8, 129u8, 170u8, 5u8, 226u8, 92u8, 140u8, ], ) } #[doc = " TipsMap that are not yet completed. Keyed by the hash of `(reason, who)` from the value."] #[doc = " This has the insecure enumerable hash function since the key itself is already"] #[doc = " guaranteed to be a secure hash."] pub fn tips_root( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, runtime_types::pallet_tips::OpenTip< ::subxt::utils::AccountId32, ::core::primitive::u128, ::core::primitive::u32, ::subxt::utils::H256, >, (), (), ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( "Tips", "Tips", Vec::new(), [ 173u8, 172u8, 116u8, 247u8, 202u8, 228u8, 47u8, 222u8, 67u8, 146u8, 225u8, 0u8, 74u8, 189u8, 226u8, 206u8, 245u8, 209u8, 26u8, 49u8, 189u8, 73u8, 20u8, 117u8, 30u8, 41u8, 129u8, 170u8, 5u8, 226u8, 92u8, 140u8, ], ) } #[doc = " Simple preimage lookup from the reason's hash to the original data. Again, has an"] #[doc = " insecure enumerable hash since the key is guaranteed to be the result of a secure hash."] pub fn reasons( &self, _0: impl ::std::borrow::Borrow<::subxt::utils::H256>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, ::std::vec::Vec<::core::primitive::u8>, ::subxt::storage::address::Yes, (), ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( "Tips", "Reasons", vec![::subxt::storage::address::make_static_storage_map_key( _0.borrow(), )], [ 212u8, 224u8, 153u8, 133u8, 234u8, 213u8, 134u8, 255u8, 59u8, 61u8, 200u8, 47u8, 186u8, 177u8, 35u8, 108u8, 85u8, 144u8, 185u8, 69u8, 159u8, 38u8, 83u8, 166u8, 200u8, 20u8, 220u8, 234u8, 59u8, 61u8, 223u8, 167u8, ], ) } #[doc = " Simple preimage lookup from the reason's hash to the original data. Again, has an"] #[doc = " insecure enumerable hash since the key is guaranteed to be the result of a secure hash."] pub fn reasons_root( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, ::std::vec::Vec<::core::primitive::u8>, (), (), ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( "Tips", "Reasons", Vec::new(), [ 212u8, 224u8, 153u8, 133u8, 234u8, 213u8, 134u8, 255u8, 59u8, 61u8, 200u8, 47u8, 186u8, 177u8, 35u8, 108u8, 85u8, 144u8, 185u8, 69u8, 159u8, 38u8, 83u8, 166u8, 200u8, 20u8, 220u8, 234u8, 59u8, 61u8, 223u8, 167u8, ], ) } } } pub mod constants { use super::runtime_types; pub struct ConstantsApi; impl ConstantsApi { #[doc = " Maximum acceptable reason length."] #[doc = ""] #[doc = " Benchmarks depend on this value, be sure to update weights file when changing this value"] pub fn maximum_reason_length( &self, ) -> ::subxt::constants::Address<::core::primitive::u32> { ::subxt::constants::Address::new_static( "Tips", "MaximumReasonLength", [ 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, 145u8, ], ) } #[doc = " The amount held on deposit per byte within the tip report reason or bounty description."] pub fn data_deposit_per_byte( &self, ) -> ::subxt::constants::Address<::core::primitive::u128> { ::subxt::constants::Address::new_static( "Tips", "DataDepositPerByte", [ 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8, 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, 136u8, 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, 148u8, 156u8, ], ) } #[doc = " The period for which a tip remains open after is has achieved threshold tippers."] pub fn tip_countdown(&self) -> ::subxt::constants::Address<::core::primitive::u32> { ::subxt::constants::Address::new_static( "Tips", "TipCountdown", [ 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, 145u8, ], ) } #[doc = " The percent of the final tip which goes to the original reporter of the tip."] pub fn tip_finders_fee( &self, ) -> ::subxt::constants::Address { ::subxt::constants::Address::new_static( "Tips", "TipFindersFee", [ 40u8, 171u8, 69u8, 196u8, 34u8, 184u8, 50u8, 128u8, 139u8, 192u8, 63u8, 231u8, 249u8, 200u8, 252u8, 73u8, 244u8, 170u8, 51u8, 177u8, 106u8, 47u8, 114u8, 234u8, 84u8, 104u8, 62u8, 118u8, 227u8, 50u8, 225u8, 122u8, ], ) } #[doc = " The amount held on deposit for placing a tip report."] pub fn tip_report_deposit_base( &self, ) -> ::subxt::constants::Address<::core::primitive::u128> { ::subxt::constants::Address::new_static( "Tips", "TipReportDepositBase", [ 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8, 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, 136u8, 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, 148u8, 156u8, ], ) } } } } pub mod election_provider_multi_phase { use super::root_mod; use super::runtime_types; #[doc = "Error of the pallet that can be returned in response to dispatches."] pub type Error = runtime_types::pallet_election_provider_multi_phase::pallet::Error; #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] pub type Call = runtime_types::pallet_election_provider_multi_phase::pallet::Call; pub mod calls { use super::root_mod; use super::runtime_types; type DispatchError = runtime_types::sp_runtime::DispatchError; pub mod types { use super::runtime_types; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SubmitUnsigned { pub raw_solution: ::std::boxed::Box< runtime_types::pallet_election_provider_multi_phase::RawSolution< runtime_types::polkadot_runtime::NposCompactSolution16, >, >, pub witness: runtime_types::pallet_election_provider_multi_phase::SolutionOrSnapshotSize, } impl ::subxt::blocks::StaticExtrinsic for SubmitUnsigned { const PALLET: &'static str = "ElectionProviderMultiPhase"; const CALL: &'static str = "submit_unsigned"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SetMinimumUntrustedScore { pub maybe_next_score: ::core::option::Option, } impl ::subxt::blocks::StaticExtrinsic for SetMinimumUntrustedScore { const PALLET: &'static str = "ElectionProviderMultiPhase"; const CALL: &'static str = "set_minimum_untrusted_score"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SetEmergencyElectionResult { pub supports: ::std::vec::Vec<( ::subxt::utils::AccountId32, runtime_types::sp_npos_elections::Support<::subxt::utils::AccountId32>, )>, } impl ::subxt::blocks::StaticExtrinsic for SetEmergencyElectionResult { const PALLET: &'static str = "ElectionProviderMultiPhase"; const CALL: &'static str = "set_emergency_election_result"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Submit { pub raw_solution: ::std::boxed::Box< runtime_types::pallet_election_provider_multi_phase::RawSolution< runtime_types::polkadot_runtime::NposCompactSolution16, >, >, } impl ::subxt::blocks::StaticExtrinsic for Submit { const PALLET: &'static str = "ElectionProviderMultiPhase"; const CALL: &'static str = "submit"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct GovernanceFallback { pub maybe_max_voters: ::core::option::Option<::core::primitive::u32>, pub maybe_max_targets: ::core::option::Option<::core::primitive::u32>, } impl ::subxt::blocks::StaticExtrinsic for GovernanceFallback { const PALLET: &'static str = "ElectionProviderMultiPhase"; const CALL: &'static str = "governance_fallback"; } } pub struct TransactionApi; impl TransactionApi { #[doc = "Submit a solution for the unsigned phase."] #[doc = ""] #[doc = "The dispatch origin fo this call must be __none__."] #[doc = ""] #[doc = "This submission is checked on the fly. Moreover, this unsigned solution is only"] #[doc = "validated when submitted to the pool from the **local** node. Effectively, this means"] #[doc = "that only active validators can submit this transaction when authoring a block (similar"] #[doc = "to an inherent)."] #[doc = ""] #[doc = "To prevent any incorrect solution (and thus wasted time/weight), this transaction will"] #[doc = "panic if the solution submitted by the validator is invalid in any way, effectively"] #[doc = "putting their authoring reward at risk."] #[doc = ""] #[doc = "No deposit or reward is associated with this submission."] pub fn submit_unsigned( &self, raw_solution: runtime_types::pallet_election_provider_multi_phase::RawSolution< runtime_types::polkadot_runtime::NposCompactSolution16, >, witness : runtime_types :: pallet_election_provider_multi_phase :: SolutionOrSnapshotSize, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "ElectionProviderMultiPhase", "submit_unsigned", types::SubmitUnsigned { raw_solution: ::std::boxed::Box::new(raw_solution), witness, }, [ 34u8, 115u8, 43u8, 180u8, 202u8, 212u8, 42u8, 17u8, 187u8, 233u8, 54u8, 206u8, 238u8, 239u8, 35u8, 240u8, 136u8, 197u8, 117u8, 113u8, 213u8, 46u8, 94u8, 47u8, 84u8, 186u8, 177u8, 61u8, 3u8, 202u8, 2u8, 186u8, ], ) } #[doc = "Set a new value for `MinimumUntrustedScore`."] #[doc = ""] #[doc = "Dispatch origin must be aligned with `T::ForceOrigin`."] #[doc = ""] #[doc = "This check can be turned off by setting the value to `None`."] pub fn set_minimum_untrusted_score( &self, maybe_next_score: ::core::option::Option< runtime_types::sp_npos_elections::ElectionScore, >, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "ElectionProviderMultiPhase", "set_minimum_untrusted_score", types::SetMinimumUntrustedScore { maybe_next_score }, [ 36u8, 32u8, 197u8, 96u8, 189u8, 98u8, 96u8, 138u8, 84u8, 99u8, 235u8, 44u8, 103u8, 25u8, 118u8, 194u8, 166u8, 158u8, 212u8, 36u8, 243u8, 86u8, 202u8, 231u8, 189u8, 226u8, 21u8, 112u8, 20u8, 163u8, 229u8, 240u8, ], ) } #[doc = "Set a solution in the queue, to be handed out to the client of this pallet in the next"] #[doc = "call to `ElectionProvider::elect`."] #[doc = ""] #[doc = "This can only be set by `T::ForceOrigin`, and only when the phase is `Emergency`."] #[doc = ""] #[doc = "The solution is not checked for any feasibility and is assumed to be trustworthy, as any"] #[doc = "feasibility check itself can in principle cause the election process to fail (due to"] #[doc = "memory/weight constrains)."] pub fn set_emergency_election_result( &self, supports: ::std::vec::Vec<( ::subxt::utils::AccountId32, runtime_types::sp_npos_elections::Support<::subxt::utils::AccountId32>, )>, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "ElectionProviderMultiPhase", "set_emergency_election_result", types::SetEmergencyElectionResult { supports }, [ 158u8, 35u8, 6u8, 145u8, 37u8, 239u8, 101u8, 90u8, 121u8, 123u8, 240u8, 131u8, 154u8, 13u8, 111u8, 120u8, 146u8, 151u8, 203u8, 125u8, 115u8, 255u8, 58u8, 154u8, 177u8, 204u8, 140u8, 87u8, 9u8, 63u8, 146u8, 209u8, ], ) } #[doc = "Submit a solution for the signed phase."] #[doc = ""] #[doc = "The dispatch origin fo this call must be __signed__."] #[doc = ""] #[doc = "The solution is potentially queued, based on the claimed score and processed at the end"] #[doc = "of the signed phase."] #[doc = ""] #[doc = "A deposit is reserved and recorded for the solution. Based on the outcome, the solution"] #[doc = "might be rewarded, slashed, or get all or a part of the deposit back."] pub fn submit( &self, raw_solution: runtime_types::pallet_election_provider_multi_phase::RawSolution< runtime_types::polkadot_runtime::NposCompactSolution16, >, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "ElectionProviderMultiPhase", "submit", types::Submit { raw_solution: ::std::boxed::Box::new(raw_solution), }, [ 55u8, 153u8, 215u8, 21u8, 19u8, 192u8, 199u8, 19u8, 145u8, 27u8, 54u8, 128u8, 23u8, 3u8, 255u8, 87u8, 27u8, 75u8, 248u8, 145u8, 238u8, 75u8, 204u8, 173u8, 71u8, 252u8, 29u8, 71u8, 45u8, 143u8, 179u8, 154u8, ], ) } #[doc = "Trigger the governance fallback."] #[doc = ""] #[doc = "This can only be called when [`Phase::Emergency`] is enabled, as an alternative to"] #[doc = "calling [`Call::set_emergency_election_result`]."] pub fn governance_fallback( &self, maybe_max_voters: ::core::option::Option<::core::primitive::u32>, maybe_max_targets: ::core::option::Option<::core::primitive::u32>, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "ElectionProviderMultiPhase", "governance_fallback", types::GovernanceFallback { maybe_max_voters, maybe_max_targets, }, [ 168u8, 109u8, 243u8, 125u8, 188u8, 177u8, 251u8, 179u8, 158u8, 246u8, 179u8, 247u8, 87u8, 217u8, 190u8, 107u8, 207u8, 249u8, 204u8, 27u8, 166u8, 49u8, 135u8, 71u8, 88u8, 142u8, 58u8, 206u8, 137u8, 142u8, 75u8, 127u8, ], ) } } } #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] pub type Event = runtime_types::pallet_election_provider_multi_phase::pallet::Event; pub mod events { use super::runtime_types; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A solution was stored with the given compute."] #[doc = ""] #[doc = "The `origin` indicates the origin of the solution. If `origin` is `Some(AccountId)`,"] #[doc = "the stored solution was submited in the signed phase by a miner with the `AccountId`."] #[doc = "Otherwise, the solution was stored either during the unsigned phase or by"] #[doc = "`T::ForceOrigin`. The `bool` is `true` when a previous solution was ejected to make"] #[doc = "room for this one."] pub struct SolutionStored { pub compute: runtime_types::pallet_election_provider_multi_phase::ElectionCompute, pub origin: ::core::option::Option<::subxt::utils::AccountId32>, pub prev_ejected: ::core::primitive::bool, } impl ::subxt::events::StaticEvent for SolutionStored { const PALLET: &'static str = "ElectionProviderMultiPhase"; const EVENT: &'static str = "SolutionStored"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "The election has been finalized, with the given computation and score."] pub struct ElectionFinalized { pub compute: runtime_types::pallet_election_provider_multi_phase::ElectionCompute, pub score: runtime_types::sp_npos_elections::ElectionScore, } impl ::subxt::events::StaticEvent for ElectionFinalized { const PALLET: &'static str = "ElectionProviderMultiPhase"; const EVENT: &'static str = "ElectionFinalized"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "An election failed."] #[doc = ""] #[doc = "Not much can be said about which computes failed in the process."] pub struct ElectionFailed; impl ::subxt::events::StaticEvent for ElectionFailed { const PALLET: &'static str = "ElectionProviderMultiPhase"; const EVENT: &'static str = "ElectionFailed"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "An account has been rewarded for their signed submission being finalized."] pub struct Rewarded { pub account: ::subxt::utils::AccountId32, pub value: ::core::primitive::u128, } impl ::subxt::events::StaticEvent for Rewarded { const PALLET: &'static str = "ElectionProviderMultiPhase"; const EVENT: &'static str = "Rewarded"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "An account has been slashed for submitting an invalid signed submission."] pub struct Slashed { pub account: ::subxt::utils::AccountId32, pub value: ::core::primitive::u128, } impl ::subxt::events::StaticEvent for Slashed { const PALLET: &'static str = "ElectionProviderMultiPhase"; const EVENT: &'static str = "Slashed"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "There was a phase transition in a given round."] pub struct PhaseTransitioned { pub from: runtime_types::pallet_election_provider_multi_phase::Phase< ::core::primitive::u32, >, pub to: runtime_types::pallet_election_provider_multi_phase::Phase< ::core::primitive::u32, >, pub round: ::core::primitive::u32, } impl ::subxt::events::StaticEvent for PhaseTransitioned { const PALLET: &'static str = "ElectionProviderMultiPhase"; const EVENT: &'static str = "PhaseTransitioned"; } } pub mod storage { use super::runtime_types; pub struct StorageApi; impl StorageApi { #[doc = " Internal counter for the number of rounds."] #[doc = ""] #[doc = " This is useful for de-duplication of transactions submitted to the pool, and general"] #[doc = " diagnostics of the pallet."] #[doc = ""] #[doc = " This is merely incremented once per every time that an upstream `elect` is called."] pub fn round( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, ::core::primitive::u32, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), > { ::subxt::storage::address::Address::new_static( "ElectionProviderMultiPhase", "Round", vec![], [ 37u8, 2u8, 47u8, 240u8, 18u8, 213u8, 214u8, 74u8, 57u8, 4u8, 103u8, 253u8, 45u8, 17u8, 123u8, 203u8, 173u8, 170u8, 234u8, 109u8, 139u8, 143u8, 216u8, 3u8, 161u8, 5u8, 0u8, 106u8, 181u8, 214u8, 170u8, 105u8, ], ) } #[doc = " Current phase."] pub fn current_phase( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, runtime_types::pallet_election_provider_multi_phase::Phase< ::core::primitive::u32, >, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), > { ::subxt::storage::address::Address::new_static( "ElectionProviderMultiPhase", "CurrentPhase", vec![], [ 230u8, 7u8, 51u8, 158u8, 77u8, 36u8, 148u8, 175u8, 138u8, 205u8, 195u8, 236u8, 66u8, 148u8, 0u8, 77u8, 160u8, 249u8, 128u8, 58u8, 189u8, 48u8, 195u8, 198u8, 115u8, 251u8, 13u8, 206u8, 163u8, 180u8, 108u8, 10u8, ], ) } #[doc = " Current best solution, signed or unsigned, queued to be returned upon `elect`."] #[doc = ""] #[doc = " Always sorted by score."] pub fn queued_solution( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, runtime_types::pallet_election_provider_multi_phase::ReadySolution, ::subxt::storage::address::Yes, (), (), > { ::subxt::storage::address::Address::new_static( "ElectionProviderMultiPhase", "QueuedSolution", vec![], [ 64u8, 237u8, 221u8, 29u8, 144u8, 141u8, 147u8, 4u8, 46u8, 239u8, 34u8, 242u8, 164u8, 69u8, 108u8, 145u8, 95u8, 167u8, 34u8, 211u8, 103u8, 165u8, 183u8, 193u8, 245u8, 226u8, 140u8, 50u8, 176u8, 127u8, 108u8, 171u8, ], ) } #[doc = " Snapshot data of the round."] #[doc = ""] #[doc = " This is created at the beginning of the signed phase and cleared upon calling `elect`."] pub fn snapshot( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, runtime_types::pallet_election_provider_multi_phase::RoundSnapshot< ::subxt::utils::AccountId32, ( ::subxt::utils::AccountId32, ::core::primitive::u64, runtime_types::bounded_collections::bounded_vec::BoundedVec< ::subxt::utils::AccountId32, >, ), >, ::subxt::storage::address::Yes, (), (), > { ::subxt::storage::address::Address::new_static( "ElectionProviderMultiPhase", "Snapshot", vec![], [ 180u8, 77u8, 217u8, 249u8, 212u8, 99u8, 36u8, 26u8, 237u8, 4u8, 94u8, 80u8, 160u8, 6u8, 194u8, 98u8, 174u8, 153u8, 127u8, 124u8, 109u8, 188u8, 143u8, 151u8, 51u8, 200u8, 133u8, 66u8, 68u8, 226u8, 124u8, 158u8, ], ) } #[doc = " Desired number of targets to elect for this round."] #[doc = ""] #[doc = " Only exists when [`Snapshot`] is present."] pub fn desired_targets( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, ::core::primitive::u32, ::subxt::storage::address::Yes, (), (), > { ::subxt::storage::address::Address::new_static( "ElectionProviderMultiPhase", "DesiredTargets", vec![], [ 67u8, 241u8, 33u8, 113u8, 62u8, 173u8, 233u8, 76u8, 99u8, 12u8, 61u8, 237u8, 21u8, 252u8, 39u8, 37u8, 86u8, 167u8, 173u8, 53u8, 238u8, 172u8, 97u8, 59u8, 27u8, 164u8, 163u8, 76u8, 140u8, 37u8, 159u8, 250u8, ], ) } #[doc = " The metadata of the [`RoundSnapshot`]"] #[doc = ""] #[doc = " Only exists when [`Snapshot`] is present."] pub fn snapshot_metadata( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, runtime_types::pallet_election_provider_multi_phase::SolutionOrSnapshotSize, ::subxt::storage::address::Yes, (), (), > { ::subxt::storage::address::Address::new_static( "ElectionProviderMultiPhase", "SnapshotMetadata", vec![], [ 14u8, 189u8, 135u8, 84u8, 238u8, 133u8, 76u8, 176u8, 181u8, 185u8, 111u8, 102u8, 181u8, 14u8, 172u8, 86u8, 188u8, 139u8, 73u8, 192u8, 203u8, 117u8, 39u8, 119u8, 108u8, 225u8, 163u8, 36u8, 91u8, 30u8, 0u8, 196u8, ], ) } #[doc = " The next index to be assigned to an incoming signed submission."] #[doc = ""] #[doc = " Every accepted submission is assigned a unique index; that index is bound to that particular"] #[doc = " submission for the duration of the election. On election finalization, the next index is"] #[doc = " reset to 0."] #[doc = ""] #[doc = " We can't just use `SignedSubmissionIndices.len()`, because that's a bounded set; past its"] #[doc = " capacity, it will simply saturate. We can't just iterate over `SignedSubmissionsMap`,"] #[doc = " because iteration is slow. Instead, we store the value here."] pub fn signed_submission_next_index( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, ::core::primitive::u32, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), > { ::subxt::storage::address::Address::new_static( "ElectionProviderMultiPhase", "SignedSubmissionNextIndex", vec![], [ 188u8, 126u8, 77u8, 166u8, 42u8, 81u8, 12u8, 239u8, 195u8, 16u8, 132u8, 178u8, 217u8, 158u8, 28u8, 19u8, 201u8, 148u8, 47u8, 105u8, 178u8, 115u8, 17u8, 78u8, 71u8, 178u8, 205u8, 171u8, 71u8, 52u8, 194u8, 82u8, ], ) } #[doc = " A sorted, bounded vector of `(score, block_number, index)`, where each `index` points to a"] #[doc = " value in `SignedSubmissions`."] #[doc = ""] #[doc = " We never need to process more than a single signed submission at a time. Signed submissions"] #[doc = " can be quite large, so we're willing to pay the cost of multiple database accesses to access"] #[doc = " them one at a time instead of reading and decoding all of them at once."] pub fn signed_submission_indices( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, runtime_types::bounded_collections::bounded_vec::BoundedVec<( runtime_types::sp_npos_elections::ElectionScore, ::core::primitive::u32, ::core::primitive::u32, )>, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), > { ::subxt::storage::address::Address::new_static( "ElectionProviderMultiPhase", "SignedSubmissionIndices", vec![], [ 203u8, 96u8, 121u8, 1u8, 24u8, 150u8, 185u8, 93u8, 129u8, 63u8, 52u8, 163u8, 67u8, 45u8, 100u8, 11u8, 254u8, 224u8, 18u8, 1u8, 133u8, 246u8, 125u8, 211u8, 93u8, 99u8, 194u8, 105u8, 176u8, 162u8, 238u8, 181u8, ], ) } #[doc = " Unchecked, signed solutions."] #[doc = ""] #[doc = " Together with `SubmissionIndices`, this stores a bounded set of `SignedSubmissions` while"] #[doc = " allowing us to keep only a single one in memory at a time."] #[doc = ""] #[doc = " Twox note: the key of the map is an auto-incrementing index which users cannot inspect or"] #[doc = " affect; we shouldn't need a cryptographically secure hasher."] pub fn signed_submissions_map( &self, _0: impl ::std::borrow::Borrow<::core::primitive::u32>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, runtime_types::pallet_election_provider_multi_phase::signed::SignedSubmission< ::subxt::utils::AccountId32, ::core::primitive::u128, runtime_types::polkadot_runtime::NposCompactSolution16, >, ::subxt::storage::address::Yes, (), ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( "ElectionProviderMultiPhase", "SignedSubmissionsMap", vec![::subxt::storage::address::make_static_storage_map_key( _0.borrow(), )], [ 79u8, 183u8, 109u8, 221u8, 2u8, 64u8, 197u8, 162u8, 221u8, 170u8, 140u8, 136u8, 205u8, 111u8, 8u8, 179u8, 166u8, 104u8, 74u8, 219u8, 202u8, 123u8, 31u8, 129u8, 207u8, 58u8, 241u8, 91u8, 147u8, 112u8, 162u8, 105u8, ], ) } #[doc = " Unchecked, signed solutions."] #[doc = ""] #[doc = " Together with `SubmissionIndices`, this stores a bounded set of `SignedSubmissions` while"] #[doc = " allowing us to keep only a single one in memory at a time."] #[doc = ""] #[doc = " Twox note: the key of the map is an auto-incrementing index which users cannot inspect or"] #[doc = " affect; we shouldn't need a cryptographically secure hasher."] pub fn signed_submissions_map_root( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, runtime_types::pallet_election_provider_multi_phase::signed::SignedSubmission< ::subxt::utils::AccountId32, ::core::primitive::u128, runtime_types::polkadot_runtime::NposCompactSolution16, >, (), (), ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( "ElectionProviderMultiPhase", "SignedSubmissionsMap", Vec::new(), [ 79u8, 183u8, 109u8, 221u8, 2u8, 64u8, 197u8, 162u8, 221u8, 170u8, 140u8, 136u8, 205u8, 111u8, 8u8, 179u8, 166u8, 104u8, 74u8, 219u8, 202u8, 123u8, 31u8, 129u8, 207u8, 58u8, 241u8, 91u8, 147u8, 112u8, 162u8, 105u8, ], ) } #[doc = " The minimum score that each 'untrusted' solution must attain in order to be considered"] #[doc = " feasible."] #[doc = ""] #[doc = " Can be set via `set_minimum_untrusted_score`."] pub fn minimum_untrusted_score( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, runtime_types::sp_npos_elections::ElectionScore, ::subxt::storage::address::Yes, (), (), > { ::subxt::storage::address::Address::new_static( "ElectionProviderMultiPhase", "MinimumUntrustedScore", vec![], [ 105u8, 218u8, 96u8, 38u8, 82u8, 115u8, 30u8, 178u8, 21u8, 89u8, 59u8, 7u8, 203u8, 240u8, 224u8, 209u8, 78u8, 28u8, 198u8, 236u8, 252u8, 122u8, 72u8, 59u8, 156u8, 242u8, 26u8, 160u8, 145u8, 40u8, 6u8, 101u8, ], ) } } } pub mod constants { use super::runtime_types; pub struct ConstantsApi; impl ConstantsApi { #[doc = " Duration of the unsigned phase."] pub fn unsigned_phase( &self, ) -> ::subxt::constants::Address<::core::primitive::u32> { ::subxt::constants::Address::new_static( "ElectionProviderMultiPhase", "UnsignedPhase", [ 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, 145u8, ], ) } #[doc = " Duration of the signed phase."] pub fn signed_phase(&self) -> ::subxt::constants::Address<::core::primitive::u32> { ::subxt::constants::Address::new_static( "ElectionProviderMultiPhase", "SignedPhase", [ 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, 145u8, ], ) } #[doc = " The minimum amount of improvement to the solution score that defines a solution as"] #[doc = " \"better\" in the Signed phase."] pub fn better_signed_threshold( &self, ) -> ::subxt::constants::Address { ::subxt::constants::Address::new_static( "ElectionProviderMultiPhase", "BetterSignedThreshold", [ 65u8, 93u8, 120u8, 165u8, 204u8, 81u8, 159u8, 163u8, 93u8, 135u8, 114u8, 121u8, 147u8, 35u8, 215u8, 213u8, 4u8, 223u8, 83u8, 37u8, 225u8, 200u8, 189u8, 156u8, 140u8, 36u8, 58u8, 46u8, 42u8, 232u8, 155u8, 0u8, ], ) } #[doc = " The minimum amount of improvement to the solution score that defines a solution as"] #[doc = " \"better\" in the Unsigned phase."] pub fn better_unsigned_threshold( &self, ) -> ::subxt::constants::Address { ::subxt::constants::Address::new_static( "ElectionProviderMultiPhase", "BetterUnsignedThreshold", [ 65u8, 93u8, 120u8, 165u8, 204u8, 81u8, 159u8, 163u8, 93u8, 135u8, 114u8, 121u8, 147u8, 35u8, 215u8, 213u8, 4u8, 223u8, 83u8, 37u8, 225u8, 200u8, 189u8, 156u8, 140u8, 36u8, 58u8, 46u8, 42u8, 232u8, 155u8, 0u8, ], ) } #[doc = " The repeat threshold of the offchain worker."] #[doc = ""] #[doc = " For example, if it is 5, that means that at least 5 blocks will elapse between attempts"] #[doc = " to submit the worker's solution."] pub fn offchain_repeat( &self, ) -> ::subxt::constants::Address<::core::primitive::u32> { ::subxt::constants::Address::new_static( "ElectionProviderMultiPhase", "OffchainRepeat", [ 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, 145u8, ], ) } #[doc = " The priority of the unsigned transaction submitted in the unsigned-phase"] pub fn miner_tx_priority( &self, ) -> ::subxt::constants::Address<::core::primitive::u64> { ::subxt::constants::Address::new_static( "ElectionProviderMultiPhase", "MinerTxPriority", [ 128u8, 214u8, 205u8, 242u8, 181u8, 142u8, 124u8, 231u8, 190u8, 146u8, 59u8, 226u8, 157u8, 101u8, 103u8, 117u8, 249u8, 65u8, 18u8, 191u8, 103u8, 119u8, 53u8, 85u8, 81u8, 96u8, 220u8, 42u8, 184u8, 239u8, 42u8, 246u8, ], ) } #[doc = " Maximum number of signed submissions that can be queued."] #[doc = ""] #[doc = " It is best to avoid adjusting this during an election, as it impacts downstream data"] #[doc = " structures. In particular, `SignedSubmissionIndices` is bounded on this value. If you"] #[doc = " update this value during an election, you _must_ ensure that"] #[doc = " `SignedSubmissionIndices.len()` is less than or equal to the new value. Otherwise,"] #[doc = " attempts to submit new solutions may cause a runtime panic."] pub fn signed_max_submissions( &self, ) -> ::subxt::constants::Address<::core::primitive::u32> { ::subxt::constants::Address::new_static( "ElectionProviderMultiPhase", "SignedMaxSubmissions", [ 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, 145u8, ], ) } #[doc = " Maximum weight of a signed solution."] #[doc = ""] #[doc = " If [`Config::MinerConfig`] is being implemented to submit signed solutions (outside of"] #[doc = " this pallet), then [`MinerConfig::solution_weight`] is used to compare against"] #[doc = " this value."] pub fn signed_max_weight( &self, ) -> ::subxt::constants::Address { ::subxt::constants::Address::new_static( "ElectionProviderMultiPhase", "SignedMaxWeight", [ 222u8, 183u8, 203u8, 169u8, 31u8, 134u8, 28u8, 12u8, 47u8, 140u8, 71u8, 74u8, 61u8, 55u8, 71u8, 236u8, 215u8, 83u8, 28u8, 70u8, 45u8, 128u8, 184u8, 57u8, 101u8, 83u8, 42u8, 165u8, 34u8, 155u8, 64u8, 145u8, ], ) } #[doc = " The maximum amount of unchecked solutions to refund the call fee for."] pub fn signed_max_refunds( &self, ) -> ::subxt::constants::Address<::core::primitive::u32> { ::subxt::constants::Address::new_static( "ElectionProviderMultiPhase", "SignedMaxRefunds", [ 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, 145u8, ], ) } #[doc = " Base reward for a signed solution"] pub fn signed_reward_base( &self, ) -> ::subxt::constants::Address<::core::primitive::u128> { ::subxt::constants::Address::new_static( "ElectionProviderMultiPhase", "SignedRewardBase", [ 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8, 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, 136u8, 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, 148u8, 156u8, ], ) } #[doc = " Base deposit for a signed solution."] pub fn signed_deposit_base( &self, ) -> ::subxt::constants::Address<::core::primitive::u128> { ::subxt::constants::Address::new_static( "ElectionProviderMultiPhase", "SignedDepositBase", [ 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8, 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, 136u8, 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, 148u8, 156u8, ], ) } #[doc = " Per-byte deposit for a signed solution."] pub fn signed_deposit_byte( &self, ) -> ::subxt::constants::Address<::core::primitive::u128> { ::subxt::constants::Address::new_static( "ElectionProviderMultiPhase", "SignedDepositByte", [ 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8, 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, 136u8, 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, 148u8, 156u8, ], ) } #[doc = " Per-weight deposit for a signed solution."] pub fn signed_deposit_weight( &self, ) -> ::subxt::constants::Address<::core::primitive::u128> { ::subxt::constants::Address::new_static( "ElectionProviderMultiPhase", "SignedDepositWeight", [ 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8, 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, 136u8, 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, 148u8, 156u8, ], ) } #[doc = " The maximum number of electing voters to put in the snapshot. At the moment, snapshots"] #[doc = " are only over a single block, but once multi-block elections are introduced they will"] #[doc = " take place over multiple blocks."] pub fn max_electing_voters( &self, ) -> ::subxt::constants::Address<::core::primitive::u32> { ::subxt::constants::Address::new_static( "ElectionProviderMultiPhase", "MaxElectingVoters", [ 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, 145u8, ], ) } #[doc = " The maximum number of electable targets to put in the snapshot."] pub fn max_electable_targets( &self, ) -> ::subxt::constants::Address<::core::primitive::u16> { ::subxt::constants::Address::new_static( "ElectionProviderMultiPhase", "MaxElectableTargets", [ 116u8, 33u8, 2u8, 170u8, 181u8, 147u8, 171u8, 169u8, 167u8, 227u8, 41u8, 144u8, 11u8, 236u8, 82u8, 100u8, 74u8, 60u8, 184u8, 72u8, 169u8, 90u8, 208u8, 135u8, 15u8, 117u8, 10u8, 123u8, 128u8, 193u8, 29u8, 70u8, ], ) } #[doc = " The maximum number of winners that can be elected by this `ElectionProvider`"] #[doc = " implementation."] #[doc = ""] #[doc = " Note: This must always be greater or equal to `T::DataProvider::desired_targets()`."] pub fn max_winners(&self) -> ::subxt::constants::Address<::core::primitive::u32> { ::subxt::constants::Address::new_static( "ElectionProviderMultiPhase", "MaxWinners", [ 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, 145u8, ], ) } pub fn miner_max_length( &self, ) -> ::subxt::constants::Address<::core::primitive::u32> { ::subxt::constants::Address::new_static( "ElectionProviderMultiPhase", "MinerMaxLength", [ 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, 145u8, ], ) } pub fn miner_max_weight( &self, ) -> ::subxt::constants::Address { ::subxt::constants::Address::new_static( "ElectionProviderMultiPhase", "MinerMaxWeight", [ 222u8, 183u8, 203u8, 169u8, 31u8, 134u8, 28u8, 12u8, 47u8, 140u8, 71u8, 74u8, 61u8, 55u8, 71u8, 236u8, 215u8, 83u8, 28u8, 70u8, 45u8, 128u8, 184u8, 57u8, 101u8, 83u8, 42u8, 165u8, 34u8, 155u8, 64u8, 145u8, ], ) } pub fn miner_max_votes_per_voter( &self, ) -> ::subxt::constants::Address<::core::primitive::u32> { ::subxt::constants::Address::new_static( "ElectionProviderMultiPhase", "MinerMaxVotesPerVoter", [ 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, 145u8, ], ) } pub fn miner_max_winners( &self, ) -> ::subxt::constants::Address<::core::primitive::u32> { ::subxt::constants::Address::new_static( "ElectionProviderMultiPhase", "MinerMaxWinners", [ 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, 145u8, ], ) } } } } pub mod voter_list { use super::root_mod; use super::runtime_types; #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] pub type Error = runtime_types::pallet_bags_list::pallet::Error; #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] pub type Call = runtime_types::pallet_bags_list::pallet::Call; pub mod calls { use super::root_mod; use super::runtime_types; type DispatchError = runtime_types::sp_runtime::DispatchError; pub mod types { use super::runtime_types; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Rebag { pub dislocated: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, } impl ::subxt::blocks::StaticExtrinsic for Rebag { const PALLET: &'static str = "VoterList"; const CALL: &'static str = "rebag"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct PutInFrontOf { pub lighter: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, } impl ::subxt::blocks::StaticExtrinsic for PutInFrontOf { const PALLET: &'static str = "VoterList"; const CALL: &'static str = "put_in_front_of"; } } pub struct TransactionApi; impl TransactionApi { #[doc = "Declare that some `dislocated` account has, through rewards or penalties, sufficiently"] #[doc = "changed its score that it should properly fall into a different bag than its current"] #[doc = "one."] #[doc = ""] #[doc = "Anyone can call this function about any potentially dislocated account."] #[doc = ""] #[doc = "Will always update the stored score of `dislocated` to the correct score, based on"] #[doc = "`ScoreProvider`."] #[doc = ""] #[doc = "If `dislocated` does not exists, it returns an error."] pub fn rebag( &self, dislocated: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "VoterList", "rebag", types::Rebag { dislocated }, [ 247u8, 169u8, 213u8, 238u8, 186u8, 147u8, 81u8, 96u8, 24u8, 105u8, 162u8, 211u8, 90u8, 176u8, 26u8, 186u8, 163u8, 125u8, 103u8, 57u8, 236u8, 17u8, 69u8, 186u8, 56u8, 101u8, 146u8, 56u8, 39u8, 129u8, 227u8, 24u8, ], ) } #[doc = "Move the caller's Id directly in front of `lighter`."] #[doc = ""] #[doc = "The dispatch origin for this call must be _Signed_ and can only be called by the Id of"] #[doc = "the account going in front of `lighter`."] #[doc = ""] #[doc = "Only works if"] #[doc = "- both nodes are within the same bag,"] #[doc = "- and `origin` has a greater `Score` than `lighter`."] pub fn put_in_front_of( &self, lighter: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "VoterList", "put_in_front_of", types::PutInFrontOf { lighter }, [ 137u8, 248u8, 163u8, 62u8, 1u8, 5u8, 112u8, 62u8, 13u8, 66u8, 44u8, 72u8, 129u8, 185u8, 166u8, 35u8, 171u8, 105u8, 77u8, 248u8, 254u8, 56u8, 13u8, 196u8, 228u8, 141u8, 187u8, 237u8, 82u8, 195u8, 158u8, 18u8, ], ) } } } #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] pub type Event = runtime_types::pallet_bags_list::pallet::Event; pub mod events { use super::runtime_types; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Moved an account from one bag to another."] pub struct Rebagged { pub who: ::subxt::utils::AccountId32, pub from: ::core::primitive::u64, pub to: ::core::primitive::u64, } impl ::subxt::events::StaticEvent for Rebagged { const PALLET: &'static str = "VoterList"; const EVENT: &'static str = "Rebagged"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Updated the score of some account to the given amount."] pub struct ScoreUpdated { pub who: ::subxt::utils::AccountId32, pub new_score: ::core::primitive::u64, } impl ::subxt::events::StaticEvent for ScoreUpdated { const PALLET: &'static str = "VoterList"; const EVENT: &'static str = "ScoreUpdated"; } } pub mod storage { use super::runtime_types; pub struct StorageApi; impl StorageApi { #[doc = " A single node, within some bag."] #[doc = ""] #[doc = " Nodes store links forward and back within their respective bags."] pub fn list_nodes( &self, _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, runtime_types::pallet_bags_list::list::Node, ::subxt::storage::address::Yes, (), ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( "VoterList", "ListNodes", vec![::subxt::storage::address::make_static_storage_map_key( _0.borrow(), )], [ 252u8, 218u8, 186u8, 230u8, 86u8, 177u8, 112u8, 218u8, 9u8, 62u8, 217u8, 5u8, 39u8, 70u8, 15u8, 104u8, 157u8, 19u8, 175u8, 136u8, 71u8, 237u8, 254u8, 254u8, 119u8, 107u8, 84u8, 10u8, 104u8, 142u8, 135u8, 35u8, ], ) } #[doc = " A single node, within some bag."] #[doc = ""] #[doc = " Nodes store links forward and back within their respective bags."] pub fn list_nodes_root( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, runtime_types::pallet_bags_list::list::Node, (), (), ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( "VoterList", "ListNodes", Vec::new(), [ 252u8, 218u8, 186u8, 230u8, 86u8, 177u8, 112u8, 218u8, 9u8, 62u8, 217u8, 5u8, 39u8, 70u8, 15u8, 104u8, 157u8, 19u8, 175u8, 136u8, 71u8, 237u8, 254u8, 254u8, 119u8, 107u8, 84u8, 10u8, 104u8, 142u8, 135u8, 35u8, ], ) } #[doc = "Counter for the related counted storage map"] pub fn counter_for_list_nodes( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, ::core::primitive::u32, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), > { ::subxt::storage::address::Address::new_static( "VoterList", "CounterForListNodes", vec![], [ 126u8, 150u8, 201u8, 81u8, 155u8, 79u8, 50u8, 48u8, 120u8, 170u8, 3u8, 104u8, 112u8, 254u8, 106u8, 46u8, 108u8, 126u8, 158u8, 245u8, 95u8, 88u8, 236u8, 89u8, 79u8, 172u8, 13u8, 146u8, 202u8, 151u8, 122u8, 132u8, ], ) } #[doc = " A bag stored in storage."] #[doc = ""] #[doc = " Stores a `Bag` struct, which stores head and tail pointers to itself."] pub fn list_bags( &self, _0: impl ::std::borrow::Borrow<::core::primitive::u64>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, runtime_types::pallet_bags_list::list::Bag, ::subxt::storage::address::Yes, (), ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( "VoterList", "ListBags", vec![::subxt::storage::address::make_static_storage_map_key( _0.borrow(), )], [ 157u8, 147u8, 94u8, 26u8, 37u8, 89u8, 114u8, 210u8, 158u8, 36u8, 155u8, 0u8, 137u8, 78u8, 65u8, 165u8, 226u8, 192u8, 65u8, 13u8, 244u8, 159u8, 245u8, 15u8, 210u8, 101u8, 61u8, 111u8, 217u8, 225u8, 197u8, 158u8, ], ) } #[doc = " A bag stored in storage."] #[doc = ""] #[doc = " Stores a `Bag` struct, which stores head and tail pointers to itself."] pub fn list_bags_root( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, runtime_types::pallet_bags_list::list::Bag, (), (), ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( "VoterList", "ListBags", Vec::new(), [ 157u8, 147u8, 94u8, 26u8, 37u8, 89u8, 114u8, 210u8, 158u8, 36u8, 155u8, 0u8, 137u8, 78u8, 65u8, 165u8, 226u8, 192u8, 65u8, 13u8, 244u8, 159u8, 245u8, 15u8, 210u8, 101u8, 61u8, 111u8, 217u8, 225u8, 197u8, 158u8, ], ) } } } pub mod constants { use super::runtime_types; pub struct ConstantsApi; impl ConstantsApi { #[doc = " The list of thresholds separating the various bags."] #[doc = ""] #[doc = " Ids are separated into unsorted bags according to their score. This specifies the"] #[doc = " thresholds separating the bags. An id's bag is the largest bag for which the id's score"] #[doc = " is less than or equal to its upper threshold."] #[doc = ""] #[doc = " When ids are iterated, higher bags are iterated completely before lower bags. This means"] #[doc = " that iteration is _semi-sorted_: ids of higher score tend to come before ids of lower"] #[doc = " score, but peer ids within a particular bag are sorted in insertion order."] #[doc = ""] #[doc = " # Expressing the constant"] #[doc = ""] #[doc = " This constant must be sorted in strictly increasing order. Duplicate items are not"] #[doc = " permitted."] #[doc = ""] #[doc = " There is an implied upper limit of `Score::MAX`; that value does not need to be"] #[doc = " specified within the bag. For any two threshold lists, if one ends with"] #[doc = " `Score::MAX`, the other one does not, and they are otherwise equal, the two"] #[doc = " lists will behave identically."] #[doc = ""] #[doc = " # Calculation"] #[doc = ""] #[doc = " It is recommended to generate the set of thresholds in a geometric series, such that"] #[doc = " there exists some constant ratio such that `threshold[k + 1] == (threshold[k] *"] #[doc = " constant_ratio).max(threshold[k] + 1)` for all `k`."] #[doc = ""] #[doc = " The helpers in the `/utils/frame/generate-bags` module can simplify this calculation."] #[doc = ""] #[doc = " # Examples"] #[doc = ""] #[doc = " - If `BagThresholds::get().is_empty()`, then all ids are put into the same bag, and"] #[doc = " iteration is strictly in insertion order."] #[doc = " - If `BagThresholds::get().len() == 64`, and the thresholds are determined according to"] #[doc = " the procedure given above, then the constant ratio is equal to 2."] #[doc = " - If `BagThresholds::get().len() == 200`, and the thresholds are determined according to"] #[doc = " the procedure given above, then the constant ratio is approximately equal to 1.248."] #[doc = " - If the threshold list begins `[1, 2, 3, ...]`, then an id with score 0 or 1 will fall"] #[doc = " into bag 0, an id with score 2 will fall into bag 1, etc."] #[doc = ""] #[doc = " # Migration"] #[doc = ""] #[doc = " In the event that this list ever changes, a copy of the old bags list must be retained."] #[doc = " With that `List::migrate` can be called, which will perform the appropriate migration."] pub fn bag_thresholds( &self, ) -> ::subxt::constants::Address<::std::vec::Vec<::core::primitive::u64>> { ::subxt::constants::Address::new_static( "VoterList", "BagThresholds", [ 215u8, 118u8, 183u8, 172u8, 4u8, 42u8, 248u8, 108u8, 4u8, 110u8, 43u8, 165u8, 228u8, 7u8, 36u8, 30u8, 135u8, 184u8, 56u8, 201u8, 107u8, 68u8, 25u8, 164u8, 134u8, 32u8, 82u8, 107u8, 200u8, 219u8, 212u8, 198u8, ], ) } } } } pub mod nomination_pools { use super::root_mod; use super::runtime_types; #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] pub type Error = runtime_types::pallet_nomination_pools::pallet::Error; #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] pub type Call = runtime_types::pallet_nomination_pools::pallet::Call; pub mod calls { use super::root_mod; use super::runtime_types; type DispatchError = runtime_types::sp_runtime::DispatchError; pub mod types { use super::runtime_types; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Join { #[codec(compact)] pub amount: ::core::primitive::u128, pub pool_id: ::core::primitive::u32, } impl ::subxt::blocks::StaticExtrinsic for Join { const PALLET: &'static str = "NominationPools"; const CALL: &'static str = "join"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct BondExtra { pub extra: runtime_types::pallet_nomination_pools::BondExtra<::core::primitive::u128>, } impl ::subxt::blocks::StaticExtrinsic for BondExtra { const PALLET: &'static str = "NominationPools"; const CALL: &'static str = "bond_extra"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ClaimPayout; impl ::subxt::blocks::StaticExtrinsic for ClaimPayout { const PALLET: &'static str = "NominationPools"; const CALL: &'static str = "claim_payout"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Unbond { pub member_account: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, #[codec(compact)] pub unbonding_points: ::core::primitive::u128, } impl ::subxt::blocks::StaticExtrinsic for Unbond { const PALLET: &'static str = "NominationPools"; const CALL: &'static str = "unbond"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct PoolWithdrawUnbonded { pub pool_id: ::core::primitive::u32, pub num_slashing_spans: ::core::primitive::u32, } impl ::subxt::blocks::StaticExtrinsic for PoolWithdrawUnbonded { const PALLET: &'static str = "NominationPools"; const CALL: &'static str = "pool_withdraw_unbonded"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct WithdrawUnbonded { pub member_account: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, pub num_slashing_spans: ::core::primitive::u32, } impl ::subxt::blocks::StaticExtrinsic for WithdrawUnbonded { const PALLET: &'static str = "NominationPools"; const CALL: &'static str = "withdraw_unbonded"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Create { #[codec(compact)] pub amount: ::core::primitive::u128, pub root: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, pub nominator: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, pub bouncer: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, } impl ::subxt::blocks::StaticExtrinsic for Create { const PALLET: &'static str = "NominationPools"; const CALL: &'static str = "create"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct CreateWithPoolId { #[codec(compact)] pub amount: ::core::primitive::u128, pub root: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, pub nominator: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, pub bouncer: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, pub pool_id: ::core::primitive::u32, } impl ::subxt::blocks::StaticExtrinsic for CreateWithPoolId { const PALLET: &'static str = "NominationPools"; const CALL: &'static str = "create_with_pool_id"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Nominate { pub pool_id: ::core::primitive::u32, pub validators: ::std::vec::Vec<::subxt::utils::AccountId32>, } impl ::subxt::blocks::StaticExtrinsic for Nominate { const PALLET: &'static str = "NominationPools"; const CALL: &'static str = "nominate"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SetState { pub pool_id: ::core::primitive::u32, pub state: runtime_types::pallet_nomination_pools::PoolState, } impl ::subxt::blocks::StaticExtrinsic for SetState { const PALLET: &'static str = "NominationPools"; const CALL: &'static str = "set_state"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SetMetadata { pub pool_id: ::core::primitive::u32, pub metadata: ::std::vec::Vec<::core::primitive::u8>, } impl ::subxt::blocks::StaticExtrinsic for SetMetadata { const PALLET: &'static str = "NominationPools"; const CALL: &'static str = "set_metadata"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SetConfigs { pub min_join_bond: runtime_types::pallet_nomination_pools::ConfigOp<::core::primitive::u128>, pub min_create_bond: runtime_types::pallet_nomination_pools::ConfigOp<::core::primitive::u128>, pub max_pools: runtime_types::pallet_nomination_pools::ConfigOp<::core::primitive::u32>, pub max_members: runtime_types::pallet_nomination_pools::ConfigOp<::core::primitive::u32>, pub max_members_per_pool: runtime_types::pallet_nomination_pools::ConfigOp<::core::primitive::u32>, pub global_max_commission: runtime_types::pallet_nomination_pools::ConfigOp< runtime_types::sp_arithmetic::per_things::Perbill, >, } impl ::subxt::blocks::StaticExtrinsic for SetConfigs { const PALLET: &'static str = "NominationPools"; const CALL: &'static str = "set_configs"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct UpdateRoles { pub pool_id: ::core::primitive::u32, pub new_root: runtime_types::pallet_nomination_pools::ConfigOp< ::subxt::utils::AccountId32, >, pub new_nominator: runtime_types::pallet_nomination_pools::ConfigOp< ::subxt::utils::AccountId32, >, pub new_bouncer: runtime_types::pallet_nomination_pools::ConfigOp< ::subxt::utils::AccountId32, >, } impl ::subxt::blocks::StaticExtrinsic for UpdateRoles { const PALLET: &'static str = "NominationPools"; const CALL: &'static str = "update_roles"; } #[derive( :: subxt :: ext :: codec :: CompactAs, :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Chill { pub pool_id: ::core::primitive::u32, } impl ::subxt::blocks::StaticExtrinsic for Chill { const PALLET: &'static str = "NominationPools"; const CALL: &'static str = "chill"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct BondExtraOther { pub member: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, pub extra: runtime_types::pallet_nomination_pools::BondExtra<::core::primitive::u128>, } impl ::subxt::blocks::StaticExtrinsic for BondExtraOther { const PALLET: &'static str = "NominationPools"; const CALL: &'static str = "bond_extra_other"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SetClaimPermission { pub permission: runtime_types::pallet_nomination_pools::ClaimPermission, } impl ::subxt::blocks::StaticExtrinsic for SetClaimPermission { const PALLET: &'static str = "NominationPools"; const CALL: &'static str = "set_claim_permission"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ClaimPayoutOther { pub other: ::subxt::utils::AccountId32, } impl ::subxt::blocks::StaticExtrinsic for ClaimPayoutOther { const PALLET: &'static str = "NominationPools"; const CALL: &'static str = "claim_payout_other"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SetCommission { pub pool_id: ::core::primitive::u32, pub new_commission: ::core::option::Option<( runtime_types::sp_arithmetic::per_things::Perbill, ::subxt::utils::AccountId32, )>, } impl ::subxt::blocks::StaticExtrinsic for SetCommission { const PALLET: &'static str = "NominationPools"; const CALL: &'static str = "set_commission"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SetCommissionMax { pub pool_id: ::core::primitive::u32, pub max_commission: runtime_types::sp_arithmetic::per_things::Perbill, } impl ::subxt::blocks::StaticExtrinsic for SetCommissionMax { const PALLET: &'static str = "NominationPools"; const CALL: &'static str = "set_commission_max"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SetCommissionChangeRate { pub pool_id: ::core::primitive::u32, pub change_rate: runtime_types::pallet_nomination_pools::CommissionChangeRate< ::core::primitive::u32, >, } impl ::subxt::blocks::StaticExtrinsic for SetCommissionChangeRate { const PALLET: &'static str = "NominationPools"; const CALL: &'static str = "set_commission_change_rate"; } #[derive( :: subxt :: ext :: codec :: CompactAs, :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ClaimCommission { pub pool_id: ::core::primitive::u32, } impl ::subxt::blocks::StaticExtrinsic for ClaimCommission { const PALLET: &'static str = "NominationPools"; const CALL: &'static str = "claim_commission"; } } pub struct TransactionApi; impl TransactionApi { #[doc = "Stake funds with a pool. The amount to bond is transferred from the member to the"] #[doc = "pools account and immediately increases the pools bond."] #[doc = ""] #[doc = "# Note"] #[doc = ""] #[doc = "* An account can only be a member of a single pool."] #[doc = "* An account cannot join the same pool multiple times."] #[doc = "* This call will *not* dust the member account, so the member must have at least"] #[doc = " `existential deposit + amount` in their account."] #[doc = "* Only a pool with [`PoolState::Open`] can be joined"] pub fn join( &self, amount: ::core::primitive::u128, pool_id: ::core::primitive::u32, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "NominationPools", "join", types::Join { amount, pool_id }, [ 9u8, 24u8, 209u8, 117u8, 242u8, 76u8, 192u8, 40u8, 196u8, 136u8, 158u8, 182u8, 117u8, 140u8, 164u8, 64u8, 184u8, 160u8, 146u8, 143u8, 173u8, 180u8, 6u8, 242u8, 203u8, 130u8, 41u8, 176u8, 158u8, 96u8, 94u8, 175u8, ], ) } #[doc = "Bond `extra` more funds from `origin` into the pool to which they already belong."] #[doc = ""] #[doc = "Additional funds can come from either the free balance of the account, of from the"] #[doc = "accumulated rewards, see [`BondExtra`]."] #[doc = ""] #[doc = "Bonding extra funds implies an automatic payout of all pending rewards as well."] #[doc = "See `bond_extra_other` to bond pending rewards of `other` members."] pub fn bond_extra( &self, extra: runtime_types::pallet_nomination_pools::BondExtra< ::core::primitive::u128, >, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "NominationPools", "bond_extra", types::BondExtra { extra }, [ 149u8, 176u8, 102u8, 52u8, 76u8, 227u8, 61u8, 60u8, 109u8, 187u8, 40u8, 176u8, 163u8, 37u8, 10u8, 228u8, 164u8, 77u8, 155u8, 155u8, 14u8, 106u8, 5u8, 177u8, 176u8, 224u8, 163u8, 28u8, 66u8, 237u8, 186u8, 188u8, ], ) } #[doc = "A bonded member can use this to claim their payout based on the rewards that the pool"] #[doc = "has accumulated since their last claimed payout (OR since joining if this is their first"] #[doc = "time claiming rewards). The payout will be transferred to the member's account."] #[doc = ""] #[doc = "The member will earn rewards pro rata based on the members stake vs the sum of the"] #[doc = "members in the pools stake. Rewards do not \"expire\"."] #[doc = ""] #[doc = "See `claim_payout_other` to caim rewards on bahalf of some `other` pool member."] pub fn claim_payout(&self) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "NominationPools", "claim_payout", types::ClaimPayout {}, [ 28u8, 87u8, 180u8, 5u8, 69u8, 49u8, 121u8, 28u8, 34u8, 63u8, 78u8, 228u8, 223u8, 12u8, 171u8, 41u8, 181u8, 137u8, 145u8, 141u8, 198u8, 220u8, 5u8, 101u8, 173u8, 69u8, 222u8, 59u8, 111u8, 92u8, 182u8, 8u8, ], ) } #[doc = "Unbond up to `unbonding_points` of the `member_account`'s funds from the pool. It"] #[doc = "implicitly collects the rewards one last time, since not doing so would mean some"] #[doc = "rewards would be forfeited."] #[doc = ""] #[doc = "Under certain conditions, this call can be dispatched permissionlessly (i.e. by any"] #[doc = "account)."] #[doc = ""] #[doc = "# Conditions for a permissionless dispatch."] #[doc = ""] #[doc = "* The pool is blocked and the caller is either the root or bouncer. This is refereed to"] #[doc = " as a kick."] #[doc = "* The pool is destroying and the member is not the depositor."] #[doc = "* The pool is destroying, the member is the depositor and no other members are in the"] #[doc = " pool."] #[doc = ""] #[doc = "## Conditions for permissioned dispatch (i.e. the caller is also the"] #[doc = "`member_account`):"] #[doc = ""] #[doc = "* The caller is not the depositor."] #[doc = "* The caller is the depositor, the pool is destroying and no other members are in the"] #[doc = " pool."] #[doc = ""] #[doc = "# Note"] #[doc = ""] #[doc = "If there are too many unlocking chunks to unbond with the pool account,"] #[doc = "[`Call::pool_withdraw_unbonded`] can be called to try and minimize unlocking chunks."] #[doc = "The [`StakingInterface::unbond`] will implicitly call [`Call::pool_withdraw_unbonded`]"] #[doc = "to try to free chunks if necessary (ie. if unbound was called and no unlocking chunks"] #[doc = "are available). However, it may not be possible to release the current unlocking chunks,"] #[doc = "in which case, the result of this call will likely be the `NoMoreChunks` error from the"] #[doc = "staking system."] pub fn unbond( &self, member_account: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, unbonding_points: ::core::primitive::u128, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "NominationPools", "unbond", types::Unbond { member_account, unbonding_points, }, [ 178u8, 232u8, 24u8, 199u8, 57u8, 76u8, 252u8, 68u8, 39u8, 118u8, 16u8, 74u8, 55u8, 191u8, 142u8, 188u8, 80u8, 67u8, 168u8, 40u8, 9u8, 99u8, 214u8, 43u8, 44u8, 57u8, 177u8, 66u8, 238u8, 104u8, 52u8, 220u8, ], ) } #[doc = "Call `withdraw_unbonded` for the pools account. This call can be made by any account."] #[doc = ""] #[doc = "This is useful if their are too many unlocking chunks to call `unbond`, and some"] #[doc = "can be cleared by withdrawing. In the case there are too many unlocking chunks, the user"] #[doc = "would probably see an error like `NoMoreChunks` emitted from the staking system when"] #[doc = "they attempt to unbond."] pub fn pool_withdraw_unbonded( &self, pool_id: ::core::primitive::u32, num_slashing_spans: ::core::primitive::u32, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "NominationPools", "pool_withdraw_unbonded", types::PoolWithdrawUnbonded { pool_id, num_slashing_spans, }, [ 234u8, 49u8, 43u8, 199u8, 55u8, 2u8, 252u8, 39u8, 147u8, 136u8, 34u8, 239u8, 116u8, 155u8, 129u8, 72u8, 83u8, 161u8, 90u8, 207u8, 1u8, 193u8, 254u8, 47u8, 40u8, 185u8, 67u8, 55u8, 238u8, 122u8, 140u8, 230u8, ], ) } #[doc = "Withdraw unbonded funds from `member_account`. If no bonded funds can be unbonded, an"] #[doc = "error is returned."] #[doc = ""] #[doc = "Under certain conditions, this call can be dispatched permissionlessly (i.e. by any"] #[doc = "account)."] #[doc = ""] #[doc = "# Conditions for a permissionless dispatch"] #[doc = ""] #[doc = "* The pool is in destroy mode and the target is not the depositor."] #[doc = "* The target is the depositor and they are the only member in the sub pools."] #[doc = "* The pool is blocked and the caller is either the root or bouncer."] #[doc = ""] #[doc = "# Conditions for permissioned dispatch"] #[doc = ""] #[doc = "* The caller is the target and they are not the depositor."] #[doc = ""] #[doc = "# Note"] #[doc = ""] #[doc = "If the target is the depositor, the pool will be destroyed."] pub fn withdraw_unbonded( &self, member_account: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, num_slashing_spans: ::core::primitive::u32, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "NominationPools", "withdraw_unbonded", types::WithdrawUnbonded { member_account, num_slashing_spans, }, [ 153u8, 110u8, 206u8, 15u8, 152u8, 12u8, 113u8, 210u8, 94u8, 95u8, 14u8, 244u8, 38u8, 29u8, 140u8, 121u8, 40u8, 6u8, 125u8, 228u8, 46u8, 110u8, 240u8, 149u8, 188u8, 176u8, 232u8, 187u8, 231u8, 152u8, 192u8, 180u8, ], ) } #[doc = "Create a new delegation pool."] #[doc = ""] #[doc = "# Arguments"] #[doc = ""] #[doc = "* `amount` - The amount of funds to delegate to the pool. This also acts of a sort of"] #[doc = " deposit since the pools creator cannot fully unbond funds until the pool is being"] #[doc = " destroyed."] #[doc = "* `index` - A disambiguation index for creating the account. Likely only useful when"] #[doc = " creating multiple pools in the same extrinsic."] #[doc = "* `root` - The account to set as [`PoolRoles::root`]."] #[doc = "* `nominator` - The account to set as the [`PoolRoles::nominator`]."] #[doc = "* `bouncer` - The account to set as the [`PoolRoles::bouncer`]."] #[doc = ""] #[doc = "# Note"] #[doc = ""] #[doc = "In addition to `amount`, the caller will transfer the existential deposit; so the caller"] #[doc = "needs at have at least `amount + existential_deposit` transferrable."] pub fn create( &self, amount: ::core::primitive::u128, root: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, nominator: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, bouncer: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "NominationPools", "create", types::Create { amount, root, nominator, bouncer, }, [ 158u8, 136u8, 58u8, 88u8, 26u8, 188u8, 179u8, 22u8, 217u8, 3u8, 184u8, 93u8, 76u8, 124u8, 24u8, 169u8, 133u8, 18u8, 229u8, 230u8, 210u8, 194u8, 10u8, 88u8, 33u8, 72u8, 113u8, 65u8, 200u8, 98u8, 55u8, 220u8, ], ) } #[doc = "Create a new delegation pool with a previously used pool id"] #[doc = ""] #[doc = "# Arguments"] #[doc = ""] #[doc = "same as `create` with the inclusion of"] #[doc = "* `pool_id` - `A valid PoolId."] pub fn create_with_pool_id( &self, amount: ::core::primitive::u128, root: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, nominator: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, bouncer: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, pool_id: ::core::primitive::u32, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "NominationPools", "create_with_pool_id", types::CreateWithPoolId { amount, root, nominator, bouncer, pool_id, }, [ 3u8, 118u8, 189u8, 234u8, 136u8, 26u8, 170u8, 124u8, 187u8, 6u8, 53u8, 190u8, 66u8, 225u8, 221u8, 136u8, 162u8, 189u8, 212u8, 12u8, 174u8, 240u8, 86u8, 50u8, 110u8, 135u8, 106u8, 70u8, 243u8, 147u8, 125u8, 99u8, ], ) } #[doc = "Nominate on behalf of the pool."] #[doc = ""] #[doc = "The dispatch origin of this call must be signed by the pool nominator or the pool"] #[doc = "root role."] #[doc = ""] #[doc = "This directly forward the call to the staking pallet, on behalf of the pool bonded"] #[doc = "account."] pub fn nominate( &self, pool_id: ::core::primitive::u32, validators: ::std::vec::Vec<::subxt::utils::AccountId32>, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "NominationPools", "nominate", types::Nominate { pool_id, validators, }, [ 118u8, 80u8, 137u8, 47u8, 102u8, 9u8, 20u8, 136u8, 76u8, 164u8, 161u8, 114u8, 33u8, 159u8, 204u8, 49u8, 233u8, 199u8, 246u8, 67u8, 144u8, 169u8, 211u8, 67u8, 12u8, 68u8, 198u8, 149u8, 87u8, 62u8, 226u8, 72u8, ], ) } #[doc = "Set a new state for the pool."] #[doc = ""] #[doc = "If a pool is already in the `Destroying` state, then under no condition can its state"] #[doc = "change again."] #[doc = ""] #[doc = "The dispatch origin of this call must be either:"] #[doc = ""] #[doc = "1. signed by the bouncer, or the root role of the pool,"] #[doc = "2. if the pool conditions to be open are NOT met (as described by `ok_to_be_open`), and"] #[doc = " then the state of the pool can be permissionlessly changed to `Destroying`."] pub fn set_state( &self, pool_id: ::core::primitive::u32, state: runtime_types::pallet_nomination_pools::PoolState, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "NominationPools", "set_state", types::SetState { pool_id, state }, [ 39u8, 221u8, 24u8, 65u8, 144u8, 230u8, 228u8, 24u8, 191u8, 53u8, 171u8, 148u8, 131u8, 45u8, 10u8, 22u8, 222u8, 240u8, 13u8, 87u8, 123u8, 182u8, 102u8, 26u8, 124u8, 205u8, 23u8, 31u8, 25u8, 43u8, 12u8, 140u8, ], ) } #[doc = "Set a new metadata for the pool."] #[doc = ""] #[doc = "The dispatch origin of this call must be signed by the bouncer, or the root role of the"] #[doc = "pool."] pub fn set_metadata( &self, pool_id: ::core::primitive::u32, metadata: ::std::vec::Vec<::core::primitive::u8>, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "NominationPools", "set_metadata", types::SetMetadata { pool_id, metadata }, [ 221u8, 189u8, 15u8, 232u8, 0u8, 49u8, 187u8, 67u8, 124u8, 26u8, 114u8, 191u8, 81u8, 14u8, 253u8, 75u8, 88u8, 182u8, 136u8, 18u8, 238u8, 119u8, 215u8, 248u8, 133u8, 160u8, 154u8, 193u8, 177u8, 140u8, 1u8, 16u8, ], ) } #[doc = "Update configurations for the nomination pools. The origin for this call must be"] #[doc = "Root."] #[doc = ""] #[doc = "# Arguments"] #[doc = ""] #[doc = "* `min_join_bond` - Set [`MinJoinBond`]."] #[doc = "* `min_create_bond` - Set [`MinCreateBond`]."] #[doc = "* `max_pools` - Set [`MaxPools`]."] #[doc = "* `max_members` - Set [`MaxPoolMembers`]."] #[doc = "* `max_members_per_pool` - Set [`MaxPoolMembersPerPool`]."] #[doc = "* `global_max_commission` - Set [`GlobalMaxCommission`]."] pub fn set_configs( &self, min_join_bond: runtime_types::pallet_nomination_pools::ConfigOp< ::core::primitive::u128, >, min_create_bond: runtime_types::pallet_nomination_pools::ConfigOp< ::core::primitive::u128, >, max_pools: runtime_types::pallet_nomination_pools::ConfigOp< ::core::primitive::u32, >, max_members: runtime_types::pallet_nomination_pools::ConfigOp< ::core::primitive::u32, >, max_members_per_pool: runtime_types::pallet_nomination_pools::ConfigOp< ::core::primitive::u32, >, global_max_commission: runtime_types::pallet_nomination_pools::ConfigOp< runtime_types::sp_arithmetic::per_things::Perbill, >, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "NominationPools", "set_configs", types::SetConfigs { min_join_bond, min_create_bond, max_pools, max_members, max_members_per_pool, global_max_commission, }, [ 60u8, 29u8, 13u8, 45u8, 37u8, 171u8, 129u8, 133u8, 127u8, 42u8, 104u8, 45u8, 29u8, 58u8, 209u8, 48u8, 119u8, 255u8, 86u8, 13u8, 243u8, 124u8, 57u8, 250u8, 156u8, 189u8, 59u8, 88u8, 64u8, 109u8, 219u8, 68u8, ], ) } #[doc = "Update the roles of the pool."] #[doc = ""] #[doc = "The root is the only entity that can change any of the roles, including itself,"] #[doc = "excluding the depositor, who can never change."] #[doc = ""] #[doc = "It emits an event, notifying UIs of the role change. This event is quite relevant to"] #[doc = "most pool members and they should be informed of changes to pool roles."] pub fn update_roles( &self, pool_id: ::core::primitive::u32, new_root: runtime_types::pallet_nomination_pools::ConfigOp< ::subxt::utils::AccountId32, >, new_nominator: runtime_types::pallet_nomination_pools::ConfigOp< ::subxt::utils::AccountId32, >, new_bouncer: runtime_types::pallet_nomination_pools::ConfigOp< ::subxt::utils::AccountId32, >, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "NominationPools", "update_roles", types::UpdateRoles { pool_id, new_root, new_nominator, new_bouncer, }, [ 58u8, 51u8, 136u8, 162u8, 218u8, 195u8, 121u8, 6u8, 243u8, 69u8, 19u8, 130u8, 152u8, 180u8, 226u8, 28u8, 0u8, 218u8, 237u8, 56u8, 52u8, 139u8, 198u8, 155u8, 112u8, 165u8, 142u8, 44u8, 111u8, 197u8, 123u8, 246u8, ], ) } #[doc = "Chill on behalf of the pool."] #[doc = ""] #[doc = "The dispatch origin of this call must be signed by the pool nominator or the pool"] #[doc = "root role, same as [`Pallet::nominate`]."] #[doc = ""] #[doc = "This directly forward the call to the staking pallet, on behalf of the pool bonded"] #[doc = "account."] pub fn chill( &self, pool_id: ::core::primitive::u32, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "NominationPools", "chill", types::Chill { pool_id }, [ 65u8, 206u8, 54u8, 53u8, 37u8, 97u8, 161u8, 104u8, 62u8, 9u8, 93u8, 236u8, 61u8, 185u8, 204u8, 245u8, 234u8, 218u8, 213u8, 40u8, 154u8, 29u8, 244u8, 19u8, 207u8, 172u8, 142u8, 221u8, 38u8, 70u8, 39u8, 10u8, ], ) } #[doc = "`origin` bonds funds from `extra` for some pool member `member` into their respective"] #[doc = "pools."] #[doc = ""] #[doc = "`origin` can bond extra funds from free balance or pending rewards when `origin =="] #[doc = "other`."] #[doc = ""] #[doc = "In the case of `origin != other`, `origin` can only bond extra pending rewards of"] #[doc = "`other` members assuming set_claim_permission for the given member is"] #[doc = "`PermissionlessAll` or `PermissionlessCompound`."] pub fn bond_extra_other( &self, member: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, extra: runtime_types::pallet_nomination_pools::BondExtra< ::core::primitive::u128, >, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "NominationPools", "bond_extra_other", types::BondExtraOther { member, extra }, [ 210u8, 156u8, 196u8, 34u8, 245u8, 145u8, 2u8, 255u8, 36u8, 220u8, 101u8, 235u8, 200u8, 43u8, 237u8, 70u8, 15u8, 231u8, 177u8, 37u8, 215u8, 157u8, 165u8, 16u8, 183u8, 67u8, 182u8, 52u8, 26u8, 244u8, 210u8, 135u8, ], ) } #[doc = "Allows a pool member to set a claim permission to allow or disallow permissionless"] #[doc = "bonding and withdrawing."] #[doc = ""] #[doc = "By default, this is `Permissioned`, which implies only the pool member themselves can"] #[doc = "claim their pending rewards. If a pool member wishes so, they can set this to"] #[doc = "`PermissionlessAll` to allow any account to claim their rewards and bond extra to the"] #[doc = "pool."] #[doc = ""] #[doc = "# Arguments"] #[doc = ""] #[doc = "* `origin` - Member of a pool."] #[doc = "* `actor` - Account to claim reward. // improve this"] pub fn set_claim_permission( &self, permission: runtime_types::pallet_nomination_pools::ClaimPermission, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "NominationPools", "set_claim_permission", types::SetClaimPermission { permission }, [ 36u8, 137u8, 193u8, 200u8, 57u8, 46u8, 87u8, 236u8, 180u8, 170u8, 90u8, 99u8, 137u8, 123u8, 99u8, 197u8, 113u8, 119u8, 72u8, 153u8, 207u8, 189u8, 69u8, 89u8, 225u8, 115u8, 45u8, 32u8, 216u8, 43u8, 92u8, 135u8, ], ) } #[doc = "`origin` can claim payouts on some pool member `other`'s behalf."] #[doc = ""] #[doc = "Pool member `other` must have a `PermissionlessAll` or `PermissionlessWithdraw` in order"] #[doc = "for this call to be successful."] pub fn claim_payout_other( &self, other: ::subxt::utils::AccountId32, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "NominationPools", "claim_payout_other", types::ClaimPayoutOther { other }, [ 202u8, 130u8, 122u8, 10u8, 159u8, 181u8, 124u8, 215u8, 23u8, 85u8, 234u8, 178u8, 169u8, 41u8, 204u8, 226u8, 195u8, 69u8, 168u8, 88u8, 58u8, 15u8, 3u8, 227u8, 180u8, 183u8, 62u8, 224u8, 39u8, 218u8, 75u8, 166u8, ], ) } #[doc = "Set the commission of a pool."] #[doc = "Both a commission percentage and a commission payee must be provided in the `current`"] #[doc = "tuple. Where a `current` of `None` is provided, any current commission will be removed."] #[doc = ""] #[doc = "- If a `None` is supplied to `new_commission`, existing commission will be removed."] pub fn set_commission( &self, pool_id: ::core::primitive::u32, new_commission: ::core::option::Option<( runtime_types::sp_arithmetic::per_things::Perbill, ::subxt::utils::AccountId32, )>, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "NominationPools", "set_commission", types::SetCommission { pool_id, new_commission, }, [ 144u8, 94u8, 73u8, 69u8, 224u8, 158u8, 244u8, 77u8, 169u8, 219u8, 101u8, 41u8, 37u8, 211u8, 198u8, 32u8, 92u8, 108u8, 7u8, 27u8, 153u8, 37u8, 82u8, 174u8, 196u8, 176u8, 196u8, 181u8, 45u8, 81u8, 134u8, 162u8, ], ) } #[doc = "Set the maximum commission of a pool."] #[doc = ""] #[doc = "- Initial max can be set to any `Perbill`, and only smaller values thereafter."] #[doc = "- Current commission will be lowered in the event it is higher than a new max"] #[doc = " commission."] pub fn set_commission_max( &self, pool_id: ::core::primitive::u32, max_commission: runtime_types::sp_arithmetic::per_things::Perbill, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "NominationPools", "set_commission_max", types::SetCommissionMax { pool_id, max_commission, }, [ 180u8, 80u8, 204u8, 129u8, 141u8, 86u8, 45u8, 76u8, 224u8, 123u8, 212u8, 38u8, 224u8, 79u8, 41u8, 143u8, 237u8, 174u8, 126u8, 1u8, 215u8, 105u8, 50u8, 46u8, 151u8, 11u8, 118u8, 198u8, 183u8, 95u8, 47u8, 71u8, ], ) } #[doc = "Set the commission change rate for a pool."] #[doc = ""] #[doc = "Initial change rate is not bounded, whereas subsequent updates can only be more"] #[doc = "restrictive than the current."] pub fn set_commission_change_rate( &self, pool_id: ::core::primitive::u32, change_rate: runtime_types::pallet_nomination_pools::CommissionChangeRate< ::core::primitive::u32, >, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "NominationPools", "set_commission_change_rate", types::SetCommissionChangeRate { pool_id, change_rate, }, [ 138u8, 30u8, 155u8, 127u8, 181u8, 99u8, 89u8, 138u8, 130u8, 53u8, 224u8, 96u8, 190u8, 14u8, 76u8, 244u8, 142u8, 50u8, 39u8, 245u8, 144u8, 87u8, 64u8, 206u8, 246u8, 225u8, 111u8, 197u8, 245u8, 182u8, 121u8, 56u8, ], ) } #[doc = "Claim pending commission."] #[doc = ""] #[doc = "The dispatch origin of this call must be signed by the `root` role of the pool. Pending"] #[doc = "commission is paid out and added to total claimed commission`. Total pending commission"] #[doc = "is reset to zero. the current."] pub fn claim_commission( &self, pool_id: ::core::primitive::u32, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "NominationPools", "claim_commission", types::ClaimCommission { pool_id }, [ 51u8, 64u8, 163u8, 230u8, 2u8, 119u8, 68u8, 5u8, 154u8, 4u8, 84u8, 149u8, 9u8, 195u8, 173u8, 37u8, 98u8, 48u8, 188u8, 65u8, 81u8, 11u8, 64u8, 254u8, 126u8, 62u8, 29u8, 204u8, 92u8, 230u8, 240u8, 91u8, ], ) } } } #[doc = "Events of this pallet."] pub type Event = runtime_types::pallet_nomination_pools::pallet::Event; pub mod events { use super::runtime_types; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A pool has been created."] pub struct Created { pub depositor: ::subxt::utils::AccountId32, pub pool_id: ::core::primitive::u32, } impl ::subxt::events::StaticEvent for Created { const PALLET: &'static str = "NominationPools"; const EVENT: &'static str = "Created"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A member has became bonded in a pool."] pub struct Bonded { pub member: ::subxt::utils::AccountId32, pub pool_id: ::core::primitive::u32, pub bonded: ::core::primitive::u128, pub joined: ::core::primitive::bool, } impl ::subxt::events::StaticEvent for Bonded { const PALLET: &'static str = "NominationPools"; const EVENT: &'static str = "Bonded"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A payout has been made to a member."] pub struct PaidOut { pub member: ::subxt::utils::AccountId32, pub pool_id: ::core::primitive::u32, pub payout: ::core::primitive::u128, } impl ::subxt::events::StaticEvent for PaidOut { const PALLET: &'static str = "NominationPools"; const EVENT: &'static str = "PaidOut"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A member has unbonded from their pool."] #[doc = ""] #[doc = "- `balance` is the corresponding balance of the number of points that has been"] #[doc = " requested to be unbonded (the argument of the `unbond` transaction) from the bonded"] #[doc = " pool."] #[doc = "- `points` is the number of points that are issued as a result of `balance` being"] #[doc = "dissolved into the corresponding unbonding pool."] #[doc = "- `era` is the era in which the balance will be unbonded."] #[doc = "In the absence of slashing, these values will match. In the presence of slashing, the"] #[doc = "number of points that are issued in the unbonding pool will be less than the amount"] #[doc = "requested to be unbonded."] pub struct Unbonded { pub member: ::subxt::utils::AccountId32, pub pool_id: ::core::primitive::u32, pub balance: ::core::primitive::u128, pub points: ::core::primitive::u128, pub era: ::core::primitive::u32, } impl ::subxt::events::StaticEvent for Unbonded { const PALLET: &'static str = "NominationPools"; const EVENT: &'static str = "Unbonded"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A member has withdrawn from their pool."] #[doc = ""] #[doc = "The given number of `points` have been dissolved in return of `balance`."] #[doc = ""] #[doc = "Similar to `Unbonded` event, in the absence of slashing, the ratio of point to balance"] #[doc = "will be 1."] pub struct Withdrawn { pub member: ::subxt::utils::AccountId32, pub pool_id: ::core::primitive::u32, pub balance: ::core::primitive::u128, pub points: ::core::primitive::u128, } impl ::subxt::events::StaticEvent for Withdrawn { const PALLET: &'static str = "NominationPools"; const EVENT: &'static str = "Withdrawn"; } #[derive( :: subxt :: ext :: codec :: CompactAs, :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A pool has been destroyed."] pub struct Destroyed { pub pool_id: ::core::primitive::u32, } impl ::subxt::events::StaticEvent for Destroyed { const PALLET: &'static str = "NominationPools"; const EVENT: &'static str = "Destroyed"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "The state of a pool has changed"] pub struct StateChanged { pub pool_id: ::core::primitive::u32, pub new_state: runtime_types::pallet_nomination_pools::PoolState, } impl ::subxt::events::StaticEvent for StateChanged { const PALLET: &'static str = "NominationPools"; const EVENT: &'static str = "StateChanged"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A member has been removed from a pool."] #[doc = ""] #[doc = "The removal can be voluntary (withdrawn all unbonded funds) or involuntary (kicked)."] pub struct MemberRemoved { pub pool_id: ::core::primitive::u32, pub member: ::subxt::utils::AccountId32, } impl ::subxt::events::StaticEvent for MemberRemoved { const PALLET: &'static str = "NominationPools"; const EVENT: &'static str = "MemberRemoved"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "The roles of a pool have been updated to the given new roles. Note that the depositor"] #[doc = "can never change."] pub struct RolesUpdated { pub root: ::core::option::Option<::subxt::utils::AccountId32>, pub bouncer: ::core::option::Option<::subxt::utils::AccountId32>, pub nominator: ::core::option::Option<::subxt::utils::AccountId32>, } impl ::subxt::events::StaticEvent for RolesUpdated { const PALLET: &'static str = "NominationPools"; const EVENT: &'static str = "RolesUpdated"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "The active balance of pool `pool_id` has been slashed to `balance`."] pub struct PoolSlashed { pub pool_id: ::core::primitive::u32, pub balance: ::core::primitive::u128, } impl ::subxt::events::StaticEvent for PoolSlashed { const PALLET: &'static str = "NominationPools"; const EVENT: &'static str = "PoolSlashed"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "The unbond pool at `era` of pool `pool_id` has been slashed to `balance`."] pub struct UnbondingPoolSlashed { pub pool_id: ::core::primitive::u32, pub era: ::core::primitive::u32, pub balance: ::core::primitive::u128, } impl ::subxt::events::StaticEvent for UnbondingPoolSlashed { const PALLET: &'static str = "NominationPools"; const EVENT: &'static str = "UnbondingPoolSlashed"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A pool's commission setting has been changed."] pub struct PoolCommissionUpdated { pub pool_id: ::core::primitive::u32, pub current: ::core::option::Option<( runtime_types::sp_arithmetic::per_things::Perbill, ::subxt::utils::AccountId32, )>, } impl ::subxt::events::StaticEvent for PoolCommissionUpdated { const PALLET: &'static str = "NominationPools"; const EVENT: &'static str = "PoolCommissionUpdated"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A pool's maximum commission setting has been changed."] pub struct PoolMaxCommissionUpdated { pub pool_id: ::core::primitive::u32, pub max_commission: runtime_types::sp_arithmetic::per_things::Perbill, } impl ::subxt::events::StaticEvent for PoolMaxCommissionUpdated { const PALLET: &'static str = "NominationPools"; const EVENT: &'static str = "PoolMaxCommissionUpdated"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A pool's commission `change_rate` has been changed."] pub struct PoolCommissionChangeRateUpdated { pub pool_id: ::core::primitive::u32, pub change_rate: runtime_types::pallet_nomination_pools::CommissionChangeRate< ::core::primitive::u32, >, } impl ::subxt::events::StaticEvent for PoolCommissionChangeRateUpdated { const PALLET: &'static str = "NominationPools"; const EVENT: &'static str = "PoolCommissionChangeRateUpdated"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Pool commission has been claimed."] pub struct PoolCommissionClaimed { pub pool_id: ::core::primitive::u32, pub commission: ::core::primitive::u128, } impl ::subxt::events::StaticEvent for PoolCommissionClaimed { const PALLET: &'static str = "NominationPools"; const EVENT: &'static str = "PoolCommissionClaimed"; } } pub mod storage { use super::runtime_types; pub struct StorageApi; impl StorageApi { #[doc = " Minimum amount to bond to join a pool."] pub fn min_join_bond( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, ::core::primitive::u128, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), > { ::subxt::storage::address::Address::new_static( "NominationPools", "MinJoinBond", vec![], [ 64u8, 180u8, 71u8, 185u8, 81u8, 46u8, 155u8, 26u8, 251u8, 84u8, 108u8, 80u8, 128u8, 44u8, 163u8, 118u8, 107u8, 79u8, 250u8, 211u8, 194u8, 71u8, 87u8, 16u8, 247u8, 9u8, 76u8, 95u8, 103u8, 227u8, 180u8, 231u8, ], ) } #[doc = " Minimum bond required to create a pool."] #[doc = ""] #[doc = " This is the amount that the depositor must put as their initial stake in the pool, as an"] #[doc = " indication of \"skin in the game\"."] #[doc = ""] #[doc = " This is the value that will always exist in the staking ledger of the pool bonded account"] #[doc = " while all other accounts leave."] pub fn min_create_bond( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, ::core::primitive::u128, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), > { ::subxt::storage::address::Address::new_static( "NominationPools", "MinCreateBond", vec![], [ 210u8, 67u8, 92u8, 230u8, 231u8, 105u8, 54u8, 249u8, 154u8, 192u8, 29u8, 217u8, 233u8, 79u8, 170u8, 126u8, 133u8, 98u8, 253u8, 153u8, 248u8, 189u8, 63u8, 107u8, 170u8, 224u8, 12u8, 42u8, 198u8, 185u8, 85u8, 46u8, ], ) } #[doc = " Maximum number of nomination pools that can exist. If `None`, then an unbounded number of"] #[doc = " pools can exist."] pub fn max_pools( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, ::core::primitive::u32, ::subxt::storage::address::Yes, (), (), > { ::subxt::storage::address::Address::new_static( "NominationPools", "MaxPools", vec![], [ 230u8, 184u8, 242u8, 91u8, 118u8, 111u8, 90u8, 204u8, 136u8, 61u8, 228u8, 50u8, 212u8, 40u8, 83u8, 49u8, 121u8, 161u8, 245u8, 80u8, 46u8, 184u8, 105u8, 134u8, 249u8, 225u8, 39u8, 3u8, 123u8, 137u8, 156u8, 240u8, ], ) } #[doc = " Maximum number of members that can exist in the system. If `None`, then the count"] #[doc = " members are not bound on a system wide basis."] pub fn max_pool_members( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, ::core::primitive::u32, ::subxt::storage::address::Yes, (), (), > { ::subxt::storage::address::Address::new_static( "NominationPools", "MaxPoolMembers", vec![], [ 210u8, 222u8, 181u8, 146u8, 137u8, 200u8, 71u8, 196u8, 74u8, 38u8, 36u8, 122u8, 187u8, 164u8, 218u8, 116u8, 216u8, 143u8, 182u8, 15u8, 23u8, 124u8, 57u8, 121u8, 81u8, 151u8, 8u8, 247u8, 80u8, 136u8, 115u8, 2u8, ], ) } #[doc = " Maximum number of members that may belong to pool. If `None`, then the count of"] #[doc = " members is not bound on a per pool basis."] pub fn max_pool_members_per_pool( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, ::core::primitive::u32, ::subxt::storage::address::Yes, (), (), > { ::subxt::storage::address::Address::new_static( "NominationPools", "MaxPoolMembersPerPool", vec![], [ 250u8, 255u8, 136u8, 223u8, 61u8, 119u8, 117u8, 240u8, 68u8, 114u8, 55u8, 1u8, 176u8, 120u8, 143u8, 48u8, 232u8, 125u8, 218u8, 105u8, 28u8, 230u8, 253u8, 36u8, 9u8, 44u8, 129u8, 225u8, 147u8, 33u8, 181u8, 68u8, ], ) } #[doc = " The maximum commission that can be charged by a pool. Used on commission payouts to bound"] #[doc = " pool commissions that are > `GlobalMaxCommission`, necessary if a future"] #[doc = " `GlobalMaxCommission` is lower than some current pool commissions."] pub fn global_max_commission( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, runtime_types::sp_arithmetic::per_things::Perbill, ::subxt::storage::address::Yes, (), (), > { ::subxt::storage::address::Address::new_static( "NominationPools", "GlobalMaxCommission", vec![], [ 2u8, 112u8, 8u8, 116u8, 114u8, 97u8, 250u8, 106u8, 170u8, 215u8, 218u8, 217u8, 80u8, 235u8, 149u8, 81u8, 85u8, 185u8, 201u8, 127u8, 107u8, 251u8, 191u8, 231u8, 142u8, 74u8, 8u8, 70u8, 151u8, 238u8, 117u8, 173u8, ], ) } #[doc = " Active members."] #[doc = ""] #[doc = " TWOX-NOTE: SAFE since `AccountId` is a secure hash."] pub fn pool_members( &self, _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, runtime_types::pallet_nomination_pools::PoolMember, ::subxt::storage::address::Yes, (), ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( "NominationPools", "PoolMembers", vec![::subxt::storage::address::make_static_storage_map_key( _0.borrow(), )], [ 116u8, 41u8, 89u8, 74u8, 35u8, 243u8, 213u8, 178u8, 41u8, 249u8, 62u8, 119u8, 72u8, 34u8, 197u8, 168u8, 147u8, 178u8, 159u8, 10u8, 181u8, 255u8, 40u8, 211u8, 206u8, 32u8, 130u8, 25u8, 201u8, 54u8, 212u8, 25u8, ], ) } #[doc = " Active members."] #[doc = ""] #[doc = " TWOX-NOTE: SAFE since `AccountId` is a secure hash."] pub fn pool_members_root( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, runtime_types::pallet_nomination_pools::PoolMember, (), (), ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( "NominationPools", "PoolMembers", Vec::new(), [ 116u8, 41u8, 89u8, 74u8, 35u8, 243u8, 213u8, 178u8, 41u8, 249u8, 62u8, 119u8, 72u8, 34u8, 197u8, 168u8, 147u8, 178u8, 159u8, 10u8, 181u8, 255u8, 40u8, 211u8, 206u8, 32u8, 130u8, 25u8, 201u8, 54u8, 212u8, 25u8, ], ) } #[doc = "Counter for the related counted storage map"] pub fn counter_for_pool_members( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, ::core::primitive::u32, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), > { ::subxt::storage::address::Address::new_static( "NominationPools", "CounterForPoolMembers", vec![], [ 165u8, 158u8, 130u8, 19u8, 106u8, 227u8, 134u8, 73u8, 36u8, 237u8, 103u8, 146u8, 198u8, 68u8, 219u8, 186u8, 134u8, 224u8, 89u8, 251u8, 200u8, 46u8, 87u8, 232u8, 53u8, 152u8, 13u8, 10u8, 105u8, 49u8, 150u8, 212u8, ], ) } #[doc = " Storage for bonded pools."] pub fn bonded_pools( &self, _0: impl ::std::borrow::Borrow<::core::primitive::u32>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, runtime_types::pallet_nomination_pools::BondedPoolInner, ::subxt::storage::address::Yes, (), ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( "NominationPools", "BondedPools", vec![::subxt::storage::address::make_static_storage_map_key( _0.borrow(), )], [ 171u8, 143u8, 96u8, 95u8, 196u8, 228u8, 116u8, 22u8, 63u8, 105u8, 193u8, 77u8, 171u8, 99u8, 144u8, 70u8, 166u8, 55u8, 14u8, 191u8, 156u8, 17u8, 237u8, 193u8, 228u8, 243u8, 164u8, 187u8, 127u8, 245u8, 117u8, 238u8, ], ) } #[doc = " Storage for bonded pools."] pub fn bonded_pools_root( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, runtime_types::pallet_nomination_pools::BondedPoolInner, (), (), ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( "NominationPools", "BondedPools", Vec::new(), [ 171u8, 143u8, 96u8, 95u8, 196u8, 228u8, 116u8, 22u8, 63u8, 105u8, 193u8, 77u8, 171u8, 99u8, 144u8, 70u8, 166u8, 55u8, 14u8, 191u8, 156u8, 17u8, 237u8, 193u8, 228u8, 243u8, 164u8, 187u8, 127u8, 245u8, 117u8, 238u8, ], ) } #[doc = "Counter for the related counted storage map"] pub fn counter_for_bonded_pools( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, ::core::primitive::u32, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), > { ::subxt::storage::address::Address::new_static( "NominationPools", "CounterForBondedPools", vec![], [ 198u8, 6u8, 213u8, 92u8, 4u8, 114u8, 164u8, 244u8, 51u8, 55u8, 157u8, 20u8, 224u8, 183u8, 40u8, 236u8, 115u8, 86u8, 171u8, 207u8, 31u8, 111u8, 0u8, 210u8, 48u8, 198u8, 243u8, 153u8, 5u8, 216u8, 107u8, 113u8, ], ) } #[doc = " Reward pools. This is where there rewards for each pool accumulate. When a members payout is"] #[doc = " claimed, the balance comes out fo the reward pool. Keyed by the bonded pools account."] pub fn reward_pools( &self, _0: impl ::std::borrow::Borrow<::core::primitive::u32>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, runtime_types::pallet_nomination_pools::RewardPool, ::subxt::storage::address::Yes, (), ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( "NominationPools", "RewardPools", vec![::subxt::storage::address::make_static_storage_map_key( _0.borrow(), )], [ 150u8, 53u8, 204u8, 26u8, 187u8, 118u8, 80u8, 133u8, 94u8, 127u8, 155u8, 78u8, 71u8, 72u8, 0u8, 220u8, 174u8, 174u8, 109u8, 238u8, 13u8, 120u8, 193u8, 102u8, 219u8, 22u8, 89u8, 117u8, 169u8, 212u8, 64u8, 204u8, ], ) } #[doc = " Reward pools. This is where there rewards for each pool accumulate. When a members payout is"] #[doc = " claimed, the balance comes out fo the reward pool. Keyed by the bonded pools account."] pub fn reward_pools_root( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, runtime_types::pallet_nomination_pools::RewardPool, (), (), ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( "NominationPools", "RewardPools", Vec::new(), [ 150u8, 53u8, 204u8, 26u8, 187u8, 118u8, 80u8, 133u8, 94u8, 127u8, 155u8, 78u8, 71u8, 72u8, 0u8, 220u8, 174u8, 174u8, 109u8, 238u8, 13u8, 120u8, 193u8, 102u8, 219u8, 22u8, 89u8, 117u8, 169u8, 212u8, 64u8, 204u8, ], ) } #[doc = "Counter for the related counted storage map"] pub fn counter_for_reward_pools( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, ::core::primitive::u32, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), > { ::subxt::storage::address::Address::new_static( "NominationPools", "CounterForRewardPools", vec![], [ 218u8, 186u8, 28u8, 97u8, 205u8, 249u8, 187u8, 10u8, 127u8, 190u8, 213u8, 152u8, 103u8, 20u8, 157u8, 183u8, 86u8, 104u8, 186u8, 236u8, 84u8, 159u8, 117u8, 78u8, 5u8, 242u8, 193u8, 59u8, 112u8, 200u8, 34u8, 166u8, ], ) } #[doc = " Groups of unbonding pools. Each group of unbonding pools belongs to a"] #[doc = " bonded pool, hence the name sub-pools. Keyed by the bonded pools account."] pub fn sub_pools_storage( &self, _0: impl ::std::borrow::Borrow<::core::primitive::u32>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, runtime_types::pallet_nomination_pools::SubPools, ::subxt::storage::address::Yes, (), ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( "NominationPools", "SubPoolsStorage", vec![::subxt::storage::address::make_static_storage_map_key( _0.borrow(), )], [ 248u8, 37u8, 232u8, 231u8, 14u8, 140u8, 12u8, 27u8, 61u8, 222u8, 185u8, 128u8, 158u8, 30u8, 57u8, 121u8, 35u8, 11u8, 42u8, 242u8, 56u8, 1u8, 61u8, 0u8, 67u8, 140u8, 55u8, 62u8, 165u8, 134u8, 136u8, 4u8, ], ) } #[doc = " Groups of unbonding pools. Each group of unbonding pools belongs to a"] #[doc = " bonded pool, hence the name sub-pools. Keyed by the bonded pools account."] pub fn sub_pools_storage_root( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, runtime_types::pallet_nomination_pools::SubPools, (), (), ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( "NominationPools", "SubPoolsStorage", Vec::new(), [ 248u8, 37u8, 232u8, 231u8, 14u8, 140u8, 12u8, 27u8, 61u8, 222u8, 185u8, 128u8, 158u8, 30u8, 57u8, 121u8, 35u8, 11u8, 42u8, 242u8, 56u8, 1u8, 61u8, 0u8, 67u8, 140u8, 55u8, 62u8, 165u8, 134u8, 136u8, 4u8, ], ) } #[doc = "Counter for the related counted storage map"] pub fn counter_for_sub_pools_storage( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, ::core::primitive::u32, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), > { ::subxt::storage::address::Address::new_static( "NominationPools", "CounterForSubPoolsStorage", vec![], [ 137u8, 162u8, 32u8, 44u8, 163u8, 30u8, 54u8, 158u8, 169u8, 118u8, 196u8, 101u8, 78u8, 28u8, 184u8, 78u8, 185u8, 225u8, 226u8, 207u8, 14u8, 119u8, 0u8, 116u8, 140u8, 141u8, 116u8, 106u8, 71u8, 161u8, 200u8, 228u8, ], ) } #[doc = " Metadata for the pool."] pub fn metadata( &self, _0: impl ::std::borrow::Borrow<::core::primitive::u32>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, runtime_types::bounded_collections::bounded_vec::BoundedVec< ::core::primitive::u8, >, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( "NominationPools", "Metadata", vec![::subxt::storage::address::make_static_storage_map_key( _0.borrow(), )], [ 10u8, 171u8, 251u8, 5u8, 72u8, 74u8, 86u8, 144u8, 59u8, 67u8, 92u8, 111u8, 217u8, 111u8, 175u8, 107u8, 119u8, 206u8, 199u8, 78u8, 182u8, 84u8, 12u8, 102u8, 10u8, 124u8, 103u8, 9u8, 86u8, 199u8, 233u8, 54u8, ], ) } #[doc = " Metadata for the pool."] pub fn metadata_root( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, runtime_types::bounded_collections::bounded_vec::BoundedVec< ::core::primitive::u8, >, (), ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( "NominationPools", "Metadata", Vec::new(), [ 10u8, 171u8, 251u8, 5u8, 72u8, 74u8, 86u8, 144u8, 59u8, 67u8, 92u8, 111u8, 217u8, 111u8, 175u8, 107u8, 119u8, 206u8, 199u8, 78u8, 182u8, 84u8, 12u8, 102u8, 10u8, 124u8, 103u8, 9u8, 86u8, 199u8, 233u8, 54u8, ], ) } #[doc = "Counter for the related counted storage map"] pub fn counter_for_metadata( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, ::core::primitive::u32, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), > { ::subxt::storage::address::Address::new_static( "NominationPools", "CounterForMetadata", vec![], [ 49u8, 76u8, 175u8, 236u8, 99u8, 120u8, 156u8, 116u8, 153u8, 173u8, 10u8, 102u8, 194u8, 139u8, 25u8, 149u8, 109u8, 195u8, 150u8, 21u8, 43u8, 24u8, 196u8, 180u8, 231u8, 101u8, 69u8, 98u8, 82u8, 159u8, 183u8, 174u8, ], ) } #[doc = " Ever increasing number of all pools created so far."] pub fn last_pool_id( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, ::core::primitive::u32, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), > { ::subxt::storage::address::Address::new_static( "NominationPools", "LastPoolId", vec![], [ 178u8, 198u8, 245u8, 157u8, 176u8, 45u8, 214u8, 86u8, 73u8, 154u8, 217u8, 39u8, 191u8, 53u8, 233u8, 145u8, 57u8, 100u8, 31u8, 13u8, 202u8, 122u8, 115u8, 16u8, 205u8, 69u8, 157u8, 250u8, 216u8, 180u8, 113u8, 30u8, ], ) } #[doc = " A reverse lookup from the pool's account id to its id."] #[doc = ""] #[doc = " This is only used for slashing. In all other instances, the pool id is used, and the"] #[doc = " accounts are deterministically derived from it."] pub fn reverse_pool_id_lookup( &self, _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, ::core::primitive::u32, ::subxt::storage::address::Yes, (), ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( "NominationPools", "ReversePoolIdLookup", vec![::subxt::storage::address::make_static_storage_map_key( _0.borrow(), )], [ 76u8, 76u8, 150u8, 33u8, 64u8, 81u8, 90u8, 75u8, 212u8, 221u8, 59u8, 83u8, 178u8, 45u8, 86u8, 206u8, 196u8, 221u8, 117u8, 94u8, 229u8, 160u8, 52u8, 54u8, 11u8, 64u8, 0u8, 103u8, 85u8, 86u8, 5u8, 71u8, ], ) } #[doc = " A reverse lookup from the pool's account id to its id."] #[doc = ""] #[doc = " This is only used for slashing. In all other instances, the pool id is used, and the"] #[doc = " accounts are deterministically derived from it."] pub fn reverse_pool_id_lookup_root( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, ::core::primitive::u32, (), (), ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( "NominationPools", "ReversePoolIdLookup", Vec::new(), [ 76u8, 76u8, 150u8, 33u8, 64u8, 81u8, 90u8, 75u8, 212u8, 221u8, 59u8, 83u8, 178u8, 45u8, 86u8, 206u8, 196u8, 221u8, 117u8, 94u8, 229u8, 160u8, 52u8, 54u8, 11u8, 64u8, 0u8, 103u8, 85u8, 86u8, 5u8, 71u8, ], ) } #[doc = "Counter for the related counted storage map"] pub fn counter_for_reverse_pool_id_lookup( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, ::core::primitive::u32, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), > { ::subxt::storage::address::Address::new_static( "NominationPools", "CounterForReversePoolIdLookup", vec![], [ 135u8, 72u8, 203u8, 197u8, 101u8, 135u8, 114u8, 202u8, 122u8, 231u8, 128u8, 17u8, 81u8, 70u8, 22u8, 146u8, 100u8, 138u8, 16u8, 74u8, 31u8, 250u8, 110u8, 184u8, 250u8, 75u8, 249u8, 71u8, 171u8, 77u8, 95u8, 251u8, ], ) } #[doc = " Map from a pool member account to their opted claim permission."] pub fn claim_permissions( &self, _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, runtime_types::pallet_nomination_pools::ClaimPermission, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( "NominationPools", "ClaimPermissions", vec![::subxt::storage::address::make_static_storage_map_key( _0.borrow(), )], [ 98u8, 241u8, 185u8, 102u8, 61u8, 53u8, 215u8, 105u8, 2u8, 148u8, 197u8, 17u8, 107u8, 253u8, 74u8, 159u8, 14u8, 30u8, 213u8, 38u8, 35u8, 163u8, 249u8, 19u8, 140u8, 201u8, 182u8, 106u8, 0u8, 21u8, 102u8, 15u8, ], ) } #[doc = " Map from a pool member account to their opted claim permission."] pub fn claim_permissions_root( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, runtime_types::pallet_nomination_pools::ClaimPermission, (), ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( "NominationPools", "ClaimPermissions", Vec::new(), [ 98u8, 241u8, 185u8, 102u8, 61u8, 53u8, 215u8, 105u8, 2u8, 148u8, 197u8, 17u8, 107u8, 253u8, 74u8, 159u8, 14u8, 30u8, 213u8, 38u8, 35u8, 163u8, 249u8, 19u8, 140u8, 201u8, 182u8, 106u8, 0u8, 21u8, 102u8, 15u8, ], ) } } } pub mod constants { use super::runtime_types; pub struct ConstantsApi; impl ConstantsApi { #[doc = " The nomination pool's pallet id."] pub fn pallet_id( &self, ) -> ::subxt::constants::Address { ::subxt::constants::Address::new_static( "NominationPools", "PalletId", [ 56u8, 243u8, 53u8, 83u8, 154u8, 179u8, 170u8, 80u8, 133u8, 173u8, 61u8, 161u8, 47u8, 225u8, 146u8, 21u8, 50u8, 229u8, 248u8, 27u8, 104u8, 58u8, 129u8, 197u8, 102u8, 160u8, 168u8, 205u8, 154u8, 42u8, 217u8, 53u8, ], ) } #[doc = " The maximum pool points-to-balance ratio that an `open` pool can have."] #[doc = ""] #[doc = " This is important in the event slashing takes place and the pool's points-to-balance"] #[doc = " ratio becomes disproportional."] #[doc = ""] #[doc = " Moreover, this relates to the `RewardCounter` type as well, as the arithmetic operations"] #[doc = " are a function of number of points, and by setting this value to e.g. 10, you ensure"] #[doc = " that the total number of points in the system are at most 10 times the total_issuance of"] #[doc = " the chain, in the absolute worse case."] #[doc = ""] #[doc = " For a value of 10, the threshold would be a pool points-to-balance ratio of 10:1."] #[doc = " Such a scenario would also be the equivalent of the pool being 90% slashed."] pub fn max_points_to_balance( &self, ) -> ::subxt::constants::Address<::core::primitive::u8> { ::subxt::constants::Address::new_static( "NominationPools", "MaxPointsToBalance", [ 141u8, 130u8, 11u8, 35u8, 226u8, 114u8, 92u8, 179u8, 168u8, 110u8, 28u8, 91u8, 221u8, 64u8, 4u8, 148u8, 201u8, 193u8, 185u8, 66u8, 226u8, 114u8, 97u8, 79u8, 62u8, 212u8, 202u8, 114u8, 237u8, 228u8, 183u8, 165u8, ], ) } } } } pub mod fast_unstake { use super::root_mod; use super::runtime_types; #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] pub type Error = runtime_types::pallet_fast_unstake::pallet::Error; #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] pub type Call = runtime_types::pallet_fast_unstake::pallet::Call; pub mod calls { use super::root_mod; use super::runtime_types; type DispatchError = runtime_types::sp_runtime::DispatchError; pub mod types { use super::runtime_types; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct RegisterFastUnstake; impl ::subxt::blocks::StaticExtrinsic for RegisterFastUnstake { const PALLET: &'static str = "FastUnstake"; const CALL: &'static str = "register_fast_unstake"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Deregister; impl ::subxt::blocks::StaticExtrinsic for Deregister { const PALLET: &'static str = "FastUnstake"; const CALL: &'static str = "deregister"; } #[derive( :: subxt :: ext :: codec :: CompactAs, :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Control { pub eras_to_check: ::core::primitive::u32, } impl ::subxt::blocks::StaticExtrinsic for Control { const PALLET: &'static str = "FastUnstake"; const CALL: &'static str = "control"; } } pub struct TransactionApi; impl TransactionApi { #[doc = "Register oneself for fast-unstake."] #[doc = ""] #[doc = "The dispatch origin of this call must be signed by the controller account, similar to"] #[doc = "`staking::unbond`."] #[doc = ""] #[doc = "The stash associated with the origin must have no ongoing unlocking chunks. If"] #[doc = "successful, this will fully unbond and chill the stash. Then, it will enqueue the stash"] #[doc = "to be checked in further blocks."] #[doc = ""] #[doc = "If by the time this is called, the stash is actually eligible for fast-unstake, then"] #[doc = "they are guaranteed to remain eligible, because the call will chill them as well."] #[doc = ""] #[doc = "If the check works, the entire staking data is removed, i.e. the stash is fully"] #[doc = "unstaked."] #[doc = ""] #[doc = "If the check fails, the stash remains chilled and waiting for being unbonded as in with"] #[doc = "the normal staking system, but they lose part of their unbonding chunks due to consuming"] #[doc = "the chain's resources."] pub fn register_fast_unstake( &self, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "FastUnstake", "register_fast_unstake", types::RegisterFastUnstake {}, [ 25u8, 175u8, 236u8, 174u8, 69u8, 228u8, 25u8, 109u8, 166u8, 101u8, 80u8, 189u8, 17u8, 201u8, 95u8, 152u8, 209u8, 42u8, 140u8, 186u8, 61u8, 73u8, 147u8, 103u8, 158u8, 39u8, 26u8, 54u8, 98u8, 3u8, 2u8, 49u8, ], ) } #[doc = "Deregister oneself from the fast-unstake."] #[doc = ""] #[doc = "This is useful if one is registered, they are still waiting, and they change their mind."] #[doc = ""] #[doc = "Note that the associated stash is still fully unbonded and chilled as a consequence of"] #[doc = "calling `register_fast_unstake`. This should probably be followed by a call to"] #[doc = "`Staking::rebond`."] pub fn deregister(&self) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "FastUnstake", "deregister", types::Deregister {}, [ 228u8, 7u8, 6u8, 52u8, 110u8, 101u8, 41u8, 226u8, 254u8, 53u8, 44u8, 229u8, 20u8, 205u8, 131u8, 91u8, 118u8, 71u8, 43u8, 97u8, 99u8, 205u8, 75u8, 146u8, 27u8, 144u8, 219u8, 167u8, 98u8, 120u8, 11u8, 151u8, ], ) } #[doc = "Control the operation of this pallet."] #[doc = ""] #[doc = "Dispatch origin must be signed by the [`Config::ControlOrigin`]."] pub fn control( &self, eras_to_check: ::core::primitive::u32, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "FastUnstake", "control", types::Control { eras_to_check }, [ 93u8, 245u8, 35u8, 21u8, 125u8, 71u8, 144u8, 99u8, 90u8, 41u8, 161u8, 90u8, 93u8, 132u8, 45u8, 155u8, 99u8, 175u8, 180u8, 1u8, 219u8, 37u8, 182u8, 95u8, 203u8, 91u8, 181u8, 159u8, 169u8, 134u8, 139u8, 9u8, ], ) } } } #[doc = "The events of this pallet."] pub type Event = runtime_types::pallet_fast_unstake::pallet::Event; pub mod events { use super::runtime_types; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A staker was unstaked."] pub struct Unstaked { pub stash: ::subxt::utils::AccountId32, pub result: ::core::result::Result<(), runtime_types::sp_runtime::DispatchError>, } impl ::subxt::events::StaticEvent for Unstaked { const PALLET: &'static str = "FastUnstake"; const EVENT: &'static str = "Unstaked"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A staker was slashed for requesting fast-unstake whilst being exposed."] pub struct Slashed { pub stash: ::subxt::utils::AccountId32, pub amount: ::core::primitive::u128, } impl ::subxt::events::StaticEvent for Slashed { const PALLET: &'static str = "FastUnstake"; const EVENT: &'static str = "Slashed"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "An internal error happened. Operations will be paused now."] pub struct InternalError; impl ::subxt::events::StaticEvent for InternalError { const PALLET: &'static str = "FastUnstake"; const EVENT: &'static str = "InternalError"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A batch was partially checked for the given eras, but the process did not finish."] pub struct BatchChecked { pub eras: ::std::vec::Vec<::core::primitive::u32>, } impl ::subxt::events::StaticEvent for BatchChecked { const PALLET: &'static str = "FastUnstake"; const EVENT: &'static str = "BatchChecked"; } #[derive( :: subxt :: ext :: codec :: CompactAs, :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A batch of a given size was terminated."] #[doc = ""] #[doc = "This is always follows by a number of `Unstaked` or `Slashed` events, marking the end"] #[doc = "of the batch. A new batch will be created upon next block."] pub struct BatchFinished { pub size: ::core::primitive::u32, } impl ::subxt::events::StaticEvent for BatchFinished { const PALLET: &'static str = "FastUnstake"; const EVENT: &'static str = "BatchFinished"; } } pub mod storage { use super::runtime_types; pub struct StorageApi; impl StorageApi { #[doc = " The current \"head of the queue\" being unstaked."] pub fn head( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, runtime_types::pallet_fast_unstake::types::UnstakeRequest, ::subxt::storage::address::Yes, (), (), > { ::subxt::storage::address::Address::new_static( "FastUnstake", "Head", vec![], [ 15u8, 207u8, 39u8, 233u8, 50u8, 252u8, 32u8, 127u8, 77u8, 94u8, 170u8, 209u8, 72u8, 222u8, 77u8, 171u8, 175u8, 204u8, 191u8, 25u8, 15u8, 104u8, 52u8, 129u8, 42u8, 199u8, 77u8, 44u8, 11u8, 242u8, 234u8, 6u8, ], ) } #[doc = " The map of all accounts wishing to be unstaked."] #[doc = ""] #[doc = " Keeps track of `AccountId` wishing to unstake and it's corresponding deposit."] #[doc = ""] #[doc = " TWOX-NOTE: SAFE since `AccountId` is a secure hash."] pub fn queue( &self, _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, ::core::primitive::u128, ::subxt::storage::address::Yes, (), ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( "FastUnstake", "Queue", vec![::subxt::storage::address::make_static_storage_map_key( _0.borrow(), )], [ 72u8, 219u8, 212u8, 99u8, 189u8, 234u8, 57u8, 32u8, 80u8, 130u8, 178u8, 101u8, 71u8, 186u8, 106u8, 129u8, 135u8, 165u8, 225u8, 112u8, 82u8, 4u8, 215u8, 104u8, 107u8, 192u8, 118u8, 238u8, 70u8, 205u8, 205u8, 148u8, ], ) } #[doc = " The map of all accounts wishing to be unstaked."] #[doc = ""] #[doc = " Keeps track of `AccountId` wishing to unstake and it's corresponding deposit."] #[doc = ""] #[doc = " TWOX-NOTE: SAFE since `AccountId` is a secure hash."] pub fn queue_root( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, ::core::primitive::u128, (), (), ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( "FastUnstake", "Queue", Vec::new(), [ 72u8, 219u8, 212u8, 99u8, 189u8, 234u8, 57u8, 32u8, 80u8, 130u8, 178u8, 101u8, 71u8, 186u8, 106u8, 129u8, 135u8, 165u8, 225u8, 112u8, 82u8, 4u8, 215u8, 104u8, 107u8, 192u8, 118u8, 238u8, 70u8, 205u8, 205u8, 148u8, ], ) } #[doc = "Counter for the related counted storage map"] pub fn counter_for_queue( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, ::core::primitive::u32, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), > { ::subxt::storage::address::Address::new_static( "FastUnstake", "CounterForQueue", vec![], [ 236u8, 101u8, 74u8, 61u8, 59u8, 250u8, 165u8, 139u8, 110u8, 79u8, 165u8, 124u8, 24u8, 188u8, 245u8, 175u8, 175u8, 102u8, 91u8, 121u8, 215u8, 21u8, 12u8, 11u8, 194u8, 69u8, 180u8, 161u8, 160u8, 27u8, 39u8, 17u8, ], ) } #[doc = " Number of eras to check per block."] #[doc = ""] #[doc = " If set to 0, this pallet does absolutely nothing."] #[doc = ""] #[doc = " Based on the amount of weight available at `on_idle`, up to this many eras of a single"] #[doc = " nominator might be checked."] pub fn eras_to_check_per_block( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, ::core::primitive::u32, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), > { ::subxt::storage::address::Address::new_static( "FastUnstake", "ErasToCheckPerBlock", vec![], [ 231u8, 147u8, 37u8, 154u8, 97u8, 151u8, 16u8, 240u8, 87u8, 38u8, 218u8, 127u8, 68u8, 131u8, 2u8, 19u8, 46u8, 68u8, 232u8, 148u8, 197u8, 73u8, 129u8, 102u8, 60u8, 19u8, 200u8, 77u8, 74u8, 31u8, 251u8, 27u8, ], ) } } } pub mod constants { use super::runtime_types; pub struct ConstantsApi; impl ConstantsApi { #[doc = " Deposit to take for unstaking, to make sure we're able to slash the it in order to cover"] #[doc = " the costs of resources on unsuccessful unstake."] pub fn deposit(&self) -> ::subxt::constants::Address<::core::primitive::u128> { ::subxt::constants::Address::new_static( "FastUnstake", "Deposit", [ 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8, 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, 136u8, 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, 148u8, 156u8, ], ) } } } } pub mod parachains_origin { use super::root_mod; use super::runtime_types; } pub mod configuration { use super::root_mod; use super::runtime_types; #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] pub type Error = runtime_types::polkadot_runtime_parachains::configuration::pallet::Error; #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] pub type Call = runtime_types::polkadot_runtime_parachains::configuration::pallet::Call; pub mod calls { use super::root_mod; use super::runtime_types; type DispatchError = runtime_types::sp_runtime::DispatchError; pub mod types { use super::runtime_types; #[derive( :: subxt :: ext :: codec :: CompactAs, :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SetValidationUpgradeCooldown { pub new: ::core::primitive::u32, } impl ::subxt::blocks::StaticExtrinsic for SetValidationUpgradeCooldown { const PALLET: &'static str = "Configuration"; const CALL: &'static str = "set_validation_upgrade_cooldown"; } #[derive( :: subxt :: ext :: codec :: CompactAs, :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SetValidationUpgradeDelay { pub new: ::core::primitive::u32, } impl ::subxt::blocks::StaticExtrinsic for SetValidationUpgradeDelay { const PALLET: &'static str = "Configuration"; const CALL: &'static str = "set_validation_upgrade_delay"; } #[derive( :: subxt :: ext :: codec :: CompactAs, :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SetCodeRetentionPeriod { pub new: ::core::primitive::u32, } impl ::subxt::blocks::StaticExtrinsic for SetCodeRetentionPeriod { const PALLET: &'static str = "Configuration"; const CALL: &'static str = "set_code_retention_period"; } #[derive( :: subxt :: ext :: codec :: CompactAs, :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SetMaxCodeSize { pub new: ::core::primitive::u32, } impl ::subxt::blocks::StaticExtrinsic for SetMaxCodeSize { const PALLET: &'static str = "Configuration"; const CALL: &'static str = "set_max_code_size"; } #[derive( :: subxt :: ext :: codec :: CompactAs, :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SetMaxPovSize { pub new: ::core::primitive::u32, } impl ::subxt::blocks::StaticExtrinsic for SetMaxPovSize { const PALLET: &'static str = "Configuration"; const CALL: &'static str = "set_max_pov_size"; } #[derive( :: subxt :: ext :: codec :: CompactAs, :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SetMaxHeadDataSize { pub new: ::core::primitive::u32, } impl ::subxt::blocks::StaticExtrinsic for SetMaxHeadDataSize { const PALLET: &'static str = "Configuration"; const CALL: &'static str = "set_max_head_data_size"; } #[derive( :: subxt :: ext :: codec :: CompactAs, :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SetParathreadCores { pub new: ::core::primitive::u32, } impl ::subxt::blocks::StaticExtrinsic for SetParathreadCores { const PALLET: &'static str = "Configuration"; const CALL: &'static str = "set_parathread_cores"; } #[derive( :: subxt :: ext :: codec :: CompactAs, :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SetParathreadRetries { pub new: ::core::primitive::u32, } impl ::subxt::blocks::StaticExtrinsic for SetParathreadRetries { const PALLET: &'static str = "Configuration"; const CALL: &'static str = "set_parathread_retries"; } #[derive( :: subxt :: ext :: codec :: CompactAs, :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SetGroupRotationFrequency { pub new: ::core::primitive::u32, } impl ::subxt::blocks::StaticExtrinsic for SetGroupRotationFrequency { const PALLET: &'static str = "Configuration"; const CALL: &'static str = "set_group_rotation_frequency"; } #[derive( :: subxt :: ext :: codec :: CompactAs, :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SetChainAvailabilityPeriod { pub new: ::core::primitive::u32, } impl ::subxt::blocks::StaticExtrinsic for SetChainAvailabilityPeriod { const PALLET: &'static str = "Configuration"; const CALL: &'static str = "set_chain_availability_period"; } #[derive( :: subxt :: ext :: codec :: CompactAs, :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SetThreadAvailabilityPeriod { pub new: ::core::primitive::u32, } impl ::subxt::blocks::StaticExtrinsic for SetThreadAvailabilityPeriod { const PALLET: &'static str = "Configuration"; const CALL: &'static str = "set_thread_availability_period"; } #[derive( :: subxt :: ext :: codec :: CompactAs, :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SetSchedulingLookahead { pub new: ::core::primitive::u32, } impl ::subxt::blocks::StaticExtrinsic for SetSchedulingLookahead { const PALLET: &'static str = "Configuration"; const CALL: &'static str = "set_scheduling_lookahead"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SetMaxValidatorsPerCore { pub new: ::core::option::Option<::core::primitive::u32>, } impl ::subxt::blocks::StaticExtrinsic for SetMaxValidatorsPerCore { const PALLET: &'static str = "Configuration"; const CALL: &'static str = "set_max_validators_per_core"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SetMaxValidators { pub new: ::core::option::Option<::core::primitive::u32>, } impl ::subxt::blocks::StaticExtrinsic for SetMaxValidators { const PALLET: &'static str = "Configuration"; const CALL: &'static str = "set_max_validators"; } #[derive( :: subxt :: ext :: codec :: CompactAs, :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SetDisputePeriod { pub new: ::core::primitive::u32, } impl ::subxt::blocks::StaticExtrinsic for SetDisputePeriod { const PALLET: &'static str = "Configuration"; const CALL: &'static str = "set_dispute_period"; } #[derive( :: subxt :: ext :: codec :: CompactAs, :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SetDisputePostConclusionAcceptancePeriod { pub new: ::core::primitive::u32, } impl ::subxt::blocks::StaticExtrinsic for SetDisputePostConclusionAcceptancePeriod { const PALLET: &'static str = "Configuration"; const CALL: &'static str = "set_dispute_post_conclusion_acceptance_period"; } #[derive( :: subxt :: ext :: codec :: CompactAs, :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SetNoShowSlots { pub new: ::core::primitive::u32, } impl ::subxt::blocks::StaticExtrinsic for SetNoShowSlots { const PALLET: &'static str = "Configuration"; const CALL: &'static str = "set_no_show_slots"; } #[derive( :: subxt :: ext :: codec :: CompactAs, :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SetNDelayTranches { pub new: ::core::primitive::u32, } impl ::subxt::blocks::StaticExtrinsic for SetNDelayTranches { const PALLET: &'static str = "Configuration"; const CALL: &'static str = "set_n_delay_tranches"; } #[derive( :: subxt :: ext :: codec :: CompactAs, :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SetZerothDelayTrancheWidth { pub new: ::core::primitive::u32, } impl ::subxt::blocks::StaticExtrinsic for SetZerothDelayTrancheWidth { const PALLET: &'static str = "Configuration"; const CALL: &'static str = "set_zeroth_delay_tranche_width"; } #[derive( :: subxt :: ext :: codec :: CompactAs, :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SetNeededApprovals { pub new: ::core::primitive::u32, } impl ::subxt::blocks::StaticExtrinsic for SetNeededApprovals { const PALLET: &'static str = "Configuration"; const CALL: &'static str = "set_needed_approvals"; } #[derive( :: subxt :: ext :: codec :: CompactAs, :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SetRelayVrfModuloSamples { pub new: ::core::primitive::u32, } impl ::subxt::blocks::StaticExtrinsic for SetRelayVrfModuloSamples { const PALLET: &'static str = "Configuration"; const CALL: &'static str = "set_relay_vrf_modulo_samples"; } #[derive( :: subxt :: ext :: codec :: CompactAs, :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SetMaxUpwardQueueCount { pub new: ::core::primitive::u32, } impl ::subxt::blocks::StaticExtrinsic for SetMaxUpwardQueueCount { const PALLET: &'static str = "Configuration"; const CALL: &'static str = "set_max_upward_queue_count"; } #[derive( :: subxt :: ext :: codec :: CompactAs, :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SetMaxUpwardQueueSize { pub new: ::core::primitive::u32, } impl ::subxt::blocks::StaticExtrinsic for SetMaxUpwardQueueSize { const PALLET: &'static str = "Configuration"; const CALL: &'static str = "set_max_upward_queue_size"; } #[derive( :: subxt :: ext :: codec :: CompactAs, :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SetMaxDownwardMessageSize { pub new: ::core::primitive::u32, } impl ::subxt::blocks::StaticExtrinsic for SetMaxDownwardMessageSize { const PALLET: &'static str = "Configuration"; const CALL: &'static str = "set_max_downward_message_size"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SetUmpServiceTotalWeight { pub new: runtime_types::sp_weights::weight_v2::Weight, } impl ::subxt::blocks::StaticExtrinsic for SetUmpServiceTotalWeight { const PALLET: &'static str = "Configuration"; const CALL: &'static str = "set_ump_service_total_weight"; } #[derive( :: subxt :: ext :: codec :: CompactAs, :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SetMaxUpwardMessageSize { pub new: ::core::primitive::u32, } impl ::subxt::blocks::StaticExtrinsic for SetMaxUpwardMessageSize { const PALLET: &'static str = "Configuration"; const CALL: &'static str = "set_max_upward_message_size"; } #[derive( :: subxt :: ext :: codec :: CompactAs, :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SetMaxUpwardMessageNumPerCandidate { pub new: ::core::primitive::u32, } impl ::subxt::blocks::StaticExtrinsic for SetMaxUpwardMessageNumPerCandidate { const PALLET: &'static str = "Configuration"; const CALL: &'static str = "set_max_upward_message_num_per_candidate"; } #[derive( :: subxt :: ext :: codec :: CompactAs, :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SetHrmpOpenRequestTtl { pub new: ::core::primitive::u32, } impl ::subxt::blocks::StaticExtrinsic for SetHrmpOpenRequestTtl { const PALLET: &'static str = "Configuration"; const CALL: &'static str = "set_hrmp_open_request_ttl"; } #[derive( :: subxt :: ext :: codec :: CompactAs, :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SetHrmpSenderDeposit { pub new: ::core::primitive::u128, } impl ::subxt::blocks::StaticExtrinsic for SetHrmpSenderDeposit { const PALLET: &'static str = "Configuration"; const CALL: &'static str = "set_hrmp_sender_deposit"; } #[derive( :: subxt :: ext :: codec :: CompactAs, :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SetHrmpRecipientDeposit { pub new: ::core::primitive::u128, } impl ::subxt::blocks::StaticExtrinsic for SetHrmpRecipientDeposit { const PALLET: &'static str = "Configuration"; const CALL: &'static str = "set_hrmp_recipient_deposit"; } #[derive( :: subxt :: ext :: codec :: CompactAs, :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SetHrmpChannelMaxCapacity { pub new: ::core::primitive::u32, } impl ::subxt::blocks::StaticExtrinsic for SetHrmpChannelMaxCapacity { const PALLET: &'static str = "Configuration"; const CALL: &'static str = "set_hrmp_channel_max_capacity"; } #[derive( :: subxt :: ext :: codec :: CompactAs, :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SetHrmpChannelMaxTotalSize { pub new: ::core::primitive::u32, } impl ::subxt::blocks::StaticExtrinsic for SetHrmpChannelMaxTotalSize { const PALLET: &'static str = "Configuration"; const CALL: &'static str = "set_hrmp_channel_max_total_size"; } #[derive( :: subxt :: ext :: codec :: CompactAs, :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SetHrmpMaxParachainInboundChannels { pub new: ::core::primitive::u32, } impl ::subxt::blocks::StaticExtrinsic for SetHrmpMaxParachainInboundChannels { const PALLET: &'static str = "Configuration"; const CALL: &'static str = "set_hrmp_max_parachain_inbound_channels"; } #[derive( :: subxt :: ext :: codec :: CompactAs, :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SetHrmpMaxParathreadInboundChannels { pub new: ::core::primitive::u32, } impl ::subxt::blocks::StaticExtrinsic for SetHrmpMaxParathreadInboundChannels { const PALLET: &'static str = "Configuration"; const CALL: &'static str = "set_hrmp_max_parathread_inbound_channels"; } #[derive( :: subxt :: ext :: codec :: CompactAs, :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SetHrmpChannelMaxMessageSize { pub new: ::core::primitive::u32, } impl ::subxt::blocks::StaticExtrinsic for SetHrmpChannelMaxMessageSize { const PALLET: &'static str = "Configuration"; const CALL: &'static str = "set_hrmp_channel_max_message_size"; } #[derive( :: subxt :: ext :: codec :: CompactAs, :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SetHrmpMaxParachainOutboundChannels { pub new: ::core::primitive::u32, } impl ::subxt::blocks::StaticExtrinsic for SetHrmpMaxParachainOutboundChannels { const PALLET: &'static str = "Configuration"; const CALL: &'static str = "set_hrmp_max_parachain_outbound_channels"; } #[derive( :: subxt :: ext :: codec :: CompactAs, :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SetHrmpMaxParathreadOutboundChannels { pub new: ::core::primitive::u32, } impl ::subxt::blocks::StaticExtrinsic for SetHrmpMaxParathreadOutboundChannels { const PALLET: &'static str = "Configuration"; const CALL: &'static str = "set_hrmp_max_parathread_outbound_channels"; } #[derive( :: subxt :: ext :: codec :: CompactAs, :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SetHrmpMaxMessageNumPerCandidate { pub new: ::core::primitive::u32, } impl ::subxt::blocks::StaticExtrinsic for SetHrmpMaxMessageNumPerCandidate { const PALLET: &'static str = "Configuration"; const CALL: &'static str = "set_hrmp_max_message_num_per_candidate"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SetUmpMaxIndividualWeight { pub new: runtime_types::sp_weights::weight_v2::Weight, } impl ::subxt::blocks::StaticExtrinsic for SetUmpMaxIndividualWeight { const PALLET: &'static str = "Configuration"; const CALL: &'static str = "set_ump_max_individual_weight"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SetPvfCheckingEnabled { pub new: ::core::primitive::bool, } impl ::subxt::blocks::StaticExtrinsic for SetPvfCheckingEnabled { const PALLET: &'static str = "Configuration"; const CALL: &'static str = "set_pvf_checking_enabled"; } #[derive( :: subxt :: ext :: codec :: CompactAs, :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SetPvfVotingTtl { pub new: ::core::primitive::u32, } impl ::subxt::blocks::StaticExtrinsic for SetPvfVotingTtl { const PALLET: &'static str = "Configuration"; const CALL: &'static str = "set_pvf_voting_ttl"; } #[derive( :: subxt :: ext :: codec :: CompactAs, :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SetMinimumValidationUpgradeDelay { pub new: ::core::primitive::u32, } impl ::subxt::blocks::StaticExtrinsic for SetMinimumValidationUpgradeDelay { const PALLET: &'static str = "Configuration"; const CALL: &'static str = "set_minimum_validation_upgrade_delay"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SetBypassConsistencyCheck { pub new: ::core::primitive::bool, } impl ::subxt::blocks::StaticExtrinsic for SetBypassConsistencyCheck { const PALLET: &'static str = "Configuration"; const CALL: &'static str = "set_bypass_consistency_check"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SetAsyncBackingParams { pub new: runtime_types::polkadot_primitives::vstaging::AsyncBackingParams, } impl ::subxt::blocks::StaticExtrinsic for SetAsyncBackingParams { const PALLET: &'static str = "Configuration"; const CALL: &'static str = "set_async_backing_params"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SetExecutorParams { pub new: runtime_types::polkadot_primitives::v4::executor_params::ExecutorParams, } impl ::subxt::blocks::StaticExtrinsic for SetExecutorParams { const PALLET: &'static str = "Configuration"; const CALL: &'static str = "set_executor_params"; } } pub struct TransactionApi; impl TransactionApi { #[doc = "Set the validation upgrade cooldown."] pub fn set_validation_upgrade_cooldown( &self, new: ::core::primitive::u32, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Configuration", "set_validation_upgrade_cooldown", types::SetValidationUpgradeCooldown { new }, [ 233u8, 224u8, 19u8, 198u8, 27u8, 104u8, 64u8, 248u8, 223u8, 51u8, 175u8, 162u8, 183u8, 43u8, 108u8, 246u8, 162u8, 210u8, 53u8, 56u8, 174u8, 203u8, 79u8, 143u8, 13u8, 101u8, 100u8, 11u8, 127u8, 76u8, 71u8, 228u8, ], ) } #[doc = "Set the validation upgrade delay."] pub fn set_validation_upgrade_delay( &self, new: ::core::primitive::u32, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Configuration", "set_validation_upgrade_delay", types::SetValidationUpgradeDelay { new }, [ 13u8, 139u8, 210u8, 115u8, 20u8, 121u8, 55u8, 118u8, 101u8, 236u8, 95u8, 79u8, 46u8, 44u8, 129u8, 129u8, 60u8, 198u8, 13u8, 17u8, 115u8, 187u8, 181u8, 37u8, 75u8, 153u8, 13u8, 196u8, 49u8, 204u8, 26u8, 198u8, ], ) } #[doc = "Set the acceptance period for an included candidate."] pub fn set_code_retention_period( &self, new: ::core::primitive::u32, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Configuration", "set_code_retention_period", types::SetCodeRetentionPeriod { new }, [ 169u8, 77u8, 107u8, 175u8, 172u8, 177u8, 169u8, 194u8, 219u8, 6u8, 192u8, 40u8, 55u8, 241u8, 128u8, 111u8, 95u8, 67u8, 173u8, 247u8, 220u8, 66u8, 45u8, 76u8, 108u8, 137u8, 220u8, 194u8, 86u8, 41u8, 245u8, 226u8, ], ) } #[doc = "Set the max validation code size for incoming upgrades."] pub fn set_max_code_size( &self, new: ::core::primitive::u32, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Configuration", "set_max_code_size", types::SetMaxCodeSize { new }, [ 122u8, 74u8, 244u8, 226u8, 89u8, 175u8, 191u8, 163u8, 34u8, 79u8, 118u8, 254u8, 236u8, 215u8, 8u8, 182u8, 71u8, 180u8, 224u8, 165u8, 226u8, 242u8, 124u8, 34u8, 38u8, 27u8, 29u8, 140u8, 187u8, 93u8, 131u8, 168u8, ], ) } #[doc = "Set the max POV block size for incoming upgrades."] pub fn set_max_pov_size( &self, new: ::core::primitive::u32, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Configuration", "set_max_pov_size", types::SetMaxPovSize { new }, [ 170u8, 106u8, 163u8, 4u8, 27u8, 72u8, 250u8, 59u8, 133u8, 128u8, 177u8, 209u8, 22u8, 42u8, 230u8, 40u8, 192u8, 198u8, 56u8, 195u8, 31u8, 20u8, 35u8, 196u8, 119u8, 183u8, 141u8, 38u8, 52u8, 54u8, 31u8, 122u8, ], ) } #[doc = "Set the max head data size for paras."] pub fn set_max_head_data_size( &self, new: ::core::primitive::u32, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Configuration", "set_max_head_data_size", types::SetMaxHeadDataSize { new }, [ 216u8, 146u8, 104u8, 253u8, 123u8, 192u8, 123u8, 82u8, 149u8, 22u8, 31u8, 107u8, 67u8, 102u8, 163u8, 239u8, 57u8, 183u8, 93u8, 20u8, 126u8, 39u8, 36u8, 242u8, 252u8, 68u8, 150u8, 121u8, 147u8, 186u8, 39u8, 181u8, ], ) } #[doc = "Set the number of parathread execution cores."] pub fn set_parathread_cores( &self, new: ::core::primitive::u32, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Configuration", "set_parathread_cores", types::SetParathreadCores { new }, [ 230u8, 175u8, 182u8, 232u8, 5u8, 251u8, 196u8, 197u8, 246u8, 111u8, 65u8, 165u8, 39u8, 174u8, 17u8, 30u8, 147u8, 116u8, 53u8, 254u8, 243u8, 53u8, 110u8, 122u8, 211u8, 69u8, 122u8, 225u8, 16u8, 128u8, 250u8, 172u8, ], ) } #[doc = "Set the number of retries for a particular parathread."] pub fn set_parathread_retries( &self, new: ::core::primitive::u32, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Configuration", "set_parathread_retries", types::SetParathreadRetries { new }, [ 12u8, 100u8, 94u8, 156u8, 161u8, 134u8, 229u8, 28u8, 106u8, 41u8, 138u8, 162u8, 196u8, 224u8, 56u8, 149u8, 42u8, 141u8, 184u8, 192u8, 53u8, 9u8, 18u8, 21u8, 143u8, 188u8, 244u8, 254u8, 101u8, 206u8, 102u8, 187u8, ], ) } #[doc = "Set the parachain validator-group rotation frequency"] pub fn set_group_rotation_frequency( &self, new: ::core::primitive::u32, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Configuration", "set_group_rotation_frequency", types::SetGroupRotationFrequency { new }, [ 33u8, 142u8, 63u8, 205u8, 128u8, 109u8, 157u8, 33u8, 122u8, 91u8, 57u8, 223u8, 134u8, 80u8, 108u8, 187u8, 147u8, 120u8, 104u8, 170u8, 32u8, 135u8, 102u8, 38u8, 82u8, 20u8, 123u8, 211u8, 245u8, 91u8, 134u8, 44u8, ], ) } #[doc = "Set the availability period for parachains."] pub fn set_chain_availability_period( &self, new: ::core::primitive::u32, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Configuration", "set_chain_availability_period", types::SetChainAvailabilityPeriod { new }, [ 117u8, 26u8, 125u8, 221u8, 25u8, 252u8, 92u8, 61u8, 28u8, 172u8, 164u8, 43u8, 55u8, 7u8, 100u8, 219u8, 234u8, 157u8, 180u8, 216u8, 165u8, 145u8, 1u8, 43u8, 133u8, 203u8, 160u8, 147u8, 46u8, 227u8, 153u8, 112u8, ], ) } #[doc = "Set the availability period for parathreads."] pub fn set_thread_availability_period( &self, new: ::core::primitive::u32, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Configuration", "set_thread_availability_period", types::SetThreadAvailabilityPeriod { new }, [ 223u8, 248u8, 231u8, 210u8, 234u8, 168u8, 224u8, 226u8, 175u8, 76u8, 161u8, 222u8, 45u8, 238u8, 232u8, 169u8, 11u8, 210u8, 22u8, 13u8, 145u8, 61u8, 17u8, 203u8, 132u8, 105u8, 196u8, 18u8, 12u8, 156u8, 243u8, 231u8, ], ) } #[doc = "Set the scheduling lookahead, in expected number of blocks at peak throughput."] pub fn set_scheduling_lookahead( &self, new: ::core::primitive::u32, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Configuration", "set_scheduling_lookahead", types::SetSchedulingLookahead { new }, [ 176u8, 115u8, 251u8, 197u8, 19u8, 106u8, 253u8, 224u8, 149u8, 96u8, 238u8, 106u8, 19u8, 19u8, 89u8, 249u8, 186u8, 89u8, 144u8, 116u8, 251u8, 30u8, 157u8, 237u8, 125u8, 153u8, 86u8, 6u8, 251u8, 170u8, 73u8, 216u8, ], ) } #[doc = "Set the maximum number of validators to assign to any core."] pub fn set_max_validators_per_core( &self, new: ::core::option::Option<::core::primitive::u32>, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Configuration", "set_max_validators_per_core", types::SetMaxValidatorsPerCore { new }, [ 152u8, 112u8, 244u8, 133u8, 209u8, 166u8, 55u8, 155u8, 12u8, 216u8, 62u8, 111u8, 81u8, 52u8, 194u8, 121u8, 172u8, 201u8, 204u8, 139u8, 198u8, 238u8, 9u8, 49u8, 119u8, 236u8, 46u8, 0u8, 179u8, 234u8, 92u8, 45u8, ], ) } #[doc = "Set the maximum number of validators to use in parachain consensus."] pub fn set_max_validators( &self, new: ::core::option::Option<::core::primitive::u32>, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Configuration", "set_max_validators", types::SetMaxValidators { new }, [ 219u8, 76u8, 191u8, 139u8, 250u8, 154u8, 232u8, 176u8, 248u8, 154u8, 185u8, 89u8, 135u8, 151u8, 183u8, 132u8, 72u8, 63u8, 101u8, 183u8, 142u8, 169u8, 163u8, 226u8, 24u8, 139u8, 78u8, 155u8, 3u8, 136u8, 142u8, 137u8, ], ) } #[doc = "Set the dispute period, in number of sessions to keep for disputes."] pub fn set_dispute_period( &self, new: ::core::primitive::u32, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Configuration", "set_dispute_period", types::SetDisputePeriod { new }, [ 104u8, 229u8, 235u8, 207u8, 136u8, 207u8, 181u8, 99u8, 0u8, 84u8, 200u8, 244u8, 220u8, 52u8, 64u8, 26u8, 232u8, 212u8, 242u8, 190u8, 67u8, 180u8, 171u8, 200u8, 181u8, 23u8, 32u8, 240u8, 231u8, 217u8, 23u8, 146u8, ], ) } #[doc = "Set the dispute post conclusion acceptance period."] pub fn set_dispute_post_conclusion_acceptance_period( &self, new: ::core::primitive::u32, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Configuration", "set_dispute_post_conclusion_acceptance_period", types::SetDisputePostConclusionAcceptancePeriod { new }, [ 251u8, 176u8, 139u8, 76u8, 7u8, 246u8, 198u8, 190u8, 39u8, 249u8, 95u8, 226u8, 53u8, 186u8, 112u8, 101u8, 229u8, 80u8, 240u8, 185u8, 108u8, 228u8, 91u8, 103u8, 128u8, 218u8, 231u8, 210u8, 164u8, 197u8, 84u8, 149u8, ], ) } #[doc = "Set the no show slots, in number of number of consensus slots."] #[doc = "Must be at least 1."] pub fn set_no_show_slots( &self, new: ::core::primitive::u32, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Configuration", "set_no_show_slots", types::SetNoShowSlots { new }, [ 123u8, 204u8, 253u8, 222u8, 224u8, 215u8, 247u8, 154u8, 225u8, 79u8, 29u8, 171u8, 107u8, 216u8, 215u8, 14u8, 8u8, 230u8, 49u8, 97u8, 20u8, 84u8, 70u8, 33u8, 254u8, 63u8, 186u8, 7u8, 184u8, 135u8, 74u8, 139u8, ], ) } #[doc = "Set the total number of delay tranches."] pub fn set_n_delay_tranches( &self, new: ::core::primitive::u32, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Configuration", "set_n_delay_tranches", types::SetNDelayTranches { new }, [ 157u8, 177u8, 251u8, 227u8, 118u8, 250u8, 129u8, 254u8, 33u8, 250u8, 61u8, 148u8, 189u8, 92u8, 49u8, 119u8, 107u8, 40u8, 255u8, 119u8, 241u8, 188u8, 109u8, 240u8, 229u8, 169u8, 31u8, 62u8, 174u8, 14u8, 247u8, 235u8, ], ) } #[doc = "Set the zeroth delay tranche width."] pub fn set_zeroth_delay_tranche_width( &self, new: ::core::primitive::u32, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Configuration", "set_zeroth_delay_tranche_width", types::SetZerothDelayTrancheWidth { new }, [ 30u8, 195u8, 15u8, 51u8, 210u8, 159u8, 254u8, 207u8, 121u8, 172u8, 107u8, 241u8, 55u8, 100u8, 159u8, 55u8, 76u8, 47u8, 86u8, 93u8, 221u8, 34u8, 136u8, 97u8, 224u8, 141u8, 46u8, 181u8, 246u8, 137u8, 79u8, 57u8, ], ) } #[doc = "Set the number of validators needed to approve a block."] pub fn set_needed_approvals( &self, new: ::core::primitive::u32, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Configuration", "set_needed_approvals", types::SetNeededApprovals { new }, [ 245u8, 105u8, 16u8, 120u8, 28u8, 231u8, 6u8, 50u8, 143u8, 102u8, 1u8, 97u8, 224u8, 232u8, 187u8, 164u8, 200u8, 31u8, 129u8, 139u8, 79u8, 170u8, 14u8, 147u8, 117u8, 13u8, 98u8, 16u8, 64u8, 169u8, 46u8, 41u8, ], ) } #[doc = "Set the number of samples to do of the `RelayVRFModulo` approval assignment criterion."] pub fn set_relay_vrf_modulo_samples( &self, new: ::core::primitive::u32, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Configuration", "set_relay_vrf_modulo_samples", types::SetRelayVrfModuloSamples { new }, [ 96u8, 100u8, 42u8, 61u8, 244u8, 226u8, 135u8, 187u8, 56u8, 193u8, 247u8, 236u8, 38u8, 40u8, 242u8, 222u8, 176u8, 209u8, 211u8, 217u8, 178u8, 32u8, 160u8, 56u8, 23u8, 60u8, 222u8, 166u8, 134u8, 72u8, 153u8, 14u8, ], ) } #[doc = "Sets the maximum items that can present in a upward dispatch queue at once."] pub fn set_max_upward_queue_count( &self, new: ::core::primitive::u32, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Configuration", "set_max_upward_queue_count", types::SetMaxUpwardQueueCount { new }, [ 187u8, 102u8, 178u8, 141u8, 245u8, 8u8, 221u8, 174u8, 128u8, 239u8, 104u8, 120u8, 202u8, 220u8, 46u8, 27u8, 175u8, 26u8, 1u8, 170u8, 193u8, 70u8, 176u8, 13u8, 223u8, 57u8, 153u8, 161u8, 228u8, 175u8, 226u8, 202u8, ], ) } #[doc = "Sets the maximum total size of items that can present in a upward dispatch queue at once."] pub fn set_max_upward_queue_size( &self, new: ::core::primitive::u32, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Configuration", "set_max_upward_queue_size", types::SetMaxUpwardQueueSize { new }, [ 245u8, 234u8, 151u8, 232u8, 49u8, 193u8, 60u8, 21u8, 103u8, 238u8, 194u8, 73u8, 238u8, 160u8, 48u8, 88u8, 143u8, 197u8, 110u8, 230u8, 213u8, 149u8, 171u8, 94u8, 77u8, 6u8, 139u8, 191u8, 158u8, 62u8, 181u8, 32u8, ], ) } #[doc = "Set the critical downward message size."] pub fn set_max_downward_message_size( &self, new: ::core::primitive::u32, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Configuration", "set_max_downward_message_size", types::SetMaxDownwardMessageSize { new }, [ 63u8, 112u8, 231u8, 193u8, 226u8, 6u8, 119u8, 35u8, 60u8, 34u8, 85u8, 15u8, 168u8, 16u8, 176u8, 116u8, 169u8, 114u8, 42u8, 208u8, 89u8, 188u8, 22u8, 145u8, 248u8, 87u8, 74u8, 168u8, 0u8, 202u8, 112u8, 13u8, ], ) } #[doc = "Sets the soft limit for the phase of dispatching dispatchable upward messages."] pub fn set_ump_service_total_weight( &self, new: runtime_types::sp_weights::weight_v2::Weight, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Configuration", "set_ump_service_total_weight", types::SetUmpServiceTotalWeight { new }, [ 198u8, 49u8, 252u8, 136u8, 11u8, 109u8, 37u8, 234u8, 110u8, 90u8, 143u8, 149u8, 95u8, 123u8, 73u8, 48u8, 150u8, 28u8, 252u8, 134u8, 227u8, 236u8, 23u8, 66u8, 154u8, 92u8, 150u8, 218u8, 178u8, 132u8, 82u8, 111u8, ], ) } #[doc = "Sets the maximum size of an upward message that can be sent by a candidate."] pub fn set_max_upward_message_size( &self, new: ::core::primitive::u32, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Configuration", "set_max_upward_message_size", types::SetMaxUpwardMessageSize { new }, [ 237u8, 108u8, 33u8, 245u8, 65u8, 209u8, 201u8, 97u8, 126u8, 194u8, 195u8, 8u8, 144u8, 223u8, 148u8, 242u8, 97u8, 214u8, 38u8, 231u8, 123u8, 143u8, 34u8, 199u8, 100u8, 183u8, 211u8, 111u8, 250u8, 245u8, 10u8, 38u8, ], ) } #[doc = "Sets the maximum number of messages that a candidate can contain."] pub fn set_max_upward_message_num_per_candidate( &self, new: ::core::primitive::u32, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Configuration", "set_max_upward_message_num_per_candidate", types::SetMaxUpwardMessageNumPerCandidate { new }, [ 183u8, 121u8, 87u8, 193u8, 8u8, 160u8, 107u8, 80u8, 50u8, 8u8, 75u8, 185u8, 195u8, 248u8, 75u8, 174u8, 210u8, 108u8, 149u8, 20u8, 66u8, 153u8, 20u8, 203u8, 92u8, 99u8, 27u8, 69u8, 212u8, 212u8, 35u8, 49u8, ], ) } #[doc = "Sets the number of sessions after which an HRMP open channel request expires."] pub fn set_hrmp_open_request_ttl( &self, new: ::core::primitive::u32, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Configuration", "set_hrmp_open_request_ttl", types::SetHrmpOpenRequestTtl { new }, [ 233u8, 46u8, 165u8, 59u8, 196u8, 77u8, 161u8, 124u8, 252u8, 98u8, 8u8, 52u8, 80u8, 17u8, 12u8, 50u8, 25u8, 127u8, 143u8, 252u8, 230u8, 10u8, 193u8, 251u8, 167u8, 73u8, 40u8, 63u8, 203u8, 119u8, 208u8, 254u8, ], ) } #[doc = "Sets the amount of funds that the sender should provide for opening an HRMP channel."] pub fn set_hrmp_sender_deposit( &self, new: ::core::primitive::u128, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Configuration", "set_hrmp_sender_deposit", types::SetHrmpSenderDeposit { new }, [ 4u8, 141u8, 15u8, 87u8, 237u8, 39u8, 225u8, 108u8, 159u8, 240u8, 121u8, 212u8, 225u8, 155u8, 168u8, 28u8, 61u8, 119u8, 232u8, 216u8, 194u8, 172u8, 147u8, 16u8, 50u8, 100u8, 146u8, 146u8, 69u8, 252u8, 94u8, 47u8, ], ) } #[doc = "Sets the amount of funds that the recipient should provide for accepting opening an HRMP"] #[doc = "channel."] pub fn set_hrmp_recipient_deposit( &self, new: ::core::primitive::u128, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Configuration", "set_hrmp_recipient_deposit", types::SetHrmpRecipientDeposit { new }, [ 242u8, 193u8, 202u8, 91u8, 69u8, 252u8, 101u8, 52u8, 162u8, 107u8, 165u8, 69u8, 90u8, 150u8, 62u8, 239u8, 167u8, 2u8, 221u8, 3u8, 231u8, 252u8, 82u8, 125u8, 212u8, 174u8, 47u8, 216u8, 219u8, 237u8, 242u8, 144u8, ], ) } #[doc = "Sets the maximum number of messages allowed in an HRMP channel at once."] pub fn set_hrmp_channel_max_capacity( &self, new: ::core::primitive::u32, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Configuration", "set_hrmp_channel_max_capacity", types::SetHrmpChannelMaxCapacity { new }, [ 140u8, 138u8, 197u8, 45u8, 144u8, 102u8, 150u8, 172u8, 110u8, 6u8, 99u8, 130u8, 62u8, 217u8, 119u8, 110u8, 180u8, 132u8, 102u8, 161u8, 78u8, 59u8, 209u8, 44u8, 120u8, 183u8, 13u8, 88u8, 89u8, 15u8, 224u8, 224u8, ], ) } #[doc = "Sets the maximum total size of messages in bytes allowed in an HRMP channel at once."] pub fn set_hrmp_channel_max_total_size( &self, new: ::core::primitive::u32, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Configuration", "set_hrmp_channel_max_total_size", types::SetHrmpChannelMaxTotalSize { new }, [ 149u8, 21u8, 229u8, 107u8, 125u8, 28u8, 17u8, 155u8, 45u8, 230u8, 50u8, 64u8, 16u8, 171u8, 24u8, 58u8, 246u8, 57u8, 247u8, 20u8, 34u8, 217u8, 206u8, 157u8, 40u8, 205u8, 187u8, 205u8, 199u8, 24u8, 115u8, 214u8, ], ) } #[doc = "Sets the maximum number of inbound HRMP channels a parachain is allowed to accept."] pub fn set_hrmp_max_parachain_inbound_channels( &self, new: ::core::primitive::u32, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Configuration", "set_hrmp_max_parachain_inbound_channels", types::SetHrmpMaxParachainInboundChannels { new }, [ 203u8, 10u8, 55u8, 21u8, 21u8, 254u8, 74u8, 97u8, 34u8, 117u8, 160u8, 183u8, 168u8, 235u8, 11u8, 9u8, 137u8, 141u8, 150u8, 80u8, 32u8, 41u8, 118u8, 40u8, 28u8, 74u8, 155u8, 7u8, 63u8, 217u8, 39u8, 104u8, ], ) } #[doc = "Sets the maximum number of inbound HRMP channels a parathread is allowed to accept."] pub fn set_hrmp_max_parathread_inbound_channels( &self, new: ::core::primitive::u32, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Configuration", "set_hrmp_max_parathread_inbound_channels", types::SetHrmpMaxParathreadInboundChannels { new }, [ 229u8, 236u8, 209u8, 63u8, 160u8, 95u8, 117u8, 90u8, 240u8, 144u8, 238u8, 227u8, 129u8, 77u8, 234u8, 208u8, 217u8, 186u8, 54u8, 49u8, 6u8, 142u8, 3u8, 0u8, 90u8, 199u8, 237u8, 37u8, 89u8, 201u8, 76u8, 224u8, ], ) } #[doc = "Sets the maximum size of a message that could ever be put into an HRMP channel."] pub fn set_hrmp_channel_max_message_size( &self, new: ::core::primitive::u32, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Configuration", "set_hrmp_channel_max_message_size", types::SetHrmpChannelMaxMessageSize { new }, [ 153u8, 216u8, 55u8, 31u8, 189u8, 173u8, 23u8, 6u8, 213u8, 103u8, 205u8, 154u8, 115u8, 105u8, 84u8, 133u8, 94u8, 254u8, 47u8, 128u8, 130u8, 114u8, 227u8, 102u8, 214u8, 146u8, 215u8, 183u8, 179u8, 151u8, 43u8, 187u8, ], ) } #[doc = "Sets the maximum number of outbound HRMP channels a parachain is allowed to open."] pub fn set_hrmp_max_parachain_outbound_channels( &self, new: ::core::primitive::u32, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Configuration", "set_hrmp_max_parachain_outbound_channels", types::SetHrmpMaxParachainOutboundChannels { new }, [ 91u8, 100u8, 158u8, 17u8, 123u8, 31u8, 6u8, 92u8, 80u8, 92u8, 83u8, 195u8, 234u8, 207u8, 55u8, 88u8, 75u8, 81u8, 219u8, 131u8, 234u8, 5u8, 75u8, 236u8, 57u8, 93u8, 70u8, 145u8, 255u8, 171u8, 25u8, 174u8, ], ) } #[doc = "Sets the maximum number of outbound HRMP channels a parathread is allowed to open."] pub fn set_hrmp_max_parathread_outbound_channels( &self, new: ::core::primitive::u32, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Configuration", "set_hrmp_max_parathread_outbound_channels", types::SetHrmpMaxParathreadOutboundChannels { new }, [ 147u8, 44u8, 219u8, 160u8, 208u8, 228u8, 97u8, 106u8, 247u8, 254u8, 48u8, 90u8, 62u8, 151u8, 207u8, 214u8, 98u8, 163u8, 76u8, 175u8, 47u8, 218u8, 52u8, 88u8, 165u8, 159u8, 169u8, 165u8, 192u8, 163u8, 37u8, 110u8, ], ) } #[doc = "Sets the maximum number of outbound HRMP messages can be sent by a candidate."] pub fn set_hrmp_max_message_num_per_candidate( &self, new: ::core::primitive::u32, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Configuration", "set_hrmp_max_message_num_per_candidate", types::SetHrmpMaxMessageNumPerCandidate { new }, [ 179u8, 44u8, 231u8, 12u8, 166u8, 160u8, 223u8, 164u8, 218u8, 173u8, 157u8, 49u8, 16u8, 220u8, 0u8, 224u8, 67u8, 194u8, 210u8, 207u8, 237u8, 96u8, 96u8, 24u8, 71u8, 237u8, 30u8, 152u8, 105u8, 245u8, 157u8, 218u8, ], ) } #[doc = "Sets the maximum amount of weight any individual upward message may consume."] pub fn set_ump_max_individual_weight( &self, new: runtime_types::sp_weights::weight_v2::Weight, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Configuration", "set_ump_max_individual_weight", types::SetUmpMaxIndividualWeight { new }, [ 124u8, 187u8, 87u8, 136u8, 129u8, 119u8, 52u8, 135u8, 241u8, 73u8, 115u8, 215u8, 94u8, 41u8, 8u8, 130u8, 137u8, 142u8, 220u8, 39u8, 96u8, 88u8, 223u8, 48u8, 222u8, 157u8, 72u8, 170u8, 45u8, 72u8, 28u8, 43u8, ], ) } #[doc = "Enable or disable PVF pre-checking. Consult the field documentation prior executing."] pub fn set_pvf_checking_enabled( &self, new: ::core::primitive::bool, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Configuration", "set_pvf_checking_enabled", types::SetPvfCheckingEnabled { new }, [ 27u8, 146u8, 204u8, 24u8, 52u8, 183u8, 126u8, 151u8, 243u8, 172u8, 175u8, 96u8, 36u8, 210u8, 162u8, 142u8, 71u8, 211u8, 51u8, 12u8, 105u8, 148u8, 181u8, 111u8, 182u8, 161u8, 196u8, 163u8, 99u8, 149u8, 139u8, 12u8, ], ) } #[doc = "Set the number of session changes after which a PVF pre-checking voting is rejected."] pub fn set_pvf_voting_ttl( &self, new: ::core::primitive::u32, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Configuration", "set_pvf_voting_ttl", types::SetPvfVotingTtl { new }, [ 115u8, 135u8, 76u8, 222u8, 214u8, 80u8, 103u8, 250u8, 194u8, 34u8, 129u8, 245u8, 216u8, 69u8, 166u8, 247u8, 138u8, 94u8, 135u8, 228u8, 90u8, 145u8, 2u8, 244u8, 73u8, 178u8, 61u8, 251u8, 21u8, 197u8, 202u8, 246u8, ], ) } #[doc = "Sets the minimum delay between announcing the upgrade block for a parachain until the"] #[doc = "upgrade taking place."] #[doc = ""] #[doc = "See the field documentation for information and constraints for the new value."] pub fn set_minimum_validation_upgrade_delay( &self, new: ::core::primitive::u32, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Configuration", "set_minimum_validation_upgrade_delay", types::SetMinimumValidationUpgradeDelay { new }, [ 143u8, 217u8, 201u8, 206u8, 206u8, 244u8, 116u8, 118u8, 13u8, 169u8, 132u8, 125u8, 253u8, 178u8, 196u8, 12u8, 251u8, 32u8, 201u8, 133u8, 50u8, 59u8, 37u8, 169u8, 198u8, 112u8, 136u8, 47u8, 205u8, 141u8, 191u8, 212u8, ], ) } #[doc = "Setting this to true will disable consistency checks for the configuration setters."] #[doc = "Use with caution."] pub fn set_bypass_consistency_check( &self, new: ::core::primitive::bool, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Configuration", "set_bypass_consistency_check", types::SetBypassConsistencyCheck { new }, [ 11u8, 211u8, 68u8, 221u8, 178u8, 108u8, 101u8, 55u8, 107u8, 135u8, 203u8, 112u8, 173u8, 161u8, 23u8, 104u8, 95u8, 200u8, 46u8, 231u8, 114u8, 3u8, 8u8, 89u8, 147u8, 141u8, 55u8, 65u8, 125u8, 45u8, 218u8, 78u8, ], ) } #[doc = "Set the asynchronous backing parameters."] pub fn set_async_backing_params( &self, new: runtime_types::polkadot_primitives::vstaging::AsyncBackingParams, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Configuration", "set_async_backing_params", types::SetAsyncBackingParams { new }, [ 123u8, 190u8, 245u8, 105u8, 240u8, 176u8, 32u8, 173u8, 108u8, 170u8, 163u8, 87u8, 1u8, 27u8, 100u8, 109u8, 5u8, 67u8, 74u8, 2u8, 97u8, 177u8, 207u8, 143u8, 49u8, 155u8, 23u8, 53u8, 80u8, 205u8, 127u8, 193u8, ], ) } #[doc = "Set PVF executor parameters."] pub fn set_executor_params( &self, new: runtime_types::polkadot_primitives::v4::executor_params::ExecutorParams, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Configuration", "set_executor_params", types::SetExecutorParams { new }, [ 1u8, 66u8, 51u8, 137u8, 57u8, 108u8, 112u8, 243u8, 255u8, 189u8, 8u8, 218u8, 183u8, 205u8, 242u8, 95u8, 193u8, 190u8, 108u8, 34u8, 133u8, 13u8, 63u8, 73u8, 174u8, 243u8, 244u8, 175u8, 90u8, 148u8, 69u8, 117u8, ], ) } } } pub mod storage { use super::runtime_types; pub struct StorageApi; impl StorageApi { #[doc = " The active configuration for the current session."] pub fn active_config( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, runtime_types::polkadot_runtime_parachains::configuration::HostConfiguration< ::core::primitive::u32, >, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), > { ::subxt::storage::address::Address::new_static( "Configuration", "ActiveConfig", vec![], [ 164u8, 67u8, 83u8, 62u8, 158u8, 33u8, 83u8, 109u8, 221u8, 5u8, 39u8, 179u8, 247u8, 254u8, 8u8, 1u8, 34u8, 160u8, 41u8, 196u8, 17u8, 145u8, 24u8, 245u8, 166u8, 96u8, 168u8, 243u8, 189u8, 3u8, 95u8, 176u8, ], ) } #[doc = " Pending configuration changes."] #[doc = ""] #[doc = " This is a list of configuration changes, each with a session index at which it should"] #[doc = " be applied."] #[doc = ""] #[doc = " The list is sorted ascending by session index. Also, this list can only contain at most"] #[doc = " 2 items: for the next session and for the `scheduled_session`."] pub fn pending_configs (& self ,) -> :: subxt :: storage :: address :: Address :: < :: subxt :: storage :: address :: StaticStorageMapKey , :: std :: vec :: Vec < (:: core :: primitive :: u32 , runtime_types :: polkadot_runtime_parachains :: configuration :: HostConfiguration < :: core :: primitive :: u32 > ,) > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ ::subxt::storage::address::Address::new_static( "Configuration", "PendingConfigs", vec![], [ 123u8, 141u8, 170u8, 164u8, 206u8, 115u8, 189u8, 253u8, 248u8, 82u8, 252u8, 235u8, 116u8, 173u8, 79u8, 79u8, 204u8, 155u8, 236u8, 233u8, 48u8, 216u8, 32u8, 10u8, 169u8, 251u8, 126u8, 110u8, 36u8, 21u8, 207u8, 5u8, ], ) } #[doc = " If this is set, then the configuration setters will bypass the consistency checks. This"] #[doc = " is meant to be used only as the last resort."] pub fn bypass_consistency_check( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, ::core::primitive::bool, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), > { ::subxt::storage::address::Address::new_static( "Configuration", "BypassConsistencyCheck", vec![], [ 109u8, 201u8, 130u8, 189u8, 167u8, 112u8, 171u8, 180u8, 100u8, 146u8, 23u8, 174u8, 199u8, 230u8, 185u8, 155u8, 178u8, 45u8, 24u8, 66u8, 211u8, 234u8, 11u8, 103u8, 148u8, 12u8, 247u8, 101u8, 147u8, 18u8, 11u8, 89u8, ], ) } } } } pub mod paras_shared { use super::root_mod; use super::runtime_types; #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] pub type Call = runtime_types::polkadot_runtime_parachains::shared::pallet::Call; pub mod calls { use super::root_mod; use super::runtime_types; type DispatchError = runtime_types::sp_runtime::DispatchError; pub mod types { use super::runtime_types; } pub struct TransactionApi; impl TransactionApi {} } pub mod storage { use super::runtime_types; pub struct StorageApi; impl StorageApi { #[doc = " The current session index."] pub fn current_session_index( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, ::core::primitive::u32, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), > { ::subxt::storage::address::Address::new_static( "ParasShared", "CurrentSessionIndex", vec![], [ 250u8, 164u8, 179u8, 84u8, 199u8, 245u8, 116u8, 48u8, 86u8, 127u8, 50u8, 117u8, 236u8, 41u8, 107u8, 238u8, 151u8, 236u8, 68u8, 78u8, 152u8, 5u8, 155u8, 107u8, 69u8, 197u8, 222u8, 94u8, 150u8, 2u8, 31u8, 191u8, ], ) } #[doc = " All the validators actively participating in parachain consensus."] #[doc = " Indices are into the broader validator set."] pub fn active_validator_indices( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, ::std::vec::Vec, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), > { ::subxt::storage::address::Address::new_static( "ParasShared", "ActiveValidatorIndices", vec![], [ 80u8, 207u8, 217u8, 195u8, 69u8, 151u8, 27u8, 205u8, 227u8, 89u8, 71u8, 180u8, 91u8, 116u8, 82u8, 193u8, 108u8, 115u8, 40u8, 247u8, 160u8, 39u8, 85u8, 99u8, 42u8, 87u8, 54u8, 168u8, 230u8, 201u8, 212u8, 39u8, ], ) } #[doc = " The parachain attestation keys of the validators actively participating in parachain consensus."] #[doc = " This should be the same length as `ActiveValidatorIndices`."] pub fn active_validator_keys( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, ::std::vec::Vec, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), > { ::subxt::storage::address::Address::new_static( "ParasShared", "ActiveValidatorKeys", vec![], [ 155u8, 151u8, 155u8, 8u8, 23u8, 38u8, 91u8, 12u8, 94u8, 69u8, 228u8, 185u8, 14u8, 219u8, 215u8, 98u8, 235u8, 222u8, 157u8, 180u8, 230u8, 121u8, 205u8, 167u8, 156u8, 134u8, 180u8, 213u8, 87u8, 61u8, 174u8, 222u8, ], ) } } } } pub mod para_inclusion { use super::root_mod; use super::runtime_types; #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] pub type Error = runtime_types::polkadot_runtime_parachains::inclusion::pallet::Error; #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] pub type Call = runtime_types::polkadot_runtime_parachains::inclusion::pallet::Call; pub mod calls { use super::root_mod; use super::runtime_types; type DispatchError = runtime_types::sp_runtime::DispatchError; pub mod types { use super::runtime_types; } pub struct TransactionApi; impl TransactionApi {} } #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] pub type Event = runtime_types::polkadot_runtime_parachains::inclusion::pallet::Event; pub mod events { use super::runtime_types; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A candidate was backed. `[candidate, head_data]`"] pub struct CandidateBacked( pub runtime_types::polkadot_primitives::v4::CandidateReceipt<::subxt::utils::H256>, pub runtime_types::polkadot_parachain::primitives::HeadData, pub runtime_types::polkadot_primitives::v4::CoreIndex, pub runtime_types::polkadot_primitives::v4::GroupIndex, ); impl ::subxt::events::StaticEvent for CandidateBacked { const PALLET: &'static str = "ParaInclusion"; const EVENT: &'static str = "CandidateBacked"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A candidate was included. `[candidate, head_data]`"] pub struct CandidateIncluded( pub runtime_types::polkadot_primitives::v4::CandidateReceipt<::subxt::utils::H256>, pub runtime_types::polkadot_parachain::primitives::HeadData, pub runtime_types::polkadot_primitives::v4::CoreIndex, pub runtime_types::polkadot_primitives::v4::GroupIndex, ); impl ::subxt::events::StaticEvent for CandidateIncluded { const PALLET: &'static str = "ParaInclusion"; const EVENT: &'static str = "CandidateIncluded"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A candidate timed out. `[candidate, head_data]`"] pub struct CandidateTimedOut( pub runtime_types::polkadot_primitives::v4::CandidateReceipt<::subxt::utils::H256>, pub runtime_types::polkadot_parachain::primitives::HeadData, pub runtime_types::polkadot_primitives::v4::CoreIndex, ); impl ::subxt::events::StaticEvent for CandidateTimedOut { const PALLET: &'static str = "ParaInclusion"; const EVENT: &'static str = "CandidateTimedOut"; } } pub mod storage { use super::runtime_types; pub struct StorageApi; impl StorageApi { #[doc = " The latest bitfield for each validator, referred to by their index in the validator set."] pub fn availability_bitfields (& self , _0 : impl :: std :: borrow :: Borrow < runtime_types :: polkadot_primitives :: v4 :: ValidatorIndex > ,) -> :: subxt :: storage :: address :: Address :: < :: subxt :: storage :: address :: StaticStorageMapKey , runtime_types :: polkadot_runtime_parachains :: inclusion :: AvailabilityBitfieldRecord < :: core :: primitive :: u32 > , :: subxt :: storage :: address :: Yes , () , :: subxt :: storage :: address :: Yes >{ ::subxt::storage::address::Address::new_static( "ParaInclusion", "AvailabilityBitfields", vec![::subxt::storage::address::make_static_storage_map_key( _0.borrow(), )], [ 145u8, 39u8, 130u8, 153u8, 84u8, 60u8, 125u8, 109u8, 207u8, 184u8, 3u8, 33u8, 121u8, 244u8, 135u8, 70u8, 25u8, 129u8, 208u8, 253u8, 214u8, 139u8, 174u8, 212u8, 146u8, 108u8, 171u8, 234u8, 190u8, 250u8, 31u8, 44u8, ], ) } #[doc = " The latest bitfield for each validator, referred to by their index in the validator set."] pub fn availability_bitfields_root (& self ,) -> :: subxt :: storage :: address :: Address :: < :: subxt :: storage :: address :: StaticStorageMapKey , runtime_types :: polkadot_runtime_parachains :: inclusion :: AvailabilityBitfieldRecord < :: core :: primitive :: u32 > , () , () , :: subxt :: storage :: address :: Yes >{ ::subxt::storage::address::Address::new_static( "ParaInclusion", "AvailabilityBitfields", Vec::new(), [ 145u8, 39u8, 130u8, 153u8, 84u8, 60u8, 125u8, 109u8, 207u8, 184u8, 3u8, 33u8, 121u8, 244u8, 135u8, 70u8, 25u8, 129u8, 208u8, 253u8, 214u8, 139u8, 174u8, 212u8, 146u8, 108u8, 171u8, 234u8, 190u8, 250u8, 31u8, 44u8, ], ) } #[doc = " Candidates pending availability by `ParaId`."] pub fn pending_availability (& self , _0 : impl :: std :: borrow :: Borrow < runtime_types :: polkadot_parachain :: primitives :: Id > ,) -> :: subxt :: storage :: address :: Address :: < :: subxt :: storage :: address :: StaticStorageMapKey , runtime_types :: polkadot_runtime_parachains :: inclusion :: CandidatePendingAvailability < :: subxt :: utils :: H256 , :: core :: primitive :: u32 > , :: subxt :: storage :: address :: Yes , () , :: subxt :: storage :: address :: Yes >{ ::subxt::storage::address::Address::new_static( "ParaInclusion", "PendingAvailability", vec![::subxt::storage::address::make_static_storage_map_key( _0.borrow(), )], [ 73u8, 173u8, 235u8, 69u8, 85u8, 97u8, 46u8, 238u8, 233u8, 27u8, 232u8, 222u8, 164u8, 233u8, 76u8, 100u8, 18u8, 13u8, 97u8, 84u8, 42u8, 28u8, 76u8, 0u8, 109u8, 134u8, 97u8, 149u8, 74u8, 224u8, 212u8, 31u8, ], ) } #[doc = " Candidates pending availability by `ParaId`."] pub fn pending_availability_root (& self ,) -> :: subxt :: storage :: address :: Address :: < :: subxt :: storage :: address :: StaticStorageMapKey , runtime_types :: polkadot_runtime_parachains :: inclusion :: CandidatePendingAvailability < :: subxt :: utils :: H256 , :: core :: primitive :: u32 > , () , () , :: subxt :: storage :: address :: Yes >{ ::subxt::storage::address::Address::new_static( "ParaInclusion", "PendingAvailability", Vec::new(), [ 73u8, 173u8, 235u8, 69u8, 85u8, 97u8, 46u8, 238u8, 233u8, 27u8, 232u8, 222u8, 164u8, 233u8, 76u8, 100u8, 18u8, 13u8, 97u8, 84u8, 42u8, 28u8, 76u8, 0u8, 109u8, 134u8, 97u8, 149u8, 74u8, 224u8, 212u8, 31u8, ], ) } #[doc = " The commitments of candidates pending availability, by `ParaId`."] pub fn pending_availability_commitments( &self, _0: impl ::std::borrow::Borrow, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, runtime_types::polkadot_primitives::v4::CandidateCommitments< ::core::primitive::u32, >, ::subxt::storage::address::Yes, (), ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( "ParaInclusion", "PendingAvailabilityCommitments", vec![::subxt::storage::address::make_static_storage_map_key( _0.borrow(), )], [ 57u8, 162u8, 255u8, 73u8, 60u8, 230u8, 180u8, 58u8, 74u8, 165u8, 39u8, 155u8, 242u8, 73u8, 30u8, 238u8, 83u8, 97u8, 205u8, 223u8, 81u8, 11u8, 190u8, 59u8, 75u8, 218u8, 225u8, 114u8, 66u8, 160u8, 66u8, 55u8, ], ) } #[doc = " The commitments of candidates pending availability, by `ParaId`."] pub fn pending_availability_commitments_root( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, runtime_types::polkadot_primitives::v4::CandidateCommitments< ::core::primitive::u32, >, (), (), ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( "ParaInclusion", "PendingAvailabilityCommitments", Vec::new(), [ 57u8, 162u8, 255u8, 73u8, 60u8, 230u8, 180u8, 58u8, 74u8, 165u8, 39u8, 155u8, 242u8, 73u8, 30u8, 238u8, 83u8, 97u8, 205u8, 223u8, 81u8, 11u8, 190u8, 59u8, 75u8, 218u8, 225u8, 114u8, 66u8, 160u8, 66u8, 55u8, ], ) } } } } pub mod para_inherent { use super::root_mod; use super::runtime_types; #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] pub type Error = runtime_types::polkadot_runtime_parachains::paras_inherent::pallet::Error; #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] pub type Call = runtime_types::polkadot_runtime_parachains::paras_inherent::pallet::Call; pub mod calls { use super::root_mod; use super::runtime_types; type DispatchError = runtime_types::sp_runtime::DispatchError; pub mod types { use super::runtime_types; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Enter { pub data: runtime_types::polkadot_primitives::v4::InherentData< runtime_types::sp_runtime::generic::header::Header< ::core::primitive::u32, runtime_types::sp_runtime::traits::BlakeTwo256, >, >, } impl ::subxt::blocks::StaticExtrinsic for Enter { const PALLET: &'static str = "ParaInherent"; const CALL: &'static str = "enter"; } } pub struct TransactionApi; impl TransactionApi { #[doc = "Enter the paras inherent. This will process bitfields and backed candidates."] pub fn enter( &self, data: runtime_types::polkadot_primitives::v4::InherentData< runtime_types::sp_runtime::generic::header::Header< ::core::primitive::u32, runtime_types::sp_runtime::traits::BlakeTwo256, >, >, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "ParaInherent", "enter", types::Enter { data }, [ 190u8, 180u8, 43u8, 119u8, 55u8, 134u8, 122u8, 249u8, 40u8, 254u8, 17u8, 195u8, 84u8, 130u8, 91u8, 161u8, 89u8, 42u8, 48u8, 12u8, 117u8, 52u8, 249u8, 166u8, 78u8, 241u8, 136u8, 129u8, 176u8, 44u8, 1u8, 170u8, ], ) } } } pub mod storage { use super::runtime_types; pub struct StorageApi; impl StorageApi { #[doc = " Whether the paras inherent was included within this block."] #[doc = ""] #[doc = " The `Option<()>` is effectively a `bool`, but it never hits storage in the `None` variant"] #[doc = " due to the guarantees of FRAME's storage APIs."] #[doc = ""] #[doc = " If this is `None` at the end of the block, we panic and render the block invalid."] pub fn included( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, (), ::subxt::storage::address::Yes, (), (), > { ::subxt::storage::address::Address::new_static( "ParaInherent", "Included", vec![], [ 108u8, 164u8, 163u8, 34u8, 27u8, 124u8, 202u8, 167u8, 48u8, 130u8, 155u8, 211u8, 148u8, 130u8, 76u8, 16u8, 5u8, 250u8, 211u8, 174u8, 90u8, 77u8, 198u8, 153u8, 175u8, 168u8, 131u8, 244u8, 27u8, 93u8, 60u8, 46u8, ], ) } #[doc = " Scraped on chain data for extracting resolved disputes as well as backing votes."] pub fn on_chain_votes( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, runtime_types::polkadot_primitives::v4::ScrapedOnChainVotes< ::subxt::utils::H256, >, ::subxt::storage::address::Yes, (), (), > { ::subxt::storage::address::Address::new_static( "ParaInherent", "OnChainVotes", vec![], [ 124u8, 87u8, 65u8, 59u8, 160u8, 188u8, 81u8, 253u8, 179u8, 236u8, 121u8, 233u8, 26u8, 151u8, 195u8, 180u8, 3u8, 31u8, 62u8, 173u8, 250u8, 94u8, 70u8, 126u8, 82u8, 231u8, 160u8, 44u8, 129u8, 232u8, 160u8, 28u8, ], ) } } } } pub mod para_scheduler { use super::root_mod; use super::runtime_types; pub mod storage { use super::runtime_types; pub struct StorageApi; impl StorageApi { #[doc = " All the validator groups. One for each core. Indices are into `ActiveValidators` - not the"] #[doc = " broader set of Polkadot validators, but instead just the subset used for parachains during"] #[doc = " this session."] #[doc = ""] #[doc = " Bound: The number of cores is the sum of the numbers of parachains and parathread multiplexers."] #[doc = " Reasonably, 100-1000. The dominant factor is the number of validators: safe upper bound at 10k."] pub fn validator_groups( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, ::std::vec::Vec< ::std::vec::Vec, >, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), > { ::subxt::storage::address::Address::new_static( "ParaScheduler", "ValidatorGroups", vec![], [ 129u8, 58u8, 65u8, 112u8, 4u8, 172u8, 167u8, 19u8, 96u8, 154u8, 159u8, 83u8, 94u8, 125u8, 60u8, 43u8, 60u8, 70u8, 1u8, 58u8, 222u8, 31u8, 73u8, 53u8, 71u8, 181u8, 49u8, 64u8, 212u8, 90u8, 128u8, 185u8, ], ) } #[doc = " A queue of upcoming claims and which core they should be mapped onto."] #[doc = ""] #[doc = " The number of queued claims is bounded at the `scheduling_lookahead`"] #[doc = " multiplied by the number of parathread multiplexer cores. Reasonably, 10 * 50 = 500."] pub fn parathread_queue( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, runtime_types::polkadot_runtime_parachains::scheduler::ParathreadClaimQueue, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), > { ::subxt::storage::address::Address::new_static( "ParaScheduler", "ParathreadQueue", vec![], [ 41u8, 73u8, 199u8, 28u8, 66u8, 245u8, 137u8, 101u8, 103u8, 65u8, 85u8, 241u8, 41u8, 174u8, 206u8, 113u8, 201u8, 219u8, 212u8, 205u8, 112u8, 65u8, 158u8, 33u8, 181u8, 174u8, 220u8, 191u8, 201u8, 233u8, 205u8, 41u8, ], ) } #[doc = " One entry for each availability core. Entries are `None` if the core is not currently occupied. Can be"] #[doc = " temporarily `Some` if scheduled but not occupied."] #[doc = " The i'th parachain belongs to the i'th core, with the remaining cores all being"] #[doc = " parathread-multiplexers."] #[doc = ""] #[doc = " Bounded by the maximum of either of these two values:"] #[doc = " * The number of parachains and parathread multiplexers"] #[doc = " * The number of validators divided by `configuration.max_validators_per_core`."] pub fn availability_cores( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, ::std::vec::Vec< ::core::option::Option< runtime_types::polkadot_primitives::v4::CoreOccupied, >, >, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), > { ::subxt::storage::address::Address::new_static( "ParaScheduler", "AvailabilityCores", vec![], [ 68u8, 46u8, 55u8, 213u8, 234u8, 41u8, 228u8, 136u8, 169u8, 38u8, 123u8, 201u8, 149u8, 92u8, 10u8, 184u8, 196u8, 165u8, 61u8, 23u8, 215u8, 30u8, 5u8, 43u8, 172u8, 80u8, 168u8, 139u8, 140u8, 207u8, 64u8, 4u8, ], ) } #[doc = " An index used to ensure that only one claim on a parathread exists in the queue or is"] #[doc = " currently being handled by an occupied core."] #[doc = ""] #[doc = " Bounded by the number of parathread cores and scheduling lookahead. Reasonably, 10 * 50 = 500."] pub fn parathread_claim_index( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, ::std::vec::Vec, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), > { ::subxt::storage::address::Address::new_static( "ParaScheduler", "ParathreadClaimIndex", vec![], [ 40u8, 118u8, 124u8, 168u8, 174u8, 131u8, 61u8, 35u8, 175u8, 100u8, 69u8, 184u8, 191u8, 17u8, 151u8, 219u8, 81u8, 160u8, 199u8, 33u8, 227u8, 20u8, 48u8, 90u8, 61u8, 157u8, 136u8, 60u8, 25u8, 45u8, 81u8, 208u8, ], ) } #[doc = " The block number where the session start occurred. Used to track how many group rotations have occurred."] #[doc = ""] #[doc = " Note that in the context of parachains modules the session change is signaled during"] #[doc = " the block and enacted at the end of the block (at the finalization stage, to be exact)."] #[doc = " Thus for all intents and purposes the effect of the session change is observed at the"] #[doc = " block following the session change, block number of which we save in this storage value."] pub fn session_start_block( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, ::core::primitive::u32, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), > { ::subxt::storage::address::Address::new_static( "ParaScheduler", "SessionStartBlock", vec![], [ 185u8, 76u8, 120u8, 75u8, 154u8, 31u8, 33u8, 243u8, 16u8, 77u8, 100u8, 249u8, 21u8, 44u8, 199u8, 195u8, 37u8, 9u8, 218u8, 148u8, 222u8, 90u8, 113u8, 34u8, 152u8, 215u8, 114u8, 134u8, 81u8, 139u8, 164u8, 71u8, ], ) } #[doc = " Currently scheduled cores - free but up to be occupied."] #[doc = ""] #[doc = " Bounded by the number of cores: one for each parachain and parathread multiplexer."] #[doc = ""] #[doc = " The value contained here will not be valid after the end of a block. Runtime APIs should be used to determine scheduled cores/"] #[doc = " for the upcoming block."] pub fn scheduled( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, ::std::vec::Vec< runtime_types::polkadot_runtime_parachains::scheduler::CoreAssignment, >, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), > { ::subxt::storage::address::Address::new_static( "ParaScheduler", "Scheduled", vec![], [ 207u8, 104u8, 113u8, 254u8, 53u8, 114u8, 141u8, 104u8, 29u8, 237u8, 240u8, 203u8, 101u8, 219u8, 2u8, 201u8, 16u8, 137u8, 99u8, 55u8, 222u8, 61u8, 234u8, 126u8, 254u8, 93u8, 104u8, 107u8, 246u8, 214u8, 124u8, 212u8, ], ) } } } } pub mod paras { use super::root_mod; use super::runtime_types; #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] pub type Error = runtime_types::polkadot_runtime_parachains::paras::pallet::Error; #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] pub type Call = runtime_types::polkadot_runtime_parachains::paras::pallet::Call; pub mod calls { use super::root_mod; use super::runtime_types; type DispatchError = runtime_types::sp_runtime::DispatchError; pub mod types { use super::runtime_types; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ForceSetCurrentCode { pub para: runtime_types::polkadot_parachain::primitives::Id, pub new_code: runtime_types::polkadot_parachain::primitives::ValidationCode, } impl ::subxt::blocks::StaticExtrinsic for ForceSetCurrentCode { const PALLET: &'static str = "Paras"; const CALL: &'static str = "force_set_current_code"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ForceSetCurrentHead { pub para: runtime_types::polkadot_parachain::primitives::Id, pub new_head: runtime_types::polkadot_parachain::primitives::HeadData, } impl ::subxt::blocks::StaticExtrinsic for ForceSetCurrentHead { const PALLET: &'static str = "Paras"; const CALL: &'static str = "force_set_current_head"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ForceScheduleCodeUpgrade { pub para: runtime_types::polkadot_parachain::primitives::Id, pub new_code: runtime_types::polkadot_parachain::primitives::ValidationCode, pub relay_parent_number: ::core::primitive::u32, } impl ::subxt::blocks::StaticExtrinsic for ForceScheduleCodeUpgrade { const PALLET: &'static str = "Paras"; const CALL: &'static str = "force_schedule_code_upgrade"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ForceNoteNewHead { pub para: runtime_types::polkadot_parachain::primitives::Id, pub new_head: runtime_types::polkadot_parachain::primitives::HeadData, } impl ::subxt::blocks::StaticExtrinsic for ForceNoteNewHead { const PALLET: &'static str = "Paras"; const CALL: &'static str = "force_note_new_head"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ForceQueueAction { pub para: runtime_types::polkadot_parachain::primitives::Id, } impl ::subxt::blocks::StaticExtrinsic for ForceQueueAction { const PALLET: &'static str = "Paras"; const CALL: &'static str = "force_queue_action"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct AddTrustedValidationCode { pub validation_code: runtime_types::polkadot_parachain::primitives::ValidationCode, } impl ::subxt::blocks::StaticExtrinsic for AddTrustedValidationCode { const PALLET: &'static str = "Paras"; const CALL: &'static str = "add_trusted_validation_code"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct PokeUnusedValidationCode { pub validation_code_hash: runtime_types::polkadot_parachain::primitives::ValidationCodeHash, } impl ::subxt::blocks::StaticExtrinsic for PokeUnusedValidationCode { const PALLET: &'static str = "Paras"; const CALL: &'static str = "poke_unused_validation_code"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct IncludePvfCheckStatement { pub stmt: runtime_types::polkadot_primitives::v4::PvfCheckStatement, pub signature: runtime_types::polkadot_primitives::v4::validator_app::Signature, } impl ::subxt::blocks::StaticExtrinsic for IncludePvfCheckStatement { const PALLET: &'static str = "Paras"; const CALL: &'static str = "include_pvf_check_statement"; } } pub struct TransactionApi; impl TransactionApi { #[doc = "Set the storage for the parachain validation code immediately."] pub fn force_set_current_code( &self, para: runtime_types::polkadot_parachain::primitives::Id, new_code: runtime_types::polkadot_parachain::primitives::ValidationCode, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Paras", "force_set_current_code", types::ForceSetCurrentCode { para, new_code }, [ 204u8, 159u8, 184u8, 235u8, 65u8, 225u8, 223u8, 130u8, 139u8, 140u8, 219u8, 58u8, 142u8, 253u8, 236u8, 239u8, 148u8, 190u8, 27u8, 234u8, 165u8, 125u8, 129u8, 235u8, 98u8, 33u8, 172u8, 71u8, 90u8, 41u8, 182u8, 80u8, ], ) } #[doc = "Set the storage for the current parachain head data immediately."] pub fn force_set_current_head( &self, para: runtime_types::polkadot_parachain::primitives::Id, new_head: runtime_types::polkadot_parachain::primitives::HeadData, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Paras", "force_set_current_head", types::ForceSetCurrentHead { para, new_head }, [ 184u8, 247u8, 184u8, 248u8, 89u8, 64u8, 18u8, 193u8, 254u8, 71u8, 220u8, 195u8, 124u8, 212u8, 178u8, 169u8, 155u8, 189u8, 11u8, 135u8, 247u8, 39u8, 253u8, 196u8, 111u8, 242u8, 189u8, 91u8, 226u8, 219u8, 232u8, 238u8, ], ) } #[doc = "Schedule an upgrade as if it was scheduled in the given relay parent block."] pub fn force_schedule_code_upgrade( &self, para: runtime_types::polkadot_parachain::primitives::Id, new_code: runtime_types::polkadot_parachain::primitives::ValidationCode, relay_parent_number: ::core::primitive::u32, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Paras", "force_schedule_code_upgrade", types::ForceScheduleCodeUpgrade { para, new_code, relay_parent_number, }, [ 91u8, 48u8, 207u8, 223u8, 125u8, 162u8, 82u8, 25u8, 255u8, 183u8, 129u8, 240u8, 58u8, 21u8, 154u8, 96u8, 128u8, 147u8, 125u8, 22u8, 32u8, 65u8, 224u8, 82u8, 208u8, 3u8, 32u8, 35u8, 127u8, 89u8, 84u8, 192u8, ], ) } #[doc = "Note a new block head for para within the context of the current block."] pub fn force_note_new_head( &self, para: runtime_types::polkadot_parachain::primitives::Id, new_head: runtime_types::polkadot_parachain::primitives::HeadData, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Paras", "force_note_new_head", types::ForceNoteNewHead { para, new_head }, [ 215u8, 12u8, 228u8, 208u8, 7u8, 24u8, 207u8, 60u8, 183u8, 241u8, 212u8, 203u8, 139u8, 149u8, 9u8, 236u8, 77u8, 15u8, 242u8, 70u8, 62u8, 204u8, 187u8, 91u8, 110u8, 73u8, 210u8, 2u8, 8u8, 118u8, 182u8, 171u8, ], ) } #[doc = "Put a parachain directly into the next session's action queue."] #[doc = "We can't queue it any sooner than this without going into the"] #[doc = "initializer..."] pub fn force_queue_action( &self, para: runtime_types::polkadot_parachain::primitives::Id, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Paras", "force_queue_action", types::ForceQueueAction { para }, [ 112u8, 247u8, 239u8, 8u8, 91u8, 23u8, 111u8, 84u8, 179u8, 61u8, 235u8, 49u8, 140u8, 110u8, 40u8, 226u8, 150u8, 253u8, 146u8, 193u8, 136u8, 133u8, 100u8, 127u8, 38u8, 165u8, 159u8, 17u8, 205u8, 190u8, 6u8, 117u8, ], ) } #[doc = "Adds the validation code to the storage."] #[doc = ""] #[doc = "The code will not be added if it is already present. Additionally, if PVF pre-checking"] #[doc = "is running for that code, it will be instantly accepted."] #[doc = ""] #[doc = "Otherwise, the code will be added into the storage. Note that the code will be added"] #[doc = "into storage with reference count 0. This is to account the fact that there are no users"] #[doc = "for this code yet. The caller will have to make sure that this code eventually gets"] #[doc = "used by some parachain or removed from the storage to avoid storage leaks. For the latter"] #[doc = "prefer to use the `poke_unused_validation_code` dispatchable to raw storage manipulation."] #[doc = ""] #[doc = "This function is mainly meant to be used for upgrading parachains that do not follow"] #[doc = "the go-ahead signal while the PVF pre-checking feature is enabled."] pub fn add_trusted_validation_code( &self, validation_code: runtime_types::polkadot_parachain::primitives::ValidationCode, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Paras", "add_trusted_validation_code", types::AddTrustedValidationCode { validation_code }, [ 196u8, 123u8, 133u8, 223u8, 3u8, 205u8, 127u8, 23u8, 82u8, 201u8, 107u8, 47u8, 23u8, 75u8, 139u8, 198u8, 178u8, 171u8, 160u8, 61u8, 132u8, 250u8, 76u8, 110u8, 3u8, 144u8, 90u8, 253u8, 89u8, 141u8, 162u8, 135u8, ], ) } #[doc = "Remove the validation code from the storage iff the reference count is 0."] #[doc = ""] #[doc = "This is better than removing the storage directly, because it will not remove the code"] #[doc = "that was suddenly got used by some parachain while this dispatchable was pending"] #[doc = "dispatching."] pub fn poke_unused_validation_code( &self, validation_code_hash : runtime_types :: polkadot_parachain :: primitives :: ValidationCodeHash, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Paras", "poke_unused_validation_code", types::PokeUnusedValidationCode { validation_code_hash, }, [ 180u8, 53u8, 213u8, 27u8, 150u8, 195u8, 50u8, 1u8, 62u8, 246u8, 244u8, 229u8, 115u8, 202u8, 55u8, 140u8, 108u8, 28u8, 245u8, 66u8, 165u8, 128u8, 105u8, 221u8, 7u8, 87u8, 242u8, 19u8, 88u8, 132u8, 36u8, 32u8, ], ) } #[doc = "Includes a statement for a PVF pre-checking vote. Potentially, finalizes the vote and"] #[doc = "enacts the results if that was the last vote before achieving the supermajority."] pub fn include_pvf_check_statement( &self, stmt: runtime_types::polkadot_primitives::v4::PvfCheckStatement, signature: runtime_types::polkadot_primitives::v4::validator_app::Signature, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Paras", "include_pvf_check_statement", types::IncludePvfCheckStatement { stmt, signature }, [ 238u8, 72u8, 169u8, 99u8, 181u8, 16u8, 14u8, 101u8, 70u8, 230u8, 38u8, 129u8, 114u8, 180u8, 69u8, 178u8, 153u8, 57u8, 55u8, 208u8, 176u8, 17u8, 22u8, 30u8, 227u8, 52u8, 132u8, 80u8, 158u8, 249u8, 8u8, 125u8, ], ) } } } #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] pub type Event = runtime_types::polkadot_runtime_parachains::paras::pallet::Event; pub mod events { use super::runtime_types; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Current code has been updated for a Para. `para_id`"] pub struct CurrentCodeUpdated(pub runtime_types::polkadot_parachain::primitives::Id); impl ::subxt::events::StaticEvent for CurrentCodeUpdated { const PALLET: &'static str = "Paras"; const EVENT: &'static str = "CurrentCodeUpdated"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Current head has been updated for a Para. `para_id`"] pub struct CurrentHeadUpdated(pub runtime_types::polkadot_parachain::primitives::Id); impl ::subxt::events::StaticEvent for CurrentHeadUpdated { const PALLET: &'static str = "Paras"; const EVENT: &'static str = "CurrentHeadUpdated"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A code upgrade has been scheduled for a Para. `para_id`"] pub struct CodeUpgradeScheduled(pub runtime_types::polkadot_parachain::primitives::Id); impl ::subxt::events::StaticEvent for CodeUpgradeScheduled { const PALLET: &'static str = "Paras"; const EVENT: &'static str = "CodeUpgradeScheduled"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A new head has been noted for a Para. `para_id`"] pub struct NewHeadNoted(pub runtime_types::polkadot_parachain::primitives::Id); impl ::subxt::events::StaticEvent for NewHeadNoted { const PALLET: &'static str = "Paras"; const EVENT: &'static str = "NewHeadNoted"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A para has been queued to execute pending actions. `para_id`"] pub struct ActionQueued( pub runtime_types::polkadot_parachain::primitives::Id, pub ::core::primitive::u32, ); impl ::subxt::events::StaticEvent for ActionQueued { const PALLET: &'static str = "Paras"; const EVENT: &'static str = "ActionQueued"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "The given para either initiated or subscribed to a PVF check for the given validation"] #[doc = "code. `code_hash` `para_id`"] pub struct PvfCheckStarted( pub runtime_types::polkadot_parachain::primitives::ValidationCodeHash, pub runtime_types::polkadot_parachain::primitives::Id, ); impl ::subxt::events::StaticEvent for PvfCheckStarted { const PALLET: &'static str = "Paras"; const EVENT: &'static str = "PvfCheckStarted"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "The given validation code was accepted by the PVF pre-checking vote."] #[doc = "`code_hash` `para_id`"] pub struct PvfCheckAccepted( pub runtime_types::polkadot_parachain::primitives::ValidationCodeHash, pub runtime_types::polkadot_parachain::primitives::Id, ); impl ::subxt::events::StaticEvent for PvfCheckAccepted { const PALLET: &'static str = "Paras"; const EVENT: &'static str = "PvfCheckAccepted"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "The given validation code was rejected by the PVF pre-checking vote."] #[doc = "`code_hash` `para_id`"] pub struct PvfCheckRejected( pub runtime_types::polkadot_parachain::primitives::ValidationCodeHash, pub runtime_types::polkadot_parachain::primitives::Id, ); impl ::subxt::events::StaticEvent for PvfCheckRejected { const PALLET: &'static str = "Paras"; const EVENT: &'static str = "PvfCheckRejected"; } } pub mod storage { use super::runtime_types; pub struct StorageApi; impl StorageApi { #[doc = " All currently active PVF pre-checking votes."] #[doc = ""] #[doc = " Invariant:"] #[doc = " - There are no PVF pre-checking votes that exists in list but not in the set and vice versa."] pub fn pvf_active_vote_map( &self, _0: impl ::std::borrow::Borrow< runtime_types::polkadot_parachain::primitives::ValidationCodeHash, >, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, runtime_types::polkadot_runtime_parachains::paras::PvfCheckActiveVoteState< ::core::primitive::u32, >, ::subxt::storage::address::Yes, (), ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( "Paras", "PvfActiveVoteMap", vec![::subxt::storage::address::make_static_storage_map_key( _0.borrow(), )], [ 105u8, 71u8, 12u8, 198u8, 22u8, 238u8, 140u8, 152u8, 99u8, 226u8, 118u8, 92u8, 44u8, 112u8, 28u8, 111u8, 128u8, 111u8, 142u8, 161u8, 58u8, 243u8, 124u8, 53u8, 180u8, 35u8, 150u8, 162u8, 30u8, 163u8, 164u8, 80u8, ], ) } #[doc = " All currently active PVF pre-checking votes."] #[doc = ""] #[doc = " Invariant:"] #[doc = " - There are no PVF pre-checking votes that exists in list but not in the set and vice versa."] pub fn pvf_active_vote_map_root( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, runtime_types::polkadot_runtime_parachains::paras::PvfCheckActiveVoteState< ::core::primitive::u32, >, (), (), ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( "Paras", "PvfActiveVoteMap", Vec::new(), [ 105u8, 71u8, 12u8, 198u8, 22u8, 238u8, 140u8, 152u8, 99u8, 226u8, 118u8, 92u8, 44u8, 112u8, 28u8, 111u8, 128u8, 111u8, 142u8, 161u8, 58u8, 243u8, 124u8, 53u8, 180u8, 35u8, 150u8, 162u8, 30u8, 163u8, 164u8, 80u8, ], ) } #[doc = " The list of all currently active PVF votes. Auxiliary to `PvfActiveVoteMap`."] pub fn pvf_active_vote_list( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, ::std::vec::Vec< runtime_types::polkadot_parachain::primitives::ValidationCodeHash, >, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), > { ::subxt::storage::address::Address::new_static( "Paras", "PvfActiveVoteList", vec![], [ 172u8, 215u8, 137u8, 191u8, 52u8, 104u8, 106u8, 118u8, 134u8, 82u8, 137u8, 6u8, 175u8, 158u8, 58u8, 230u8, 231u8, 152u8, 195u8, 17u8, 51u8, 133u8, 10u8, 205u8, 212u8, 6u8, 24u8, 59u8, 114u8, 222u8, 96u8, 42u8, ], ) } #[doc = " All parachains. Ordered ascending by `ParaId`. Parathreads are not included."] #[doc = ""] #[doc = " Consider using the [`ParachainsCache`] type of modifying."] pub fn parachains( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, ::std::vec::Vec, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), > { ::subxt::storage::address::Address::new_static( "Paras", "Parachains", vec![], [ 242u8, 228u8, 175u8, 107u8, 242u8, 39u8, 52u8, 181u8, 32u8, 171u8, 21u8, 169u8, 204u8, 19u8, 21u8, 217u8, 121u8, 239u8, 218u8, 252u8, 80u8, 188u8, 119u8, 157u8, 235u8, 218u8, 221u8, 113u8, 0u8, 108u8, 245u8, 210u8, ], ) } #[doc = " The current lifecycle of a all known Para IDs."] pub fn para_lifecycles( &self, _0: impl ::std::borrow::Borrow, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, runtime_types::polkadot_runtime_parachains::paras::ParaLifecycle, ::subxt::storage::address::Yes, (), ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( "Paras", "ParaLifecycles", vec![::subxt::storage::address::make_static_storage_map_key( _0.borrow(), )], [ 2u8, 203u8, 32u8, 194u8, 76u8, 227u8, 250u8, 9u8, 168u8, 201u8, 171u8, 180u8, 18u8, 169u8, 206u8, 183u8, 48u8, 189u8, 204u8, 192u8, 237u8, 233u8, 156u8, 255u8, 102u8, 22u8, 101u8, 110u8, 194u8, 55u8, 118u8, 81u8, ], ) } #[doc = " The current lifecycle of a all known Para IDs."] pub fn para_lifecycles_root( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, runtime_types::polkadot_runtime_parachains::paras::ParaLifecycle, (), (), ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( "Paras", "ParaLifecycles", Vec::new(), [ 2u8, 203u8, 32u8, 194u8, 76u8, 227u8, 250u8, 9u8, 168u8, 201u8, 171u8, 180u8, 18u8, 169u8, 206u8, 183u8, 48u8, 189u8, 204u8, 192u8, 237u8, 233u8, 156u8, 255u8, 102u8, 22u8, 101u8, 110u8, 194u8, 55u8, 118u8, 81u8, ], ) } #[doc = " The head-data of every registered para."] pub fn heads( &self, _0: impl ::std::borrow::Borrow, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, runtime_types::polkadot_parachain::primitives::HeadData, ::subxt::storage::address::Yes, (), ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( "Paras", "Heads", vec![::subxt::storage::address::make_static_storage_map_key( _0.borrow(), )], [ 222u8, 116u8, 180u8, 190u8, 172u8, 192u8, 174u8, 132u8, 225u8, 180u8, 119u8, 90u8, 5u8, 39u8, 92u8, 230u8, 116u8, 202u8, 92u8, 99u8, 135u8, 201u8, 10u8, 58u8, 55u8, 211u8, 209u8, 86u8, 93u8, 133u8, 99u8, 139u8, ], ) } #[doc = " The head-data of every registered para."] pub fn heads_root( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, runtime_types::polkadot_parachain::primitives::HeadData, (), (), ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( "Paras", "Heads", Vec::new(), [ 222u8, 116u8, 180u8, 190u8, 172u8, 192u8, 174u8, 132u8, 225u8, 180u8, 119u8, 90u8, 5u8, 39u8, 92u8, 230u8, 116u8, 202u8, 92u8, 99u8, 135u8, 201u8, 10u8, 58u8, 55u8, 211u8, 209u8, 86u8, 93u8, 133u8, 99u8, 139u8, ], ) } #[doc = " The validation code hash of every live para."] #[doc = ""] #[doc = " Corresponding code can be retrieved with [`CodeByHash`]."] pub fn current_code_hash( &self, _0: impl ::std::borrow::Borrow, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, runtime_types::polkadot_parachain::primitives::ValidationCodeHash, ::subxt::storage::address::Yes, (), ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( "Paras", "CurrentCodeHash", vec![::subxt::storage::address::make_static_storage_map_key( _0.borrow(), )], [ 251u8, 100u8, 30u8, 46u8, 191u8, 60u8, 45u8, 221u8, 218u8, 20u8, 154u8, 233u8, 211u8, 198u8, 151u8, 195u8, 99u8, 210u8, 126u8, 165u8, 240u8, 129u8, 183u8, 252u8, 104u8, 119u8, 38u8, 155u8, 150u8, 198u8, 127u8, 103u8, ], ) } #[doc = " The validation code hash of every live para."] #[doc = ""] #[doc = " Corresponding code can be retrieved with [`CodeByHash`]."] pub fn current_code_hash_root( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, runtime_types::polkadot_parachain::primitives::ValidationCodeHash, (), (), ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( "Paras", "CurrentCodeHash", Vec::new(), [ 251u8, 100u8, 30u8, 46u8, 191u8, 60u8, 45u8, 221u8, 218u8, 20u8, 154u8, 233u8, 211u8, 198u8, 151u8, 195u8, 99u8, 210u8, 126u8, 165u8, 240u8, 129u8, 183u8, 252u8, 104u8, 119u8, 38u8, 155u8, 150u8, 198u8, 127u8, 103u8, ], ) } #[doc = " Actual past code hash, indicated by the para id as well as the block number at which it"] #[doc = " became outdated."] #[doc = ""] #[doc = " Corresponding code can be retrieved with [`CodeByHash`]."] pub fn past_code_hash( &self, _0: impl ::std::borrow::Borrow, _1: impl ::std::borrow::Borrow<::core::primitive::u32>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, runtime_types::polkadot_parachain::primitives::ValidationCodeHash, ::subxt::storage::address::Yes, (), ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( "Paras", "PastCodeHash", vec![ ::subxt::storage::address::make_static_storage_map_key(_0.borrow()), ::subxt::storage::address::make_static_storage_map_key(_1.borrow()), ], [ 48u8, 123u8, 195u8, 75u8, 54u8, 236u8, 154u8, 107u8, 32u8, 98u8, 228u8, 233u8, 178u8, 217u8, 226u8, 17u8, 104u8, 124u8, 57u8, 96u8, 23u8, 61u8, 79u8, 5u8, 108u8, 16u8, 142u8, 180u8, 154u8, 121u8, 6u8, 163u8, ], ) } #[doc = " Actual past code hash, indicated by the para id as well as the block number at which it"] #[doc = " became outdated."] #[doc = ""] #[doc = " Corresponding code can be retrieved with [`CodeByHash`]."] pub fn past_code_hash_root( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, runtime_types::polkadot_parachain::primitives::ValidationCodeHash, (), (), ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( "Paras", "PastCodeHash", Vec::new(), [ 48u8, 123u8, 195u8, 75u8, 54u8, 236u8, 154u8, 107u8, 32u8, 98u8, 228u8, 233u8, 178u8, 217u8, 226u8, 17u8, 104u8, 124u8, 57u8, 96u8, 23u8, 61u8, 79u8, 5u8, 108u8, 16u8, 142u8, 180u8, 154u8, 121u8, 6u8, 163u8, ], ) } #[doc = " Past code of parachains. The parachains themselves may not be registered anymore,"] #[doc = " but we also keep their code on-chain for the same amount of time as outdated code"] #[doc = " to keep it available for approval checkers."] pub fn past_code_meta( &self, _0: impl ::std::borrow::Borrow, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, runtime_types::polkadot_runtime_parachains::paras::ParaPastCodeMeta< ::core::primitive::u32, >, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( "Paras", "PastCodeMeta", vec![::subxt::storage::address::make_static_storage_map_key( _0.borrow(), )], [ 22u8, 241u8, 113u8, 138u8, 217u8, 92u8, 78u8, 87u8, 80u8, 70u8, 195u8, 30u8, 109u8, 44u8, 254u8, 49u8, 168u8, 199u8, 185u8, 82u8, 243u8, 81u8, 33u8, 206u8, 254u8, 172u8, 234u8, 111u8, 248u8, 96u8, 242u8, 209u8, ], ) } #[doc = " Past code of parachains. The parachains themselves may not be registered anymore,"] #[doc = " but we also keep their code on-chain for the same amount of time as outdated code"] #[doc = " to keep it available for approval checkers."] pub fn past_code_meta_root( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, runtime_types::polkadot_runtime_parachains::paras::ParaPastCodeMeta< ::core::primitive::u32, >, (), ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( "Paras", "PastCodeMeta", Vec::new(), [ 22u8, 241u8, 113u8, 138u8, 217u8, 92u8, 78u8, 87u8, 80u8, 70u8, 195u8, 30u8, 109u8, 44u8, 254u8, 49u8, 168u8, 199u8, 185u8, 82u8, 243u8, 81u8, 33u8, 206u8, 254u8, 172u8, 234u8, 111u8, 248u8, 96u8, 242u8, 209u8, ], ) } #[doc = " Which paras have past code that needs pruning and the relay-chain block at which the code was replaced."] #[doc = " Note that this is the actual height of the included block, not the expected height at which the"] #[doc = " code upgrade would be applied, although they may be equal."] #[doc = " This is to ensure the entire acceptance period is covered, not an offset acceptance period starting"] #[doc = " from the time at which the parachain perceives a code upgrade as having occurred."] #[doc = " Multiple entries for a single para are permitted. Ordered ascending by block number."] pub fn past_code_pruning( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, ::std::vec::Vec<( runtime_types::polkadot_parachain::primitives::Id, ::core::primitive::u32, )>, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), > { ::subxt::storage::address::Address::new_static( "Paras", "PastCodePruning", vec![], [ 233u8, 75u8, 218u8, 58u8, 230u8, 96u8, 238u8, 79u8, 188u8, 124u8, 75u8, 41u8, 189u8, 188u8, 164u8, 34u8, 228u8, 231u8, 8u8, 74u8, 76u8, 4u8, 17u8, 226u8, 236u8, 19u8, 241u8, 54u8, 198u8, 17u8, 172u8, 150u8, ], ) } #[doc = " The block number at which the planned code change is expected for a para."] #[doc = " The change will be applied after the first parablock for this ID included which executes"] #[doc = " in the context of a relay chain block with a number >= `expected_at`."] pub fn future_code_upgrades( &self, _0: impl ::std::borrow::Borrow, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, ::core::primitive::u32, ::subxt::storage::address::Yes, (), ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( "Paras", "FutureCodeUpgrades", vec![::subxt::storage::address::make_static_storage_map_key( _0.borrow(), )], [ 74u8, 158u8, 213u8, 211u8, 240u8, 184u8, 91u8, 207u8, 242u8, 49u8, 211u8, 128u8, 106u8, 115u8, 32u8, 195u8, 186u8, 168u8, 207u8, 174u8, 150u8, 120u8, 161u8, 123u8, 80u8, 123u8, 120u8, 109u8, 239u8, 97u8, 177u8, 206u8, ], ) } #[doc = " The block number at which the planned code change is expected for a para."] #[doc = " The change will be applied after the first parablock for this ID included which executes"] #[doc = " in the context of a relay chain block with a number >= `expected_at`."] pub fn future_code_upgrades_root( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, ::core::primitive::u32, (), (), ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( "Paras", "FutureCodeUpgrades", Vec::new(), [ 74u8, 158u8, 213u8, 211u8, 240u8, 184u8, 91u8, 207u8, 242u8, 49u8, 211u8, 128u8, 106u8, 115u8, 32u8, 195u8, 186u8, 168u8, 207u8, 174u8, 150u8, 120u8, 161u8, 123u8, 80u8, 123u8, 120u8, 109u8, 239u8, 97u8, 177u8, 206u8, ], ) } #[doc = " The actual future code hash of a para."] #[doc = ""] #[doc = " Corresponding code can be retrieved with [`CodeByHash`]."] pub fn future_code_hash( &self, _0: impl ::std::borrow::Borrow, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, runtime_types::polkadot_parachain::primitives::ValidationCodeHash, ::subxt::storage::address::Yes, (), ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( "Paras", "FutureCodeHash", vec![::subxt::storage::address::make_static_storage_map_key( _0.borrow(), )], [ 62u8, 238u8, 183u8, 12u8, 197u8, 119u8, 163u8, 239u8, 192u8, 228u8, 110u8, 58u8, 128u8, 223u8, 32u8, 137u8, 109u8, 127u8, 41u8, 83u8, 91u8, 98u8, 156u8, 118u8, 96u8, 147u8, 16u8, 31u8, 5u8, 92u8, 227u8, 230u8, ], ) } #[doc = " The actual future code hash of a para."] #[doc = ""] #[doc = " Corresponding code can be retrieved with [`CodeByHash`]."] pub fn future_code_hash_root( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, runtime_types::polkadot_parachain::primitives::ValidationCodeHash, (), (), ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( "Paras", "FutureCodeHash", Vec::new(), [ 62u8, 238u8, 183u8, 12u8, 197u8, 119u8, 163u8, 239u8, 192u8, 228u8, 110u8, 58u8, 128u8, 223u8, 32u8, 137u8, 109u8, 127u8, 41u8, 83u8, 91u8, 98u8, 156u8, 118u8, 96u8, 147u8, 16u8, 31u8, 5u8, 92u8, 227u8, 230u8, ], ) } #[doc = " This is used by the relay-chain to communicate to a parachain a go-ahead with in the upgrade procedure."] #[doc = ""] #[doc = " This value is absent when there are no upgrades scheduled or during the time the relay chain"] #[doc = " performs the checks. It is set at the first relay-chain block when the corresponding parachain"] #[doc = " can switch its upgrade function. As soon as the parachain's block is included, the value"] #[doc = " gets reset to `None`."] #[doc = ""] #[doc = " NOTE that this field is used by parachains via merkle storage proofs, therefore changing"] #[doc = " the format will require migration of parachains."] pub fn upgrade_go_ahead_signal( &self, _0: impl ::std::borrow::Borrow, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, runtime_types::polkadot_primitives::v4::UpgradeGoAhead, ::subxt::storage::address::Yes, (), ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( "Paras", "UpgradeGoAheadSignal", vec![::subxt::storage::address::make_static_storage_map_key( _0.borrow(), )], [ 41u8, 80u8, 120u8, 6u8, 98u8, 85u8, 36u8, 37u8, 170u8, 189u8, 56u8, 127u8, 155u8, 180u8, 112u8, 195u8, 135u8, 214u8, 235u8, 87u8, 197u8, 247u8, 125u8, 26u8, 232u8, 82u8, 250u8, 90u8, 126u8, 106u8, 62u8, 217u8, ], ) } #[doc = " This is used by the relay-chain to communicate to a parachain a go-ahead with in the upgrade procedure."] #[doc = ""] #[doc = " This value is absent when there are no upgrades scheduled or during the time the relay chain"] #[doc = " performs the checks. It is set at the first relay-chain block when the corresponding parachain"] #[doc = " can switch its upgrade function. As soon as the parachain's block is included, the value"] #[doc = " gets reset to `None`."] #[doc = ""] #[doc = " NOTE that this field is used by parachains via merkle storage proofs, therefore changing"] #[doc = " the format will require migration of parachains."] pub fn upgrade_go_ahead_signal_root( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, runtime_types::polkadot_primitives::v4::UpgradeGoAhead, (), (), ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( "Paras", "UpgradeGoAheadSignal", Vec::new(), [ 41u8, 80u8, 120u8, 6u8, 98u8, 85u8, 36u8, 37u8, 170u8, 189u8, 56u8, 127u8, 155u8, 180u8, 112u8, 195u8, 135u8, 214u8, 235u8, 87u8, 197u8, 247u8, 125u8, 26u8, 232u8, 82u8, 250u8, 90u8, 126u8, 106u8, 62u8, 217u8, ], ) } #[doc = " This is used by the relay-chain to communicate that there are restrictions for performing"] #[doc = " an upgrade for this parachain."] #[doc = ""] #[doc = " This may be a because the parachain waits for the upgrade cooldown to expire. Another"] #[doc = " potential use case is when we want to perform some maintenance (such as storage migration)"] #[doc = " we could restrict upgrades to make the process simpler."] #[doc = ""] #[doc = " NOTE that this field is used by parachains via merkle storage proofs, therefore changing"] #[doc = " the format will require migration of parachains."] pub fn upgrade_restriction_signal( &self, _0: impl ::std::borrow::Borrow, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, runtime_types::polkadot_primitives::v4::UpgradeRestriction, ::subxt::storage::address::Yes, (), ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( "Paras", "UpgradeRestrictionSignal", vec![::subxt::storage::address::make_static_storage_map_key( _0.borrow(), )], [ 158u8, 105u8, 62u8, 252u8, 149u8, 145u8, 34u8, 92u8, 119u8, 204u8, 46u8, 96u8, 117u8, 183u8, 134u8, 20u8, 172u8, 243u8, 145u8, 113u8, 74u8, 119u8, 96u8, 107u8, 129u8, 109u8, 96u8, 143u8, 77u8, 14u8, 56u8, 117u8, ], ) } #[doc = " This is used by the relay-chain to communicate that there are restrictions for performing"] #[doc = " an upgrade for this parachain."] #[doc = ""] #[doc = " This may be a because the parachain waits for the upgrade cooldown to expire. Another"] #[doc = " potential use case is when we want to perform some maintenance (such as storage migration)"] #[doc = " we could restrict upgrades to make the process simpler."] #[doc = ""] #[doc = " NOTE that this field is used by parachains via merkle storage proofs, therefore changing"] #[doc = " the format will require migration of parachains."] pub fn upgrade_restriction_signal_root( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, runtime_types::polkadot_primitives::v4::UpgradeRestriction, (), (), ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( "Paras", "UpgradeRestrictionSignal", Vec::new(), [ 158u8, 105u8, 62u8, 252u8, 149u8, 145u8, 34u8, 92u8, 119u8, 204u8, 46u8, 96u8, 117u8, 183u8, 134u8, 20u8, 172u8, 243u8, 145u8, 113u8, 74u8, 119u8, 96u8, 107u8, 129u8, 109u8, 96u8, 143u8, 77u8, 14u8, 56u8, 117u8, ], ) } #[doc = " The list of parachains that are awaiting for their upgrade restriction to cooldown."] #[doc = ""] #[doc = " Ordered ascending by block number."] pub fn upgrade_cooldowns( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, ::std::vec::Vec<( runtime_types::polkadot_parachain::primitives::Id, ::core::primitive::u32, )>, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), > { ::subxt::storage::address::Address::new_static( "Paras", "UpgradeCooldowns", vec![], [ 172u8, 3u8, 71u8, 137u8, 150u8, 36u8, 119u8, 181u8, 252u8, 204u8, 172u8, 28u8, 107u8, 38u8, 182u8, 165u8, 151u8, 55u8, 1u8, 174u8, 89u8, 203u8, 232u8, 91u8, 219u8, 167u8, 110u8, 108u8, 146u8, 235u8, 11u8, 14u8, ], ) } #[doc = " The list of upcoming code upgrades. Each item is a pair of which para performs a code"] #[doc = " upgrade and at which relay-chain block it is expected at."] #[doc = ""] #[doc = " Ordered ascending by block number."] pub fn upcoming_upgrades( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, ::std::vec::Vec<( runtime_types::polkadot_parachain::primitives::Id, ::core::primitive::u32, )>, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), > { ::subxt::storage::address::Address::new_static( "Paras", "UpcomingUpgrades", vec![], [ 28u8, 180u8, 64u8, 56u8, 215u8, 181u8, 35u8, 86u8, 225u8, 193u8, 58u8, 246u8, 178u8, 110u8, 175u8, 173u8, 130u8, 14u8, 7u8, 131u8, 195u8, 10u8, 251u8, 105u8, 56u8, 110u8, 46u8, 162u8, 156u8, 198u8, 125u8, 45u8, ], ) } #[doc = " The actions to perform during the start of a specific session index."] pub fn actions_queue( &self, _0: impl ::std::borrow::Borrow<::core::primitive::u32>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, ::std::vec::Vec, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( "Paras", "ActionsQueue", vec![::subxt::storage::address::make_static_storage_map_key( _0.borrow(), )], [ 85u8, 212u8, 98u8, 204u8, 36u8, 203u8, 119u8, 90u8, 107u8, 212u8, 182u8, 147u8, 162u8, 111u8, 226u8, 47u8, 178u8, 129u8, 74u8, 219u8, 62u8, 67u8, 213u8, 134u8, 140u8, 51u8, 232u8, 211u8, 171u8, 103u8, 172u8, 165u8, ], ) } #[doc = " The actions to perform during the start of a specific session index."] pub fn actions_queue_root( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, ::std::vec::Vec, (), ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( "Paras", "ActionsQueue", Vec::new(), [ 85u8, 212u8, 98u8, 204u8, 36u8, 203u8, 119u8, 90u8, 107u8, 212u8, 182u8, 147u8, 162u8, 111u8, 226u8, 47u8, 178u8, 129u8, 74u8, 219u8, 62u8, 67u8, 213u8, 134u8, 140u8, 51u8, 232u8, 211u8, 171u8, 103u8, 172u8, 165u8, ], ) } #[doc = " Upcoming paras instantiation arguments."] #[doc = ""] #[doc = " NOTE that after PVF pre-checking is enabled the para genesis arg will have it's code set"] #[doc = " to empty. Instead, the code will be saved into the storage right away via `CodeByHash`."] pub fn upcoming_paras_genesis( &self, _0: impl ::std::borrow::Borrow, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, runtime_types::polkadot_runtime_parachains::paras::ParaGenesisArgs, ::subxt::storage::address::Yes, (), ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( "Paras", "UpcomingParasGenesis", vec![::subxt::storage::address::make_static_storage_map_key( _0.borrow(), )], [ 205u8, 192u8, 117u8, 77u8, 22u8, 165u8, 45u8, 181u8, 8u8, 109u8, 109u8, 203u8, 182u8, 214u8, 200u8, 31u8, 24u8, 148u8, 51u8, 240u8, 231u8, 152u8, 7u8, 151u8, 22u8, 188u8, 150u8, 168u8, 109u8, 158u8, 3u8, 189u8, ], ) } #[doc = " Upcoming paras instantiation arguments."] #[doc = ""] #[doc = " NOTE that after PVF pre-checking is enabled the para genesis arg will have it's code set"] #[doc = " to empty. Instead, the code will be saved into the storage right away via `CodeByHash`."] pub fn upcoming_paras_genesis_root( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, runtime_types::polkadot_runtime_parachains::paras::ParaGenesisArgs, (), (), ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( "Paras", "UpcomingParasGenesis", Vec::new(), [ 205u8, 192u8, 117u8, 77u8, 22u8, 165u8, 45u8, 181u8, 8u8, 109u8, 109u8, 203u8, 182u8, 214u8, 200u8, 31u8, 24u8, 148u8, 51u8, 240u8, 231u8, 152u8, 7u8, 151u8, 22u8, 188u8, 150u8, 168u8, 109u8, 158u8, 3u8, 189u8, ], ) } #[doc = " The number of reference on the validation code in [`CodeByHash`] storage."] pub fn code_by_hash_refs( &self, _0: impl ::std::borrow::Borrow< runtime_types::polkadot_parachain::primitives::ValidationCodeHash, >, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, ::core::primitive::u32, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( "Paras", "CodeByHashRefs", vec![::subxt::storage::address::make_static_storage_map_key( _0.borrow(), )], [ 47u8, 50u8, 103u8, 161u8, 130u8, 252u8, 157u8, 35u8, 174u8, 37u8, 102u8, 60u8, 195u8, 30u8, 164u8, 203u8, 67u8, 129u8, 107u8, 181u8, 166u8, 205u8, 230u8, 91u8, 36u8, 187u8, 253u8, 150u8, 39u8, 168u8, 223u8, 16u8, ], ) } #[doc = " The number of reference on the validation code in [`CodeByHash`] storage."] pub fn code_by_hash_refs_root( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, ::core::primitive::u32, (), ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( "Paras", "CodeByHashRefs", Vec::new(), [ 47u8, 50u8, 103u8, 161u8, 130u8, 252u8, 157u8, 35u8, 174u8, 37u8, 102u8, 60u8, 195u8, 30u8, 164u8, 203u8, 67u8, 129u8, 107u8, 181u8, 166u8, 205u8, 230u8, 91u8, 36u8, 187u8, 253u8, 150u8, 39u8, 168u8, 223u8, 16u8, ], ) } #[doc = " Validation code stored by its hash."] #[doc = ""] #[doc = " This storage is consistent with [`FutureCodeHash`], [`CurrentCodeHash`] and"] #[doc = " [`PastCodeHash`]."] pub fn code_by_hash( &self, _0: impl ::std::borrow::Borrow< runtime_types::polkadot_parachain::primitives::ValidationCodeHash, >, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, runtime_types::polkadot_parachain::primitives::ValidationCode, ::subxt::storage::address::Yes, (), ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( "Paras", "CodeByHash", vec![::subxt::storage::address::make_static_storage_map_key( _0.borrow(), )], [ 207u8, 173u8, 182u8, 146u8, 179u8, 77u8, 30u8, 80u8, 62u8, 17u8, 87u8, 97u8, 105u8, 156u8, 71u8, 80u8, 190u8, 81u8, 88u8, 8u8, 159u8, 142u8, 106u8, 73u8, 220u8, 11u8, 53u8, 151u8, 234u8, 205u8, 190u8, 187u8, ], ) } #[doc = " Validation code stored by its hash."] #[doc = ""] #[doc = " This storage is consistent with [`FutureCodeHash`], [`CurrentCodeHash`] and"] #[doc = " [`PastCodeHash`]."] pub fn code_by_hash_root( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, runtime_types::polkadot_parachain::primitives::ValidationCode, (), (), ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( "Paras", "CodeByHash", Vec::new(), [ 207u8, 173u8, 182u8, 146u8, 179u8, 77u8, 30u8, 80u8, 62u8, 17u8, 87u8, 97u8, 105u8, 156u8, 71u8, 80u8, 190u8, 81u8, 88u8, 8u8, 159u8, 142u8, 106u8, 73u8, 220u8, 11u8, 53u8, 151u8, 234u8, 205u8, 190u8, 187u8, ], ) } } } pub mod constants { use super::runtime_types; pub struct ConstantsApi; impl ConstantsApi { pub fn unsigned_priority( &self, ) -> ::subxt::constants::Address<::core::primitive::u64> { ::subxt::constants::Address::new_static( "Paras", "UnsignedPriority", [ 128u8, 214u8, 205u8, 242u8, 181u8, 142u8, 124u8, 231u8, 190u8, 146u8, 59u8, 226u8, 157u8, 101u8, 103u8, 117u8, 249u8, 65u8, 18u8, 191u8, 103u8, 119u8, 53u8, 85u8, 81u8, 96u8, 220u8, 42u8, 184u8, 239u8, 42u8, 246u8, ], ) } } } } pub mod initializer { use super::root_mod; use super::runtime_types; #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] pub type Call = runtime_types::polkadot_runtime_parachains::initializer::pallet::Call; pub mod calls { use super::root_mod; use super::runtime_types; type DispatchError = runtime_types::sp_runtime::DispatchError; pub mod types { use super::runtime_types; #[derive( :: subxt :: ext :: codec :: CompactAs, :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ForceApprove { pub up_to: ::core::primitive::u32, } impl ::subxt::blocks::StaticExtrinsic for ForceApprove { const PALLET: &'static str = "Initializer"; const CALL: &'static str = "force_approve"; } } pub struct TransactionApi; impl TransactionApi { #[doc = "Issue a signal to the consensus engine to forcibly act as though all parachain"] #[doc = "blocks in all relay chain blocks up to and including the given number in the current"] #[doc = "chain are valid and should be finalized."] pub fn force_approve( &self, up_to: ::core::primitive::u32, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Initializer", "force_approve", types::ForceApprove { up_to }, [ 232u8, 166u8, 27u8, 229u8, 157u8, 240u8, 18u8, 137u8, 5u8, 159u8, 179u8, 239u8, 218u8, 41u8, 181u8, 42u8, 159u8, 243u8, 246u8, 214u8, 227u8, 77u8, 58u8, 70u8, 241u8, 114u8, 175u8, 124u8, 77u8, 102u8, 105u8, 199u8, ], ) } } } pub mod storage { use super::runtime_types; pub struct StorageApi; impl StorageApi { #[doc = " Whether the parachains modules have been initialized within this block."] #[doc = ""] #[doc = " Semantically a `bool`, but this guarantees it should never hit the trie,"] #[doc = " as this is cleared in `on_finalize` and Frame optimizes `None` values to be empty values."] #[doc = ""] #[doc = " As a `bool`, `set(false)` and `remove()` both lead to the next `get()` being false, but one of"] #[doc = " them writes to the trie and one does not. This confusion makes `Option<()>` more suitable for"] #[doc = " the semantics of this variable."] pub fn has_initialized( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, (), ::subxt::storage::address::Yes, (), (), > { ::subxt::storage::address::Address::new_static( "Initializer", "HasInitialized", vec![], [ 156u8, 208u8, 212u8, 86u8, 105u8, 148u8, 252u8, 11u8, 140u8, 67u8, 231u8, 86u8, 1u8, 147u8, 178u8, 79u8, 27u8, 249u8, 137u8, 103u8, 178u8, 50u8, 114u8, 157u8, 239u8, 86u8, 89u8, 233u8, 86u8, 58u8, 37u8, 67u8, ], ) } #[doc = " Buffered session changes along with the block number at which they should be applied."] #[doc = ""] #[doc = " Typically this will be empty or one element long. Apart from that this item never hits"] #[doc = " the storage."] #[doc = ""] #[doc = " However this is a `Vec` regardless to handle various edge cases that may occur at runtime"] #[doc = " upgrade boundaries or if governance intervenes."] pub fn buffered_session_changes (& self ,) -> :: subxt :: storage :: address :: Address :: < :: subxt :: storage :: address :: StaticStorageMapKey , :: std :: vec :: Vec < runtime_types :: polkadot_runtime_parachains :: initializer :: BufferedSessionChange > , :: subxt :: storage :: address :: Yes , :: subxt :: storage :: address :: Yes , () >{ ::subxt::storage::address::Address::new_static( "Initializer", "BufferedSessionChanges", vec![], [ 96u8, 139u8, 32u8, 156u8, 180u8, 12u8, 6u8, 63u8, 221u8, 11u8, 123u8, 196u8, 31u8, 210u8, 45u8, 21u8, 117u8, 69u8, 139u8, 230u8, 33u8, 144u8, 65u8, 254u8, 2u8, 161u8, 173u8, 194u8, 30u8, 67u8, 192u8, 82u8, ], ) } } } } pub mod dmp { use super::root_mod; use super::runtime_types; pub mod storage { use super::runtime_types; pub struct StorageApi; impl StorageApi { #[doc = " The downward messages addressed for a certain para."] pub fn downward_message_queues( &self, _0: impl ::std::borrow::Borrow, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, ::std::vec::Vec< runtime_types::polkadot_core_primitives::InboundDownwardMessage< ::core::primitive::u32, >, >, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( "Dmp", "DownwardMessageQueues", vec![::subxt::storage::address::make_static_storage_map_key( _0.borrow(), )], [ 135u8, 63u8, 55u8, 101u8, 38u8, 53u8, 188u8, 5u8, 228u8, 49u8, 163u8, 99u8, 129u8, 95u8, 93u8, 205u8, 13u8, 226u8, 22u8, 106u8, 30u8, 187u8, 127u8, 20u8, 164u8, 168u8, 0u8, 25u8, 26u8, 250u8, 13u8, 140u8, ], ) } #[doc = " The downward messages addressed for a certain para."] pub fn downward_message_queues_root( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, ::std::vec::Vec< runtime_types::polkadot_core_primitives::InboundDownwardMessage< ::core::primitive::u32, >, >, (), ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( "Dmp", "DownwardMessageQueues", Vec::new(), [ 135u8, 63u8, 55u8, 101u8, 38u8, 53u8, 188u8, 5u8, 228u8, 49u8, 163u8, 99u8, 129u8, 95u8, 93u8, 205u8, 13u8, 226u8, 22u8, 106u8, 30u8, 187u8, 127u8, 20u8, 164u8, 168u8, 0u8, 25u8, 26u8, 250u8, 13u8, 140u8, ], ) } #[doc = " A mapping that stores the downward message queue MQC head for each para."] #[doc = ""] #[doc = " Each link in this chain has a form:"] #[doc = " `(prev_head, B, H(M))`, where"] #[doc = " - `prev_head`: is the previous head hash or zero if none."] #[doc = " - `B`: is the relay-chain block number in which a message was appended."] #[doc = " - `H(M)`: is the hash of the message being appended."] pub fn downward_message_queue_heads( &self, _0: impl ::std::borrow::Borrow, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, ::subxt::utils::H256, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( "Dmp", "DownwardMessageQueueHeads", vec![::subxt::storage::address::make_static_storage_map_key( _0.borrow(), )], [ 135u8, 165u8, 240u8, 0u8, 25u8, 110u8, 9u8, 108u8, 251u8, 225u8, 109u8, 184u8, 90u8, 132u8, 9u8, 151u8, 12u8, 118u8, 153u8, 212u8, 140u8, 205u8, 94u8, 98u8, 110u8, 167u8, 155u8, 43u8, 61u8, 35u8, 52u8, 56u8, ], ) } #[doc = " A mapping that stores the downward message queue MQC head for each para."] #[doc = ""] #[doc = " Each link in this chain has a form:"] #[doc = " `(prev_head, B, H(M))`, where"] #[doc = " - `prev_head`: is the previous head hash or zero if none."] #[doc = " - `B`: is the relay-chain block number in which a message was appended."] #[doc = " - `H(M)`: is the hash of the message being appended."] pub fn downward_message_queue_heads_root( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, ::subxt::utils::H256, (), ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( "Dmp", "DownwardMessageQueueHeads", Vec::new(), [ 135u8, 165u8, 240u8, 0u8, 25u8, 110u8, 9u8, 108u8, 251u8, 225u8, 109u8, 184u8, 90u8, 132u8, 9u8, 151u8, 12u8, 118u8, 153u8, 212u8, 140u8, 205u8, 94u8, 98u8, 110u8, 167u8, 155u8, 43u8, 61u8, 35u8, 52u8, 56u8, ], ) } #[doc = " The number to multiply the base delivery fee by."] pub fn delivery_fee_factor( &self, _0: impl ::std::borrow::Borrow, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, runtime_types::sp_arithmetic::fixed_point::FixedU128, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( "Dmp", "DeliveryFeeFactor", vec![::subxt::storage::address::make_static_storage_map_key( _0.borrow(), )], [ 43u8, 5u8, 63u8, 235u8, 115u8, 155u8, 130u8, 27u8, 75u8, 216u8, 177u8, 135u8, 203u8, 147u8, 167u8, 95u8, 208u8, 188u8, 25u8, 14u8, 84u8, 63u8, 116u8, 41u8, 148u8, 110u8, 115u8, 215u8, 196u8, 36u8, 75u8, 102u8, ], ) } #[doc = " The number to multiply the base delivery fee by."] pub fn delivery_fee_factor_root( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, runtime_types::sp_arithmetic::fixed_point::FixedU128, (), ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( "Dmp", "DeliveryFeeFactor", Vec::new(), [ 43u8, 5u8, 63u8, 235u8, 115u8, 155u8, 130u8, 27u8, 75u8, 216u8, 177u8, 135u8, 203u8, 147u8, 167u8, 95u8, 208u8, 188u8, 25u8, 14u8, 84u8, 63u8, 116u8, 41u8, 148u8, 110u8, 115u8, 215u8, 196u8, 36u8, 75u8, 102u8, ], ) } } } } pub mod ump { use super::root_mod; use super::runtime_types; #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] pub type Error = runtime_types::polkadot_runtime_parachains::ump::pallet::Error; #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] pub type Call = runtime_types::polkadot_runtime_parachains::ump::pallet::Call; pub mod calls { use super::root_mod; use super::runtime_types; type DispatchError = runtime_types::sp_runtime::DispatchError; pub mod types { use super::runtime_types; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ServiceOverweight { pub index: ::core::primitive::u64, pub weight_limit: runtime_types::sp_weights::weight_v2::Weight, } impl ::subxt::blocks::StaticExtrinsic for ServiceOverweight { const PALLET: &'static str = "Ump"; const CALL: &'static str = "service_overweight"; } } pub struct TransactionApi; impl TransactionApi { #[doc = "Service a single overweight upward message."] #[doc = ""] #[doc = "- `origin`: Must pass `ExecuteOverweightOrigin`."] #[doc = "- `index`: The index of the overweight message to service."] #[doc = "- `weight_limit`: The amount of weight that message execution may take."] #[doc = ""] #[doc = "Errors:"] #[doc = "- `UnknownMessageIndex`: Message of `index` is unknown."] #[doc = "- `WeightOverLimit`: Message execution may use greater than `weight_limit`."] #[doc = ""] #[doc = "Events:"] #[doc = "- `OverweightServiced`: On success."] pub fn service_overweight( &self, index: ::core::primitive::u64, weight_limit: runtime_types::sp_weights::weight_v2::Weight, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Ump", "service_overweight", types::ServiceOverweight { index, weight_limit, }, [ 191u8, 141u8, 229u8, 214u8, 12u8, 111u8, 251u8, 4u8, 8u8, 118u8, 217u8, 193u8, 106u8, 182u8, 233u8, 130u8, 149u8, 201u8, 245u8, 3u8, 81u8, 217u8, 33u8, 24u8, 198u8, 138u8, 206u8, 141u8, 105u8, 31u8, 81u8, 9u8, ], ) } } } #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] pub type Event = runtime_types::polkadot_runtime_parachains::ump::pallet::Event; pub mod events { use super::runtime_types; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Upward message is invalid XCM."] #[doc = "\\[ id \\]"] pub struct InvalidFormat(pub [::core::primitive::u8; 32usize]); impl ::subxt::events::StaticEvent for InvalidFormat { const PALLET: &'static str = "Ump"; const EVENT: &'static str = "InvalidFormat"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Upward message is unsupported version of XCM."] #[doc = "\\[ id \\]"] pub struct UnsupportedVersion(pub [::core::primitive::u8; 32usize]); impl ::subxt::events::StaticEvent for UnsupportedVersion { const PALLET: &'static str = "Ump"; const EVENT: &'static str = "UnsupportedVersion"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Upward message executed with the given outcome."] #[doc = "\\[ id, outcome \\]"] pub struct ExecutedUpward( pub [::core::primitive::u8; 32usize], pub runtime_types::xcm::v3::traits::Outcome, ); impl ::subxt::events::StaticEvent for ExecutedUpward { const PALLET: &'static str = "Ump"; const EVENT: &'static str = "ExecutedUpward"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "The weight limit for handling upward messages was reached."] #[doc = "\\[ id, remaining, required \\]"] pub struct WeightExhausted( pub [::core::primitive::u8; 32usize], pub runtime_types::sp_weights::weight_v2::Weight, pub runtime_types::sp_weights::weight_v2::Weight, ); impl ::subxt::events::StaticEvent for WeightExhausted { const PALLET: &'static str = "Ump"; const EVENT: &'static str = "WeightExhausted"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Some upward messages have been received and will be processed."] #[doc = "\\[ para, count, size \\]"] pub struct UpwardMessagesReceived( pub runtime_types::polkadot_parachain::primitives::Id, pub ::core::primitive::u32, pub ::core::primitive::u32, ); impl ::subxt::events::StaticEvent for UpwardMessagesReceived { const PALLET: &'static str = "Ump"; const EVENT: &'static str = "UpwardMessagesReceived"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "The weight budget was exceeded for an individual upward message."] #[doc = ""] #[doc = "This message can be later dispatched manually using `service_overweight` dispatchable"] #[doc = "using the assigned `overweight_index`."] #[doc = ""] #[doc = "\\[ para, id, overweight_index, required \\]"] pub struct OverweightEnqueued( pub runtime_types::polkadot_parachain::primitives::Id, pub [::core::primitive::u8; 32usize], pub ::core::primitive::u64, pub runtime_types::sp_weights::weight_v2::Weight, ); impl ::subxt::events::StaticEvent for OverweightEnqueued { const PALLET: &'static str = "Ump"; const EVENT: &'static str = "OverweightEnqueued"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Upward message from the overweight queue was executed with the given actual weight"] #[doc = "used."] #[doc = ""] #[doc = "\\[ overweight_index, used \\]"] pub struct OverweightServiced( pub ::core::primitive::u64, pub runtime_types::sp_weights::weight_v2::Weight, ); impl ::subxt::events::StaticEvent for OverweightServiced { const PALLET: &'static str = "Ump"; const EVENT: &'static str = "OverweightServiced"; } } pub mod storage { use super::runtime_types; pub struct StorageApi; impl StorageApi { #[doc = " The messages waiting to be handled by the relay-chain originating from a certain parachain."] #[doc = ""] #[doc = " Note that some upward messages might have been already processed by the inclusion logic. E.g."] #[doc = " channel management messages."] #[doc = ""] #[doc = " The messages are processed in FIFO order."] pub fn relay_dispatch_queues( &self, _0: impl ::std::borrow::Borrow, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, ::std::vec::Vec<::std::vec::Vec<::core::primitive::u8>>, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( "Ump", "RelayDispatchQueues", vec![::subxt::storage::address::make_static_storage_map_key( _0.borrow(), )], [ 117u8, 144u8, 164u8, 105u8, 205u8, 216u8, 78u8, 58u8, 222u8, 31u8, 134u8, 149u8, 46u8, 41u8, 152u8, 160u8, 166u8, 144u8, 206u8, 161u8, 216u8, 196u8, 3u8, 34u8, 79u8, 78u8, 229u8, 15u8, 106u8, 23u8, 252u8, 206u8, ], ) } #[doc = " The messages waiting to be handled by the relay-chain originating from a certain parachain."] #[doc = ""] #[doc = " Note that some upward messages might have been already processed by the inclusion logic. E.g."] #[doc = " channel management messages."] #[doc = ""] #[doc = " The messages are processed in FIFO order."] pub fn relay_dispatch_queues_root( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, ::std::vec::Vec<::std::vec::Vec<::core::primitive::u8>>, (), ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( "Ump", "RelayDispatchQueues", Vec::new(), [ 117u8, 144u8, 164u8, 105u8, 205u8, 216u8, 78u8, 58u8, 222u8, 31u8, 134u8, 149u8, 46u8, 41u8, 152u8, 160u8, 166u8, 144u8, 206u8, 161u8, 216u8, 196u8, 3u8, 34u8, 79u8, 78u8, 229u8, 15u8, 106u8, 23u8, 252u8, 206u8, ], ) } #[doc = " Size of the dispatch queues. Caches sizes of the queues in `RelayDispatchQueue`."] #[doc = ""] #[doc = " First item in the tuple is the count of messages and second"] #[doc = " is the total length (in bytes) of the message payloads."] #[doc = ""] #[doc = " Note that this is an auxiliary mapping: it's possible to tell the byte size and the number of"] #[doc = " messages only looking at `RelayDispatchQueues`. This mapping is separate to avoid the cost of"] #[doc = " loading the whole message queue if only the total size and count are required."] #[doc = ""] #[doc = " Invariant:"] #[doc = " - The set of keys should exactly match the set of keys of `RelayDispatchQueues`."] pub fn relay_dispatch_queue_size( &self, _0: impl ::std::borrow::Borrow, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, (::core::primitive::u32, ::core::primitive::u32), ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( "Ump", "RelayDispatchQueueSize", vec![::subxt::storage::address::make_static_storage_map_key( _0.borrow(), )], [ 246u8, 251u8, 184u8, 161u8, 3u8, 254u8, 219u8, 108u8, 106u8, 140u8, 163u8, 118u8, 188u8, 62u8, 148u8, 157u8, 94u8, 70u8, 133u8, 142u8, 232u8, 152u8, 98u8, 131u8, 241u8, 87u8, 137u8, 61u8, 136u8, 21u8, 153u8, 50u8, ], ) } #[doc = " Size of the dispatch queues. Caches sizes of the queues in `RelayDispatchQueue`."] #[doc = ""] #[doc = " First item in the tuple is the count of messages and second"] #[doc = " is the total length (in bytes) of the message payloads."] #[doc = ""] #[doc = " Note that this is an auxiliary mapping: it's possible to tell the byte size and the number of"] #[doc = " messages only looking at `RelayDispatchQueues`. This mapping is separate to avoid the cost of"] #[doc = " loading the whole message queue if only the total size and count are required."] #[doc = ""] #[doc = " Invariant:"] #[doc = " - The set of keys should exactly match the set of keys of `RelayDispatchQueues`."] pub fn relay_dispatch_queue_size_root( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, (::core::primitive::u32, ::core::primitive::u32), (), ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( "Ump", "RelayDispatchQueueSize", Vec::new(), [ 246u8, 251u8, 184u8, 161u8, 3u8, 254u8, 219u8, 108u8, 106u8, 140u8, 163u8, 118u8, 188u8, 62u8, 148u8, 157u8, 94u8, 70u8, 133u8, 142u8, 232u8, 152u8, 98u8, 131u8, 241u8, 87u8, 137u8, 61u8, 136u8, 21u8, 153u8, 50u8, ], ) } #[doc = " The ordered list of `ParaId`s that have a `RelayDispatchQueue` entry."] #[doc = ""] #[doc = " Invariant:"] #[doc = " - The set of items from this vector should be exactly the set of the keys in"] #[doc = " `RelayDispatchQueues` and `RelayDispatchQueueSize`."] pub fn needs_dispatch( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, ::std::vec::Vec, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), > { ::subxt::storage::address::Address::new_static( "Ump", "NeedsDispatch", vec![], [ 50u8, 216u8, 202u8, 249u8, 219u8, 62u8, 14u8, 219u8, 16u8, 53u8, 78u8, 189u8, 94u8, 99u8, 210u8, 208u8, 122u8, 87u8, 105u8, 3u8, 148u8, 12u8, 90u8, 60u8, 86u8, 106u8, 56u8, 249u8, 1u8, 21u8, 238u8, 176u8, ], ) } #[doc = " This is the para that gets will get dispatched first during the next upward dispatchable queue"] #[doc = " execution round."] #[doc = ""] #[doc = " Invariant:"] #[doc = " - If `Some(para)`, then `para` must be present in `NeedsDispatch`."] pub fn next_dispatch_round_start_with( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, runtime_types::polkadot_parachain::primitives::Id, ::subxt::storage::address::Yes, (), (), > { ::subxt::storage::address::Address::new_static( "Ump", "NextDispatchRoundStartWith", vec![], [ 162u8, 216u8, 216u8, 238u8, 153u8, 44u8, 124u8, 137u8, 170u8, 63u8, 254u8, 73u8, 219u8, 221u8, 130u8, 130u8, 63u8, 94u8, 144u8, 250u8, 168u8, 222u8, 7u8, 17u8, 197u8, 32u8, 104u8, 83u8, 60u8, 18u8, 46u8, 243u8, ], ) } #[doc = " The messages that exceeded max individual message weight budget."] #[doc = ""] #[doc = " These messages stay there until manually dispatched."] pub fn overweight( &self, _0: impl ::std::borrow::Borrow<::core::primitive::u64>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, ( runtime_types::polkadot_parachain::primitives::Id, ::std::vec::Vec<::core::primitive::u8>, ), ::subxt::storage::address::Yes, (), ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( "Ump", "Overweight", vec![::subxt::storage::address::make_static_storage_map_key( _0.borrow(), )], [ 99u8, 253u8, 98u8, 255u8, 15u8, 188u8, 128u8, 101u8, 165u8, 13u8, 95u8, 43u8, 18u8, 20u8, 119u8, 235u8, 92u8, 145u8, 78u8, 10u8, 35u8, 88u8, 23u8, 255u8, 208u8, 237u8, 204u8, 203u8, 207u8, 185u8, 214u8, 37u8, ], ) } #[doc = " The messages that exceeded max individual message weight budget."] #[doc = ""] #[doc = " These messages stay there until manually dispatched."] pub fn overweight_root( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, ( runtime_types::polkadot_parachain::primitives::Id, ::std::vec::Vec<::core::primitive::u8>, ), (), (), ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( "Ump", "Overweight", Vec::new(), [ 99u8, 253u8, 98u8, 255u8, 15u8, 188u8, 128u8, 101u8, 165u8, 13u8, 95u8, 43u8, 18u8, 20u8, 119u8, 235u8, 92u8, 145u8, 78u8, 10u8, 35u8, 88u8, 23u8, 255u8, 208u8, 237u8, 204u8, 203u8, 207u8, 185u8, 214u8, 37u8, ], ) } #[doc = "Counter for the related counted storage map"] pub fn counter_for_overweight( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, ::core::primitive::u32, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), > { ::subxt::storage::address::Address::new_static( "Ump", "CounterForOverweight", vec![], [ 44u8, 249u8, 133u8, 204u8, 169u8, 253u8, 23u8, 157u8, 132u8, 193u8, 28u8, 178u8, 156u8, 176u8, 206u8, 46u8, 79u8, 254u8, 174u8, 236u8, 143u8, 219u8, 59u8, 43u8, 36u8, 109u8, 244u8, 206u8, 48u8, 126u8, 247u8, 0u8, ], ) } #[doc = " The number of overweight messages ever recorded in `Overweight` (and thus the lowest free"] #[doc = " index)."] pub fn overweight_count( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, ::core::primitive::u64, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), > { ::subxt::storage::address::Address::new_static( "Ump", "OverweightCount", vec![], [ 28u8, 72u8, 218u8, 167u8, 253u8, 30u8, 10u8, 51u8, 49u8, 101u8, 86u8, 26u8, 146u8, 2u8, 153u8, 232u8, 129u8, 38u8, 111u8, 105u8, 246u8, 84u8, 192u8, 157u8, 193u8, 57u8, 222u8, 122u8, 38u8, 160u8, 56u8, 39u8, ], ) } } } } pub mod hrmp { use super::root_mod; use super::runtime_types; #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] pub type Error = runtime_types::polkadot_runtime_parachains::hrmp::pallet::Error; #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] pub type Call = runtime_types::polkadot_runtime_parachains::hrmp::pallet::Call; pub mod calls { use super::root_mod; use super::runtime_types; type DispatchError = runtime_types::sp_runtime::DispatchError; pub mod types { use super::runtime_types; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct HrmpInitOpenChannel { pub recipient: runtime_types::polkadot_parachain::primitives::Id, pub proposed_max_capacity: ::core::primitive::u32, pub proposed_max_message_size: ::core::primitive::u32, } impl ::subxt::blocks::StaticExtrinsic for HrmpInitOpenChannel { const PALLET: &'static str = "Hrmp"; const CALL: &'static str = "hrmp_init_open_channel"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct HrmpAcceptOpenChannel { pub sender: runtime_types::polkadot_parachain::primitives::Id, } impl ::subxt::blocks::StaticExtrinsic for HrmpAcceptOpenChannel { const PALLET: &'static str = "Hrmp"; const CALL: &'static str = "hrmp_accept_open_channel"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct HrmpCloseChannel { pub channel_id: runtime_types::polkadot_parachain::primitives::HrmpChannelId, } impl ::subxt::blocks::StaticExtrinsic for HrmpCloseChannel { const PALLET: &'static str = "Hrmp"; const CALL: &'static str = "hrmp_close_channel"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ForceCleanHrmp { pub para: runtime_types::polkadot_parachain::primitives::Id, pub inbound: ::core::primitive::u32, pub outbound: ::core::primitive::u32, } impl ::subxt::blocks::StaticExtrinsic for ForceCleanHrmp { const PALLET: &'static str = "Hrmp"; const CALL: &'static str = "force_clean_hrmp"; } #[derive( :: subxt :: ext :: codec :: CompactAs, :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ForceProcessHrmpOpen { pub channels: ::core::primitive::u32, } impl ::subxt::blocks::StaticExtrinsic for ForceProcessHrmpOpen { const PALLET: &'static str = "Hrmp"; const CALL: &'static str = "force_process_hrmp_open"; } #[derive( :: subxt :: ext :: codec :: CompactAs, :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ForceProcessHrmpClose { pub channels: ::core::primitive::u32, } impl ::subxt::blocks::StaticExtrinsic for ForceProcessHrmpClose { const PALLET: &'static str = "Hrmp"; const CALL: &'static str = "force_process_hrmp_close"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct HrmpCancelOpenRequest { pub channel_id: runtime_types::polkadot_parachain::primitives::HrmpChannelId, pub open_requests: ::core::primitive::u32, } impl ::subxt::blocks::StaticExtrinsic for HrmpCancelOpenRequest { const PALLET: &'static str = "Hrmp"; const CALL: &'static str = "hrmp_cancel_open_request"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ForceOpenHrmpChannel { pub sender: runtime_types::polkadot_parachain::primitives::Id, pub recipient: runtime_types::polkadot_parachain::primitives::Id, pub max_capacity: ::core::primitive::u32, pub max_message_size: ::core::primitive::u32, } impl ::subxt::blocks::StaticExtrinsic for ForceOpenHrmpChannel { const PALLET: &'static str = "Hrmp"; const CALL: &'static str = "force_open_hrmp_channel"; } } pub struct TransactionApi; impl TransactionApi { #[doc = "Initiate opening a channel from a parachain to a given recipient with given channel"] #[doc = "parameters."] #[doc = ""] #[doc = "- `proposed_max_capacity` - specifies how many messages can be in the channel at once."] #[doc = "- `proposed_max_message_size` - specifies the maximum size of the messages."] #[doc = ""] #[doc = "These numbers are a subject to the relay-chain configuration limits."] #[doc = ""] #[doc = "The channel can be opened only after the recipient confirms it and only on a session"] #[doc = "change."] pub fn hrmp_init_open_channel( &self, recipient: runtime_types::polkadot_parachain::primitives::Id, proposed_max_capacity: ::core::primitive::u32, proposed_max_message_size: ::core::primitive::u32, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Hrmp", "hrmp_init_open_channel", types::HrmpInitOpenChannel { recipient, proposed_max_capacity, proposed_max_message_size, }, [ 195u8, 189u8, 253u8, 88u8, 118u8, 9u8, 223u8, 44u8, 211u8, 203u8, 182u8, 218u8, 31u8, 97u8, 93u8, 87u8, 186u8, 174u8, 179u8, 80u8, 33u8, 16u8, 214u8, 36u8, 12u8, 208u8, 151u8, 201u8, 208u8, 250u8, 167u8, 147u8, ], ) } #[doc = "Accept a pending open channel request from the given sender."] #[doc = ""] #[doc = "The channel will be opened only on the next session boundary."] pub fn hrmp_accept_open_channel( &self, sender: runtime_types::polkadot_parachain::primitives::Id, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Hrmp", "hrmp_accept_open_channel", types::HrmpAcceptOpenChannel { sender }, [ 133u8, 77u8, 88u8, 40u8, 47u8, 81u8, 95u8, 206u8, 165u8, 41u8, 191u8, 241u8, 130u8, 244u8, 70u8, 227u8, 69u8, 80u8, 130u8, 126u8, 34u8, 69u8, 214u8, 81u8, 7u8, 199u8, 249u8, 162u8, 234u8, 233u8, 195u8, 156u8, ], ) } #[doc = "Initiate unilateral closing of a channel. The origin must be either the sender or the"] #[doc = "recipient in the channel being closed."] #[doc = ""] #[doc = "The closure can only happen on a session change."] pub fn hrmp_close_channel( &self, channel_id: runtime_types::polkadot_parachain::primitives::HrmpChannelId, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Hrmp", "hrmp_close_channel", types::HrmpCloseChannel { channel_id }, [ 133u8, 95u8, 182u8, 90u8, 179u8, 212u8, 120u8, 118u8, 153u8, 96u8, 213u8, 165u8, 22u8, 20u8, 230u8, 122u8, 215u8, 181u8, 48u8, 23u8, 25u8, 122u8, 27u8, 85u8, 62u8, 87u8, 214u8, 218u8, 20u8, 105u8, 77u8, 96u8, ], ) } #[doc = "This extrinsic triggers the cleanup of all the HRMP storage items that"] #[doc = "a para may have. Normally this happens once per session, but this allows"] #[doc = "you to trigger the cleanup immediately for a specific parachain."] #[doc = ""] #[doc = "Origin must be Root."] #[doc = ""] #[doc = "Number of inbound and outbound channels for `para` must be provided as witness data of weighing."] pub fn force_clean_hrmp( &self, para: runtime_types::polkadot_parachain::primitives::Id, inbound: ::core::primitive::u32, outbound: ::core::primitive::u32, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Hrmp", "force_clean_hrmp", types::ForceCleanHrmp { para, inbound, outbound, }, [ 174u8, 160u8, 170u8, 127u8, 154u8, 188u8, 39u8, 54u8, 68u8, 253u8, 107u8, 99u8, 223u8, 162u8, 140u8, 64u8, 221u8, 217u8, 106u8, 43u8, 217u8, 25u8, 48u8, 38u8, 213u8, 228u8, 24u8, 94u8, 116u8, 236u8, 108u8, 77u8, ], ) } #[doc = "Force process HRMP open channel requests."] #[doc = ""] #[doc = "If there are pending HRMP open channel requests, you can use this"] #[doc = "function process all of those requests immediately."] #[doc = ""] #[doc = "Total number of opening channels must be provided as witness data of weighing."] pub fn force_process_hrmp_open( &self, channels: ::core::primitive::u32, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Hrmp", "force_process_hrmp_open", types::ForceProcessHrmpOpen { channels }, [ 66u8, 138u8, 220u8, 119u8, 251u8, 148u8, 72u8, 167u8, 49u8, 156u8, 227u8, 174u8, 153u8, 145u8, 190u8, 195u8, 192u8, 183u8, 41u8, 213u8, 134u8, 8u8, 114u8, 30u8, 191u8, 81u8, 208u8, 54u8, 120u8, 36u8, 195u8, 246u8, ], ) } #[doc = "Force process HRMP close channel requests."] #[doc = ""] #[doc = "If there are pending HRMP close channel requests, you can use this"] #[doc = "function process all of those requests immediately."] #[doc = ""] #[doc = "Total number of closing channels must be provided as witness data of weighing."] pub fn force_process_hrmp_close( &self, channels: ::core::primitive::u32, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Hrmp", "force_process_hrmp_close", types::ForceProcessHrmpClose { channels }, [ 22u8, 60u8, 113u8, 94u8, 199u8, 101u8, 204u8, 34u8, 158u8, 77u8, 228u8, 29u8, 180u8, 249u8, 46u8, 103u8, 206u8, 155u8, 164u8, 229u8, 70u8, 189u8, 218u8, 171u8, 173u8, 22u8, 210u8, 73u8, 232u8, 99u8, 225u8, 176u8, ], ) } #[doc = "This cancels a pending open channel request. It can be canceled by either of the sender"] #[doc = "or the recipient for that request. The origin must be either of those."] #[doc = ""] #[doc = "The cancellation happens immediately. It is not possible to cancel the request if it is"] #[doc = "already accepted."] #[doc = ""] #[doc = "Total number of open requests (i.e. `HrmpOpenChannelRequestsList`) must be provided as"] #[doc = "witness data."] pub fn hrmp_cancel_open_request( &self, channel_id: runtime_types::polkadot_parachain::primitives::HrmpChannelId, open_requests: ::core::primitive::u32, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Hrmp", "hrmp_cancel_open_request", types::HrmpCancelOpenRequest { channel_id, open_requests, }, [ 59u8, 112u8, 18u8, 146u8, 252u8, 96u8, 198u8, 185u8, 100u8, 158u8, 16u8, 198u8, 251u8, 12u8, 205u8, 87u8, 231u8, 97u8, 121u8, 249u8, 202u8, 199u8, 49u8, 166u8, 118u8, 60u8, 1u8, 8u8, 49u8, 4u8, 61u8, 216u8, ], ) } #[doc = "Open a channel from a `sender` to a `recipient` `ParaId` using the Root origin. Although"] #[doc = "opened by Root, the `max_capacity` and `max_message_size` are still subject to the Relay"] #[doc = "Chain's configured limits."] #[doc = ""] #[doc = "Expected use is when one of the `ParaId`s involved in the channel is governed by the"] #[doc = "Relay Chain, e.g. a common good parachain."] pub fn force_open_hrmp_channel( &self, sender: runtime_types::polkadot_parachain::primitives::Id, recipient: runtime_types::polkadot_parachain::primitives::Id, max_capacity: ::core::primitive::u32, max_message_size: ::core::primitive::u32, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Hrmp", "force_open_hrmp_channel", types::ForceOpenHrmpChannel { sender, recipient, max_capacity, max_message_size, }, [ 73u8, 48u8, 219u8, 182u8, 93u8, 232u8, 94u8, 210u8, 17u8, 170u8, 42u8, 96u8, 88u8, 124u8, 106u8, 25u8, 22u8, 142u8, 77u8, 154u8, 139u8, 15u8, 1u8, 171u8, 155u8, 200u8, 213u8, 92u8, 50u8, 193u8, 63u8, 184u8, ], ) } } } #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] pub type Event = runtime_types::polkadot_runtime_parachains::hrmp::pallet::Event; pub mod events { use super::runtime_types; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Open HRMP channel requested."] #[doc = "`[sender, recipient, proposed_max_capacity, proposed_max_message_size]`"] pub struct OpenChannelRequested( pub runtime_types::polkadot_parachain::primitives::Id, pub runtime_types::polkadot_parachain::primitives::Id, pub ::core::primitive::u32, pub ::core::primitive::u32, ); impl ::subxt::events::StaticEvent for OpenChannelRequested { const PALLET: &'static str = "Hrmp"; const EVENT: &'static str = "OpenChannelRequested"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "An HRMP channel request sent by the receiver was canceled by either party."] #[doc = "`[by_parachain, channel_id]`"] pub struct OpenChannelCanceled( pub runtime_types::polkadot_parachain::primitives::Id, pub runtime_types::polkadot_parachain::primitives::HrmpChannelId, ); impl ::subxt::events::StaticEvent for OpenChannelCanceled { const PALLET: &'static str = "Hrmp"; const EVENT: &'static str = "OpenChannelCanceled"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Open HRMP channel accepted. `[sender, recipient]`"] pub struct OpenChannelAccepted( pub runtime_types::polkadot_parachain::primitives::Id, pub runtime_types::polkadot_parachain::primitives::Id, ); impl ::subxt::events::StaticEvent for OpenChannelAccepted { const PALLET: &'static str = "Hrmp"; const EVENT: &'static str = "OpenChannelAccepted"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "HRMP channel closed. `[by_parachain, channel_id]`"] pub struct ChannelClosed( pub runtime_types::polkadot_parachain::primitives::Id, pub runtime_types::polkadot_parachain::primitives::HrmpChannelId, ); impl ::subxt::events::StaticEvent for ChannelClosed { const PALLET: &'static str = "Hrmp"; const EVENT: &'static str = "ChannelClosed"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "An HRMP channel was opened via Root origin."] #[doc = "`[sender, recipient, proposed_max_capacity, proposed_max_message_size]`"] pub struct HrmpChannelForceOpened( pub runtime_types::polkadot_parachain::primitives::Id, pub runtime_types::polkadot_parachain::primitives::Id, pub ::core::primitive::u32, pub ::core::primitive::u32, ); impl ::subxt::events::StaticEvent for HrmpChannelForceOpened { const PALLET: &'static str = "Hrmp"; const EVENT: &'static str = "HrmpChannelForceOpened"; } } pub mod storage { use super::runtime_types; pub struct StorageApi; impl StorageApi { #[doc = " The set of pending HRMP open channel requests."] #[doc = ""] #[doc = " The set is accompanied by a list for iteration."] #[doc = ""] #[doc = " Invariant:"] #[doc = " - There are no channels that exists in list but not in the set and vice versa."] pub fn hrmp_open_channel_requests( &self, _0: impl ::std::borrow::Borrow< runtime_types::polkadot_parachain::primitives::HrmpChannelId, >, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, runtime_types::polkadot_runtime_parachains::hrmp::HrmpOpenChannelRequest, ::subxt::storage::address::Yes, (), ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( "Hrmp", "HrmpOpenChannelRequests", vec![::subxt::storage::address::make_static_storage_map_key( _0.borrow(), )], [ 22u8, 147u8, 166u8, 47u8, 14u8, 226u8, 175u8, 227u8, 89u8, 8u8, 211u8, 246u8, 149u8, 18u8, 179u8, 53u8, 197u8, 61u8, 110u8, 51u8, 37u8, 216u8, 127u8, 255u8, 255u8, 182u8, 194u8, 77u8, 103u8, 171u8, 142u8, 128u8, ], ) } #[doc = " The set of pending HRMP open channel requests."] #[doc = ""] #[doc = " The set is accompanied by a list for iteration."] #[doc = ""] #[doc = " Invariant:"] #[doc = " - There are no channels that exists in list but not in the set and vice versa."] pub fn hrmp_open_channel_requests_root( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, runtime_types::polkadot_runtime_parachains::hrmp::HrmpOpenChannelRequest, (), (), ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( "Hrmp", "HrmpOpenChannelRequests", Vec::new(), [ 22u8, 147u8, 166u8, 47u8, 14u8, 226u8, 175u8, 227u8, 89u8, 8u8, 211u8, 246u8, 149u8, 18u8, 179u8, 53u8, 197u8, 61u8, 110u8, 51u8, 37u8, 216u8, 127u8, 255u8, 255u8, 182u8, 194u8, 77u8, 103u8, 171u8, 142u8, 128u8, ], ) } pub fn hrmp_open_channel_requests_list( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, ::std::vec::Vec, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), > { ::subxt::storage::address::Address::new_static( "Hrmp", "HrmpOpenChannelRequestsList", vec![], [ 170u8, 61u8, 26u8, 132u8, 103u8, 8u8, 166u8, 104u8, 45u8, 181u8, 0u8, 218u8, 30u8, 142u8, 225u8, 17u8, 46u8, 182u8, 152u8, 202u8, 203u8, 168u8, 58u8, 57u8, 186u8, 105u8, 251u8, 227u8, 232u8, 51u8, 78u8, 187u8, ], ) } #[doc = " This mapping tracks how many open channel requests are initiated by a given sender para."] #[doc = " Invariant: `HrmpOpenChannelRequests` should contain the same number of items that has"] #[doc = " `(X, _)` as the number of `HrmpOpenChannelRequestCount` for `X`."] pub fn hrmp_open_channel_request_count( &self, _0: impl ::std::borrow::Borrow, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, ::core::primitive::u32, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( "Hrmp", "HrmpOpenChannelRequestCount", vec![::subxt::storage::address::make_static_storage_map_key( _0.borrow(), )], [ 153u8, 224u8, 69u8, 67u8, 106u8, 221u8, 28u8, 12u8, 246u8, 135u8, 150u8, 198u8, 255u8, 11u8, 24u8, 74u8, 109u8, 118u8, 40u8, 151u8, 62u8, 131u8, 235u8, 43u8, 89u8, 20u8, 211u8, 153u8, 34u8, 48u8, 81u8, 30u8, ], ) } #[doc = " This mapping tracks how many open channel requests are initiated by a given sender para."] #[doc = " Invariant: `HrmpOpenChannelRequests` should contain the same number of items that has"] #[doc = " `(X, _)` as the number of `HrmpOpenChannelRequestCount` for `X`."] pub fn hrmp_open_channel_request_count_root( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, ::core::primitive::u32, (), ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( "Hrmp", "HrmpOpenChannelRequestCount", Vec::new(), [ 153u8, 224u8, 69u8, 67u8, 106u8, 221u8, 28u8, 12u8, 246u8, 135u8, 150u8, 198u8, 255u8, 11u8, 24u8, 74u8, 109u8, 118u8, 40u8, 151u8, 62u8, 131u8, 235u8, 43u8, 89u8, 20u8, 211u8, 153u8, 34u8, 48u8, 81u8, 30u8, ], ) } #[doc = " This mapping tracks how many open channel requests were accepted by a given recipient para."] #[doc = " Invariant: `HrmpOpenChannelRequests` should contain the same number of items `(_, X)` with"] #[doc = " `confirmed` set to true, as the number of `HrmpAcceptedChannelRequestCount` for `X`."] pub fn hrmp_accepted_channel_request_count( &self, _0: impl ::std::borrow::Borrow, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, ::core::primitive::u32, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( "Hrmp", "HrmpAcceptedChannelRequestCount", vec![::subxt::storage::address::make_static_storage_map_key( _0.borrow(), )], [ 110u8, 50u8, 32u8, 98u8, 172u8, 143u8, 249u8, 151u8, 162u8, 5u8, 111u8, 157u8, 248u8, 233u8, 192u8, 38u8, 42u8, 206u8, 107u8, 233u8, 73u8, 108u8, 24u8, 78u8, 72u8, 119u8, 98u8, 126u8, 60u8, 132u8, 157u8, 38u8, ], ) } #[doc = " This mapping tracks how many open channel requests were accepted by a given recipient para."] #[doc = " Invariant: `HrmpOpenChannelRequests` should contain the same number of items `(_, X)` with"] #[doc = " `confirmed` set to true, as the number of `HrmpAcceptedChannelRequestCount` for `X`."] pub fn hrmp_accepted_channel_request_count_root( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, ::core::primitive::u32, (), ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( "Hrmp", "HrmpAcceptedChannelRequestCount", Vec::new(), [ 110u8, 50u8, 32u8, 98u8, 172u8, 143u8, 249u8, 151u8, 162u8, 5u8, 111u8, 157u8, 248u8, 233u8, 192u8, 38u8, 42u8, 206u8, 107u8, 233u8, 73u8, 108u8, 24u8, 78u8, 72u8, 119u8, 98u8, 126u8, 60u8, 132u8, 157u8, 38u8, ], ) } #[doc = " A set of pending HRMP close channel requests that are going to be closed during the session"] #[doc = " change. Used for checking if a given channel is registered for closure."] #[doc = ""] #[doc = " The set is accompanied by a list for iteration."] #[doc = ""] #[doc = " Invariant:"] #[doc = " - There are no channels that exists in list but not in the set and vice versa."] pub fn hrmp_close_channel_requests( &self, _0: impl ::std::borrow::Borrow< runtime_types::polkadot_parachain::primitives::HrmpChannelId, >, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, (), ::subxt::storage::address::Yes, (), ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( "Hrmp", "HrmpCloseChannelRequests", vec![::subxt::storage::address::make_static_storage_map_key( _0.borrow(), )], [ 222u8, 21u8, 62u8, 212u8, 4u8, 55u8, 189u8, 139u8, 18u8, 149u8, 225u8, 39u8, 240u8, 220u8, 114u8, 154u8, 147u8, 90u8, 221u8, 126u8, 97u8, 89u8, 167u8, 249u8, 121u8, 28u8, 211u8, 162u8, 0u8, 81u8, 110u8, 92u8, ], ) } #[doc = " A set of pending HRMP close channel requests that are going to be closed during the session"] #[doc = " change. Used for checking if a given channel is registered for closure."] #[doc = ""] #[doc = " The set is accompanied by a list for iteration."] #[doc = ""] #[doc = " Invariant:"] #[doc = " - There are no channels that exists in list but not in the set and vice versa."] pub fn hrmp_close_channel_requests_root( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, (), (), (), ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( "Hrmp", "HrmpCloseChannelRequests", Vec::new(), [ 222u8, 21u8, 62u8, 212u8, 4u8, 55u8, 189u8, 139u8, 18u8, 149u8, 225u8, 39u8, 240u8, 220u8, 114u8, 154u8, 147u8, 90u8, 221u8, 126u8, 97u8, 89u8, 167u8, 249u8, 121u8, 28u8, 211u8, 162u8, 0u8, 81u8, 110u8, 92u8, ], ) } pub fn hrmp_close_channel_requests_list( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, ::std::vec::Vec, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), > { ::subxt::storage::address::Address::new_static( "Hrmp", "HrmpCloseChannelRequestsList", vec![], [ 2u8, 178u8, 121u8, 142u8, 49u8, 53u8, 187u8, 3u8, 175u8, 222u8, 199u8, 112u8, 176u8, 131u8, 181u8, 184u8, 137u8, 89u8, 75u8, 90u8, 58u8, 18u8, 244u8, 117u8, 106u8, 212u8, 16u8, 177u8, 9u8, 191u8, 109u8, 8u8, ], ) } #[doc = " The HRMP watermark associated with each para."] #[doc = " Invariant:"] #[doc = " - each para `P` used here as a key should satisfy `Paras::is_valid_para(P)` within a session."] pub fn hrmp_watermarks( &self, _0: impl ::std::borrow::Borrow, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, ::core::primitive::u32, ::subxt::storage::address::Yes, (), ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( "Hrmp", "HrmpWatermarks", vec![::subxt::storage::address::make_static_storage_map_key( _0.borrow(), )], [ 113u8, 182u8, 65u8, 193u8, 220u8, 173u8, 226u8, 222u8, 55u8, 149u8, 141u8, 123u8, 120u8, 9u8, 181u8, 84u8, 169u8, 144u8, 51u8, 13u8, 56u8, 217u8, 129u8, 37u8, 8u8, 57u8, 238u8, 168u8, 96u8, 98u8, 244u8, 84u8, ], ) } #[doc = " The HRMP watermark associated with each para."] #[doc = " Invariant:"] #[doc = " - each para `P` used here as a key should satisfy `Paras::is_valid_para(P)` within a session."] pub fn hrmp_watermarks_root( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, ::core::primitive::u32, (), (), ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( "Hrmp", "HrmpWatermarks", Vec::new(), [ 113u8, 182u8, 65u8, 193u8, 220u8, 173u8, 226u8, 222u8, 55u8, 149u8, 141u8, 123u8, 120u8, 9u8, 181u8, 84u8, 169u8, 144u8, 51u8, 13u8, 56u8, 217u8, 129u8, 37u8, 8u8, 57u8, 238u8, 168u8, 96u8, 98u8, 244u8, 84u8, ], ) } #[doc = " HRMP channel data associated with each para."] #[doc = " Invariant:"] #[doc = " - each participant in the channel should satisfy `Paras::is_valid_para(P)` within a session."] pub fn hrmp_channels( &self, _0: impl ::std::borrow::Borrow< runtime_types::polkadot_parachain::primitives::HrmpChannelId, >, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, runtime_types::polkadot_runtime_parachains::hrmp::HrmpChannel, ::subxt::storage::address::Yes, (), ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( "Hrmp", "HrmpChannels", vec![::subxt::storage::address::make_static_storage_map_key( _0.borrow(), )], [ 84u8, 208u8, 8u8, 151u8, 246u8, 31u8, 147u8, 139u8, 85u8, 187u8, 58u8, 179u8, 101u8, 191u8, 72u8, 231u8, 99u8, 160u8, 247u8, 243u8, 114u8, 170u8, 179u8, 82u8, 84u8, 130u8, 165u8, 57u8, 236u8, 156u8, 170u8, 228u8, ], ) } #[doc = " HRMP channel data associated with each para."] #[doc = " Invariant:"] #[doc = " - each participant in the channel should satisfy `Paras::is_valid_para(P)` within a session."] pub fn hrmp_channels_root( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, runtime_types::polkadot_runtime_parachains::hrmp::HrmpChannel, (), (), ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( "Hrmp", "HrmpChannels", Vec::new(), [ 84u8, 208u8, 8u8, 151u8, 246u8, 31u8, 147u8, 139u8, 85u8, 187u8, 58u8, 179u8, 101u8, 191u8, 72u8, 231u8, 99u8, 160u8, 247u8, 243u8, 114u8, 170u8, 179u8, 82u8, 84u8, 130u8, 165u8, 57u8, 236u8, 156u8, 170u8, 228u8, ], ) } #[doc = " Ingress/egress indexes allow to find all the senders and receivers given the opposite side."] #[doc = " I.e."] #[doc = ""] #[doc = " (a) ingress index allows to find all the senders for a given recipient."] #[doc = " (b) egress index allows to find all the recipients for a given sender."] #[doc = ""] #[doc = " Invariants:"] #[doc = " - for each ingress index entry for `P` each item `I` in the index should present in"] #[doc = " `HrmpChannels` as `(I, P)`."] #[doc = " - for each egress index entry for `P` each item `E` in the index should present in"] #[doc = " `HrmpChannels` as `(P, E)`."] #[doc = " - there should be no other dangling channels in `HrmpChannels`."] #[doc = " - the vectors are sorted."] pub fn hrmp_ingress_channels_index( &self, _0: impl ::std::borrow::Borrow, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, ::std::vec::Vec, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( "Hrmp", "HrmpIngressChannelsIndex", vec![::subxt::storage::address::make_static_storage_map_key( _0.borrow(), )], [ 214u8, 227u8, 150u8, 67u8, 44u8, 17u8, 184u8, 156u8, 126u8, 112u8, 22u8, 254u8, 174u8, 133u8, 110u8, 126u8, 189u8, 169u8, 191u8, 236u8, 139u8, 57u8, 236u8, 84u8, 102u8, 171u8, 167u8, 26u8, 42u8, 16u8, 29u8, 203u8, ], ) } #[doc = " Ingress/egress indexes allow to find all the senders and receivers given the opposite side."] #[doc = " I.e."] #[doc = ""] #[doc = " (a) ingress index allows to find all the senders for a given recipient."] #[doc = " (b) egress index allows to find all the recipients for a given sender."] #[doc = ""] #[doc = " Invariants:"] #[doc = " - for each ingress index entry for `P` each item `I` in the index should present in"] #[doc = " `HrmpChannels` as `(I, P)`."] #[doc = " - for each egress index entry for `P` each item `E` in the index should present in"] #[doc = " `HrmpChannels` as `(P, E)`."] #[doc = " - there should be no other dangling channels in `HrmpChannels`."] #[doc = " - the vectors are sorted."] pub fn hrmp_ingress_channels_index_root( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, ::std::vec::Vec, (), ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( "Hrmp", "HrmpIngressChannelsIndex", Vec::new(), [ 214u8, 227u8, 150u8, 67u8, 44u8, 17u8, 184u8, 156u8, 126u8, 112u8, 22u8, 254u8, 174u8, 133u8, 110u8, 126u8, 189u8, 169u8, 191u8, 236u8, 139u8, 57u8, 236u8, 84u8, 102u8, 171u8, 167u8, 26u8, 42u8, 16u8, 29u8, 203u8, ], ) } pub fn hrmp_egress_channels_index( &self, _0: impl ::std::borrow::Borrow, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, ::std::vec::Vec, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( "Hrmp", "HrmpEgressChannelsIndex", vec![::subxt::storage::address::make_static_storage_map_key( _0.borrow(), )], [ 170u8, 166u8, 34u8, 79u8, 110u8, 228u8, 62u8, 128u8, 3u8, 69u8, 212u8, 42u8, 9u8, 145u8, 161u8, 232u8, 103u8, 182u8, 165u8, 103u8, 228u8, 178u8, 122u8, 140u8, 255u8, 255u8, 246u8, 61u8, 220u8, 210u8, 101u8, 46u8, ], ) } pub fn hrmp_egress_channels_index_root( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, ::std::vec::Vec, (), ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( "Hrmp", "HrmpEgressChannelsIndex", Vec::new(), [ 170u8, 166u8, 34u8, 79u8, 110u8, 228u8, 62u8, 128u8, 3u8, 69u8, 212u8, 42u8, 9u8, 145u8, 161u8, 232u8, 103u8, 182u8, 165u8, 103u8, 228u8, 178u8, 122u8, 140u8, 255u8, 255u8, 246u8, 61u8, 220u8, 210u8, 101u8, 46u8, ], ) } #[doc = " Storage for the messages for each channel."] #[doc = " Invariant: cannot be non-empty if the corresponding channel in `HrmpChannels` is `None`."] pub fn hrmp_channel_contents( &self, _0: impl ::std::borrow::Borrow< runtime_types::polkadot_parachain::primitives::HrmpChannelId, >, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, ::std::vec::Vec< runtime_types::polkadot_core_primitives::InboundHrmpMessage< ::core::primitive::u32, >, >, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( "Hrmp", "HrmpChannelContents", vec![::subxt::storage::address::make_static_storage_map_key( _0.borrow(), )], [ 255u8, 161u8, 150u8, 115u8, 50u8, 192u8, 25u8, 120u8, 56u8, 166u8, 131u8, 174u8, 58u8, 200u8, 45u8, 80u8, 9u8, 99u8, 238u8, 49u8, 27u8, 139u8, 95u8, 246u8, 203u8, 3u8, 22u8, 152u8, 30u8, 243u8, 41u8, 90u8, ], ) } #[doc = " Storage for the messages for each channel."] #[doc = " Invariant: cannot be non-empty if the corresponding channel in `HrmpChannels` is `None`."] pub fn hrmp_channel_contents_root( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, ::std::vec::Vec< runtime_types::polkadot_core_primitives::InboundHrmpMessage< ::core::primitive::u32, >, >, (), ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( "Hrmp", "HrmpChannelContents", Vec::new(), [ 255u8, 161u8, 150u8, 115u8, 50u8, 192u8, 25u8, 120u8, 56u8, 166u8, 131u8, 174u8, 58u8, 200u8, 45u8, 80u8, 9u8, 99u8, 238u8, 49u8, 27u8, 139u8, 95u8, 246u8, 203u8, 3u8, 22u8, 152u8, 30u8, 243u8, 41u8, 90u8, ], ) } #[doc = " Maintains a mapping that can be used to answer the question: What paras sent a message at"] #[doc = " the given block number for a given receiver. Invariants:"] #[doc = " - The inner `Vec` is never empty."] #[doc = " - The inner `Vec` cannot store two same `ParaId`."] #[doc = " - The outer vector is sorted ascending by block number and cannot store two items with the"] #[doc = " same block number."] pub fn hrmp_channel_digests( &self, _0: impl ::std::borrow::Borrow, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, ::std::vec::Vec<( ::core::primitive::u32, ::std::vec::Vec, )>, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( "Hrmp", "HrmpChannelDigests", vec![::subxt::storage::address::make_static_storage_map_key( _0.borrow(), )], [ 87u8, 180u8, 240u8, 237u8, 245u8, 101u8, 209u8, 126u8, 57u8, 116u8, 158u8, 38u8, 139u8, 76u8, 172u8, 94u8, 232u8, 149u8, 68u8, 67u8, 25u8, 131u8, 18u8, 202u8, 159u8, 143u8, 222u8, 243u8, 4u8, 84u8, 24u8, 8u8, ], ) } #[doc = " Maintains a mapping that can be used to answer the question: What paras sent a message at"] #[doc = " the given block number for a given receiver. Invariants:"] #[doc = " - The inner `Vec` is never empty."] #[doc = " - The inner `Vec` cannot store two same `ParaId`."] #[doc = " - The outer vector is sorted ascending by block number and cannot store two items with the"] #[doc = " same block number."] pub fn hrmp_channel_digests_root( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, ::std::vec::Vec<( ::core::primitive::u32, ::std::vec::Vec, )>, (), ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( "Hrmp", "HrmpChannelDigests", Vec::new(), [ 87u8, 180u8, 240u8, 237u8, 245u8, 101u8, 209u8, 126u8, 57u8, 116u8, 158u8, 38u8, 139u8, 76u8, 172u8, 94u8, 232u8, 149u8, 68u8, 67u8, 25u8, 131u8, 18u8, 202u8, 159u8, 143u8, 222u8, 243u8, 4u8, 84u8, 24u8, 8u8, ], ) } } } } pub mod para_session_info { use super::root_mod; use super::runtime_types; pub mod storage { use super::runtime_types; pub struct StorageApi; impl StorageApi { #[doc = " Assignment keys for the current session."] #[doc = " Note that this API is private due to it being prone to 'off-by-one' at session boundaries."] #[doc = " When in doubt, use `Sessions` API instead."] pub fn assignment_keys_unsafe( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, ::std::vec::Vec, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), > { ::subxt::storage::address::Address::new_static( "ParaSessionInfo", "AssignmentKeysUnsafe", vec![], [ 51u8, 155u8, 91u8, 101u8, 118u8, 243u8, 134u8, 138u8, 147u8, 59u8, 195u8, 186u8, 54u8, 187u8, 36u8, 14u8, 91u8, 141u8, 60u8, 139u8, 28u8, 74u8, 111u8, 232u8, 198u8, 229u8, 61u8, 63u8, 72u8, 214u8, 152u8, 2u8, ], ) } #[doc = " The earliest session for which previous session info is stored."] pub fn earliest_stored_session( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, ::core::primitive::u32, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), > { ::subxt::storage::address::Address::new_static( "ParaSessionInfo", "EarliestStoredSession", vec![], [ 139u8, 176u8, 46u8, 139u8, 217u8, 35u8, 62u8, 91u8, 183u8, 7u8, 114u8, 226u8, 60u8, 237u8, 105u8, 73u8, 20u8, 216u8, 194u8, 205u8, 178u8, 237u8, 84u8, 66u8, 181u8, 29u8, 31u8, 218u8, 48u8, 60u8, 198u8, 86u8, ], ) } #[doc = " Session information in a rolling window."] #[doc = " Should have an entry in range `EarliestStoredSession..=CurrentSessionIndex`."] #[doc = " Does not have any entries before the session index in the first session change notification."] pub fn sessions( &self, _0: impl ::std::borrow::Borrow<::core::primitive::u32>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, runtime_types::polkadot_primitives::v4::SessionInfo, ::subxt::storage::address::Yes, (), ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( "ParaSessionInfo", "Sessions", vec![::subxt::storage::address::make_static_storage_map_key( _0.borrow(), )], [ 81u8, 113u8, 231u8, 59u8, 121u8, 0u8, 152u8, 106u8, 38u8, 173u8, 219u8, 186u8, 98u8, 164u8, 31u8, 64u8, 156u8, 185u8, 33u8, 249u8, 193u8, 185u8, 120u8, 67u8, 146u8, 33u8, 16u8, 29u8, 50u8, 158u8, 75u8, 106u8, ], ) } #[doc = " Session information in a rolling window."] #[doc = " Should have an entry in range `EarliestStoredSession..=CurrentSessionIndex`."] #[doc = " Does not have any entries before the session index in the first session change notification."] pub fn sessions_root( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, runtime_types::polkadot_primitives::v4::SessionInfo, (), (), ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( "ParaSessionInfo", "Sessions", Vec::new(), [ 81u8, 113u8, 231u8, 59u8, 121u8, 0u8, 152u8, 106u8, 38u8, 173u8, 219u8, 186u8, 98u8, 164u8, 31u8, 64u8, 156u8, 185u8, 33u8, 249u8, 193u8, 185u8, 120u8, 67u8, 146u8, 33u8, 16u8, 29u8, 50u8, 158u8, 75u8, 106u8, ], ) } #[doc = " The validator account keys of the validators actively participating in parachain consensus."] pub fn account_keys( &self, _0: impl ::std::borrow::Borrow<::core::primitive::u32>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, ::std::vec::Vec<::subxt::utils::AccountId32>, ::subxt::storage::address::Yes, (), ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( "ParaSessionInfo", "AccountKeys", vec![::subxt::storage::address::make_static_storage_map_key( _0.borrow(), )], [ 30u8, 98u8, 58u8, 140u8, 96u8, 231u8, 205u8, 111u8, 194u8, 100u8, 185u8, 242u8, 210u8, 143u8, 110u8, 144u8, 170u8, 187u8, 62u8, 196u8, 73u8, 88u8, 118u8, 168u8, 117u8, 116u8, 153u8, 229u8, 108u8, 46u8, 154u8, 220u8, ], ) } #[doc = " The validator account keys of the validators actively participating in parachain consensus."] pub fn account_keys_root( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, ::std::vec::Vec<::subxt::utils::AccountId32>, (), (), ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( "ParaSessionInfo", "AccountKeys", Vec::new(), [ 30u8, 98u8, 58u8, 140u8, 96u8, 231u8, 205u8, 111u8, 194u8, 100u8, 185u8, 242u8, 210u8, 143u8, 110u8, 144u8, 170u8, 187u8, 62u8, 196u8, 73u8, 88u8, 118u8, 168u8, 117u8, 116u8, 153u8, 229u8, 108u8, 46u8, 154u8, 220u8, ], ) } #[doc = " Executor parameter set for a given session index"] pub fn session_executor_params( &self, _0: impl ::std::borrow::Borrow<::core::primitive::u32>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, runtime_types::polkadot_primitives::v4::executor_params::ExecutorParams, ::subxt::storage::address::Yes, (), ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( "ParaSessionInfo", "SessionExecutorParams", vec![::subxt::storage::address::make_static_storage_map_key( _0.borrow(), )], [ 157u8, 157u8, 106u8, 251u8, 26u8, 102u8, 210u8, 194u8, 203u8, 167u8, 231u8, 176u8, 93u8, 83u8, 214u8, 57u8, 15u8, 235u8, 74u8, 191u8, 131u8, 143u8, 243u8, 171u8, 54u8, 16u8, 137u8, 185u8, 96u8, 46u8, 123u8, 57u8, ], ) } #[doc = " Executor parameter set for a given session index"] pub fn session_executor_params_root( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, runtime_types::polkadot_primitives::v4::executor_params::ExecutorParams, (), (), ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( "ParaSessionInfo", "SessionExecutorParams", Vec::new(), [ 157u8, 157u8, 106u8, 251u8, 26u8, 102u8, 210u8, 194u8, 203u8, 167u8, 231u8, 176u8, 93u8, 83u8, 214u8, 57u8, 15u8, 235u8, 74u8, 191u8, 131u8, 143u8, 243u8, 171u8, 54u8, 16u8, 137u8, 185u8, 96u8, 46u8, 123u8, 57u8, ], ) } } } } pub mod paras_disputes { use super::root_mod; use super::runtime_types; #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] pub type Error = runtime_types::polkadot_runtime_parachains::disputes::pallet::Error; #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] pub type Call = runtime_types::polkadot_runtime_parachains::disputes::pallet::Call; pub mod calls { use super::root_mod; use super::runtime_types; type DispatchError = runtime_types::sp_runtime::DispatchError; pub mod types { use super::runtime_types; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ForceUnfreeze; impl ::subxt::blocks::StaticExtrinsic for ForceUnfreeze { const PALLET: &'static str = "ParasDisputes"; const CALL: &'static str = "force_unfreeze"; } } pub struct TransactionApi; impl TransactionApi { pub fn force_unfreeze(&self) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "ParasDisputes", "force_unfreeze", types::ForceUnfreeze {}, [ 148u8, 19u8, 139u8, 154u8, 111u8, 166u8, 74u8, 136u8, 127u8, 157u8, 20u8, 47u8, 220u8, 108u8, 152u8, 108u8, 24u8, 232u8, 11u8, 53u8, 26u8, 4u8, 23u8, 58u8, 195u8, 61u8, 159u8, 6u8, 139u8, 7u8, 197u8, 88u8, ], ) } } } #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] pub type Event = runtime_types::polkadot_runtime_parachains::disputes::pallet::Event; pub mod events { use super::runtime_types; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A dispute has been initiated. \\[candidate hash, dispute location\\]"] pub struct DisputeInitiated( pub runtime_types::polkadot_core_primitives::CandidateHash, pub runtime_types::polkadot_runtime_parachains::disputes::DisputeLocation, ); impl ::subxt::events::StaticEvent for DisputeInitiated { const PALLET: &'static str = "ParasDisputes"; const EVENT: &'static str = "DisputeInitiated"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A dispute has concluded for or against a candidate."] #[doc = "`\\[para id, candidate hash, dispute result\\]`"] pub struct DisputeConcluded( pub runtime_types::polkadot_core_primitives::CandidateHash, pub runtime_types::polkadot_runtime_parachains::disputes::DisputeResult, ); impl ::subxt::events::StaticEvent for DisputeConcluded { const PALLET: &'static str = "ParasDisputes"; const EVENT: &'static str = "DisputeConcluded"; } #[derive( :: subxt :: ext :: codec :: CompactAs, :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A dispute has concluded with supermajority against a candidate."] #[doc = "Block authors should no longer build on top of this head and should"] #[doc = "instead revert the block at the given height. This should be the"] #[doc = "number of the child of the last known valid block in the chain."] pub struct Revert(pub ::core::primitive::u32); impl ::subxt::events::StaticEvent for Revert { const PALLET: &'static str = "ParasDisputes"; const EVENT: &'static str = "Revert"; } } pub mod storage { use super::runtime_types; pub struct StorageApi; impl StorageApi { #[doc = " The last pruned session, if any. All data stored by this module"] #[doc = " references sessions."] pub fn last_pruned_session( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, ::core::primitive::u32, ::subxt::storage::address::Yes, (), (), > { ::subxt::storage::address::Address::new_static( "ParasDisputes", "LastPrunedSession", vec![], [ 98u8, 107u8, 200u8, 158u8, 182u8, 120u8, 24u8, 242u8, 24u8, 163u8, 237u8, 72u8, 153u8, 19u8, 38u8, 85u8, 239u8, 208u8, 194u8, 22u8, 173u8, 100u8, 219u8, 10u8, 194u8, 42u8, 120u8, 146u8, 225u8, 62u8, 80u8, 229u8, ], ) } #[doc = " All ongoing or concluded disputes for the last several sessions."] pub fn disputes( &self, _0: impl ::std::borrow::Borrow<::core::primitive::u32>, _1: impl ::std::borrow::Borrow< runtime_types::polkadot_core_primitives::CandidateHash, >, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, runtime_types::polkadot_primitives::v4::DisputeState<::core::primitive::u32>, ::subxt::storage::address::Yes, (), ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( "ParasDisputes", "Disputes", vec![ ::subxt::storage::address::make_static_storage_map_key(_0.borrow()), ::subxt::storage::address::make_static_storage_map_key(_1.borrow()), ], [ 238u8, 133u8, 13u8, 247u8, 199u8, 82u8, 60u8, 30u8, 124u8, 64u8, 52u8, 136u8, 173u8, 44u8, 147u8, 10u8, 188u8, 12u8, 50u8, 141u8, 126u8, 112u8, 177u8, 75u8, 78u8, 102u8, 189u8, 234u8, 142u8, 210u8, 6u8, 129u8, ], ) } #[doc = " All ongoing or concluded disputes for the last several sessions."] pub fn disputes_root( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, runtime_types::polkadot_primitives::v4::DisputeState<::core::primitive::u32>, (), (), ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( "ParasDisputes", "Disputes", Vec::new(), [ 238u8, 133u8, 13u8, 247u8, 199u8, 82u8, 60u8, 30u8, 124u8, 64u8, 52u8, 136u8, 173u8, 44u8, 147u8, 10u8, 188u8, 12u8, 50u8, 141u8, 126u8, 112u8, 177u8, 75u8, 78u8, 102u8, 189u8, 234u8, 142u8, 210u8, 6u8, 129u8, ], ) } #[doc = " Backing votes stored for each dispute."] #[doc = " This storage is used for slashing."] pub fn backers_on_disputes( &self, _0: impl ::std::borrow::Borrow<::core::primitive::u32>, _1: impl ::std::borrow::Borrow< runtime_types::polkadot_core_primitives::CandidateHash, >, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, ::std::vec::Vec, ::subxt::storage::address::Yes, (), ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( "ParasDisputes", "BackersOnDisputes", vec![ ::subxt::storage::address::make_static_storage_map_key(_0.borrow()), ::subxt::storage::address::make_static_storage_map_key(_1.borrow()), ], [ 39u8, 198u8, 10u8, 24u8, 189u8, 43u8, 44u8, 58u8, 52u8, 40u8, 112u8, 131u8, 69u8, 142u8, 12u8, 136u8, 111u8, 160u8, 177u8, 89u8, 150u8, 246u8, 10u8, 174u8, 103u8, 192u8, 19u8, 72u8, 152u8, 246u8, 125u8, 184u8, ], ) } #[doc = " Backing votes stored for each dispute."] #[doc = " This storage is used for slashing."] pub fn backers_on_disputes_root( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, ::std::vec::Vec, (), (), ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( "ParasDisputes", "BackersOnDisputes", Vec::new(), [ 39u8, 198u8, 10u8, 24u8, 189u8, 43u8, 44u8, 58u8, 52u8, 40u8, 112u8, 131u8, 69u8, 142u8, 12u8, 136u8, 111u8, 160u8, 177u8, 89u8, 150u8, 246u8, 10u8, 174u8, 103u8, 192u8, 19u8, 72u8, 152u8, 246u8, 125u8, 184u8, ], ) } #[doc = " All included blocks on the chain, as well as the block number in this chain that"] #[doc = " should be reverted back to if the candidate is disputed and determined to be invalid."] pub fn included( &self, _0: impl ::std::borrow::Borrow<::core::primitive::u32>, _1: impl ::std::borrow::Borrow< runtime_types::polkadot_core_primitives::CandidateHash, >, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, ::core::primitive::u32, ::subxt::storage::address::Yes, (), ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( "ParasDisputes", "Included", vec![ ::subxt::storage::address::make_static_storage_map_key(_0.borrow()), ::subxt::storage::address::make_static_storage_map_key(_1.borrow()), ], [ 25u8, 214u8, 24u8, 25u8, 177u8, 63u8, 232u8, 169u8, 137u8, 37u8, 254u8, 237u8, 164u8, 181u8, 71u8, 233u8, 36u8, 250u8, 184u8, 121u8, 31u8, 143u8, 199u8, 57u8, 164u8, 190u8, 24u8, 30u8, 178u8, 232u8, 207u8, 248u8, ], ) } #[doc = " All included blocks on the chain, as well as the block number in this chain that"] #[doc = " should be reverted back to if the candidate is disputed and determined to be invalid."] pub fn included_root( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, ::core::primitive::u32, (), (), ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( "ParasDisputes", "Included", Vec::new(), [ 25u8, 214u8, 24u8, 25u8, 177u8, 63u8, 232u8, 169u8, 137u8, 37u8, 254u8, 237u8, 164u8, 181u8, 71u8, 233u8, 36u8, 250u8, 184u8, 121u8, 31u8, 143u8, 199u8, 57u8, 164u8, 190u8, 24u8, 30u8, 178u8, 232u8, 207u8, 248u8, ], ) } #[doc = " Whether the chain is frozen. Starts as `None`. When this is `Some`,"] #[doc = " the chain will not accept any new parachain blocks for backing or inclusion,"] #[doc = " and its value indicates the last valid block number in the chain."] #[doc = " It can only be set back to `None` by governance intervention."] pub fn frozen( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, ::core::option::Option<::core::primitive::u32>, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), > { ::subxt::storage::address::Address::new_static( "ParasDisputes", "Frozen", vec![], [ 245u8, 136u8, 43u8, 156u8, 7u8, 74u8, 31u8, 190u8, 184u8, 119u8, 182u8, 66u8, 18u8, 136u8, 30u8, 248u8, 24u8, 121u8, 26u8, 177u8, 169u8, 208u8, 218u8, 208u8, 80u8, 116u8, 31u8, 144u8, 49u8, 201u8, 198u8, 197u8, ], ) } } } } pub mod paras_slashing { use super::root_mod; use super::runtime_types; #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] pub type Error = runtime_types::polkadot_runtime_parachains::disputes::slashing::pallet::Error; #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] pub type Call = runtime_types::polkadot_runtime_parachains::disputes::slashing::pallet::Call; pub mod calls { use super::root_mod; use super::runtime_types; type DispatchError = runtime_types::sp_runtime::DispatchError; pub mod types { use super::runtime_types; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ReportDisputeLostUnsigned { pub dispute_proof : :: std :: boxed :: Box < runtime_types :: polkadot_runtime_parachains :: disputes :: slashing :: DisputeProof > , pub key_owner_proof : runtime_types :: sp_session :: MembershipProof , } impl ::subxt::blocks::StaticExtrinsic for ReportDisputeLostUnsigned { const PALLET: &'static str = "ParasSlashing"; const CALL: &'static str = "report_dispute_lost_unsigned"; } } pub struct TransactionApi; impl TransactionApi { pub fn report_dispute_lost_unsigned( &self, dispute_proof : runtime_types :: polkadot_runtime_parachains :: disputes :: slashing :: DisputeProof, key_owner_proof: runtime_types::sp_session::MembershipProof, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "ParasSlashing", "report_dispute_lost_unsigned", types::ReportDisputeLostUnsigned { dispute_proof: ::std::boxed::Box::new(dispute_proof), key_owner_proof, }, [ 141u8, 19u8, 126u8, 209u8, 239u8, 179u8, 5u8, 160u8, 152u8, 138u8, 71u8, 100u8, 191u8, 96u8, 188u8, 50u8, 231u8, 175u8, 6u8, 222u8, 231u8, 75u8, 186u8, 217u8, 143u8, 140u8, 31u8, 220u8, 120u8, 21u8, 82u8, 227u8, ], ) } } } pub mod storage { use super::runtime_types; pub struct StorageApi; impl StorageApi { #[doc = " Validators pending dispute slashes."] pub fn unapplied_slashes( &self, _0: impl ::std::borrow::Borrow<::core::primitive::u32>, _1: impl ::std::borrow::Borrow< runtime_types::polkadot_core_primitives::CandidateHash, >, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, runtime_types::polkadot_runtime_parachains::disputes::slashing::PendingSlashes, ::subxt::storage::address::Yes, (), ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( "ParasSlashing", "UnappliedSlashes", vec![ ::subxt::storage::address::make_static_storage_map_key(_0.borrow()), ::subxt::storage::address::make_static_storage_map_key(_1.borrow()), ], [ 40u8, 98u8, 183u8, 200u8, 117u8, 36u8, 247u8, 120u8, 56u8, 127u8, 121u8, 166u8, 176u8, 146u8, 247u8, 90u8, 143u8, 49u8, 144u8, 10u8, 103u8, 49u8, 222u8, 206u8, 230u8, 84u8, 116u8, 72u8, 191u8, 86u8, 243u8, 51u8, ], ) } #[doc = " Validators pending dispute slashes."] pub fn unapplied_slashes_root( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, runtime_types::polkadot_runtime_parachains::disputes::slashing::PendingSlashes, (), (), ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( "ParasSlashing", "UnappliedSlashes", Vec::new(), [ 40u8, 98u8, 183u8, 200u8, 117u8, 36u8, 247u8, 120u8, 56u8, 127u8, 121u8, 166u8, 176u8, 146u8, 247u8, 90u8, 143u8, 49u8, 144u8, 10u8, 103u8, 49u8, 222u8, 206u8, 230u8, 84u8, 116u8, 72u8, 191u8, 86u8, 243u8, 51u8, ], ) } #[doc = " `ValidatorSetCount` per session."] pub fn validator_set_counts( &self, _0: impl ::std::borrow::Borrow<::core::primitive::u32>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, ::core::primitive::u32, ::subxt::storage::address::Yes, (), ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( "ParasSlashing", "ValidatorSetCounts", vec![::subxt::storage::address::make_static_storage_map_key( _0.borrow(), )], [ 126u8, 203u8, 18u8, 78u8, 43u8, 170u8, 59u8, 232u8, 218u8, 64u8, 142u8, 73u8, 236u8, 71u8, 248u8, 113u8, 109u8, 1u8, 66u8, 114u8, 200u8, 233u8, 227u8, 174u8, 20u8, 14u8, 217u8, 78u8, 103u8, 119u8, 78u8, 125u8, ], ) } #[doc = " `ValidatorSetCount` per session."] pub fn validator_set_counts_root( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, ::core::primitive::u32, (), (), ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( "ParasSlashing", "ValidatorSetCounts", Vec::new(), [ 126u8, 203u8, 18u8, 78u8, 43u8, 170u8, 59u8, 232u8, 218u8, 64u8, 142u8, 73u8, 236u8, 71u8, 248u8, 113u8, 109u8, 1u8, 66u8, 114u8, 200u8, 233u8, 227u8, 174u8, 20u8, 14u8, 217u8, 78u8, 103u8, 119u8, 78u8, 125u8, ], ) } } } } pub mod registrar { use super::root_mod; use super::runtime_types; #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] pub type Error = runtime_types::polkadot_runtime_common::paras_registrar::pallet::Error; #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] pub type Call = runtime_types::polkadot_runtime_common::paras_registrar::pallet::Call; pub mod calls { use super::root_mod; use super::runtime_types; type DispatchError = runtime_types::sp_runtime::DispatchError; pub mod types { use super::runtime_types; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Register { pub id: runtime_types::polkadot_parachain::primitives::Id, pub genesis_head: runtime_types::polkadot_parachain::primitives::HeadData, pub validation_code: runtime_types::polkadot_parachain::primitives::ValidationCode, } impl ::subxt::blocks::StaticExtrinsic for Register { const PALLET: &'static str = "Registrar"; const CALL: &'static str = "register"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ForceRegister { pub who: ::subxt::utils::AccountId32, pub deposit: ::core::primitive::u128, pub id: runtime_types::polkadot_parachain::primitives::Id, pub genesis_head: runtime_types::polkadot_parachain::primitives::HeadData, pub validation_code: runtime_types::polkadot_parachain::primitives::ValidationCode, } impl ::subxt::blocks::StaticExtrinsic for ForceRegister { const PALLET: &'static str = "Registrar"; const CALL: &'static str = "force_register"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Deregister { pub id: runtime_types::polkadot_parachain::primitives::Id, } impl ::subxt::blocks::StaticExtrinsic for Deregister { const PALLET: &'static str = "Registrar"; const CALL: &'static str = "deregister"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Swap { pub id: runtime_types::polkadot_parachain::primitives::Id, pub other: runtime_types::polkadot_parachain::primitives::Id, } impl ::subxt::blocks::StaticExtrinsic for Swap { const PALLET: &'static str = "Registrar"; const CALL: &'static str = "swap"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct RemoveLock { pub para: runtime_types::polkadot_parachain::primitives::Id, } impl ::subxt::blocks::StaticExtrinsic for RemoveLock { const PALLET: &'static str = "Registrar"; const CALL: &'static str = "remove_lock"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Reserve; impl ::subxt::blocks::StaticExtrinsic for Reserve { const PALLET: &'static str = "Registrar"; const CALL: &'static str = "reserve"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct AddLock { pub para: runtime_types::polkadot_parachain::primitives::Id, } impl ::subxt::blocks::StaticExtrinsic for AddLock { const PALLET: &'static str = "Registrar"; const CALL: &'static str = "add_lock"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ScheduleCodeUpgrade { pub para: runtime_types::polkadot_parachain::primitives::Id, pub new_code: runtime_types::polkadot_parachain::primitives::ValidationCode, } impl ::subxt::blocks::StaticExtrinsic for ScheduleCodeUpgrade { const PALLET: &'static str = "Registrar"; const CALL: &'static str = "schedule_code_upgrade"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SetCurrentHead { pub para: runtime_types::polkadot_parachain::primitives::Id, pub new_head: runtime_types::polkadot_parachain::primitives::HeadData, } impl ::subxt::blocks::StaticExtrinsic for SetCurrentHead { const PALLET: &'static str = "Registrar"; const CALL: &'static str = "set_current_head"; } } pub struct TransactionApi; impl TransactionApi { #[doc = "Register head data and validation code for a reserved Para Id."] #[doc = ""] #[doc = "## Arguments"] #[doc = "- `origin`: Must be called by a `Signed` origin."] #[doc = "- `id`: The para ID. Must be owned/managed by the `origin` signing account."] #[doc = "- `genesis_head`: The genesis head data of the parachain/thread."] #[doc = "- `validation_code`: The initial validation code of the parachain/thread."] #[doc = ""] #[doc = "## Deposits/Fees"] #[doc = "The origin signed account must reserve a corresponding deposit for the registration. Anything already"] #[doc = "reserved previously for this para ID is accounted for."] #[doc = ""] #[doc = "## Events"] #[doc = "The `Registered` event is emitted in case of success."] pub fn register( &self, id: runtime_types::polkadot_parachain::primitives::Id, genesis_head: runtime_types::polkadot_parachain::primitives::HeadData, validation_code: runtime_types::polkadot_parachain::primitives::ValidationCode, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Registrar", "register", types::Register { id, genesis_head, validation_code, }, [ 65u8, 80u8, 86u8, 147u8, 121u8, 86u8, 48u8, 255u8, 59u8, 10u8, 61u8, 20u8, 89u8, 146u8, 7u8, 25u8, 64u8, 18u8, 102u8, 147u8, 207u8, 203u8, 45u8, 113u8, 219u8, 251u8, 188u8, 159u8, 244u8, 27u8, 90u8, 243u8, ], ) } #[doc = "Force the registration of a Para Id on the relay chain."] #[doc = ""] #[doc = "This function must be called by a Root origin."] #[doc = ""] #[doc = "The deposit taken can be specified for this registration. Any `ParaId`"] #[doc = "can be registered, including sub-1000 IDs which are System Parachains."] pub fn force_register( &self, who: ::subxt::utils::AccountId32, deposit: ::core::primitive::u128, id: runtime_types::polkadot_parachain::primitives::Id, genesis_head: runtime_types::polkadot_parachain::primitives::HeadData, validation_code: runtime_types::polkadot_parachain::primitives::ValidationCode, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Registrar", "force_register", types::ForceRegister { who, deposit, id, genesis_head, validation_code, }, [ 75u8, 101u8, 38u8, 63u8, 231u8, 89u8, 241u8, 165u8, 151u8, 93u8, 187u8, 66u8, 156u8, 181u8, 5u8, 204u8, 116u8, 63u8, 176u8, 215u8, 156u8, 152u8, 254u8, 80u8, 196u8, 171u8, 57u8, 121u8, 92u8, 14u8, 61u8, 9u8, ], ) } #[doc = "Deregister a Para Id, freeing all data and returning any deposit."] #[doc = ""] #[doc = "The caller must be Root, the `para` owner, or the `para` itself. The para must be a parathread."] pub fn deregister( &self, id: runtime_types::polkadot_parachain::primitives::Id, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Registrar", "deregister", types::Deregister { id }, [ 212u8, 38u8, 98u8, 234u8, 146u8, 188u8, 71u8, 244u8, 238u8, 255u8, 3u8, 89u8, 52u8, 242u8, 126u8, 187u8, 185u8, 193u8, 174u8, 187u8, 196u8, 3u8, 66u8, 77u8, 173u8, 115u8, 52u8, 210u8, 69u8, 221u8, 109u8, 112u8, ], ) } #[doc = "Swap a parachain with another parachain or parathread."] #[doc = ""] #[doc = "The origin must be Root, the `para` owner, or the `para` itself."] #[doc = ""] #[doc = "The swap will happen only if there is already an opposite swap pending. If there is not,"] #[doc = "the swap will be stored in the pending swaps map, ready for a later confirmatory swap."] #[doc = ""] #[doc = "The `ParaId`s remain mapped to the same head data and code so external code can rely on"] #[doc = "`ParaId` to be a long-term identifier of a notional \"parachain\". However, their"] #[doc = "scheduling info (i.e. whether they're a parathread or parachain), auction information"] #[doc = "and the auction deposit are switched."] pub fn swap( &self, id: runtime_types::polkadot_parachain::primitives::Id, other: runtime_types::polkadot_parachain::primitives::Id, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Registrar", "swap", types::Swap { id, other }, [ 38u8, 63u8, 41u8, 127u8, 128u8, 141u8, 233u8, 3u8, 94u8, 21u8, 143u8, 30u8, 223u8, 120u8, 140u8, 204u8, 199u8, 237u8, 71u8, 227u8, 173u8, 105u8, 121u8, 94u8, 231u8, 117u8, 51u8, 228u8, 14u8, 227u8, 80u8, 162u8, ], ) } #[doc = "Remove a manager lock from a para. This will allow the manager of a"] #[doc = "previously locked para to deregister or swap a para without using governance."] #[doc = ""] #[doc = "Can only be called by the Root origin or the parachain."] pub fn remove_lock( &self, para: runtime_types::polkadot_parachain::primitives::Id, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Registrar", "remove_lock", types::RemoveLock { para }, [ 239u8, 207u8, 248u8, 246u8, 244u8, 128u8, 113u8, 114u8, 6u8, 232u8, 218u8, 123u8, 241u8, 190u8, 255u8, 48u8, 26u8, 248u8, 33u8, 86u8, 87u8, 219u8, 65u8, 104u8, 66u8, 68u8, 34u8, 201u8, 43u8, 159u8, 141u8, 100u8, ], ) } #[doc = "Reserve a Para Id on the relay chain."] #[doc = ""] #[doc = "This function will reserve a new Para Id to be owned/managed by the origin account."] #[doc = "The origin account is able to register head data and validation code using `register` to create"] #[doc = "a parathread. Using the Slots pallet, a parathread can then be upgraded to get a parachain slot."] #[doc = ""] #[doc = "## Arguments"] #[doc = "- `origin`: Must be called by a `Signed` origin. Becomes the manager/owner of the new para ID."] #[doc = ""] #[doc = "## Deposits/Fees"] #[doc = "The origin must reserve a deposit of `ParaDeposit` for the registration."] #[doc = ""] #[doc = "## Events"] #[doc = "The `Reserved` event is emitted in case of success, which provides the ID reserved for use."] pub fn reserve(&self) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Registrar", "reserve", types::Reserve {}, [ 50u8, 72u8, 218u8, 145u8, 224u8, 93u8, 219u8, 220u8, 121u8, 35u8, 104u8, 11u8, 139u8, 114u8, 171u8, 101u8, 40u8, 13u8, 33u8, 39u8, 245u8, 146u8, 138u8, 159u8, 245u8, 236u8, 26u8, 0u8, 20u8, 243u8, 128u8, 81u8, ], ) } #[doc = "Add a manager lock from a para. This will prevent the manager of a"] #[doc = "para to deregister or swap a para."] #[doc = ""] #[doc = "Can be called by Root, the parachain, or the parachain manager if the parachain is unlocked."] pub fn add_lock( &self, para: runtime_types::polkadot_parachain::primitives::Id, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Registrar", "add_lock", types::AddLock { para }, [ 158u8, 27u8, 55u8, 53u8, 71u8, 221u8, 37u8, 73u8, 23u8, 165u8, 129u8, 17u8, 167u8, 79u8, 112u8, 35u8, 231u8, 8u8, 241u8, 151u8, 207u8, 235u8, 224u8, 104u8, 102u8, 108u8, 10u8, 244u8, 33u8, 67u8, 45u8, 13u8, ], ) } #[doc = "Schedule a parachain upgrade."] #[doc = ""] #[doc = "Can be called by Root, the parachain, or the parachain manager if the parachain is unlocked."] pub fn schedule_code_upgrade( &self, para: runtime_types::polkadot_parachain::primitives::Id, new_code: runtime_types::polkadot_parachain::primitives::ValidationCode, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Registrar", "schedule_code_upgrade", types::ScheduleCodeUpgrade { para, new_code }, [ 234u8, 22u8, 133u8, 175u8, 218u8, 250u8, 119u8, 175u8, 23u8, 250u8, 175u8, 48u8, 247u8, 208u8, 235u8, 167u8, 24u8, 248u8, 247u8, 236u8, 239u8, 9u8, 78u8, 195u8, 146u8, 172u8, 41u8, 105u8, 183u8, 253u8, 1u8, 170u8, ], ) } #[doc = "Set the parachain's current head."] #[doc = ""] #[doc = "Can be called by Root, the parachain, or the parachain manager if the parachain is unlocked."] pub fn set_current_head( &self, para: runtime_types::polkadot_parachain::primitives::Id, new_head: runtime_types::polkadot_parachain::primitives::HeadData, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Registrar", "set_current_head", types::SetCurrentHead { para, new_head }, [ 201u8, 49u8, 104u8, 135u8, 80u8, 233u8, 154u8, 193u8, 143u8, 209u8, 10u8, 209u8, 234u8, 252u8, 142u8, 216u8, 220u8, 249u8, 23u8, 252u8, 73u8, 169u8, 204u8, 242u8, 59u8, 19u8, 18u8, 35u8, 115u8, 209u8, 79u8, 112u8, ], ) } } } #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] pub type Event = runtime_types::polkadot_runtime_common::paras_registrar::pallet::Event; pub mod events { use super::runtime_types; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Registered { pub para_id: runtime_types::polkadot_parachain::primitives::Id, pub manager: ::subxt::utils::AccountId32, } impl ::subxt::events::StaticEvent for Registered { const PALLET: &'static str = "Registrar"; const EVENT: &'static str = "Registered"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Deregistered { pub para_id: runtime_types::polkadot_parachain::primitives::Id, } impl ::subxt::events::StaticEvent for Deregistered { const PALLET: &'static str = "Registrar"; const EVENT: &'static str = "Deregistered"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Reserved { pub para_id: runtime_types::polkadot_parachain::primitives::Id, pub who: ::subxt::utils::AccountId32, } impl ::subxt::events::StaticEvent for Reserved { const PALLET: &'static str = "Registrar"; const EVENT: &'static str = "Reserved"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Swapped { pub para_id: runtime_types::polkadot_parachain::primitives::Id, pub other_id: runtime_types::polkadot_parachain::primitives::Id, } impl ::subxt::events::StaticEvent for Swapped { const PALLET: &'static str = "Registrar"; const EVENT: &'static str = "Swapped"; } } pub mod storage { use super::runtime_types; pub struct StorageApi; impl StorageApi { #[doc = " Pending swap operations."] pub fn pending_swap( &self, _0: impl ::std::borrow::Borrow, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, runtime_types::polkadot_parachain::primitives::Id, ::subxt::storage::address::Yes, (), ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( "Registrar", "PendingSwap", vec![::subxt::storage::address::make_static_storage_map_key( _0.borrow(), )], [ 0u8, 222u8, 4u8, 88u8, 174u8, 146u8, 239u8, 193u8, 205u8, 49u8, 21u8, 147u8, 143u8, 4u8, 148u8, 102u8, 100u8, 205u8, 27u8, 108u8, 19u8, 209u8, 98u8, 218u8, 72u8, 220u8, 213u8, 91u8, 16u8, 96u8, 128u8, 58u8, ], ) } #[doc = " Pending swap operations."] pub fn pending_swap_root( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, runtime_types::polkadot_parachain::primitives::Id, (), (), ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( "Registrar", "PendingSwap", Vec::new(), [ 0u8, 222u8, 4u8, 88u8, 174u8, 146u8, 239u8, 193u8, 205u8, 49u8, 21u8, 147u8, 143u8, 4u8, 148u8, 102u8, 100u8, 205u8, 27u8, 108u8, 19u8, 209u8, 98u8, 218u8, 72u8, 220u8, 213u8, 91u8, 16u8, 96u8, 128u8, 58u8, ], ) } #[doc = " Amount held on deposit for each para and the original depositor."] #[doc = ""] #[doc = " The given account ID is responsible for registering the code and initial head data, but may only do"] #[doc = " so if it isn't yet registered. (After that, it's up to governance to do so.)"] pub fn paras( &self, _0: impl ::std::borrow::Borrow, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, runtime_types::polkadot_runtime_common::paras_registrar::ParaInfo< ::subxt::utils::AccountId32, ::core::primitive::u128, >, ::subxt::storage::address::Yes, (), ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( "Registrar", "Paras", vec![::subxt::storage::address::make_static_storage_map_key( _0.borrow(), )], [ 187u8, 63u8, 130u8, 102u8, 222u8, 144u8, 126u8, 130u8, 82u8, 22u8, 64u8, 237u8, 229u8, 91u8, 66u8, 52u8, 9u8, 40u8, 254u8, 60u8, 55u8, 42u8, 144u8, 254u8, 102u8, 21u8, 86u8, 136u8, 49u8, 156u8, 94u8, 163u8, ], ) } #[doc = " Amount held on deposit for each para and the original depositor."] #[doc = ""] #[doc = " The given account ID is responsible for registering the code and initial head data, but may only do"] #[doc = " so if it isn't yet registered. (After that, it's up to governance to do so.)"] pub fn paras_root( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, runtime_types::polkadot_runtime_common::paras_registrar::ParaInfo< ::subxt::utils::AccountId32, ::core::primitive::u128, >, (), (), ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( "Registrar", "Paras", Vec::new(), [ 187u8, 63u8, 130u8, 102u8, 222u8, 144u8, 126u8, 130u8, 82u8, 22u8, 64u8, 237u8, 229u8, 91u8, 66u8, 52u8, 9u8, 40u8, 254u8, 60u8, 55u8, 42u8, 144u8, 254u8, 102u8, 21u8, 86u8, 136u8, 49u8, 156u8, 94u8, 163u8, ], ) } #[doc = " The next free `ParaId`."] pub fn next_free_para_id( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, runtime_types::polkadot_parachain::primitives::Id, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), > { ::subxt::storage::address::Address::new_static( "Registrar", "NextFreeParaId", vec![], [ 52u8, 14u8, 56u8, 196u8, 79u8, 221u8, 32u8, 14u8, 154u8, 247u8, 94u8, 219u8, 11u8, 11u8, 104u8, 137u8, 167u8, 195u8, 180u8, 101u8, 35u8, 235u8, 67u8, 144u8, 128u8, 209u8, 189u8, 227u8, 177u8, 74u8, 42u8, 15u8, ], ) } } } pub mod constants { use super::runtime_types; pub struct ConstantsApi; impl ConstantsApi { #[doc = " The deposit to be paid to run a parathread."] #[doc = " This should include the cost for storing the genesis head and validation code."] pub fn para_deposit(&self) -> ::subxt::constants::Address<::core::primitive::u128> { ::subxt::constants::Address::new_static( "Registrar", "ParaDeposit", [ 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8, 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, 136u8, 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, 148u8, 156u8, ], ) } #[doc = " The deposit to be paid per byte stored on chain."] pub fn data_deposit_per_byte( &self, ) -> ::subxt::constants::Address<::core::primitive::u128> { ::subxt::constants::Address::new_static( "Registrar", "DataDepositPerByte", [ 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8, 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, 136u8, 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, 148u8, 156u8, ], ) } } } } pub mod slots { use super::root_mod; use super::runtime_types; #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] pub type Error = runtime_types::polkadot_runtime_common::slots::pallet::Error; #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] pub type Call = runtime_types::polkadot_runtime_common::slots::pallet::Call; pub mod calls { use super::root_mod; use super::runtime_types; type DispatchError = runtime_types::sp_runtime::DispatchError; pub mod types { use super::runtime_types; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ForceLease { pub para: runtime_types::polkadot_parachain::primitives::Id, pub leaser: ::subxt::utils::AccountId32, pub amount: ::core::primitive::u128, pub period_begin: ::core::primitive::u32, pub period_count: ::core::primitive::u32, } impl ::subxt::blocks::StaticExtrinsic for ForceLease { const PALLET: &'static str = "Slots"; const CALL: &'static str = "force_lease"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ClearAllLeases { pub para: runtime_types::polkadot_parachain::primitives::Id, } impl ::subxt::blocks::StaticExtrinsic for ClearAllLeases { const PALLET: &'static str = "Slots"; const CALL: &'static str = "clear_all_leases"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct TriggerOnboard { pub para: runtime_types::polkadot_parachain::primitives::Id, } impl ::subxt::blocks::StaticExtrinsic for TriggerOnboard { const PALLET: &'static str = "Slots"; const CALL: &'static str = "trigger_onboard"; } } pub struct TransactionApi; impl TransactionApi { #[doc = "Just a connect into the `lease_out` call, in case Root wants to force some lease to happen"] #[doc = "independently of any other on-chain mechanism to use it."] #[doc = ""] #[doc = "The dispatch origin for this call must match `T::ForceOrigin`."] pub fn force_lease( &self, para: runtime_types::polkadot_parachain::primitives::Id, leaser: ::subxt::utils::AccountId32, amount: ::core::primitive::u128, period_begin: ::core::primitive::u32, period_count: ::core::primitive::u32, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Slots", "force_lease", types::ForceLease { para, leaser, amount, period_begin, period_count, }, [ 113u8, 172u8, 189u8, 121u8, 219u8, 25u8, 52u8, 96u8, 146u8, 77u8, 184u8, 237u8, 173u8, 143u8, 234u8, 177u8, 178u8, 74u8, 91u8, 102u8, 154u8, 195u8, 55u8, 192u8, 57u8, 177u8, 122u8, 100u8, 42u8, 116u8, 83u8, 29u8, ], ) } #[doc = "Clear all leases for a Para Id, refunding any deposits back to the original owners."] #[doc = ""] #[doc = "The dispatch origin for this call must match `T::ForceOrigin`."] pub fn clear_all_leases( &self, para: runtime_types::polkadot_parachain::primitives::Id, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Slots", "clear_all_leases", types::ClearAllLeases { para }, [ 201u8, 71u8, 106u8, 50u8, 65u8, 107u8, 191u8, 41u8, 52u8, 106u8, 51u8, 87u8, 19u8, 199u8, 244u8, 93u8, 104u8, 148u8, 116u8, 198u8, 169u8, 137u8, 28u8, 78u8, 54u8, 230u8, 161u8, 16u8, 79u8, 248u8, 28u8, 183u8, ], ) } #[doc = "Try to onboard a parachain that has a lease for the current lease period."] #[doc = ""] #[doc = "This function can be useful if there was some state issue with a para that should"] #[doc = "have onboarded, but was unable to. As long as they have a lease period, we can"] #[doc = "let them onboard from here."] #[doc = ""] #[doc = "Origin must be signed, but can be called by anyone."] pub fn trigger_onboard( &self, para: runtime_types::polkadot_parachain::primitives::Id, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Slots", "trigger_onboard", types::TriggerOnboard { para }, [ 192u8, 239u8, 65u8, 186u8, 200u8, 27u8, 23u8, 235u8, 2u8, 229u8, 230u8, 192u8, 240u8, 51u8, 62u8, 80u8, 253u8, 105u8, 178u8, 134u8, 252u8, 2u8, 153u8, 29u8, 235u8, 249u8, 92u8, 246u8, 136u8, 169u8, 109u8, 4u8, ], ) } } } #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] pub type Event = runtime_types::polkadot_runtime_common::slots::pallet::Event; pub mod events { use super::runtime_types; #[derive( :: subxt :: ext :: codec :: CompactAs, :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A new `[lease_period]` is beginning."] pub struct NewLeasePeriod { pub lease_period: ::core::primitive::u32, } impl ::subxt::events::StaticEvent for NewLeasePeriod { const PALLET: &'static str = "Slots"; const EVENT: &'static str = "NewLeasePeriod"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A para has won the right to a continuous set of lease periods as a parachain."] #[doc = "First balance is any extra amount reserved on top of the para's existing deposit."] #[doc = "Second balance is the total amount reserved."] pub struct Leased { pub para_id: runtime_types::polkadot_parachain::primitives::Id, pub leaser: ::subxt::utils::AccountId32, pub period_begin: ::core::primitive::u32, pub period_count: ::core::primitive::u32, pub extra_reserved: ::core::primitive::u128, pub total_amount: ::core::primitive::u128, } impl ::subxt::events::StaticEvent for Leased { const PALLET: &'static str = "Slots"; const EVENT: &'static str = "Leased"; } } pub mod storage { use super::runtime_types; pub struct StorageApi; impl StorageApi { #[doc = " Amounts held on deposit for each (possibly future) leased parachain."] #[doc = ""] #[doc = " The actual amount locked on its behalf by any account at any time is the maximum of the second values"] #[doc = " of the items in this list whose first value is the account."] #[doc = ""] #[doc = " The first item in the list is the amount locked for the current Lease Period. Following"] #[doc = " items are for the subsequent lease periods."] #[doc = ""] #[doc = " The default value (an empty list) implies that the parachain no longer exists (or never"] #[doc = " existed) as far as this pallet is concerned."] #[doc = ""] #[doc = " If a parachain doesn't exist *yet* but is scheduled to exist in the future, then it"] #[doc = " will be left-padded with one or more `None`s to denote the fact that nothing is held on"] #[doc = " deposit for the non-existent chain currently, but is held at some point in the future."] #[doc = ""] #[doc = " It is illegal for a `None` value to trail in the list."] pub fn leases( &self, _0: impl ::std::borrow::Borrow, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, ::std::vec::Vec< ::core::option::Option<( ::subxt::utils::AccountId32, ::core::primitive::u128, )>, >, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( "Slots", "Leases", vec![::subxt::storage::address::make_static_storage_map_key( _0.borrow(), )], [ 233u8, 226u8, 181u8, 160u8, 216u8, 86u8, 238u8, 229u8, 31u8, 67u8, 200u8, 188u8, 134u8, 22u8, 88u8, 147u8, 204u8, 11u8, 34u8, 244u8, 234u8, 77u8, 184u8, 171u8, 147u8, 228u8, 254u8, 11u8, 40u8, 162u8, 177u8, 196u8, ], ) } #[doc = " Amounts held on deposit for each (possibly future) leased parachain."] #[doc = ""] #[doc = " The actual amount locked on its behalf by any account at any time is the maximum of the second values"] #[doc = " of the items in this list whose first value is the account."] #[doc = ""] #[doc = " The first item in the list is the amount locked for the current Lease Period. Following"] #[doc = " items are for the subsequent lease periods."] #[doc = ""] #[doc = " The default value (an empty list) implies that the parachain no longer exists (or never"] #[doc = " existed) as far as this pallet is concerned."] #[doc = ""] #[doc = " If a parachain doesn't exist *yet* but is scheduled to exist in the future, then it"] #[doc = " will be left-padded with one or more `None`s to denote the fact that nothing is held on"] #[doc = " deposit for the non-existent chain currently, but is held at some point in the future."] #[doc = ""] #[doc = " It is illegal for a `None` value to trail in the list."] pub fn leases_root( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, ::std::vec::Vec< ::core::option::Option<( ::subxt::utils::AccountId32, ::core::primitive::u128, )>, >, (), ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( "Slots", "Leases", Vec::new(), [ 233u8, 226u8, 181u8, 160u8, 216u8, 86u8, 238u8, 229u8, 31u8, 67u8, 200u8, 188u8, 134u8, 22u8, 88u8, 147u8, 204u8, 11u8, 34u8, 244u8, 234u8, 77u8, 184u8, 171u8, 147u8, 228u8, 254u8, 11u8, 40u8, 162u8, 177u8, 196u8, ], ) } } } pub mod constants { use super::runtime_types; pub struct ConstantsApi; impl ConstantsApi { #[doc = " The number of blocks over which a single period lasts."] pub fn lease_period(&self) -> ::subxt::constants::Address<::core::primitive::u32> { ::subxt::constants::Address::new_static( "Slots", "LeasePeriod", [ 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, 145u8, ], ) } #[doc = " The number of blocks to offset each lease period by."] pub fn lease_offset(&self) -> ::subxt::constants::Address<::core::primitive::u32> { ::subxt::constants::Address::new_static( "Slots", "LeaseOffset", [ 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, 145u8, ], ) } } } } pub mod auctions { use super::root_mod; use super::runtime_types; #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] pub type Error = runtime_types::polkadot_runtime_common::auctions::pallet::Error; #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] pub type Call = runtime_types::polkadot_runtime_common::auctions::pallet::Call; pub mod calls { use super::root_mod; use super::runtime_types; type DispatchError = runtime_types::sp_runtime::DispatchError; pub mod types { use super::runtime_types; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct NewAuction { #[codec(compact)] pub duration: ::core::primitive::u32, #[codec(compact)] pub lease_period_index: ::core::primitive::u32, } impl ::subxt::blocks::StaticExtrinsic for NewAuction { const PALLET: &'static str = "Auctions"; const CALL: &'static str = "new_auction"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Bid { #[codec(compact)] pub para: runtime_types::polkadot_parachain::primitives::Id, #[codec(compact)] pub auction_index: ::core::primitive::u32, #[codec(compact)] pub first_slot: ::core::primitive::u32, #[codec(compact)] pub last_slot: ::core::primitive::u32, #[codec(compact)] pub amount: ::core::primitive::u128, } impl ::subxt::blocks::StaticExtrinsic for Bid { const PALLET: &'static str = "Auctions"; const CALL: &'static str = "bid"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct CancelAuction; impl ::subxt::blocks::StaticExtrinsic for CancelAuction { const PALLET: &'static str = "Auctions"; const CALL: &'static str = "cancel_auction"; } } pub struct TransactionApi; impl TransactionApi { #[doc = "Create a new auction."] #[doc = ""] #[doc = "This can only happen when there isn't already an auction in progress and may only be"] #[doc = "called by the root origin. Accepts the `duration` of this auction and the"] #[doc = "`lease_period_index` of the initial lease period of the four that are to be auctioned."] pub fn new_auction( &self, duration: ::core::primitive::u32, lease_period_index: ::core::primitive::u32, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Auctions", "new_auction", types::NewAuction { duration, lease_period_index, }, [ 117u8, 195u8, 187u8, 250u8, 169u8, 118u8, 184u8, 93u8, 121u8, 101u8, 137u8, 252u8, 6u8, 188u8, 174u8, 224u8, 140u8, 38u8, 167u8, 160u8, 132u8, 249u8, 253u8, 29u8, 206u8, 240u8, 208u8, 107u8, 15u8, 135u8, 10u8, 202u8, ], ) } #[doc = "Make a new bid from an account (including a parachain account) for deploying a new"] #[doc = "parachain."] #[doc = ""] #[doc = "Multiple simultaneous bids from the same bidder are allowed only as long as all active"] #[doc = "bids overlap each other (i.e. are mutually exclusive). Bids cannot be redacted."] #[doc = ""] #[doc = "- `sub` is the sub-bidder ID, allowing for multiple competing bids to be made by (and"] #[doc = "funded by) the same account."] #[doc = "- `auction_index` is the index of the auction to bid on. Should just be the present"] #[doc = "value of `AuctionCounter`."] #[doc = "- `first_slot` is the first lease period index of the range to bid on. This is the"] #[doc = "absolute lease period index value, not an auction-specific offset."] #[doc = "- `last_slot` is the last lease period index of the range to bid on. This is the"] #[doc = "absolute lease period index value, not an auction-specific offset."] #[doc = "- `amount` is the amount to bid to be held as deposit for the parachain should the"] #[doc = "bid win. This amount is held throughout the range."] pub fn bid( &self, para: runtime_types::polkadot_parachain::primitives::Id, auction_index: ::core::primitive::u32, first_slot: ::core::primitive::u32, last_slot: ::core::primitive::u32, amount: ::core::primitive::u128, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Auctions", "bid", types::Bid { para, auction_index, first_slot, last_slot, amount, }, [ 33u8, 214u8, 217u8, 212u8, 76u8, 156u8, 74u8, 252u8, 126u8, 140u8, 209u8, 227u8, 220u8, 235u8, 86u8, 84u8, 46u8, 165u8, 149u8, 173u8, 153u8, 225u8, 146u8, 17u8, 79u8, 78u8, 80u8, 172u8, 140u8, 210u8, 87u8, 154u8, ], ) } #[doc = "Cancel an in-progress auction."] #[doc = ""] #[doc = "Can only be called by Root origin."] pub fn cancel_auction(&self) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Auctions", "cancel_auction", types::CancelAuction {}, [ 122u8, 231u8, 136u8, 184u8, 194u8, 4u8, 244u8, 62u8, 253u8, 134u8, 9u8, 240u8, 75u8, 227u8, 74u8, 195u8, 113u8, 247u8, 127u8, 17u8, 90u8, 228u8, 251u8, 88u8, 4u8, 29u8, 254u8, 71u8, 177u8, 103u8, 66u8, 224u8, ], ) } } } #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] pub type Event = runtime_types::polkadot_runtime_common::auctions::pallet::Event; pub mod events { use super::runtime_types; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "An auction started. Provides its index and the block number where it will begin to"] #[doc = "close and the first lease period of the quadruplet that is auctioned."] pub struct AuctionStarted { pub auction_index: ::core::primitive::u32, pub lease_period: ::core::primitive::u32, pub ending: ::core::primitive::u32, } impl ::subxt::events::StaticEvent for AuctionStarted { const PALLET: &'static str = "Auctions"; const EVENT: &'static str = "AuctionStarted"; } #[derive( :: subxt :: ext :: codec :: CompactAs, :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "An auction ended. All funds become unreserved."] pub struct AuctionClosed { pub auction_index: ::core::primitive::u32, } impl ::subxt::events::StaticEvent for AuctionClosed { const PALLET: &'static str = "Auctions"; const EVENT: &'static str = "AuctionClosed"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Funds were reserved for a winning bid. First balance is the extra amount reserved."] #[doc = "Second is the total."] pub struct Reserved { pub bidder: ::subxt::utils::AccountId32, pub extra_reserved: ::core::primitive::u128, pub total_amount: ::core::primitive::u128, } impl ::subxt::events::StaticEvent for Reserved { const PALLET: &'static str = "Auctions"; const EVENT: &'static str = "Reserved"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Funds were unreserved since bidder is no longer active. `[bidder, amount]`"] pub struct Unreserved { pub bidder: ::subxt::utils::AccountId32, pub amount: ::core::primitive::u128, } impl ::subxt::events::StaticEvent for Unreserved { const PALLET: &'static str = "Auctions"; const EVENT: &'static str = "Unreserved"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Someone attempted to lease the same slot twice for a parachain. The amount is held in reserve"] #[doc = "but no parachain slot has been leased."] pub struct ReserveConfiscated { pub para_id: runtime_types::polkadot_parachain::primitives::Id, pub leaser: ::subxt::utils::AccountId32, pub amount: ::core::primitive::u128, } impl ::subxt::events::StaticEvent for ReserveConfiscated { const PALLET: &'static str = "Auctions"; const EVENT: &'static str = "ReserveConfiscated"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A new bid has been accepted as the current winner."] pub struct BidAccepted { pub bidder: ::subxt::utils::AccountId32, pub para_id: runtime_types::polkadot_parachain::primitives::Id, pub amount: ::core::primitive::u128, pub first_slot: ::core::primitive::u32, pub last_slot: ::core::primitive::u32, } impl ::subxt::events::StaticEvent for BidAccepted { const PALLET: &'static str = "Auctions"; const EVENT: &'static str = "BidAccepted"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "The winning offset was chosen for an auction. This will map into the `Winning` storage map."] pub struct WinningOffset { pub auction_index: ::core::primitive::u32, pub block_number: ::core::primitive::u32, } impl ::subxt::events::StaticEvent for WinningOffset { const PALLET: &'static str = "Auctions"; const EVENT: &'static str = "WinningOffset"; } } pub mod storage { use super::runtime_types; pub struct StorageApi; impl StorageApi { #[doc = " Number of auctions started so far."] pub fn auction_counter( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, ::core::primitive::u32, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), > { ::subxt::storage::address::Address::new_static( "Auctions", "AuctionCounter", vec![], [ 110u8, 243u8, 85u8, 4u8, 127u8, 111u8, 101u8, 167u8, 72u8, 129u8, 201u8, 250u8, 88u8, 9u8, 79u8, 14u8, 152u8, 132u8, 0u8, 204u8, 112u8, 248u8, 91u8, 254u8, 30u8, 22u8, 62u8, 180u8, 188u8, 204u8, 29u8, 103u8, ], ) } #[doc = " Information relating to the current auction, if there is one."] #[doc = ""] #[doc = " The first item in the tuple is the lease period index that the first of the four"] #[doc = " contiguous lease periods on auction is for. The second is the block number when the"] #[doc = " auction will \"begin to end\", i.e. the first block of the Ending Period of the auction."] pub fn auction_info( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, (::core::primitive::u32, ::core::primitive::u32), ::subxt::storage::address::Yes, (), (), > { ::subxt::storage::address::Address::new_static( "Auctions", "AuctionInfo", vec![], [ 90u8, 219u8, 72u8, 126u8, 65u8, 18u8, 134u8, 169u8, 249u8, 18u8, 95u8, 142u8, 91u8, 37u8, 237u8, 184u8, 185u8, 42u8, 66u8, 73u8, 101u8, 13u8, 16u8, 165u8, 58u8, 179u8, 95u8, 212u8, 171u8, 1u8, 4u8, 108u8, ], ) } #[doc = " Amounts currently reserved in the accounts of the bidders currently winning"] #[doc = " (sub-)ranges."] pub fn reserved_amounts( &self, _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, _1: impl ::std::borrow::Borrow, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, ::core::primitive::u128, ::subxt::storage::address::Yes, (), ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( "Auctions", "ReservedAmounts", vec![ ::subxt::storage::address::make_static_storage_map_key(_0.borrow()), ::subxt::storage::address::make_static_storage_map_key(_1.borrow()), ], [ 77u8, 44u8, 116u8, 36u8, 189u8, 213u8, 126u8, 32u8, 42u8, 131u8, 108u8, 41u8, 147u8, 40u8, 247u8, 245u8, 161u8, 42u8, 152u8, 195u8, 28u8, 142u8, 231u8, 209u8, 113u8, 11u8, 240u8, 37u8, 112u8, 38u8, 239u8, 245u8, ], ) } #[doc = " Amounts currently reserved in the accounts of the bidders currently winning"] #[doc = " (sub-)ranges."] pub fn reserved_amounts_root( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, ::core::primitive::u128, (), (), ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( "Auctions", "ReservedAmounts", Vec::new(), [ 77u8, 44u8, 116u8, 36u8, 189u8, 213u8, 126u8, 32u8, 42u8, 131u8, 108u8, 41u8, 147u8, 40u8, 247u8, 245u8, 161u8, 42u8, 152u8, 195u8, 28u8, 142u8, 231u8, 209u8, 113u8, 11u8, 240u8, 37u8, 112u8, 38u8, 239u8, 245u8, ], ) } #[doc = " The winning bids for each of the 10 ranges at each sample in the final Ending Period of"] #[doc = " the current auction. The map's key is the 0-based index into the Sample Size. The"] #[doc = " first sample of the ending period is 0; the last is `Sample Size - 1`."] pub fn winning( &self, _0: impl ::std::borrow::Borrow<::core::primitive::u32>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, [::core::option::Option<( ::subxt::utils::AccountId32, runtime_types::polkadot_parachain::primitives::Id, ::core::primitive::u128, )>; 36usize], ::subxt::storage::address::Yes, (), ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( "Auctions", "Winning", vec![::subxt::storage::address::make_static_storage_map_key( _0.borrow(), )], [ 127u8, 44u8, 33u8, 0u8, 119u8, 91u8, 8u8, 60u8, 171u8, 16u8, 85u8, 98u8, 157u8, 16u8, 182u8, 39u8, 219u8, 77u8, 172u8, 222u8, 46u8, 0u8, 239u8, 211u8, 164u8, 200u8, 103u8, 98u8, 175u8, 46u8, 127u8, 32u8, ], ) } #[doc = " The winning bids for each of the 10 ranges at each sample in the final Ending Period of"] #[doc = " the current auction. The map's key is the 0-based index into the Sample Size. The"] #[doc = " first sample of the ending period is 0; the last is `Sample Size - 1`."] pub fn winning_root( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, [::core::option::Option<( ::subxt::utils::AccountId32, runtime_types::polkadot_parachain::primitives::Id, ::core::primitive::u128, )>; 36usize], (), (), ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( "Auctions", "Winning", Vec::new(), [ 127u8, 44u8, 33u8, 0u8, 119u8, 91u8, 8u8, 60u8, 171u8, 16u8, 85u8, 98u8, 157u8, 16u8, 182u8, 39u8, 219u8, 77u8, 172u8, 222u8, 46u8, 0u8, 239u8, 211u8, 164u8, 200u8, 103u8, 98u8, 175u8, 46u8, 127u8, 32u8, ], ) } } } pub mod constants { use super::runtime_types; pub struct ConstantsApi; impl ConstantsApi { #[doc = " The number of blocks over which an auction may be retroactively ended."] pub fn ending_period(&self) -> ::subxt::constants::Address<::core::primitive::u32> { ::subxt::constants::Address::new_static( "Auctions", "EndingPeriod", [ 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, 145u8, ], ) } #[doc = " The length of each sample to take during the ending period."] #[doc = ""] #[doc = " `EndingPeriod` / `SampleLength` = Total # of Samples"] pub fn sample_length(&self) -> ::subxt::constants::Address<::core::primitive::u32> { ::subxt::constants::Address::new_static( "Auctions", "SampleLength", [ 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, 145u8, ], ) } pub fn slot_range_count( &self, ) -> ::subxt::constants::Address<::core::primitive::u32> { ::subxt::constants::Address::new_static( "Auctions", "SlotRangeCount", [ 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, 145u8, ], ) } pub fn lease_periods_per_slot( &self, ) -> ::subxt::constants::Address<::core::primitive::u32> { ::subxt::constants::Address::new_static( "Auctions", "LeasePeriodsPerSlot", [ 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, 145u8, ], ) } } } } pub mod crowdloan { use super::root_mod; use super::runtime_types; #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] pub type Error = runtime_types::polkadot_runtime_common::crowdloan::pallet::Error; #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] pub type Call = runtime_types::polkadot_runtime_common::crowdloan::pallet::Call; pub mod calls { use super::root_mod; use super::runtime_types; type DispatchError = runtime_types::sp_runtime::DispatchError; pub mod types { use super::runtime_types; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Create { #[codec(compact)] pub index: runtime_types::polkadot_parachain::primitives::Id, #[codec(compact)] pub cap: ::core::primitive::u128, #[codec(compact)] pub first_period: ::core::primitive::u32, #[codec(compact)] pub last_period: ::core::primitive::u32, #[codec(compact)] pub end: ::core::primitive::u32, pub verifier: ::core::option::Option, } impl ::subxt::blocks::StaticExtrinsic for Create { const PALLET: &'static str = "Crowdloan"; const CALL: &'static str = "create"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Contribute { #[codec(compact)] pub index: runtime_types::polkadot_parachain::primitives::Id, #[codec(compact)] pub value: ::core::primitive::u128, pub signature: ::core::option::Option, } impl ::subxt::blocks::StaticExtrinsic for Contribute { const PALLET: &'static str = "Crowdloan"; const CALL: &'static str = "contribute"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Withdraw { pub who: ::subxt::utils::AccountId32, #[codec(compact)] pub index: runtime_types::polkadot_parachain::primitives::Id, } impl ::subxt::blocks::StaticExtrinsic for Withdraw { const PALLET: &'static str = "Crowdloan"; const CALL: &'static str = "withdraw"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Refund { #[codec(compact)] pub index: runtime_types::polkadot_parachain::primitives::Id, } impl ::subxt::blocks::StaticExtrinsic for Refund { const PALLET: &'static str = "Crowdloan"; const CALL: &'static str = "refund"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Dissolve { #[codec(compact)] pub index: runtime_types::polkadot_parachain::primitives::Id, } impl ::subxt::blocks::StaticExtrinsic for Dissolve { const PALLET: &'static str = "Crowdloan"; const CALL: &'static str = "dissolve"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Edit { #[codec(compact)] pub index: runtime_types::polkadot_parachain::primitives::Id, #[codec(compact)] pub cap: ::core::primitive::u128, #[codec(compact)] pub first_period: ::core::primitive::u32, #[codec(compact)] pub last_period: ::core::primitive::u32, #[codec(compact)] pub end: ::core::primitive::u32, pub verifier: ::core::option::Option, } impl ::subxt::blocks::StaticExtrinsic for Edit { const PALLET: &'static str = "Crowdloan"; const CALL: &'static str = "edit"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct AddMemo { pub index: runtime_types::polkadot_parachain::primitives::Id, pub memo: ::std::vec::Vec<::core::primitive::u8>, } impl ::subxt::blocks::StaticExtrinsic for AddMemo { const PALLET: &'static str = "Crowdloan"; const CALL: &'static str = "add_memo"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Poke { pub index: runtime_types::polkadot_parachain::primitives::Id, } impl ::subxt::blocks::StaticExtrinsic for Poke { const PALLET: &'static str = "Crowdloan"; const CALL: &'static str = "poke"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ContributeAll { #[codec(compact)] pub index: runtime_types::polkadot_parachain::primitives::Id, pub signature: ::core::option::Option, } impl ::subxt::blocks::StaticExtrinsic for ContributeAll { const PALLET: &'static str = "Crowdloan"; const CALL: &'static str = "contribute_all"; } } pub struct TransactionApi; impl TransactionApi { #[doc = "Create a new crowdloaning campaign for a parachain slot with the given lease period range."] #[doc = ""] #[doc = "This applies a lock to your parachain configuration, ensuring that it cannot be changed"] #[doc = "by the parachain manager."] pub fn create( &self, index: runtime_types::polkadot_parachain::primitives::Id, cap: ::core::primitive::u128, first_period: ::core::primitive::u32, last_period: ::core::primitive::u32, end: ::core::primitive::u32, verifier: ::core::option::Option, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Crowdloan", "create", types::Create { index, cap, first_period, last_period, end, verifier, }, [ 136u8, 111u8, 157u8, 203u8, 90u8, 134u8, 252u8, 254u8, 80u8, 250u8, 10u8, 16u8, 26u8, 87u8, 225u8, 44u8, 188u8, 19u8, 138u8, 39u8, 109u8, 30u8, 164u8, 136u8, 90u8, 175u8, 75u8, 165u8, 15u8, 208u8, 169u8, 5u8, ], ) } #[doc = "Contribute to a crowd sale. This will transfer some balance over to fund a parachain"] #[doc = "slot. It will be withdrawable when the crowdloan has ended and the funds are unused."] pub fn contribute( &self, index: runtime_types::polkadot_parachain::primitives::Id, value: ::core::primitive::u128, signature: ::core::option::Option, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Crowdloan", "contribute", types::Contribute { index, value, signature, }, [ 221u8, 45u8, 121u8, 39u8, 113u8, 160u8, 94u8, 51u8, 214u8, 93u8, 178u8, 227u8, 234u8, 126u8, 135u8, 127u8, 14u8, 115u8, 206u8, 64u8, 199u8, 91u8, 17u8, 209u8, 169u8, 238u8, 224u8, 193u8, 8u8, 97u8, 183u8, 47u8, ], ) } #[doc = "Withdraw full balance of a specific contributor."] #[doc = ""] #[doc = "Origin must be signed, but can come from anyone."] #[doc = ""] #[doc = "The fund must be either in, or ready for, retirement. For a fund to be *in* retirement, then the retirement"] #[doc = "flag must be set. For a fund to be ready for retirement, then:"] #[doc = "- it must not already be in retirement;"] #[doc = "- the amount of raised funds must be bigger than the _free_ balance of the account;"] #[doc = "- and either:"] #[doc = " - the block number must be at least `end`; or"] #[doc = " - the current lease period must be greater than the fund's `last_period`."] #[doc = ""] #[doc = "In this case, the fund's retirement flag is set and its `end` is reset to the current block"] #[doc = "number."] #[doc = ""] #[doc = "- `who`: The account whose contribution should be withdrawn."] #[doc = "- `index`: The parachain to whose crowdloan the contribution was made."] pub fn withdraw( &self, who: ::subxt::utils::AccountId32, index: runtime_types::polkadot_parachain::primitives::Id, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Crowdloan", "withdraw", types::Withdraw { who, index }, [ 148u8, 23u8, 138u8, 161u8, 248u8, 235u8, 138u8, 156u8, 209u8, 236u8, 235u8, 81u8, 207u8, 212u8, 232u8, 126u8, 221u8, 46u8, 34u8, 39u8, 44u8, 42u8, 75u8, 134u8, 12u8, 247u8, 84u8, 203u8, 48u8, 133u8, 72u8, 254u8, ], ) } #[doc = "Automatically refund contributors of an ended crowdloan."] #[doc = "Due to weight restrictions, this function may need to be called multiple"] #[doc = "times to fully refund all users. We will refund `RemoveKeysLimit` users at a time."] #[doc = ""] #[doc = "Origin must be signed, but can come from anyone."] pub fn refund( &self, index: runtime_types::polkadot_parachain::primitives::Id, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Crowdloan", "refund", types::Refund { index }, [ 245u8, 75u8, 215u8, 28u8, 141u8, 138u8, 201u8, 125u8, 21u8, 214u8, 57u8, 23u8, 33u8, 41u8, 57u8, 227u8, 119u8, 212u8, 234u8, 227u8, 230u8, 144u8, 249u8, 100u8, 198u8, 125u8, 106u8, 253u8, 93u8, 177u8, 247u8, 5u8, ], ) } #[doc = "Remove a fund after the retirement period has ended and all funds have been returned."] pub fn dissolve( &self, index: runtime_types::polkadot_parachain::primitives::Id, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Crowdloan", "dissolve", types::Dissolve { index }, [ 60u8, 225u8, 93u8, 234u8, 160u8, 90u8, 185u8, 188u8, 163u8, 72u8, 241u8, 46u8, 62u8, 176u8, 236u8, 175u8, 147u8, 95u8, 45u8, 235u8, 253u8, 76u8, 127u8, 190u8, 149u8, 54u8, 108u8, 78u8, 149u8, 161u8, 39u8, 14u8, ], ) } #[doc = "Edit the configuration for an in-progress crowdloan."] #[doc = ""] #[doc = "Can only be called by Root origin."] pub fn edit( &self, index: runtime_types::polkadot_parachain::primitives::Id, cap: ::core::primitive::u128, first_period: ::core::primitive::u32, last_period: ::core::primitive::u32, end: ::core::primitive::u32, verifier: ::core::option::Option, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Crowdloan", "edit", types::Edit { index, cap, first_period, last_period, end, verifier, }, [ 92u8, 12u8, 155u8, 42u8, 38u8, 165u8, 137u8, 179u8, 130u8, 218u8, 84u8, 114u8, 130u8, 104u8, 38u8, 162u8, 243u8, 155u8, 122u8, 207u8, 250u8, 18u8, 238u8, 69u8, 52u8, 113u8, 179u8, 6u8, 226u8, 36u8, 4u8, 166u8, ], ) } #[doc = "Add an optional memo to an existing crowdloan contribution."] #[doc = ""] #[doc = "Origin must be Signed, and the user must have contributed to the crowdloan."] pub fn add_memo( &self, index: runtime_types::polkadot_parachain::primitives::Id, memo: ::std::vec::Vec<::core::primitive::u8>, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Crowdloan", "add_memo", types::AddMemo { index, memo }, [ 190u8, 99u8, 225u8, 54u8, 136u8, 238u8, 210u8, 44u8, 103u8, 198u8, 225u8, 254u8, 245u8, 12u8, 238u8, 112u8, 143u8, 169u8, 8u8, 193u8, 29u8, 0u8, 159u8, 25u8, 112u8, 237u8, 194u8, 17u8, 111u8, 192u8, 219u8, 50u8, ], ) } #[doc = "Poke the fund into `NewRaise`"] #[doc = ""] #[doc = "Origin must be Signed, and the fund has non-zero raise."] pub fn poke( &self, index: runtime_types::polkadot_parachain::primitives::Id, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Crowdloan", "poke", types::Poke { index }, [ 180u8, 81u8, 211u8, 12u8, 54u8, 204u8, 105u8, 118u8, 139u8, 209u8, 182u8, 227u8, 174u8, 192u8, 64u8, 200u8, 212u8, 101u8, 3u8, 252u8, 195u8, 110u8, 182u8, 121u8, 218u8, 193u8, 87u8, 38u8, 212u8, 151u8, 213u8, 56u8, ], ) } #[doc = "Contribute your entire balance to a crowd sale. This will transfer the entire balance of a user over to fund a parachain"] #[doc = "slot. It will be withdrawable when the crowdloan has ended and the funds are unused."] pub fn contribute_all( &self, index: runtime_types::polkadot_parachain::primitives::Id, signature: ::core::option::Option, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Crowdloan", "contribute_all", types::ContributeAll { index, signature }, [ 218u8, 230u8, 158u8, 9u8, 57u8, 53u8, 155u8, 255u8, 177u8, 169u8, 143u8, 126u8, 165u8, 216u8, 85u8, 231u8, 170u8, 124u8, 175u8, 93u8, 121u8, 166u8, 48u8, 239u8, 98u8, 208u8, 86u8, 178u8, 130u8, 60u8, 84u8, 206u8, ], ) } } } #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] pub type Event = runtime_types::polkadot_runtime_common::crowdloan::pallet::Event; pub mod events { use super::runtime_types; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Create a new crowdloaning campaign."] pub struct Created { pub para_id: runtime_types::polkadot_parachain::primitives::Id, } impl ::subxt::events::StaticEvent for Created { const PALLET: &'static str = "Crowdloan"; const EVENT: &'static str = "Created"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Contributed to a crowd sale."] pub struct Contributed { pub who: ::subxt::utils::AccountId32, pub fund_index: runtime_types::polkadot_parachain::primitives::Id, pub amount: ::core::primitive::u128, } impl ::subxt::events::StaticEvent for Contributed { const PALLET: &'static str = "Crowdloan"; const EVENT: &'static str = "Contributed"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Withdrew full balance of a contributor."] pub struct Withdrew { pub who: ::subxt::utils::AccountId32, pub fund_index: runtime_types::polkadot_parachain::primitives::Id, pub amount: ::core::primitive::u128, } impl ::subxt::events::StaticEvent for Withdrew { const PALLET: &'static str = "Crowdloan"; const EVENT: &'static str = "Withdrew"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "The loans in a fund have been partially dissolved, i.e. there are some left"] #[doc = "over child keys that still need to be killed."] pub struct PartiallyRefunded { pub para_id: runtime_types::polkadot_parachain::primitives::Id, } impl ::subxt::events::StaticEvent for PartiallyRefunded { const PALLET: &'static str = "Crowdloan"; const EVENT: &'static str = "PartiallyRefunded"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "All loans in a fund have been refunded."] pub struct AllRefunded { pub para_id: runtime_types::polkadot_parachain::primitives::Id, } impl ::subxt::events::StaticEvent for AllRefunded { const PALLET: &'static str = "Crowdloan"; const EVENT: &'static str = "AllRefunded"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Fund is dissolved."] pub struct Dissolved { pub para_id: runtime_types::polkadot_parachain::primitives::Id, } impl ::subxt::events::StaticEvent for Dissolved { const PALLET: &'static str = "Crowdloan"; const EVENT: &'static str = "Dissolved"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "The result of trying to submit a new bid to the Slots pallet."] pub struct HandleBidResult { pub para_id: runtime_types::polkadot_parachain::primitives::Id, pub result: ::core::result::Result<(), runtime_types::sp_runtime::DispatchError>, } impl ::subxt::events::StaticEvent for HandleBidResult { const PALLET: &'static str = "Crowdloan"; const EVENT: &'static str = "HandleBidResult"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "The configuration to a crowdloan has been edited."] pub struct Edited { pub para_id: runtime_types::polkadot_parachain::primitives::Id, } impl ::subxt::events::StaticEvent for Edited { const PALLET: &'static str = "Crowdloan"; const EVENT: &'static str = "Edited"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A memo has been updated."] pub struct MemoUpdated { pub who: ::subxt::utils::AccountId32, pub para_id: runtime_types::polkadot_parachain::primitives::Id, pub memo: ::std::vec::Vec<::core::primitive::u8>, } impl ::subxt::events::StaticEvent for MemoUpdated { const PALLET: &'static str = "Crowdloan"; const EVENT: &'static str = "MemoUpdated"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A parachain has been moved to `NewRaise`"] pub struct AddedToNewRaise { pub para_id: runtime_types::polkadot_parachain::primitives::Id, } impl ::subxt::events::StaticEvent for AddedToNewRaise { const PALLET: &'static str = "Crowdloan"; const EVENT: &'static str = "AddedToNewRaise"; } } pub mod storage { use super::runtime_types; pub struct StorageApi; impl StorageApi { #[doc = " Info on all of the funds."] pub fn funds( &self, _0: impl ::std::borrow::Borrow, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, runtime_types::polkadot_runtime_common::crowdloan::FundInfo< ::subxt::utils::AccountId32, ::core::primitive::u128, ::core::primitive::u32, ::core::primitive::u32, >, ::subxt::storage::address::Yes, (), ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( "Crowdloan", "Funds", vec![::subxt::storage::address::make_static_storage_map_key( _0.borrow(), )], [ 179u8, 120u8, 62u8, 42u8, 236u8, 181u8, 225u8, 216u8, 210u8, 74u8, 168u8, 21u8, 215u8, 239u8, 185u8, 247u8, 72u8, 152u8, 117u8, 195u8, 41u8, 102u8, 174u8, 242u8, 127u8, 32u8, 145u8, 74u8, 245u8, 57u8, 220u8, 116u8, ], ) } #[doc = " Info on all of the funds."] pub fn funds_root( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, runtime_types::polkadot_runtime_common::crowdloan::FundInfo< ::subxt::utils::AccountId32, ::core::primitive::u128, ::core::primitive::u32, ::core::primitive::u32, >, (), (), ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( "Crowdloan", "Funds", Vec::new(), [ 179u8, 120u8, 62u8, 42u8, 236u8, 181u8, 225u8, 216u8, 210u8, 74u8, 168u8, 21u8, 215u8, 239u8, 185u8, 247u8, 72u8, 152u8, 117u8, 195u8, 41u8, 102u8, 174u8, 242u8, 127u8, 32u8, 145u8, 74u8, 245u8, 57u8, 220u8, 116u8, ], ) } #[doc = " The funds that have had additional contributions during the last block. This is used"] #[doc = " in order to determine which funds should submit new or updated bids."] pub fn new_raise( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, ::std::vec::Vec, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), > { ::subxt::storage::address::Address::new_static( "Crowdloan", "NewRaise", vec![], [ 251u8, 31u8, 237u8, 22u8, 90u8, 248u8, 39u8, 66u8, 93u8, 81u8, 209u8, 209u8, 194u8, 42u8, 109u8, 208u8, 56u8, 75u8, 45u8, 247u8, 253u8, 165u8, 22u8, 184u8, 49u8, 49u8, 62u8, 126u8, 254u8, 146u8, 190u8, 174u8, ], ) } #[doc = " The number of auctions that have entered into their ending period so far."] pub fn endings_count( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, ::core::primitive::u32, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), > { ::subxt::storage::address::Address::new_static( "Crowdloan", "EndingsCount", vec![], [ 106u8, 22u8, 229u8, 157u8, 118u8, 195u8, 11u8, 42u8, 5u8, 50u8, 44u8, 183u8, 72u8, 167u8, 95u8, 243u8, 234u8, 5u8, 200u8, 253u8, 127u8, 154u8, 23u8, 55u8, 202u8, 221u8, 82u8, 19u8, 201u8, 154u8, 248u8, 29u8, ], ) } #[doc = " Tracker for the next available fund index"] pub fn next_fund_index( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, ::core::primitive::u32, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), > { ::subxt::storage::address::Address::new_static( "Crowdloan", "NextFundIndex", vec![], [ 192u8, 21u8, 229u8, 234u8, 152u8, 224u8, 149u8, 44u8, 41u8, 9u8, 191u8, 128u8, 118u8, 11u8, 117u8, 245u8, 170u8, 116u8, 77u8, 216u8, 175u8, 115u8, 13u8, 85u8, 240u8, 170u8, 156u8, 201u8, 25u8, 96u8, 103u8, 207u8, ], ) } } } pub mod constants { use super::runtime_types; pub struct ConstantsApi; impl ConstantsApi { #[doc = " `PalletId` for the crowdloan pallet. An appropriate value could be `PalletId(*b\"py/cfund\")`"] pub fn pallet_id( &self, ) -> ::subxt::constants::Address { ::subxt::constants::Address::new_static( "Crowdloan", "PalletId", [ 56u8, 243u8, 53u8, 83u8, 154u8, 179u8, 170u8, 80u8, 133u8, 173u8, 61u8, 161u8, 47u8, 225u8, 146u8, 21u8, 50u8, 229u8, 248u8, 27u8, 104u8, 58u8, 129u8, 197u8, 102u8, 160u8, 168u8, 205u8, 154u8, 42u8, 217u8, 53u8, ], ) } #[doc = " The minimum amount that may be contributed into a crowdloan. Should almost certainly be at"] #[doc = " least `ExistentialDeposit`."] pub fn min_contribution( &self, ) -> ::subxt::constants::Address<::core::primitive::u128> { ::subxt::constants::Address::new_static( "Crowdloan", "MinContribution", [ 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8, 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, 136u8, 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, 148u8, 156u8, ], ) } #[doc = " Max number of storage keys to remove per extrinsic call."] pub fn remove_keys_limit( &self, ) -> ::subxt::constants::Address<::core::primitive::u32> { ::subxt::constants::Address::new_static( "Crowdloan", "RemoveKeysLimit", [ 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, 145u8, ], ) } } } } pub mod xcm_pallet { use super::root_mod; use super::runtime_types; #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] pub type Error = runtime_types::pallet_xcm::pallet::Error; #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] pub type Call = runtime_types::pallet_xcm::pallet::Call; pub mod calls { use super::root_mod; use super::runtime_types; type DispatchError = runtime_types::sp_runtime::DispatchError; pub mod types { use super::runtime_types; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Send { pub dest: ::std::boxed::Box, pub message: ::std::boxed::Box, } impl ::subxt::blocks::StaticExtrinsic for Send { const PALLET: &'static str = "XcmPallet"; const CALL: &'static str = "send"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct TeleportAssets { pub dest: ::std::boxed::Box, pub beneficiary: ::std::boxed::Box, pub assets: ::std::boxed::Box, pub fee_asset_item: ::core::primitive::u32, } impl ::subxt::blocks::StaticExtrinsic for TeleportAssets { const PALLET: &'static str = "XcmPallet"; const CALL: &'static str = "teleport_assets"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ReserveTransferAssets { pub dest: ::std::boxed::Box, pub beneficiary: ::std::boxed::Box, pub assets: ::std::boxed::Box, pub fee_asset_item: ::core::primitive::u32, } impl ::subxt::blocks::StaticExtrinsic for ReserveTransferAssets { const PALLET: &'static str = "XcmPallet"; const CALL: &'static str = "reserve_transfer_assets"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Execute { pub message: ::std::boxed::Box, pub max_weight: runtime_types::sp_weights::weight_v2::Weight, } impl ::subxt::blocks::StaticExtrinsic for Execute { const PALLET: &'static str = "XcmPallet"; const CALL: &'static str = "execute"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ForceXcmVersion { pub location: ::std::boxed::Box, pub xcm_version: ::core::primitive::u32, } impl ::subxt::blocks::StaticExtrinsic for ForceXcmVersion { const PALLET: &'static str = "XcmPallet"; const CALL: &'static str = "force_xcm_version"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ForceDefaultXcmVersion { pub maybe_xcm_version: ::core::option::Option<::core::primitive::u32>, } impl ::subxt::blocks::StaticExtrinsic for ForceDefaultXcmVersion { const PALLET: &'static str = "XcmPallet"; const CALL: &'static str = "force_default_xcm_version"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ForceSubscribeVersionNotify { pub location: ::std::boxed::Box, } impl ::subxt::blocks::StaticExtrinsic for ForceSubscribeVersionNotify { const PALLET: &'static str = "XcmPallet"; const CALL: &'static str = "force_subscribe_version_notify"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ForceUnsubscribeVersionNotify { pub location: ::std::boxed::Box, } impl ::subxt::blocks::StaticExtrinsic for ForceUnsubscribeVersionNotify { const PALLET: &'static str = "XcmPallet"; const CALL: &'static str = "force_unsubscribe_version_notify"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct LimitedReserveTransferAssets { pub dest: ::std::boxed::Box, pub beneficiary: ::std::boxed::Box, pub assets: ::std::boxed::Box, pub fee_asset_item: ::core::primitive::u32, pub weight_limit: runtime_types::xcm::v3::WeightLimit, } impl ::subxt::blocks::StaticExtrinsic for LimitedReserveTransferAssets { const PALLET: &'static str = "XcmPallet"; const CALL: &'static str = "limited_reserve_transfer_assets"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct LimitedTeleportAssets { pub dest: ::std::boxed::Box, pub beneficiary: ::std::boxed::Box, pub assets: ::std::boxed::Box, pub fee_asset_item: ::core::primitive::u32, pub weight_limit: runtime_types::xcm::v3::WeightLimit, } impl ::subxt::blocks::StaticExtrinsic for LimitedTeleportAssets { const PALLET: &'static str = "XcmPallet"; const CALL: &'static str = "limited_teleport_assets"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ForceSuspension { pub suspended: ::core::primitive::bool, } impl ::subxt::blocks::StaticExtrinsic for ForceSuspension { const PALLET: &'static str = "XcmPallet"; const CALL: &'static str = "force_suspension"; } } pub struct TransactionApi; impl TransactionApi { pub fn send( &self, dest: runtime_types::xcm::VersionedMultiLocation, message: runtime_types::xcm::VersionedXcm, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "XcmPallet", "send", types::Send { dest: ::std::boxed::Box::new(dest), message: ::std::boxed::Box::new(message), }, [ 179u8, 0u8, 46u8, 230u8, 210u8, 183u8, 91u8, 129u8, 120u8, 45u8, 156u8, 37u8, 100u8, 175u8, 147u8, 10u8, 24u8, 70u8, 80u8, 8u8, 253u8, 107u8, 168u8, 10u8, 46u8, 192u8, 226u8, 208u8, 102u8, 217u8, 25u8, 154u8, ], ) } #[doc = "Teleport some assets from the local chain to some destination chain."] #[doc = ""] #[doc = "Fee payment on the destination side is made from the asset in the `assets` vector of"] #[doc = "index `fee_asset_item`. The weight limit for fees is not provided and thus is unlimited,"] #[doc = "with all fees taken as needed from the asset."] #[doc = ""] #[doc = "- `origin`: Must be capable of withdrawing the `assets` and executing XCM."] #[doc = "- `dest`: Destination context for the assets. Will typically be `X2(Parent, Parachain(..))` to send"] #[doc = " from parachain to parachain, or `X1(Parachain(..))` to send from relay to parachain."] #[doc = "- `beneficiary`: A beneficiary location for the assets in the context of `dest`. Will generally be"] #[doc = " an `AccountId32` value."] #[doc = "- `assets`: The assets to be withdrawn. The first item should be the currency used to to pay the fee on the"] #[doc = " `dest` side. May not be empty."] #[doc = "- `fee_asset_item`: The index into `assets` of the item which should be used to pay"] #[doc = " fees."] pub fn teleport_assets( &self, dest: runtime_types::xcm::VersionedMultiLocation, beneficiary: runtime_types::xcm::VersionedMultiLocation, assets: runtime_types::xcm::VersionedMultiAssets, fee_asset_item: ::core::primitive::u32, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "XcmPallet", "teleport_assets", types::TeleportAssets { dest: ::std::boxed::Box::new(dest), beneficiary: ::std::boxed::Box::new(beneficiary), assets: ::std::boxed::Box::new(assets), fee_asset_item, }, [ 55u8, 134u8, 79u8, 159u8, 98u8, 83u8, 169u8, 45u8, 116u8, 191u8, 166u8, 51u8, 27u8, 109u8, 114u8, 146u8, 82u8, 240u8, 159u8, 63u8, 35u8, 227u8, 206u8, 69u8, 133u8, 194u8, 181u8, 110u8, 77u8, 30u8, 241u8, 210u8, ], ) } #[doc = "Transfer some assets from the local chain to the sovereign account of a destination"] #[doc = "chain and forward a notification XCM."] #[doc = ""] #[doc = "Fee payment on the destination side is made from the asset in the `assets` vector of"] #[doc = "index `fee_asset_item`. The weight limit for fees is not provided and thus is unlimited,"] #[doc = "with all fees taken as needed from the asset."] #[doc = ""] #[doc = "- `origin`: Must be capable of withdrawing the `assets` and executing XCM."] #[doc = "- `dest`: Destination context for the assets. Will typically be `X2(Parent, Parachain(..))` to send"] #[doc = " from parachain to parachain, or `X1(Parachain(..))` to send from relay to parachain."] #[doc = "- `beneficiary`: A beneficiary location for the assets in the context of `dest`. Will generally be"] #[doc = " an `AccountId32` value."] #[doc = "- `assets`: The assets to be withdrawn. This should include the assets used to pay the fee on the"] #[doc = " `dest` side."] #[doc = "- `fee_asset_item`: The index into `assets` of the item which should be used to pay"] #[doc = " fees."] pub fn reserve_transfer_assets( &self, dest: runtime_types::xcm::VersionedMultiLocation, beneficiary: runtime_types::xcm::VersionedMultiLocation, assets: runtime_types::xcm::VersionedMultiAssets, fee_asset_item: ::core::primitive::u32, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "XcmPallet", "reserve_transfer_assets", types::ReserveTransferAssets { dest: ::std::boxed::Box::new(dest), beneficiary: ::std::boxed::Box::new(beneficiary), assets: ::std::boxed::Box::new(assets), fee_asset_item, }, [ 12u8, 232u8, 11u8, 188u8, 202u8, 160u8, 42u8, 194u8, 91u8, 84u8, 167u8, 83u8, 193u8, 198u8, 121u8, 60u8, 83u8, 34u8, 10u8, 1u8, 19u8, 9u8, 115u8, 71u8, 242u8, 65u8, 139u8, 58u8, 35u8, 103u8, 241u8, 196u8, ], ) } #[doc = "Execute an XCM message from a local, signed, origin."] #[doc = ""] #[doc = "An event is deposited indicating whether `msg` could be executed completely or only"] #[doc = "partially."] #[doc = ""] #[doc = "No more than `max_weight` will be used in its attempted execution. If this is less than the"] #[doc = "maximum amount of weight that the message could take to be executed, then no execution"] #[doc = "attempt will be made."] #[doc = ""] #[doc = "NOTE: A successful return to this does *not* imply that the `msg` was executed successfully"] #[doc = "to completion; only that *some* of it was executed."] pub fn execute( &self, message: runtime_types::xcm::VersionedXcm2, max_weight: runtime_types::sp_weights::weight_v2::Weight, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "XcmPallet", "execute", types::Execute { message: ::std::boxed::Box::new(message), max_weight, }, [ 162u8, 211u8, 166u8, 126u8, 220u8, 232u8, 242u8, 251u8, 44u8, 206u8, 7u8, 198u8, 89u8, 27u8, 26u8, 87u8, 151u8, 79u8, 38u8, 164u8, 141u8, 81u8, 218u8, 162u8, 52u8, 238u8, 46u8, 207u8, 235u8, 124u8, 165u8, 8u8, ], ) } #[doc = "Extoll that a particular destination can be communicated with through a particular"] #[doc = "version of XCM."] #[doc = ""] #[doc = "- `origin`: Must be an origin specified by AdminOrigin."] #[doc = "- `location`: The destination that is being described."] #[doc = "- `xcm_version`: The latest version of XCM that `location` supports."] pub fn force_xcm_version( &self, location: runtime_types::xcm::v3::multilocation::MultiLocation, xcm_version: ::core::primitive::u32, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "XcmPallet", "force_xcm_version", types::ForceXcmVersion { location: ::std::boxed::Box::new(location), xcm_version, }, [ 31u8, 152u8, 219u8, 67u8, 212u8, 13u8, 162u8, 129u8, 151u8, 183u8, 18u8, 2u8, 5u8, 229u8, 94u8, 37u8, 135u8, 69u8, 111u8, 100u8, 177u8, 96u8, 57u8, 124u8, 53u8, 172u8, 245u8, 29u8, 156u8, 135u8, 42u8, 125u8, ], ) } #[doc = "Set a safe XCM version (the version that XCM should be encoded with if the most recent"] #[doc = "version a destination can accept is unknown)."] #[doc = ""] #[doc = "- `origin`: Must be an origin specified by AdminOrigin."] #[doc = "- `maybe_xcm_version`: The default XCM encoding version, or `None` to disable."] pub fn force_default_xcm_version( &self, maybe_xcm_version: ::core::option::Option<::core::primitive::u32>, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "XcmPallet", "force_default_xcm_version", types::ForceDefaultXcmVersion { maybe_xcm_version }, [ 43u8, 114u8, 102u8, 104u8, 209u8, 234u8, 108u8, 173u8, 109u8, 188u8, 94u8, 214u8, 136u8, 43u8, 153u8, 75u8, 161u8, 192u8, 76u8, 12u8, 221u8, 237u8, 158u8, 247u8, 41u8, 193u8, 35u8, 174u8, 183u8, 207u8, 79u8, 213u8, ], ) } #[doc = "Ask a location to notify us regarding their XCM version and any changes to it."] #[doc = ""] #[doc = "- `origin`: Must be an origin specified by AdminOrigin."] #[doc = "- `location`: The location to which we should subscribe for XCM version notifications."] pub fn force_subscribe_version_notify( &self, location: runtime_types::xcm::VersionedMultiLocation, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "XcmPallet", "force_subscribe_version_notify", types::ForceSubscribeVersionNotify { location: ::std::boxed::Box::new(location), }, [ 47u8, 23u8, 248u8, 170u8, 109u8, 130u8, 223u8, 240u8, 219u8, 162u8, 206u8, 216u8, 76u8, 17u8, 57u8, 145u8, 124u8, 40u8, 49u8, 226u8, 40u8, 102u8, 163u8, 66u8, 42u8, 78u8, 15u8, 4u8, 169u8, 40u8, 247u8, 40u8, ], ) } #[doc = "Require that a particular destination should no longer notify us regarding any XCM"] #[doc = "version changes."] #[doc = ""] #[doc = "- `origin`: Must be an origin specified by AdminOrigin."] #[doc = "- `location`: The location to which we are currently subscribed for XCM version"] #[doc = " notifications which we no longer desire."] pub fn force_unsubscribe_version_notify( &self, location: runtime_types::xcm::VersionedMultiLocation, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "XcmPallet", "force_unsubscribe_version_notify", types::ForceUnsubscribeVersionNotify { location: ::std::boxed::Box::new(location), }, [ 240u8, 140u8, 37u8, 245u8, 15u8, 214u8, 120u8, 250u8, 98u8, 219u8, 199u8, 22u8, 244u8, 191u8, 74u8, 59u8, 86u8, 221u8, 20u8, 75u8, 20u8, 97u8, 139u8, 71u8, 77u8, 157u8, 114u8, 198u8, 98u8, 72u8, 40u8, 227u8, ], ) } #[doc = "Transfer some assets from the local chain to the sovereign account of a destination"] #[doc = "chain and forward a notification XCM."] #[doc = ""] #[doc = "Fee payment on the destination side is made from the asset in the `assets` vector of"] #[doc = "index `fee_asset_item`, up to enough to pay for `weight_limit` of weight. If more weight"] #[doc = "is needed than `weight_limit`, then the operation will fail and the assets send may be"] #[doc = "at risk."] #[doc = ""] #[doc = "- `origin`: Must be capable of withdrawing the `assets` and executing XCM."] #[doc = "- `dest`: Destination context for the assets. Will typically be `X2(Parent, Parachain(..))` to send"] #[doc = " from parachain to parachain, or `X1(Parachain(..))` to send from relay to parachain."] #[doc = "- `beneficiary`: A beneficiary location for the assets in the context of `dest`. Will generally be"] #[doc = " an `AccountId32` value."] #[doc = "- `assets`: The assets to be withdrawn. This should include the assets used to pay the fee on the"] #[doc = " `dest` side."] #[doc = "- `fee_asset_item`: The index into `assets` of the item which should be used to pay"] #[doc = " fees."] #[doc = "- `weight_limit`: The remote-side weight limit, if any, for the XCM fee purchase."] pub fn limited_reserve_transfer_assets( &self, dest: runtime_types::xcm::VersionedMultiLocation, beneficiary: runtime_types::xcm::VersionedMultiLocation, assets: runtime_types::xcm::VersionedMultiAssets, fee_asset_item: ::core::primitive::u32, weight_limit: runtime_types::xcm::v3::WeightLimit, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "XcmPallet", "limited_reserve_transfer_assets", types::LimitedReserveTransferAssets { dest: ::std::boxed::Box::new(dest), beneficiary: ::std::boxed::Box::new(beneficiary), assets: ::std::boxed::Box::new(assets), fee_asset_item, weight_limit, }, [ 212u8, 29u8, 239u8, 236u8, 39u8, 49u8, 85u8, 129u8, 164u8, 143u8, 214u8, 84u8, 181u8, 63u8, 47u8, 244u8, 77u8, 149u8, 76u8, 247u8, 207u8, 222u8, 216u8, 16u8, 191u8, 249u8, 165u8, 17u8, 56u8, 49u8, 165u8, 137u8, ], ) } #[doc = "Teleport some assets from the local chain to some destination chain."] #[doc = ""] #[doc = "Fee payment on the destination side is made from the asset in the `assets` vector of"] #[doc = "index `fee_asset_item`, up to enough to pay for `weight_limit` of weight. If more weight"] #[doc = "is needed than `weight_limit`, then the operation will fail and the assets send may be"] #[doc = "at risk."] #[doc = ""] #[doc = "- `origin`: Must be capable of withdrawing the `assets` and executing XCM."] #[doc = "- `dest`: Destination context for the assets. Will typically be `X2(Parent, Parachain(..))` to send"] #[doc = " from parachain to parachain, or `X1(Parachain(..))` to send from relay to parachain."] #[doc = "- `beneficiary`: A beneficiary location for the assets in the context of `dest`. Will generally be"] #[doc = " an `AccountId32` value."] #[doc = "- `assets`: The assets to be withdrawn. The first item should be the currency used to to pay the fee on the"] #[doc = " `dest` side. May not be empty."] #[doc = "- `fee_asset_item`: The index into `assets` of the item which should be used to pay"] #[doc = " fees."] #[doc = "- `weight_limit`: The remote-side weight limit, if any, for the XCM fee purchase."] pub fn limited_teleport_assets( &self, dest: runtime_types::xcm::VersionedMultiLocation, beneficiary: runtime_types::xcm::VersionedMultiLocation, assets: runtime_types::xcm::VersionedMultiAssets, fee_asset_item: ::core::primitive::u32, weight_limit: runtime_types::xcm::v3::WeightLimit, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "XcmPallet", "limited_teleport_assets", types::LimitedTeleportAssets { dest: ::std::boxed::Box::new(dest), beneficiary: ::std::boxed::Box::new(beneficiary), assets: ::std::boxed::Box::new(assets), fee_asset_item, weight_limit, }, [ 185u8, 108u8, 229u8, 144u8, 189u8, 81u8, 240u8, 175u8, 141u8, 24u8, 153u8, 172u8, 220u8, 233u8, 25u8, 173u8, 158u8, 15u8, 150u8, 74u8, 133u8, 5u8, 8u8, 227u8, 194u8, 62u8, 93u8, 166u8, 34u8, 67u8, 64u8, 10u8, ], ) } #[doc = "Set or unset the global suspension state of the XCM executor."] #[doc = ""] #[doc = "- `origin`: Must be an origin specified by AdminOrigin."] #[doc = "- `suspended`: `true` to suspend, `false` to resume."] pub fn force_suspension( &self, suspended: ::core::primitive::bool, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "XcmPallet", "force_suspension", types::ForceSuspension { suspended }, [ 78u8, 125u8, 93u8, 55u8, 129u8, 44u8, 36u8, 227u8, 75u8, 46u8, 68u8, 202u8, 81u8, 127u8, 111u8, 92u8, 149u8, 38u8, 225u8, 185u8, 183u8, 154u8, 89u8, 159u8, 79u8, 10u8, 229u8, 1u8, 226u8, 243u8, 65u8, 238u8, ], ) } } } #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] pub type Event = runtime_types::pallet_xcm::pallet::Event; pub mod events { use super::runtime_types; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Execution of an XCM message was attempted."] #[doc = ""] #[doc = "\\[ outcome \\]"] pub struct Attempted(pub runtime_types::xcm::v3::traits::Outcome); impl ::subxt::events::StaticEvent for Attempted { const PALLET: &'static str = "XcmPallet"; const EVENT: &'static str = "Attempted"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A XCM message was sent."] #[doc = ""] #[doc = "\\[ origin, destination, message \\]"] pub struct Sent( pub runtime_types::xcm::v3::multilocation::MultiLocation, pub runtime_types::xcm::v3::multilocation::MultiLocation, pub runtime_types::xcm::v3::Xcm, ); impl ::subxt::events::StaticEvent for Sent { const PALLET: &'static str = "XcmPallet"; const EVENT: &'static str = "Sent"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Query response received which does not match a registered query. This may be because a"] #[doc = "matching query was never registered, it may be because it is a duplicate response, or"] #[doc = "because the query timed out."] #[doc = ""] #[doc = "\\[ origin location, id \\]"] pub struct UnexpectedResponse( pub runtime_types::xcm::v3::multilocation::MultiLocation, pub ::core::primitive::u64, ); impl ::subxt::events::StaticEvent for UnexpectedResponse { const PALLET: &'static str = "XcmPallet"; const EVENT: &'static str = "UnexpectedResponse"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Query response has been received and is ready for taking with `take_response`. There is"] #[doc = "no registered notification call."] #[doc = ""] #[doc = "\\[ id, response \\]"] pub struct ResponseReady( pub ::core::primitive::u64, pub runtime_types::xcm::v3::Response, ); impl ::subxt::events::StaticEvent for ResponseReady { const PALLET: &'static str = "XcmPallet"; const EVENT: &'static str = "ResponseReady"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Query response has been received and query is removed. The registered notification has"] #[doc = "been dispatched and executed successfully."] #[doc = ""] #[doc = "\\[ id, pallet index, call index \\]"] pub struct Notified( pub ::core::primitive::u64, pub ::core::primitive::u8, pub ::core::primitive::u8, ); impl ::subxt::events::StaticEvent for Notified { const PALLET: &'static str = "XcmPallet"; const EVENT: &'static str = "Notified"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Query response has been received and query is removed. The registered notification could"] #[doc = "not be dispatched because the dispatch weight is greater than the maximum weight"] #[doc = "originally budgeted by this runtime for the query result."] #[doc = ""] #[doc = "\\[ id, pallet index, call index, actual weight, max budgeted weight \\]"] pub struct NotifyOverweight( pub ::core::primitive::u64, pub ::core::primitive::u8, pub ::core::primitive::u8, pub runtime_types::sp_weights::weight_v2::Weight, pub runtime_types::sp_weights::weight_v2::Weight, ); impl ::subxt::events::StaticEvent for NotifyOverweight { const PALLET: &'static str = "XcmPallet"; const EVENT: &'static str = "NotifyOverweight"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Query response has been received and query is removed. There was a general error with"] #[doc = "dispatching the notification call."] #[doc = ""] #[doc = "\\[ id, pallet index, call index \\]"] pub struct NotifyDispatchError( pub ::core::primitive::u64, pub ::core::primitive::u8, pub ::core::primitive::u8, ); impl ::subxt::events::StaticEvent for NotifyDispatchError { const PALLET: &'static str = "XcmPallet"; const EVENT: &'static str = "NotifyDispatchError"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Query response has been received and query is removed. The dispatch was unable to be"] #[doc = "decoded into a `Call`; this might be due to dispatch function having a signature which"] #[doc = "is not `(origin, QueryId, Response)`."] #[doc = ""] #[doc = "\\[ id, pallet index, call index \\]"] pub struct NotifyDecodeFailed( pub ::core::primitive::u64, pub ::core::primitive::u8, pub ::core::primitive::u8, ); impl ::subxt::events::StaticEvent for NotifyDecodeFailed { const PALLET: &'static str = "XcmPallet"; const EVENT: &'static str = "NotifyDecodeFailed"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Expected query response has been received but the origin location of the response does"] #[doc = "not match that expected. The query remains registered for a later, valid, response to"] #[doc = "be received and acted upon."] #[doc = ""] #[doc = "\\[ origin location, id, expected location \\]"] pub struct InvalidResponder( pub runtime_types::xcm::v3::multilocation::MultiLocation, pub ::core::primitive::u64, pub ::core::option::Option, ); impl ::subxt::events::StaticEvent for InvalidResponder { const PALLET: &'static str = "XcmPallet"; const EVENT: &'static str = "InvalidResponder"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Expected query response has been received but the expected origin location placed in"] #[doc = "storage by this runtime previously cannot be decoded. The query remains registered."] #[doc = ""] #[doc = "This is unexpected (since a location placed in storage in a previously executing"] #[doc = "runtime should be readable prior to query timeout) and dangerous since the possibly"] #[doc = "valid response will be dropped. Manual governance intervention is probably going to be"] #[doc = "needed."] #[doc = ""] #[doc = "\\[ origin location, id \\]"] pub struct InvalidResponderVersion( pub runtime_types::xcm::v3::multilocation::MultiLocation, pub ::core::primitive::u64, ); impl ::subxt::events::StaticEvent for InvalidResponderVersion { const PALLET: &'static str = "XcmPallet"; const EVENT: &'static str = "InvalidResponderVersion"; } #[derive( :: subxt :: ext :: codec :: CompactAs, :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Received query response has been read and removed."] #[doc = ""] #[doc = "\\[ id \\]"] pub struct ResponseTaken(pub ::core::primitive::u64); impl ::subxt::events::StaticEvent for ResponseTaken { const PALLET: &'static str = "XcmPallet"; const EVENT: &'static str = "ResponseTaken"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Some assets have been placed in an asset trap."] #[doc = ""] #[doc = "\\[ hash, origin, assets \\]"] pub struct AssetsTrapped( pub ::subxt::utils::H256, pub runtime_types::xcm::v3::multilocation::MultiLocation, pub runtime_types::xcm::VersionedMultiAssets, ); impl ::subxt::events::StaticEvent for AssetsTrapped { const PALLET: &'static str = "XcmPallet"; const EVENT: &'static str = "AssetsTrapped"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "An XCM version change notification message has been attempted to be sent."] #[doc = ""] #[doc = "The cost of sending it (borne by the chain) is included."] #[doc = ""] #[doc = "\\[ destination, result, cost \\]"] pub struct VersionChangeNotified( pub runtime_types::xcm::v3::multilocation::MultiLocation, pub ::core::primitive::u32, pub runtime_types::xcm::v3::multiasset::MultiAssets, ); impl ::subxt::events::StaticEvent for VersionChangeNotified { const PALLET: &'static str = "XcmPallet"; const EVENT: &'static str = "VersionChangeNotified"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "The supported version of a location has been changed. This might be through an"] #[doc = "automatic notification or a manual intervention."] #[doc = ""] #[doc = "\\[ location, XCM version \\]"] pub struct SupportedVersionChanged( pub runtime_types::xcm::v3::multilocation::MultiLocation, pub ::core::primitive::u32, ); impl ::subxt::events::StaticEvent for SupportedVersionChanged { const PALLET: &'static str = "XcmPallet"; const EVENT: &'static str = "SupportedVersionChanged"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A given location which had a version change subscription was dropped owing to an error"] #[doc = "sending the notification to it."] #[doc = ""] #[doc = "\\[ location, query ID, error \\]"] pub struct NotifyTargetSendFail( pub runtime_types::xcm::v3::multilocation::MultiLocation, pub ::core::primitive::u64, pub runtime_types::xcm::v3::traits::Error, ); impl ::subxt::events::StaticEvent for NotifyTargetSendFail { const PALLET: &'static str = "XcmPallet"; const EVENT: &'static str = "NotifyTargetSendFail"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A given location which had a version change subscription was dropped owing to an error"] #[doc = "migrating the location to our new XCM format."] #[doc = ""] #[doc = "\\[ location, query ID \\]"] pub struct NotifyTargetMigrationFail( pub runtime_types::xcm::VersionedMultiLocation, pub ::core::primitive::u64, ); impl ::subxt::events::StaticEvent for NotifyTargetMigrationFail { const PALLET: &'static str = "XcmPallet"; const EVENT: &'static str = "NotifyTargetMigrationFail"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Expected query response has been received but the expected querier location placed in"] #[doc = "storage by this runtime previously cannot be decoded. The query remains registered."] #[doc = ""] #[doc = "This is unexpected (since a location placed in storage in a previously executing"] #[doc = "runtime should be readable prior to query timeout) and dangerous since the possibly"] #[doc = "valid response will be dropped. Manual governance intervention is probably going to be"] #[doc = "needed."] #[doc = ""] #[doc = "\\[ origin location, id \\]"] pub struct InvalidQuerierVersion( pub runtime_types::xcm::v3::multilocation::MultiLocation, pub ::core::primitive::u64, ); impl ::subxt::events::StaticEvent for InvalidQuerierVersion { const PALLET: &'static str = "XcmPallet"; const EVENT: &'static str = "InvalidQuerierVersion"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Expected query response has been received but the querier location of the response does"] #[doc = "not match the expected. The query remains registered for a later, valid, response to"] #[doc = "be received and acted upon."] #[doc = ""] #[doc = "\\[ origin location, id, expected querier, maybe actual querier \\]"] pub struct InvalidQuerier( pub runtime_types::xcm::v3::multilocation::MultiLocation, pub ::core::primitive::u64, pub runtime_types::xcm::v3::multilocation::MultiLocation, pub ::core::option::Option, ); impl ::subxt::events::StaticEvent for InvalidQuerier { const PALLET: &'static str = "XcmPallet"; const EVENT: &'static str = "InvalidQuerier"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A remote has requested XCM version change notification from us and we have honored it."] #[doc = "A version information message is sent to them and its cost is included."] #[doc = ""] #[doc = "\\[ destination location, cost \\]"] pub struct VersionNotifyStarted( pub runtime_types::xcm::v3::multilocation::MultiLocation, pub runtime_types::xcm::v3::multiasset::MultiAssets, ); impl ::subxt::events::StaticEvent for VersionNotifyStarted { const PALLET: &'static str = "XcmPallet"; const EVENT: &'static str = "VersionNotifyStarted"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "We have requested that a remote chain sends us XCM version change notifications."] #[doc = ""] #[doc = "\\[ destination location, cost \\]"] pub struct VersionNotifyRequested( pub runtime_types::xcm::v3::multilocation::MultiLocation, pub runtime_types::xcm::v3::multiasset::MultiAssets, ); impl ::subxt::events::StaticEvent for VersionNotifyRequested { const PALLET: &'static str = "XcmPallet"; const EVENT: &'static str = "VersionNotifyRequested"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "We have requested that a remote chain stops sending us XCM version change notifications."] #[doc = ""] #[doc = "\\[ destination location, cost \\]"] pub struct VersionNotifyUnrequested( pub runtime_types::xcm::v3::multilocation::MultiLocation, pub runtime_types::xcm::v3::multiasset::MultiAssets, ); impl ::subxt::events::StaticEvent for VersionNotifyUnrequested { const PALLET: &'static str = "XcmPallet"; const EVENT: &'static str = "VersionNotifyUnrequested"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Fees were paid from a location for an operation (often for using `SendXcm`)."] #[doc = ""] #[doc = "\\[ paying location, fees \\]"] pub struct FeesPaid( pub runtime_types::xcm::v3::multilocation::MultiLocation, pub runtime_types::xcm::v3::multiasset::MultiAssets, ); impl ::subxt::events::StaticEvent for FeesPaid { const PALLET: &'static str = "XcmPallet"; const EVENT: &'static str = "FeesPaid"; } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Some assets have been claimed from an asset trap"] #[doc = ""] #[doc = "\\[ hash, origin, assets \\]"] pub struct AssetsClaimed( pub ::subxt::utils::H256, pub runtime_types::xcm::v3::multilocation::MultiLocation, pub runtime_types::xcm::VersionedMultiAssets, ); impl ::subxt::events::StaticEvent for AssetsClaimed { const PALLET: &'static str = "XcmPallet"; const EVENT: &'static str = "AssetsClaimed"; } } pub mod storage { use super::runtime_types; pub struct StorageApi; impl StorageApi { #[doc = " The latest available query index."] pub fn query_counter( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, ::core::primitive::u64, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), > { ::subxt::storage::address::Address::new_static( "XcmPallet", "QueryCounter", vec![], [ 216u8, 73u8, 160u8, 232u8, 60u8, 245u8, 218u8, 219u8, 152u8, 68u8, 146u8, 219u8, 255u8, 7u8, 86u8, 112u8, 83u8, 49u8, 94u8, 173u8, 64u8, 203u8, 147u8, 226u8, 236u8, 39u8, 129u8, 106u8, 209u8, 113u8, 150u8, 50u8, ], ) } #[doc = " The ongoing queries."] pub fn queries( &self, _0: impl ::std::borrow::Borrow<::core::primitive::u64>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, runtime_types::pallet_xcm::pallet::QueryStatus<::core::primitive::u32>, ::subxt::storage::address::Yes, (), ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( "XcmPallet", "Queries", vec![::subxt::storage::address::make_static_storage_map_key( _0.borrow(), )], [ 177u8, 138u8, 131u8, 91u8, 46u8, 151u8, 115u8, 184u8, 120u8, 158u8, 241u8, 43u8, 56u8, 121u8, 102u8, 204u8, 197u8, 31u8, 241u8, 131u8, 199u8, 217u8, 129u8, 147u8, 255u8, 157u8, 71u8, 97u8, 153u8, 34u8, 178u8, 223u8, ], ) } #[doc = " The ongoing queries."] pub fn queries_root( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, runtime_types::pallet_xcm::pallet::QueryStatus<::core::primitive::u32>, (), (), ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( "XcmPallet", "Queries", Vec::new(), [ 177u8, 138u8, 131u8, 91u8, 46u8, 151u8, 115u8, 184u8, 120u8, 158u8, 241u8, 43u8, 56u8, 121u8, 102u8, 204u8, 197u8, 31u8, 241u8, 131u8, 199u8, 217u8, 129u8, 147u8, 255u8, 157u8, 71u8, 97u8, 153u8, 34u8, 178u8, 223u8, ], ) } #[doc = " The existing asset traps."] #[doc = ""] #[doc = " Key is the blake2 256 hash of (origin, versioned `MultiAssets`) pair. Value is the number of"] #[doc = " times this pair has been trapped (usually just 1 if it exists at all)."] pub fn asset_traps( &self, _0: impl ::std::borrow::Borrow<::subxt::utils::H256>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, ::core::primitive::u32, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( "XcmPallet", "AssetTraps", vec![::subxt::storage::address::make_static_storage_map_key( _0.borrow(), )], [ 148u8, 41u8, 254u8, 134u8, 61u8, 172u8, 126u8, 146u8, 78u8, 178u8, 50u8, 77u8, 226u8, 8u8, 200u8, 78u8, 77u8, 91u8, 26u8, 133u8, 104u8, 126u8, 28u8, 28u8, 202u8, 62u8, 87u8, 183u8, 231u8, 191u8, 5u8, 181u8, ], ) } #[doc = " The existing asset traps."] #[doc = ""] #[doc = " Key is the blake2 256 hash of (origin, versioned `MultiAssets`) pair. Value is the number of"] #[doc = " times this pair has been trapped (usually just 1 if it exists at all)."] pub fn asset_traps_root( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, ::core::primitive::u32, (), ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( "XcmPallet", "AssetTraps", Vec::new(), [ 148u8, 41u8, 254u8, 134u8, 61u8, 172u8, 126u8, 146u8, 78u8, 178u8, 50u8, 77u8, 226u8, 8u8, 200u8, 78u8, 77u8, 91u8, 26u8, 133u8, 104u8, 126u8, 28u8, 28u8, 202u8, 62u8, 87u8, 183u8, 231u8, 191u8, 5u8, 181u8, ], ) } #[doc = " Default version to encode XCM when latest version of destination is unknown. If `None`,"] #[doc = " then the destinations whose XCM version is unknown are considered unreachable."] pub fn safe_xcm_version( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, ::core::primitive::u32, ::subxt::storage::address::Yes, (), (), > { ::subxt::storage::address::Address::new_static( "XcmPallet", "SafeXcmVersion", vec![], [ 187u8, 8u8, 74u8, 126u8, 80u8, 215u8, 177u8, 60u8, 223u8, 123u8, 196u8, 155u8, 166u8, 66u8, 25u8, 164u8, 191u8, 66u8, 116u8, 131u8, 116u8, 188u8, 224u8, 122u8, 75u8, 195u8, 246u8, 188u8, 83u8, 134u8, 49u8, 143u8, ], ) } #[doc = " The Latest versions that we know various locations support."] pub fn supported_version( &self, _0: impl ::std::borrow::Borrow<::core::primitive::u32>, _1: impl ::std::borrow::Borrow, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, ::core::primitive::u32, ::subxt::storage::address::Yes, (), ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( "XcmPallet", "SupportedVersion", vec![ ::subxt::storage::address::make_static_storage_map_key(_0.borrow()), ::subxt::storage::address::make_static_storage_map_key(_1.borrow()), ], [ 184u8, 189u8, 75u8, 46u8, 146u8, 183u8, 140u8, 180u8, 228u8, 216u8, 220u8, 210u8, 194u8, 138u8, 57u8, 248u8, 112u8, 110u8, 236u8, 113u8, 9u8, 109u8, 112u8, 86u8, 37u8, 21u8, 133u8, 127u8, 86u8, 192u8, 107u8, 161u8, ], ) } #[doc = " The Latest versions that we know various locations support."] pub fn supported_version_root( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, ::core::primitive::u32, (), (), ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( "XcmPallet", "SupportedVersion", Vec::new(), [ 184u8, 189u8, 75u8, 46u8, 146u8, 183u8, 140u8, 180u8, 228u8, 216u8, 220u8, 210u8, 194u8, 138u8, 57u8, 248u8, 112u8, 110u8, 236u8, 113u8, 9u8, 109u8, 112u8, 86u8, 37u8, 21u8, 133u8, 127u8, 86u8, 192u8, 107u8, 161u8, ], ) } #[doc = " All locations that we have requested version notifications from."] pub fn version_notifiers( &self, _0: impl ::std::borrow::Borrow<::core::primitive::u32>, _1: impl ::std::borrow::Borrow, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, ::core::primitive::u64, ::subxt::storage::address::Yes, (), ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( "XcmPallet", "VersionNotifiers", vec![ ::subxt::storage::address::make_static_storage_map_key(_0.borrow()), ::subxt::storage::address::make_static_storage_map_key(_1.borrow()), ], [ 239u8, 151u8, 74u8, 252u8, 104u8, 241u8, 152u8, 244u8, 122u8, 1u8, 144u8, 59u8, 172u8, 3u8, 96u8, 233u8, 233u8, 183u8, 152u8, 118u8, 82u8, 57u8, 122u8, 86u8, 82u8, 99u8, 218u8, 82u8, 37u8, 236u8, 15u8, 212u8, ], ) } #[doc = " All locations that we have requested version notifications from."] pub fn version_notifiers_root( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, ::core::primitive::u64, (), (), ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( "XcmPallet", "VersionNotifiers", Vec::new(), [ 239u8, 151u8, 74u8, 252u8, 104u8, 241u8, 152u8, 244u8, 122u8, 1u8, 144u8, 59u8, 172u8, 3u8, 96u8, 233u8, 233u8, 183u8, 152u8, 118u8, 82u8, 57u8, 122u8, 86u8, 82u8, 99u8, 218u8, 82u8, 37u8, 236u8, 15u8, 212u8, ], ) } #[doc = " The target locations that are subscribed to our version changes, as well as the most recent"] #[doc = " of our versions we informed them of."] pub fn version_notify_targets( &self, _0: impl ::std::borrow::Borrow<::core::primitive::u32>, _1: impl ::std::borrow::Borrow, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, ( ::core::primitive::u64, runtime_types::sp_weights::weight_v2::Weight, ::core::primitive::u32, ), ::subxt::storage::address::Yes, (), ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( "XcmPallet", "VersionNotifyTargets", vec![ ::subxt::storage::address::make_static_storage_map_key(_0.borrow()), ::subxt::storage::address::make_static_storage_map_key(_1.borrow()), ], [ 86u8, 209u8, 212u8, 169u8, 60u8, 250u8, 121u8, 19u8, 190u8, 58u8, 111u8, 103u8, 157u8, 186u8, 211u8, 46u8, 9u8, 111u8, 17u8, 73u8, 221u8, 180u8, 230u8, 156u8, 4u8, 75u8, 114u8, 123u8, 3u8, 147u8, 237u8, 102u8, ], ) } #[doc = " The target locations that are subscribed to our version changes, as well as the most recent"] #[doc = " of our versions we informed them of."] pub fn version_notify_targets_root( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, ( ::core::primitive::u64, runtime_types::sp_weights::weight_v2::Weight, ::core::primitive::u32, ), (), (), ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( "XcmPallet", "VersionNotifyTargets", Vec::new(), [ 86u8, 209u8, 212u8, 169u8, 60u8, 250u8, 121u8, 19u8, 190u8, 58u8, 111u8, 103u8, 157u8, 186u8, 211u8, 46u8, 9u8, 111u8, 17u8, 73u8, 221u8, 180u8, 230u8, 156u8, 4u8, 75u8, 114u8, 123u8, 3u8, 147u8, 237u8, 102u8, ], ) } #[doc = " Destinations whose latest XCM version we would like to know. Duplicates not allowed, and"] #[doc = " the `u32` counter is the number of times that a send to the destination has been attempted,"] #[doc = " which is used as a prioritization."] pub fn version_discovery_queue( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, runtime_types::bounded_collections::bounded_vec::BoundedVec<( runtime_types::xcm::VersionedMultiLocation, ::core::primitive::u32, )>, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), > { ::subxt::storage::address::Address::new_static( "XcmPallet", "VersionDiscoveryQueue", vec![], [ 229u8, 127u8, 178u8, 181u8, 65u8, 123u8, 36u8, 101u8, 245u8, 168u8, 192u8, 243u8, 57u8, 242u8, 169u8, 89u8, 80u8, 16u8, 28u8, 143u8, 124u8, 224u8, 11u8, 153u8, 237u8, 58u8, 209u8, 186u8, 94u8, 135u8, 105u8, 79u8, ], ) } #[doc = " The current migration's stage, if any."] pub fn current_migration( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, runtime_types::pallet_xcm::pallet::VersionMigrationStage, ::subxt::storage::address::Yes, (), (), > { ::subxt::storage::address::Address::new_static( "XcmPallet", "CurrentMigration", vec![], [ 74u8, 138u8, 181u8, 162u8, 59u8, 251u8, 37u8, 28u8, 232u8, 51u8, 30u8, 152u8, 252u8, 133u8, 95u8, 195u8, 47u8, 127u8, 21u8, 44u8, 62u8, 143u8, 170u8, 234u8, 160u8, 37u8, 131u8, 179u8, 57u8, 241u8, 140u8, 124u8, ], ) } #[doc = " Fungible assets which we know are locked on a remote chain."] pub fn remote_locked_fungibles( &self, _0: impl ::std::borrow::Borrow<::core::primitive::u32>, _1: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, _2: impl ::std::borrow::Borrow, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, runtime_types::pallet_xcm::pallet::RemoteLockedFungibleRecord, ::subxt::storage::address::Yes, (), ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( "XcmPallet", "RemoteLockedFungibles", vec![ ::subxt::storage::address::make_static_storage_map_key(_0.borrow()), ::subxt::storage::address::make_static_storage_map_key(_1.borrow()), ::subxt::storage::address::make_static_storage_map_key(_2.borrow()), ], [ 84u8, 68u8, 77u8, 93u8, 197u8, 135u8, 4u8, 75u8, 163u8, 6u8, 230u8, 249u8, 85u8, 42u8, 202u8, 173u8, 25u8, 188u8, 245u8, 145u8, 114u8, 106u8, 112u8, 17u8, 155u8, 50u8, 198u8, 174u8, 253u8, 75u8, 40u8, 145u8, ], ) } #[doc = " Fungible assets which we know are locked on a remote chain."] pub fn remote_locked_fungibles_root( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, runtime_types::pallet_xcm::pallet::RemoteLockedFungibleRecord, (), (), ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( "XcmPallet", "RemoteLockedFungibles", Vec::new(), [ 84u8, 68u8, 77u8, 93u8, 197u8, 135u8, 4u8, 75u8, 163u8, 6u8, 230u8, 249u8, 85u8, 42u8, 202u8, 173u8, 25u8, 188u8, 245u8, 145u8, 114u8, 106u8, 112u8, 17u8, 155u8, 50u8, 198u8, 174u8, 253u8, 75u8, 40u8, 145u8, ], ) } #[doc = " Fungible assets which we know are locked on this chain."] pub fn locked_fungibles( &self, _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, runtime_types::bounded_collections::bounded_vec::BoundedVec<( ::core::primitive::u128, runtime_types::xcm::VersionedMultiLocation, )>, ::subxt::storage::address::Yes, (), ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( "XcmPallet", "LockedFungibles", vec![::subxt::storage::address::make_static_storage_map_key( _0.borrow(), )], [ 240u8, 80u8, 205u8, 136u8, 21u8, 85u8, 0u8, 172u8, 9u8, 12u8, 36u8, 16u8, 64u8, 213u8, 52u8, 227u8, 41u8, 150u8, 183u8, 135u8, 224u8, 203u8, 66u8, 166u8, 115u8, 230u8, 245u8, 178u8, 194u8, 81u8, 35u8, 245u8, ], ) } #[doc = " Fungible assets which we know are locked on this chain."] pub fn locked_fungibles_root( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, runtime_types::bounded_collections::bounded_vec::BoundedVec<( ::core::primitive::u128, runtime_types::xcm::VersionedMultiLocation, )>, (), (), ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( "XcmPallet", "LockedFungibles", Vec::new(), [ 240u8, 80u8, 205u8, 136u8, 21u8, 85u8, 0u8, 172u8, 9u8, 12u8, 36u8, 16u8, 64u8, 213u8, 52u8, 227u8, 41u8, 150u8, 183u8, 135u8, 224u8, 203u8, 66u8, 166u8, 115u8, 230u8, 245u8, 178u8, 194u8, 81u8, 35u8, 245u8, ], ) } #[doc = " Global suspension state of the XCM executor."] pub fn xcm_execution_suspended( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, ::core::primitive::bool, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), > { ::subxt::storage::address::Address::new_static( "XcmPallet", "XcmExecutionSuspended", vec![], [ 182u8, 54u8, 69u8, 68u8, 78u8, 76u8, 103u8, 79u8, 47u8, 136u8, 99u8, 104u8, 128u8, 129u8, 249u8, 54u8, 214u8, 136u8, 97u8, 48u8, 178u8, 42u8, 26u8, 27u8, 82u8, 24u8, 33u8, 77u8, 33u8, 27u8, 20u8, 127u8, ], ) } } } } pub mod runtime_types { use super::runtime_types; pub mod bounded_collections { use super::runtime_types; pub mod bounded_btree_map { use super::runtime_types; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct BoundedBTreeMap<_0, _1>(pub ::subxt::utils::KeyedVec<_0, _1>); } pub mod bounded_vec { use super::runtime_types; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct BoundedVec<_0>(pub ::std::vec::Vec<_0>); } pub mod weak_bounded_vec { use super::runtime_types; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct WeakBoundedVec<_0>(pub ::std::vec::Vec<_0>); } } pub mod finality_grandpa { use super::runtime_types; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Equivocation<_0, _1, _2> { pub round_number: ::core::primitive::u64, pub identity: _0, pub first: (_1, _2), pub second: (_1, _2), } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Precommit<_0, _1> { pub target_hash: _0, pub target_number: _1, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Prevote<_0, _1> { pub target_hash: _0, pub target_number: _1, } } pub mod frame_support { use super::runtime_types; pub mod dispatch { use super::runtime_types; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum DispatchClass { #[codec(index = 0)] Normal, #[codec(index = 1)] Operational, #[codec(index = 2)] Mandatory, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct DispatchInfo { pub weight: runtime_types::sp_weights::weight_v2::Weight, pub class: runtime_types::frame_support::dispatch::DispatchClass, pub pays_fee: runtime_types::frame_support::dispatch::Pays, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum Pays { #[codec(index = 0)] Yes, #[codec(index = 1)] No, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct PerDispatchClass<_0> { pub normal: _0, pub operational: _0, pub mandatory: _0, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct PostDispatchInfo { pub actual_weight: ::core::option::Option, pub pays_fee: runtime_types::frame_support::dispatch::Pays, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum RawOrigin<_0> { #[codec(index = 0)] Root, #[codec(index = 1)] Signed(_0), #[codec(index = 2)] None, } } pub mod traits { use super::runtime_types; pub mod misc { use super::runtime_types; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct WrapperOpaque<_0>( #[codec(compact)] pub ::core::primitive::u32, pub _0, ); } pub mod preimages { use super::runtime_types; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum Bounded<_0> { #[codec(index = 0)] Legacy { hash: ::subxt::utils::H256, }, #[codec(index = 1)] Inline( runtime_types::bounded_collections::bounded_vec::BoundedVec< ::core::primitive::u8, >, ), #[codec(index = 2)] Lookup { hash: ::subxt::utils::H256, len: ::core::primitive::u32, }, __Ignore(::core::marker::PhantomData<_0>), } } pub mod schedule { use super::runtime_types; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum DispatchTime<_0> { #[codec(index = 0)] At(_0), #[codec(index = 1)] After(_0), } } pub mod tokens { use super::runtime_types; pub mod misc { use super::runtime_types; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum BalanceStatus { #[codec(index = 0)] Free, #[codec(index = 1)] Reserved, } } } } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct PalletId(pub [::core::primitive::u8; 8usize]); } pub mod frame_system { use super::runtime_types; pub mod extensions { use super::runtime_types; pub mod check_genesis { use super::runtime_types; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct CheckGenesis; } pub mod check_mortality { use super::runtime_types; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct CheckMortality(pub runtime_types::sp_runtime::generic::era::Era); } pub mod check_non_zero_sender { use super::runtime_types; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct CheckNonZeroSender; } pub mod check_nonce { use super::runtime_types; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct CheckNonce(#[codec(compact)] pub ::core::primitive::u32); } pub mod check_spec_version { use super::runtime_types; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct CheckSpecVersion; } pub mod check_tx_version { use super::runtime_types; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct CheckTxVersion; } pub mod check_weight { use super::runtime_types; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct CheckWeight; } } pub mod limits { use super::runtime_types; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct BlockLength { pub max: runtime_types::frame_support::dispatch::PerDispatchClass< ::core::primitive::u32, >, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct BlockWeights { pub base_block: runtime_types::sp_weights::weight_v2::Weight, pub max_block: runtime_types::sp_weights::weight_v2::Weight, pub per_class: runtime_types::frame_support::dispatch::PerDispatchClass< runtime_types::frame_system::limits::WeightsPerClass, >, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct WeightsPerClass { pub base_extrinsic: runtime_types::sp_weights::weight_v2::Weight, pub max_extrinsic: ::core::option::Option, pub max_total: ::core::option::Option, pub reserved: ::core::option::Option, } } pub mod pallet { use super::runtime_types; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] pub enum Call { #[codec(index = 0)] #[doc = "Make some on-chain remark."] #[doc = ""] #[doc = "## Complexity"] #[doc = "- `O(1)`"] remark { remark: ::std::vec::Vec<::core::primitive::u8>, }, #[codec(index = 1)] #[doc = "Set the number of pages in the WebAssembly environment's heap."] set_heap_pages { pages: ::core::primitive::u64 }, #[codec(index = 2)] #[doc = "Set the new runtime code."] #[doc = ""] #[doc = "## Complexity"] #[doc = "- `O(C + S)` where `C` length of `code` and `S` complexity of `can_set_code`"] set_code { code: ::std::vec::Vec<::core::primitive::u8>, }, #[codec(index = 3)] #[doc = "Set the new runtime code without doing any checks of the given `code`."] #[doc = ""] #[doc = "## Complexity"] #[doc = "- `O(C)` where `C` length of `code`"] set_code_without_checks { code: ::std::vec::Vec<::core::primitive::u8>, }, #[codec(index = 4)] #[doc = "Set some items of storage."] set_storage { items: ::std::vec::Vec<( ::std::vec::Vec<::core::primitive::u8>, ::std::vec::Vec<::core::primitive::u8>, )>, }, #[codec(index = 5)] #[doc = "Kill some items from storage."] kill_storage { keys: ::std::vec::Vec<::std::vec::Vec<::core::primitive::u8>>, }, #[codec(index = 6)] #[doc = "Kill all storage items with a key that starts with the given prefix."] #[doc = ""] #[doc = "**NOTE:** We rely on the Root origin to provide us the number of subkeys under"] #[doc = "the prefix we are removing to accurately calculate the weight of this function."] kill_prefix { prefix: ::std::vec::Vec<::core::primitive::u8>, subkeys: ::core::primitive::u32, }, #[codec(index = 7)] #[doc = "Make some on-chain remark and emit event."] remark_with_event { remark: ::std::vec::Vec<::core::primitive::u8>, }, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Error for the System pallet"] pub enum Error { #[codec(index = 0)] #[doc = "The name of specification does not match between the current runtime"] #[doc = "and the new runtime."] InvalidSpecName, #[codec(index = 1)] #[doc = "The specification version is not allowed to decrease between the current runtime"] #[doc = "and the new runtime."] SpecVersionNeedsToIncrease, #[codec(index = 2)] #[doc = "Failed to extract the runtime version from the new runtime."] #[doc = ""] #[doc = "Either calling `Core_version` or decoding `RuntimeVersion` failed."] FailedToExtractRuntimeVersion, #[codec(index = 3)] #[doc = "Suicide called when the account has non-default composite data."] NonDefaultComposite, #[codec(index = 4)] #[doc = "There is a non-zero reference count preventing the account from being purged."] NonZeroRefCount, #[codec(index = 5)] #[doc = "The origin filter prevent the call to be dispatched."] CallFiltered, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Event for the System pallet."] pub enum Event { #[codec(index = 0)] #[doc = "An extrinsic completed successfully."] ExtrinsicSuccess { dispatch_info: runtime_types::frame_support::dispatch::DispatchInfo, }, #[codec(index = 1)] #[doc = "An extrinsic failed."] ExtrinsicFailed { dispatch_error: runtime_types::sp_runtime::DispatchError, dispatch_info: runtime_types::frame_support::dispatch::DispatchInfo, }, #[codec(index = 2)] #[doc = "`:code` was updated."] CodeUpdated, #[codec(index = 3)] #[doc = "A new account was created."] NewAccount { account: ::subxt::utils::AccountId32, }, #[codec(index = 4)] #[doc = "An account was reaped."] KilledAccount { account: ::subxt::utils::AccountId32, }, #[codec(index = 5)] #[doc = "On on-chain remark happened."] Remarked { sender: ::subxt::utils::AccountId32, hash: ::subxt::utils::H256, }, } } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct AccountInfo<_0, _1> { pub nonce: _0, pub consumers: _0, pub providers: _0, pub sufficients: _0, pub data: _1, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct EventRecord<_0, _1> { pub phase: runtime_types::frame_system::Phase, pub event: _0, pub topics: ::std::vec::Vec<_1>, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct LastRuntimeUpgradeInfo { #[codec(compact)] pub spec_version: ::core::primitive::u32, pub spec_name: ::std::string::String, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum Phase { #[codec(index = 0)] ApplyExtrinsic(::core::primitive::u32), #[codec(index = 1)] Finalization, #[codec(index = 2)] Initialization, } } pub mod pallet_babe { use super::runtime_types; pub mod pallet { use super::runtime_types; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] pub enum Call { #[codec(index = 0)] #[doc = "Report authority equivocation/misbehavior. This method will verify"] #[doc = "the equivocation proof and validate the given key ownership proof"] #[doc = "against the extracted offender. If both are valid, the offence will"] #[doc = "be reported."] report_equivocation { equivocation_proof: ::std::boxed::Box< runtime_types::sp_consensus_slots::EquivocationProof< runtime_types::sp_runtime::generic::header::Header< ::core::primitive::u32, runtime_types::sp_runtime::traits::BlakeTwo256, >, runtime_types::sp_consensus_babe::app::Public, >, >, key_owner_proof: runtime_types::sp_session::MembershipProof, }, #[codec(index = 1)] #[doc = "Report authority equivocation/misbehavior. This method will verify"] #[doc = "the equivocation proof and validate the given key ownership proof"] #[doc = "against the extracted offender. If both are valid, the offence will"] #[doc = "be reported."] #[doc = "This extrinsic must be called unsigned and it is expected that only"] #[doc = "block authors will call it (validated in `ValidateUnsigned`), as such"] #[doc = "if the block author is defined it will be defined as the equivocation"] #[doc = "reporter."] report_equivocation_unsigned { equivocation_proof: ::std::boxed::Box< runtime_types::sp_consensus_slots::EquivocationProof< runtime_types::sp_runtime::generic::header::Header< ::core::primitive::u32, runtime_types::sp_runtime::traits::BlakeTwo256, >, runtime_types::sp_consensus_babe::app::Public, >, >, key_owner_proof: runtime_types::sp_session::MembershipProof, }, #[codec(index = 2)] #[doc = "Plan an epoch config change. The epoch config change is recorded and will be enacted on"] #[doc = "the next call to `enact_epoch_change`. The config will be activated one epoch after."] #[doc = "Multiple calls to this method will replace any existing planned config change that had"] #[doc = "not been enacted yet."] plan_config_change { config: runtime_types::sp_consensus_babe::digests::NextConfigDescriptor, }, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] pub enum Error { #[codec(index = 0)] #[doc = "An equivocation proof provided as part of an equivocation report is invalid."] InvalidEquivocationProof, #[codec(index = 1)] #[doc = "A key ownership proof provided as part of an equivocation report is invalid."] InvalidKeyOwnershipProof, #[codec(index = 2)] #[doc = "A given equivocation report is valid but already previously reported."] DuplicateOffenceReport, #[codec(index = 3)] #[doc = "Submitted configuration is invalid."] InvalidConfiguration, } } } pub mod pallet_bags_list { use super::runtime_types; pub mod list { use super::runtime_types; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Bag { pub head: ::core::option::Option<::subxt::utils::AccountId32>, pub tail: ::core::option::Option<::subxt::utils::AccountId32>, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum ListError { #[codec(index = 0)] Duplicate, #[codec(index = 1)] NotHeavier, #[codec(index = 2)] NotInSameBag, #[codec(index = 3)] NodeNotFound, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Node { pub id: ::subxt::utils::AccountId32, pub prev: ::core::option::Option<::subxt::utils::AccountId32>, pub next: ::core::option::Option<::subxt::utils::AccountId32>, pub bag_upper: ::core::primitive::u64, pub score: ::core::primitive::u64, } } pub mod pallet { use super::runtime_types; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] pub enum Call { #[codec(index = 0)] #[doc = "Declare that some `dislocated` account has, through rewards or penalties, sufficiently"] #[doc = "changed its score that it should properly fall into a different bag than its current"] #[doc = "one."] #[doc = ""] #[doc = "Anyone can call this function about any potentially dislocated account."] #[doc = ""] #[doc = "Will always update the stored score of `dislocated` to the correct score, based on"] #[doc = "`ScoreProvider`."] #[doc = ""] #[doc = "If `dislocated` does not exists, it returns an error."] rebag { dislocated: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, }, #[codec(index = 1)] #[doc = "Move the caller's Id directly in front of `lighter`."] #[doc = ""] #[doc = "The dispatch origin for this call must be _Signed_ and can only be called by the Id of"] #[doc = "the account going in front of `lighter`."] #[doc = ""] #[doc = "Only works if"] #[doc = "- both nodes are within the same bag,"] #[doc = "- and `origin` has a greater `Score` than `lighter`."] put_in_front_of { lighter: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, }, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] pub enum Error { #[codec(index = 0)] #[doc = "A error in the list interface implementation."] List(runtime_types::pallet_bags_list::list::ListError), } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] pub enum Event { #[codec(index = 0)] #[doc = "Moved an account from one bag to another."] Rebagged { who: ::subxt::utils::AccountId32, from: ::core::primitive::u64, to: ::core::primitive::u64, }, #[codec(index = 1)] #[doc = "Updated the score of some account to the given amount."] ScoreUpdated { who: ::subxt::utils::AccountId32, new_score: ::core::primitive::u64, }, } } } pub mod pallet_balances { use super::runtime_types; pub mod pallet { use super::runtime_types; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] pub enum Call { #[codec(index = 0)] #[doc = "Transfer some liquid free balance to another account."] #[doc = ""] #[doc = "`transfer_allow_death` will set the `FreeBalance` of the sender and receiver."] #[doc = "If the sender's account is below the existential deposit as a result"] #[doc = "of the transfer, the account will be reaped."] #[doc = ""] #[doc = "The dispatch origin for this call must be `Signed` by the transactor."] transfer_allow_death { dest: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, #[codec(compact)] value: ::core::primitive::u128, }, #[codec(index = 1)] #[doc = "Set the regular balance of a given account; it also takes a reserved balance but this"] #[doc = "must be the same as the account's current reserved balance."] #[doc = ""] #[doc = "The dispatch origin for this call is `root`."] #[doc = ""] #[doc = "WARNING: This call is DEPRECATED! Use `force_set_balance` instead."] set_balance_deprecated { who: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, #[codec(compact)] new_free: ::core::primitive::u128, #[codec(compact)] old_reserved: ::core::primitive::u128, }, #[codec(index = 2)] #[doc = "Exactly as `transfer_allow_death`, except the origin must be root and the source account"] #[doc = "may be specified."] force_transfer { source: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, dest: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, #[codec(compact)] value: ::core::primitive::u128, }, #[codec(index = 3)] #[doc = "Same as the [`transfer_allow_death`] call, but with a check that the transfer will not"] #[doc = "kill the origin account."] #[doc = ""] #[doc = "99% of the time you want [`transfer_allow_death`] instead."] #[doc = ""] #[doc = "[`transfer_allow_death`]: struct.Pallet.html#method.transfer"] transfer_keep_alive { dest: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, #[codec(compact)] value: ::core::primitive::u128, }, #[codec(index = 4)] #[doc = "Transfer the entire transferable balance from the caller account."] #[doc = ""] #[doc = "NOTE: This function only attempts to transfer _transferable_ balances. This means that"] #[doc = "any locked, reserved, or existential deposits (when `keep_alive` is `true`), will not be"] #[doc = "transferred by this function. To ensure that this function results in a killed account,"] #[doc = "you might need to prepare the account by removing any reference counters, storage"] #[doc = "deposits, etc..."] #[doc = ""] #[doc = "The dispatch origin of this call must be Signed."] #[doc = ""] #[doc = "- `dest`: The recipient of the transfer."] #[doc = "- `keep_alive`: A boolean to determine if the `transfer_all` operation should send all"] #[doc = " of the funds the account has, causing the sender account to be killed (false), or"] #[doc = " transfer everything except at least the existential deposit, which will guarantee to"] #[doc = " keep the sender account alive (true)."] transfer_all { dest: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, keep_alive: ::core::primitive::bool, }, #[codec(index = 5)] #[doc = "Unreserve some balance from a user by force."] #[doc = ""] #[doc = "Can only be called by ROOT."] force_unreserve { who: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, amount: ::core::primitive::u128, }, #[codec(index = 6)] #[doc = "Upgrade a specified account."] #[doc = ""] #[doc = "- `origin`: Must be `Signed`."] #[doc = "- `who`: The account to be upgraded."] #[doc = ""] #[doc = "This will waive the transaction fee if at least all but 10% of the accounts needed to"] #[doc = "be upgraded. (We let some not have to be upgraded just in order to allow for the"] #[doc = "possibililty of churn)."] upgrade_accounts { who: ::std::vec::Vec<::subxt::utils::AccountId32>, }, #[codec(index = 7)] #[doc = "Alias for `transfer_allow_death`, provided only for name-wise compatibility."] #[doc = ""] #[doc = "WARNING: DEPRECATED! Will be released in approximately 3 months."] transfer { dest: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, #[codec(compact)] value: ::core::primitive::u128, }, #[codec(index = 8)] #[doc = "Set the regular balance of a given account."] #[doc = ""] #[doc = "The dispatch origin for this call is `root`."] force_set_balance { who: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, #[codec(compact)] new_free: ::core::primitive::u128, }, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] pub enum Error { #[codec(index = 0)] #[doc = "Vesting balance too high to send value."] VestingBalance, #[codec(index = 1)] #[doc = "Account liquidity restrictions prevent withdrawal."] LiquidityRestrictions, #[codec(index = 2)] #[doc = "Balance too low to send value."] InsufficientBalance, #[codec(index = 3)] #[doc = "Value too low to create account due to existential deposit."] ExistentialDeposit, #[codec(index = 4)] #[doc = "Transfer/payment would kill account."] Expendability, #[codec(index = 5)] #[doc = "A vesting schedule already exists for this account."] ExistingVestingSchedule, #[codec(index = 6)] #[doc = "Beneficiary account must pre-exist."] DeadAccount, #[codec(index = 7)] #[doc = "Number of named reserves exceed `MaxReserves`."] TooManyReserves, #[codec(index = 8)] #[doc = "Number of holds exceed `MaxHolds`."] TooManyHolds, #[codec(index = 9)] #[doc = "Number of freezes exceed `MaxFreezes`."] TooManyFreezes, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] pub enum Event { #[codec(index = 0)] #[doc = "An account was created with some free balance."] Endowed { account: ::subxt::utils::AccountId32, free_balance: ::core::primitive::u128, }, #[codec(index = 1)] #[doc = "An account was removed whose balance was non-zero but below ExistentialDeposit,"] #[doc = "resulting in an outright loss."] DustLost { account: ::subxt::utils::AccountId32, amount: ::core::primitive::u128, }, #[codec(index = 2)] #[doc = "Transfer succeeded."] Transfer { from: ::subxt::utils::AccountId32, to: ::subxt::utils::AccountId32, amount: ::core::primitive::u128, }, #[codec(index = 3)] #[doc = "A balance was set by root."] BalanceSet { who: ::subxt::utils::AccountId32, free: ::core::primitive::u128, }, #[codec(index = 4)] #[doc = "Some balance was reserved (moved from free to reserved)."] Reserved { who: ::subxt::utils::AccountId32, amount: ::core::primitive::u128, }, #[codec(index = 5)] #[doc = "Some balance was unreserved (moved from reserved to free)."] Unreserved { who: ::subxt::utils::AccountId32, amount: ::core::primitive::u128, }, #[codec(index = 6)] #[doc = "Some balance was moved from the reserve of the first account to the second account."] #[doc = "Final argument indicates the destination balance type."] ReserveRepatriated { from: ::subxt::utils::AccountId32, to: ::subxt::utils::AccountId32, amount: ::core::primitive::u128, destination_status: runtime_types::frame_support::traits::tokens::misc::BalanceStatus, }, #[codec(index = 7)] #[doc = "Some amount was deposited (e.g. for transaction fees)."] Deposit { who: ::subxt::utils::AccountId32, amount: ::core::primitive::u128, }, #[codec(index = 8)] #[doc = "Some amount was withdrawn from the account (e.g. for transaction fees)."] Withdraw { who: ::subxt::utils::AccountId32, amount: ::core::primitive::u128, }, #[codec(index = 9)] #[doc = "Some amount was removed from the account (e.g. for misbehavior)."] Slashed { who: ::subxt::utils::AccountId32, amount: ::core::primitive::u128, }, #[codec(index = 10)] #[doc = "Some amount was minted into an account."] Minted { who: ::subxt::utils::AccountId32, amount: ::core::primitive::u128, }, #[codec(index = 11)] #[doc = "Some amount was burned from an account."] Burned { who: ::subxt::utils::AccountId32, amount: ::core::primitive::u128, }, #[codec(index = 12)] #[doc = "Some amount was suspended from an account (it can be restored later)."] Suspended { who: ::subxt::utils::AccountId32, amount: ::core::primitive::u128, }, #[codec(index = 13)] #[doc = "Some amount was restored into an account."] Restored { who: ::subxt::utils::AccountId32, amount: ::core::primitive::u128, }, #[codec(index = 14)] #[doc = "An account was upgraded."] Upgraded { who: ::subxt::utils::AccountId32 }, #[codec(index = 15)] #[doc = "Total issuance was increased by `amount`, creating a credit to be balanced."] Issued { amount: ::core::primitive::u128 }, #[codec(index = 16)] #[doc = "Total issuance was decreased by `amount`, creating a debt to be balanced."] Rescinded { amount: ::core::primitive::u128 }, #[codec(index = 17)] #[doc = "Some balance was locked."] Locked { who: ::subxt::utils::AccountId32, amount: ::core::primitive::u128, }, #[codec(index = 18)] #[doc = "Some balance was unlocked."] Unlocked { who: ::subxt::utils::AccountId32, amount: ::core::primitive::u128, }, #[codec(index = 19)] #[doc = "Some balance was frozen."] Frozen { who: ::subxt::utils::AccountId32, amount: ::core::primitive::u128, }, #[codec(index = 20)] #[doc = "Some balance was thawed."] Thawed { who: ::subxt::utils::AccountId32, amount: ::core::primitive::u128, }, } } pub mod types { use super::runtime_types; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct AccountData<_0> { pub free: _0, pub reserved: _0, pub frozen: _0, pub flags: runtime_types::pallet_balances::types::ExtraFlags, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct BalanceLock<_0> { pub id: [::core::primitive::u8; 8usize], pub amount: _0, pub reasons: runtime_types::pallet_balances::types::Reasons, } #[derive( :: subxt :: ext :: codec :: CompactAs, :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ExtraFlags(pub ::core::primitive::u128); #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct IdAmount<_0, _1> { pub id: _0, pub amount: _1, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum Reasons { #[codec(index = 0)] Fee, #[codec(index = 1)] Misc, #[codec(index = 2)] All, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ReserveData<_0, _1> { pub id: _0, pub amount: _1, } } } pub mod pallet_bounties { use super::runtime_types; pub mod pallet { use super::runtime_types; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] pub enum Call { #[codec(index = 0)] #[doc = "Propose a new bounty."] #[doc = ""] #[doc = "The dispatch origin for this call must be _Signed_."] #[doc = ""] #[doc = "Payment: `TipReportDepositBase` will be reserved from the origin account, as well as"] #[doc = "`DataDepositPerByte` for each byte in `reason`. It will be unreserved upon approval,"] #[doc = "or slashed when rejected."] #[doc = ""] #[doc = "- `curator`: The curator account whom will manage this bounty."] #[doc = "- `fee`: The curator fee."] #[doc = "- `value`: The total payment amount of this bounty, curator fee included."] #[doc = "- `description`: The description of this bounty."] propose_bounty { #[codec(compact)] value: ::core::primitive::u128, description: ::std::vec::Vec<::core::primitive::u8>, }, #[codec(index = 1)] #[doc = "Approve a bounty proposal. At a later time, the bounty will be funded and become active"] #[doc = "and the original deposit will be returned."] #[doc = ""] #[doc = "May only be called from `T::SpendOrigin`."] #[doc = ""] #[doc = "## Complexity"] #[doc = "- O(1)."] approve_bounty { #[codec(compact)] bounty_id: ::core::primitive::u32, }, #[codec(index = 2)] #[doc = "Assign a curator to a funded bounty."] #[doc = ""] #[doc = "May only be called from `T::SpendOrigin`."] #[doc = ""] #[doc = "## Complexity"] #[doc = "- O(1)."] propose_curator { #[codec(compact)] bounty_id: ::core::primitive::u32, curator: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, #[codec(compact)] fee: ::core::primitive::u128, }, #[codec(index = 3)] #[doc = "Unassign curator from a bounty."] #[doc = ""] #[doc = "This function can only be called by the `RejectOrigin` a signed origin."] #[doc = ""] #[doc = "If this function is called by the `RejectOrigin`, we assume that the curator is"] #[doc = "malicious or inactive. As a result, we will slash the curator when possible."] #[doc = ""] #[doc = "If the origin is the curator, we take this as a sign they are unable to do their job and"] #[doc = "they willingly give up. We could slash them, but for now we allow them to recover their"] #[doc = "deposit and exit without issue. (We may want to change this if it is abused.)"] #[doc = ""] #[doc = "Finally, the origin can be anyone if and only if the curator is \"inactive\". This allows"] #[doc = "anyone in the community to call out that a curator is not doing their due diligence, and"] #[doc = "we should pick a new curator. In this case the curator should also be slashed."] #[doc = ""] #[doc = "## Complexity"] #[doc = "- O(1)."] unassign_curator { #[codec(compact)] bounty_id: ::core::primitive::u32, }, #[codec(index = 4)] #[doc = "Accept the curator role for a bounty."] #[doc = "A deposit will be reserved from curator and refund upon successful payout."] #[doc = ""] #[doc = "May only be called from the curator."] #[doc = ""] #[doc = "## Complexity"] #[doc = "- O(1)."] accept_curator { #[codec(compact)] bounty_id: ::core::primitive::u32, }, #[codec(index = 5)] #[doc = "Award bounty to a beneficiary account. The beneficiary will be able to claim the funds"] #[doc = "after a delay."] #[doc = ""] #[doc = "The dispatch origin for this call must be the curator of this bounty."] #[doc = ""] #[doc = "- `bounty_id`: Bounty ID to award."] #[doc = "- `beneficiary`: The beneficiary account whom will receive the payout."] #[doc = ""] #[doc = "## Complexity"] #[doc = "- O(1)."] award_bounty { #[codec(compact)] bounty_id: ::core::primitive::u32, beneficiary: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, }, #[codec(index = 6)] #[doc = "Claim the payout from an awarded bounty after payout delay."] #[doc = ""] #[doc = "The dispatch origin for this call must be the beneficiary of this bounty."] #[doc = ""] #[doc = "- `bounty_id`: Bounty ID to claim."] #[doc = ""] #[doc = "## Complexity"] #[doc = "- O(1)."] claim_bounty { #[codec(compact)] bounty_id: ::core::primitive::u32, }, #[codec(index = 7)] #[doc = "Cancel a proposed or active bounty. All the funds will be sent to treasury and"] #[doc = "the curator deposit will be unreserved if possible."] #[doc = ""] #[doc = "Only `T::RejectOrigin` is able to cancel a bounty."] #[doc = ""] #[doc = "- `bounty_id`: Bounty ID to cancel."] #[doc = ""] #[doc = "## Complexity"] #[doc = "- O(1)."] close_bounty { #[codec(compact)] bounty_id: ::core::primitive::u32, }, #[codec(index = 8)] #[doc = "Extend the expiry time of an active bounty."] #[doc = ""] #[doc = "The dispatch origin for this call must be the curator of this bounty."] #[doc = ""] #[doc = "- `bounty_id`: Bounty ID to extend."] #[doc = "- `remark`: additional information."] #[doc = ""] #[doc = "## Complexity"] #[doc = "- O(1)."] extend_bounty_expiry { #[codec(compact)] bounty_id: ::core::primitive::u32, remark: ::std::vec::Vec<::core::primitive::u8>, }, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] pub enum Error { #[codec(index = 0)] #[doc = "Proposer's balance is too low."] InsufficientProposersBalance, #[codec(index = 1)] #[doc = "No proposal or bounty at that index."] InvalidIndex, #[codec(index = 2)] #[doc = "The reason given is just too big."] ReasonTooBig, #[codec(index = 3)] #[doc = "The bounty status is unexpected."] UnexpectedStatus, #[codec(index = 4)] #[doc = "Require bounty curator."] RequireCurator, #[codec(index = 5)] #[doc = "Invalid bounty value."] InvalidValue, #[codec(index = 6)] #[doc = "Invalid bounty fee."] InvalidFee, #[codec(index = 7)] #[doc = "A bounty payout is pending."] #[doc = "To cancel the bounty, you must unassign and slash the curator."] PendingPayout, #[codec(index = 8)] #[doc = "The bounties cannot be claimed/closed because it's still in the countdown period."] Premature, #[codec(index = 9)] #[doc = "The bounty cannot be closed because it has active child bounties."] HasActiveChildBounty, #[codec(index = 10)] #[doc = "Too many approvals are already queued."] TooManyQueued, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] pub enum Event { #[codec(index = 0)] #[doc = "New bounty proposal."] BountyProposed { index: ::core::primitive::u32 }, #[codec(index = 1)] #[doc = "A bounty proposal was rejected; funds were slashed."] BountyRejected { index: ::core::primitive::u32, bond: ::core::primitive::u128, }, #[codec(index = 2)] #[doc = "A bounty proposal is funded and became active."] BountyBecameActive { index: ::core::primitive::u32 }, #[codec(index = 3)] #[doc = "A bounty is awarded to a beneficiary."] BountyAwarded { index: ::core::primitive::u32, beneficiary: ::subxt::utils::AccountId32, }, #[codec(index = 4)] #[doc = "A bounty is claimed by beneficiary."] BountyClaimed { index: ::core::primitive::u32, payout: ::core::primitive::u128, beneficiary: ::subxt::utils::AccountId32, }, #[codec(index = 5)] #[doc = "A bounty is cancelled."] BountyCanceled { index: ::core::primitive::u32 }, #[codec(index = 6)] #[doc = "A bounty expiry is extended."] BountyExtended { index: ::core::primitive::u32 }, } } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Bounty<_0, _1, _2> { pub proposer: _0, pub value: _1, pub fee: _1, pub curator_deposit: _1, pub bond: _1, pub status: runtime_types::pallet_bounties::BountyStatus<_0, _2>, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum BountyStatus<_0, _1> { #[codec(index = 0)] Proposed, #[codec(index = 1)] Approved, #[codec(index = 2)] Funded, #[codec(index = 3)] CuratorProposed { curator: _0 }, #[codec(index = 4)] Active { curator: _0, update_due: _1 }, #[codec(index = 5)] PendingPayout { curator: _0, beneficiary: _0, unlock_at: _1, }, } } pub mod pallet_child_bounties { use super::runtime_types; pub mod pallet { use super::runtime_types; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] pub enum Call { #[codec(index = 0)] #[doc = "Add a new child-bounty."] #[doc = ""] #[doc = "The dispatch origin for this call must be the curator of parent"] #[doc = "bounty and the parent bounty must be in \"active\" state."] #[doc = ""] #[doc = "Child-bounty gets added successfully & fund gets transferred from"] #[doc = "parent bounty to child-bounty account, if parent bounty has enough"] #[doc = "funds, else the call fails."] #[doc = ""] #[doc = "Upper bound to maximum number of active child bounties that can be"] #[doc = "added are managed via runtime trait config"] #[doc = "[`Config::MaxActiveChildBountyCount`]."] #[doc = ""] #[doc = "If the call is success, the status of child-bounty is updated to"] #[doc = "\"Added\"."] #[doc = ""] #[doc = "- `parent_bounty_id`: Index of parent bounty for which child-bounty is being added."] #[doc = "- `value`: Value for executing the proposal."] #[doc = "- `description`: Text description for the child-bounty."] add_child_bounty { #[codec(compact)] parent_bounty_id: ::core::primitive::u32, #[codec(compact)] value: ::core::primitive::u128, description: ::std::vec::Vec<::core::primitive::u8>, }, #[codec(index = 1)] #[doc = "Propose curator for funded child-bounty."] #[doc = ""] #[doc = "The dispatch origin for this call must be curator of parent bounty."] #[doc = ""] #[doc = "Parent bounty must be in active state, for this child-bounty call to"] #[doc = "work."] #[doc = ""] #[doc = "Child-bounty must be in \"Added\" state, for processing the call. And"] #[doc = "state of child-bounty is moved to \"CuratorProposed\" on successful"] #[doc = "call completion."] #[doc = ""] #[doc = "- `parent_bounty_id`: Index of parent bounty."] #[doc = "- `child_bounty_id`: Index of child bounty."] #[doc = "- `curator`: Address of child-bounty curator."] #[doc = "- `fee`: payment fee to child-bounty curator for execution."] propose_curator { #[codec(compact)] parent_bounty_id: ::core::primitive::u32, #[codec(compact)] child_bounty_id: ::core::primitive::u32, curator: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, #[codec(compact)] fee: ::core::primitive::u128, }, #[codec(index = 2)] #[doc = "Accept the curator role for the child-bounty."] #[doc = ""] #[doc = "The dispatch origin for this call must be the curator of this"] #[doc = "child-bounty."] #[doc = ""] #[doc = "A deposit will be reserved from the curator and refund upon"] #[doc = "successful payout or cancellation."] #[doc = ""] #[doc = "Fee for curator is deducted from curator fee of parent bounty."] #[doc = ""] #[doc = "Parent bounty must be in active state, for this child-bounty call to"] #[doc = "work."] #[doc = ""] #[doc = "Child-bounty must be in \"CuratorProposed\" state, for processing the"] #[doc = "call. And state of child-bounty is moved to \"Active\" on successful"] #[doc = "call completion."] #[doc = ""] #[doc = "- `parent_bounty_id`: Index of parent bounty."] #[doc = "- `child_bounty_id`: Index of child bounty."] accept_curator { #[codec(compact)] parent_bounty_id: ::core::primitive::u32, #[codec(compact)] child_bounty_id: ::core::primitive::u32, }, #[codec(index = 3)] #[doc = "Unassign curator from a child-bounty."] #[doc = ""] #[doc = "The dispatch origin for this call can be either `RejectOrigin`, or"] #[doc = "the curator of the parent bounty, or any signed origin."] #[doc = ""] #[doc = "For the origin other than T::RejectOrigin and the child-bounty"] #[doc = "curator, parent bounty must be in active state, for this call to"] #[doc = "work. We allow child-bounty curator and T::RejectOrigin to execute"] #[doc = "this call irrespective of the parent bounty state."] #[doc = ""] #[doc = "If this function is called by the `RejectOrigin` or the"] #[doc = "parent bounty curator, we assume that the child-bounty curator is"] #[doc = "malicious or inactive. As a result, child-bounty curator deposit is"] #[doc = "slashed."] #[doc = ""] #[doc = "If the origin is the child-bounty curator, we take this as a sign"] #[doc = "that they are unable to do their job, and are willingly giving up."] #[doc = "We could slash the deposit, but for now we allow them to unreserve"] #[doc = "their deposit and exit without issue. (We may want to change this if"] #[doc = "it is abused.)"] #[doc = ""] #[doc = "Finally, the origin can be anyone iff the child-bounty curator is"] #[doc = "\"inactive\". Expiry update due of parent bounty is used to estimate"] #[doc = "inactive state of child-bounty curator."] #[doc = ""] #[doc = "This allows anyone in the community to call out that a child-bounty"] #[doc = "curator is not doing their due diligence, and we should pick a new"] #[doc = "one. In this case the child-bounty curator deposit is slashed."] #[doc = ""] #[doc = "State of child-bounty is moved to Added state on successful call"] #[doc = "completion."] #[doc = ""] #[doc = "- `parent_bounty_id`: Index of parent bounty."] #[doc = "- `child_bounty_id`: Index of child bounty."] unassign_curator { #[codec(compact)] parent_bounty_id: ::core::primitive::u32, #[codec(compact)] child_bounty_id: ::core::primitive::u32, }, #[codec(index = 4)] #[doc = "Award child-bounty to a beneficiary."] #[doc = ""] #[doc = "The beneficiary will be able to claim the funds after a delay."] #[doc = ""] #[doc = "The dispatch origin for this call must be the parent curator or"] #[doc = "curator of this child-bounty."] #[doc = ""] #[doc = "Parent bounty must be in active state, for this child-bounty call to"] #[doc = "work."] #[doc = ""] #[doc = "Child-bounty must be in active state, for processing the call. And"] #[doc = "state of child-bounty is moved to \"PendingPayout\" on successful call"] #[doc = "completion."] #[doc = ""] #[doc = "- `parent_bounty_id`: Index of parent bounty."] #[doc = "- `child_bounty_id`: Index of child bounty."] #[doc = "- `beneficiary`: Beneficiary account."] award_child_bounty { #[codec(compact)] parent_bounty_id: ::core::primitive::u32, #[codec(compact)] child_bounty_id: ::core::primitive::u32, beneficiary: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, }, #[codec(index = 5)] #[doc = "Claim the payout from an awarded child-bounty after payout delay."] #[doc = ""] #[doc = "The dispatch origin for this call may be any signed origin."] #[doc = ""] #[doc = "Call works independent of parent bounty state, No need for parent"] #[doc = "bounty to be in active state."] #[doc = ""] #[doc = "The Beneficiary is paid out with agreed bounty value. Curator fee is"] #[doc = "paid & curator deposit is unreserved."] #[doc = ""] #[doc = "Child-bounty must be in \"PendingPayout\" state, for processing the"] #[doc = "call. And instance of child-bounty is removed from the state on"] #[doc = "successful call completion."] #[doc = ""] #[doc = "- `parent_bounty_id`: Index of parent bounty."] #[doc = "- `child_bounty_id`: Index of child bounty."] claim_child_bounty { #[codec(compact)] parent_bounty_id: ::core::primitive::u32, #[codec(compact)] child_bounty_id: ::core::primitive::u32, }, #[codec(index = 6)] #[doc = "Cancel a proposed or active child-bounty. Child-bounty account funds"] #[doc = "are transferred to parent bounty account. The child-bounty curator"] #[doc = "deposit may be unreserved if possible."] #[doc = ""] #[doc = "The dispatch origin for this call must be either parent curator or"] #[doc = "`T::RejectOrigin`."] #[doc = ""] #[doc = "If the state of child-bounty is `Active`, curator deposit is"] #[doc = "unreserved."] #[doc = ""] #[doc = "If the state of child-bounty is `PendingPayout`, call fails &"] #[doc = "returns `PendingPayout` error."] #[doc = ""] #[doc = "For the origin other than T::RejectOrigin, parent bounty must be in"] #[doc = "active state, for this child-bounty call to work. For origin"] #[doc = "T::RejectOrigin execution is forced."] #[doc = ""] #[doc = "Instance of child-bounty is removed from the state on successful"] #[doc = "call completion."] #[doc = ""] #[doc = "- `parent_bounty_id`: Index of parent bounty."] #[doc = "- `child_bounty_id`: Index of child bounty."] close_child_bounty { #[codec(compact)] parent_bounty_id: ::core::primitive::u32, #[codec(compact)] child_bounty_id: ::core::primitive::u32, }, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] pub enum Error { #[codec(index = 0)] #[doc = "The parent bounty is not in active state."] ParentBountyNotActive, #[codec(index = 1)] #[doc = "The bounty balance is not enough to add new child-bounty."] InsufficientBountyBalance, #[codec(index = 2)] #[doc = "Number of child bounties exceeds limit `MaxActiveChildBountyCount`."] TooManyChildBounties, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] pub enum Event { #[codec(index = 0)] #[doc = "A child-bounty is added."] Added { index: ::core::primitive::u32, child_index: ::core::primitive::u32, }, #[codec(index = 1)] #[doc = "A child-bounty is awarded to a beneficiary."] Awarded { index: ::core::primitive::u32, child_index: ::core::primitive::u32, beneficiary: ::subxt::utils::AccountId32, }, #[codec(index = 2)] #[doc = "A child-bounty is claimed by beneficiary."] Claimed { index: ::core::primitive::u32, child_index: ::core::primitive::u32, payout: ::core::primitive::u128, beneficiary: ::subxt::utils::AccountId32, }, #[codec(index = 3)] #[doc = "A child-bounty is cancelled."] Canceled { index: ::core::primitive::u32, child_index: ::core::primitive::u32, }, } } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ChildBounty<_0, _1, _2> { pub parent_bounty: _2, pub value: _1, pub fee: _1, pub curator_deposit: _1, pub status: runtime_types::pallet_child_bounties::ChildBountyStatus<_0, _2>, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum ChildBountyStatus<_0, _1> { #[codec(index = 0)] Added, #[codec(index = 1)] CuratorProposed { curator: _0 }, #[codec(index = 2)] Active { curator: _0 }, #[codec(index = 3)] PendingPayout { curator: _0, beneficiary: _0, unlock_at: _1, }, } } pub mod pallet_collective { use super::runtime_types; pub mod pallet { use super::runtime_types; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] pub enum Call { #[codec(index = 0)] #[doc = "Set the collective's membership."] #[doc = ""] #[doc = "- `new_members`: The new member list. Be nice to the chain and provide it sorted."] #[doc = "- `prime`: The prime member whose vote sets the default."] #[doc = "- `old_count`: The upper bound for the previous number of members in storage. Used for"] #[doc = " weight estimation."] #[doc = ""] #[doc = "The dispatch of this call must be `SetMembersOrigin`."] #[doc = ""] #[doc = "NOTE: Does not enforce the expected `MaxMembers` limit on the amount of members, but"] #[doc = " the weight estimations rely on it to estimate dispatchable weight."] #[doc = ""] #[doc = "# WARNING:"] #[doc = ""] #[doc = "The `pallet-collective` can also be managed by logic outside of the pallet through the"] #[doc = "implementation of the trait [`ChangeMembers`]."] #[doc = "Any call to `set_members` must be careful that the member set doesn't get out of sync"] #[doc = "with other logic managing the member set."] #[doc = ""] #[doc = "## Complexity:"] #[doc = "- `O(MP + N)` where:"] #[doc = " - `M` old-members-count (code- and governance-bounded)"] #[doc = " - `N` new-members-count (code- and governance-bounded)"] #[doc = " - `P` proposals-count (code-bounded)"] set_members { new_members: ::std::vec::Vec<::subxt::utils::AccountId32>, prime: ::core::option::Option<::subxt::utils::AccountId32>, old_count: ::core::primitive::u32, }, #[codec(index = 1)] #[doc = "Dispatch a proposal from a member using the `Member` origin."] #[doc = ""] #[doc = "Origin must be a member of the collective."] #[doc = ""] #[doc = "## Complexity:"] #[doc = "- `O(B + M + P)` where:"] #[doc = "- `B` is `proposal` size in bytes (length-fee-bounded)"] #[doc = "- `M` members-count (code-bounded)"] #[doc = "- `P` complexity of dispatching `proposal`"] execute { proposal: ::std::boxed::Box, #[codec(compact)] length_bound: ::core::primitive::u32, }, #[codec(index = 2)] #[doc = "Add a new proposal to either be voted on or executed directly."] #[doc = ""] #[doc = "Requires the sender to be member."] #[doc = ""] #[doc = "`threshold` determines whether `proposal` is executed directly (`threshold < 2`)"] #[doc = "or put up for voting."] #[doc = ""] #[doc = "## Complexity"] #[doc = "- `O(B + M + P1)` or `O(B + M + P2)` where:"] #[doc = " - `B` is `proposal` size in bytes (length-fee-bounded)"] #[doc = " - `M` is members-count (code- and governance-bounded)"] #[doc = " - branching is influenced by `threshold` where:"] #[doc = " - `P1` is proposal execution complexity (`threshold < 2`)"] #[doc = " - `P2` is proposals-count (code-bounded) (`threshold >= 2`)"] propose { #[codec(compact)] threshold: ::core::primitive::u32, proposal: ::std::boxed::Box, #[codec(compact)] length_bound: ::core::primitive::u32, }, #[codec(index = 3)] #[doc = "Add an aye or nay vote for the sender to the given proposal."] #[doc = ""] #[doc = "Requires the sender to be a member."] #[doc = ""] #[doc = "Transaction fees will be waived if the member is voting on any particular proposal"] #[doc = "for the first time and the call is successful. Subsequent vote changes will charge a"] #[doc = "fee."] #[doc = "## Complexity"] #[doc = "- `O(M)` where `M` is members-count (code- and governance-bounded)"] vote { proposal: ::subxt::utils::H256, #[codec(compact)] index: ::core::primitive::u32, approve: ::core::primitive::bool, }, #[codec(index = 5)] #[doc = "Disapprove a proposal, close, and remove it from the system, regardless of its current"] #[doc = "state."] #[doc = ""] #[doc = "Must be called by the Root origin."] #[doc = ""] #[doc = "Parameters:"] #[doc = "* `proposal_hash`: The hash of the proposal that should be disapproved."] #[doc = ""] #[doc = "## Complexity"] #[doc = "O(P) where P is the number of max proposals"] disapprove_proposal { proposal_hash: ::subxt::utils::H256 }, #[codec(index = 6)] #[doc = "Close a vote that is either approved, disapproved or whose voting period has ended."] #[doc = ""] #[doc = "May be called by any signed account in order to finish voting and close the proposal."] #[doc = ""] #[doc = "If called before the end of the voting period it will only close the vote if it is"] #[doc = "has enough votes to be approved or disapproved."] #[doc = ""] #[doc = "If called after the end of the voting period abstentions are counted as rejections"] #[doc = "unless there is a prime member set and the prime member cast an approval."] #[doc = ""] #[doc = "If the close operation completes successfully with disapproval, the transaction fee will"] #[doc = "be waived. Otherwise execution of the approved operation will be charged to the caller."] #[doc = ""] #[doc = "+ `proposal_weight_bound`: The maximum amount of weight consumed by executing the closed"] #[doc = "proposal."] #[doc = "+ `length_bound`: The upper bound for the length of the proposal in storage. Checked via"] #[doc = "`storage::read` so it is `size_of::() == 4` larger than the pure length."] #[doc = ""] #[doc = "## Complexity"] #[doc = "- `O(B + M + P1 + P2)` where:"] #[doc = " - `B` is `proposal` size in bytes (length-fee-bounded)"] #[doc = " - `M` is members-count (code- and governance-bounded)"] #[doc = " - `P1` is the complexity of `proposal` preimage."] #[doc = " - `P2` is proposal-count (code-bounded)"] close { proposal_hash: ::subxt::utils::H256, #[codec(compact)] index: ::core::primitive::u32, proposal_weight_bound: runtime_types::sp_weights::weight_v2::Weight, #[codec(compact)] length_bound: ::core::primitive::u32, }, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] pub enum Call2 { #[codec(index = 0)] #[doc = "Set the collective's membership."] #[doc = ""] #[doc = "- `new_members`: The new member list. Be nice to the chain and provide it sorted."] #[doc = "- `prime`: The prime member whose vote sets the default."] #[doc = "- `old_count`: The upper bound for the previous number of members in storage. Used for"] #[doc = " weight estimation."] #[doc = ""] #[doc = "The dispatch of this call must be `SetMembersOrigin`."] #[doc = ""] #[doc = "NOTE: Does not enforce the expected `MaxMembers` limit on the amount of members, but"] #[doc = " the weight estimations rely on it to estimate dispatchable weight."] #[doc = ""] #[doc = "# WARNING:"] #[doc = ""] #[doc = "The `pallet-collective` can also be managed by logic outside of the pallet through the"] #[doc = "implementation of the trait [`ChangeMembers`]."] #[doc = "Any call to `set_members` must be careful that the member set doesn't get out of sync"] #[doc = "with other logic managing the member set."] #[doc = ""] #[doc = "## Complexity:"] #[doc = "- `O(MP + N)` where:"] #[doc = " - `M` old-members-count (code- and governance-bounded)"] #[doc = " - `N` new-members-count (code- and governance-bounded)"] #[doc = " - `P` proposals-count (code-bounded)"] set_members { new_members: ::std::vec::Vec<::subxt::utils::AccountId32>, prime: ::core::option::Option<::subxt::utils::AccountId32>, old_count: ::core::primitive::u32, }, #[codec(index = 1)] #[doc = "Dispatch a proposal from a member using the `Member` origin."] #[doc = ""] #[doc = "Origin must be a member of the collective."] #[doc = ""] #[doc = "## Complexity:"] #[doc = "- `O(B + M + P)` where:"] #[doc = "- `B` is `proposal` size in bytes (length-fee-bounded)"] #[doc = "- `M` members-count (code-bounded)"] #[doc = "- `P` complexity of dispatching `proposal`"] execute { proposal: ::std::boxed::Box, #[codec(compact)] length_bound: ::core::primitive::u32, }, #[codec(index = 2)] #[doc = "Add a new proposal to either be voted on or executed directly."] #[doc = ""] #[doc = "Requires the sender to be member."] #[doc = ""] #[doc = "`threshold` determines whether `proposal` is executed directly (`threshold < 2`)"] #[doc = "or put up for voting."] #[doc = ""] #[doc = "## Complexity"] #[doc = "- `O(B + M + P1)` or `O(B + M + P2)` where:"] #[doc = " - `B` is `proposal` size in bytes (length-fee-bounded)"] #[doc = " - `M` is members-count (code- and governance-bounded)"] #[doc = " - branching is influenced by `threshold` where:"] #[doc = " - `P1` is proposal execution complexity (`threshold < 2`)"] #[doc = " - `P2` is proposals-count (code-bounded) (`threshold >= 2`)"] propose { #[codec(compact)] threshold: ::core::primitive::u32, proposal: ::std::boxed::Box, #[codec(compact)] length_bound: ::core::primitive::u32, }, #[codec(index = 3)] #[doc = "Add an aye or nay vote for the sender to the given proposal."] #[doc = ""] #[doc = "Requires the sender to be a member."] #[doc = ""] #[doc = "Transaction fees will be waived if the member is voting on any particular proposal"] #[doc = "for the first time and the call is successful. Subsequent vote changes will charge a"] #[doc = "fee."] #[doc = "## Complexity"] #[doc = "- `O(M)` where `M` is members-count (code- and governance-bounded)"] vote { proposal: ::subxt::utils::H256, #[codec(compact)] index: ::core::primitive::u32, approve: ::core::primitive::bool, }, #[codec(index = 5)] #[doc = "Disapprove a proposal, close, and remove it from the system, regardless of its current"] #[doc = "state."] #[doc = ""] #[doc = "Must be called by the Root origin."] #[doc = ""] #[doc = "Parameters:"] #[doc = "* `proposal_hash`: The hash of the proposal that should be disapproved."] #[doc = ""] #[doc = "## Complexity"] #[doc = "O(P) where P is the number of max proposals"] disapprove_proposal { proposal_hash: ::subxt::utils::H256 }, #[codec(index = 6)] #[doc = "Close a vote that is either approved, disapproved or whose voting period has ended."] #[doc = ""] #[doc = "May be called by any signed account in order to finish voting and close the proposal."] #[doc = ""] #[doc = "If called before the end of the voting period it will only close the vote if it is"] #[doc = "has enough votes to be approved or disapproved."] #[doc = ""] #[doc = "If called after the end of the voting period abstentions are counted as rejections"] #[doc = "unless there is a prime member set and the prime member cast an approval."] #[doc = ""] #[doc = "If the close operation completes successfully with disapproval, the transaction fee will"] #[doc = "be waived. Otherwise execution of the approved operation will be charged to the caller."] #[doc = ""] #[doc = "+ `proposal_weight_bound`: The maximum amount of weight consumed by executing the closed"] #[doc = "proposal."] #[doc = "+ `length_bound`: The upper bound for the length of the proposal in storage. Checked via"] #[doc = "`storage::read` so it is `size_of::() == 4` larger than the pure length."] #[doc = ""] #[doc = "## Complexity"] #[doc = "- `O(B + M + P1 + P2)` where:"] #[doc = " - `B` is `proposal` size in bytes (length-fee-bounded)"] #[doc = " - `M` is members-count (code- and governance-bounded)"] #[doc = " - `P1` is the complexity of `proposal` preimage."] #[doc = " - `P2` is proposal-count (code-bounded)"] close { proposal_hash: ::subxt::utils::H256, #[codec(compact)] index: ::core::primitive::u32, proposal_weight_bound: runtime_types::sp_weights::weight_v2::Weight, #[codec(compact)] length_bound: ::core::primitive::u32, }, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] pub enum Error { #[codec(index = 0)] #[doc = "Account is not a member"] NotMember, #[codec(index = 1)] #[doc = "Duplicate proposals not allowed"] DuplicateProposal, #[codec(index = 2)] #[doc = "Proposal must exist"] ProposalMissing, #[codec(index = 3)] #[doc = "Mismatched index"] WrongIndex, #[codec(index = 4)] #[doc = "Duplicate vote ignored"] DuplicateVote, #[codec(index = 5)] #[doc = "Members are already initialized!"] AlreadyInitialized, #[codec(index = 6)] #[doc = "The close call was made too early, before the end of the voting."] TooEarly, #[codec(index = 7)] #[doc = "There can only be a maximum of `MaxProposals` active proposals."] TooManyProposals, #[codec(index = 8)] #[doc = "The given weight bound for the proposal was too low."] WrongProposalWeight, #[codec(index = 9)] #[doc = "The given length bound for the proposal was too low."] WrongProposalLength, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] pub enum Error2 { #[codec(index = 0)] #[doc = "Account is not a member"] NotMember, #[codec(index = 1)] #[doc = "Duplicate proposals not allowed"] DuplicateProposal, #[codec(index = 2)] #[doc = "Proposal must exist"] ProposalMissing, #[codec(index = 3)] #[doc = "Mismatched index"] WrongIndex, #[codec(index = 4)] #[doc = "Duplicate vote ignored"] DuplicateVote, #[codec(index = 5)] #[doc = "Members are already initialized!"] AlreadyInitialized, #[codec(index = 6)] #[doc = "The close call was made too early, before the end of the voting."] TooEarly, #[codec(index = 7)] #[doc = "There can only be a maximum of `MaxProposals` active proposals."] TooManyProposals, #[codec(index = 8)] #[doc = "The given weight bound for the proposal was too low."] WrongProposalWeight, #[codec(index = 9)] #[doc = "The given length bound for the proposal was too low."] WrongProposalLength, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] pub enum Event { #[codec(index = 0)] #[doc = "A motion (given hash) has been proposed (by given account) with a threshold (given"] #[doc = "`MemberCount`)."] Proposed { account: ::subxt::utils::AccountId32, proposal_index: ::core::primitive::u32, proposal_hash: ::subxt::utils::H256, threshold: ::core::primitive::u32, }, #[codec(index = 1)] #[doc = "A motion (given hash) has been voted on by given account, leaving"] #[doc = "a tally (yes votes and no votes given respectively as `MemberCount`)."] Voted { account: ::subxt::utils::AccountId32, proposal_hash: ::subxt::utils::H256, voted: ::core::primitive::bool, yes: ::core::primitive::u32, no: ::core::primitive::u32, }, #[codec(index = 2)] #[doc = "A motion was approved by the required threshold."] Approved { proposal_hash: ::subxt::utils::H256 }, #[codec(index = 3)] #[doc = "A motion was not approved by the required threshold."] Disapproved { proposal_hash: ::subxt::utils::H256 }, #[codec(index = 4)] #[doc = "A motion was executed; result will be `Ok` if it returned without error."] Executed { proposal_hash: ::subxt::utils::H256, result: ::core::result::Result<(), runtime_types::sp_runtime::DispatchError>, }, #[codec(index = 5)] #[doc = "A single member did some action; result will be `Ok` if it returned without error."] MemberExecuted { proposal_hash: ::subxt::utils::H256, result: ::core::result::Result<(), runtime_types::sp_runtime::DispatchError>, }, #[codec(index = 6)] #[doc = "A proposal was closed because its threshold was reached or after its duration was up."] Closed { proposal_hash: ::subxt::utils::H256, yes: ::core::primitive::u32, no: ::core::primitive::u32, }, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] pub enum Event2 { #[codec(index = 0)] #[doc = "A motion (given hash) has been proposed (by given account) with a threshold (given"] #[doc = "`MemberCount`)."] Proposed { account: ::subxt::utils::AccountId32, proposal_index: ::core::primitive::u32, proposal_hash: ::subxt::utils::H256, threshold: ::core::primitive::u32, }, #[codec(index = 1)] #[doc = "A motion (given hash) has been voted on by given account, leaving"] #[doc = "a tally (yes votes and no votes given respectively as `MemberCount`)."] Voted { account: ::subxt::utils::AccountId32, proposal_hash: ::subxt::utils::H256, voted: ::core::primitive::bool, yes: ::core::primitive::u32, no: ::core::primitive::u32, }, #[codec(index = 2)] #[doc = "A motion was approved by the required threshold."] Approved { proposal_hash: ::subxt::utils::H256 }, #[codec(index = 3)] #[doc = "A motion was not approved by the required threshold."] Disapproved { proposal_hash: ::subxt::utils::H256 }, #[codec(index = 4)] #[doc = "A motion was executed; result will be `Ok` if it returned without error."] Executed { proposal_hash: ::subxt::utils::H256, result: ::core::result::Result<(), runtime_types::sp_runtime::DispatchError>, }, #[codec(index = 5)] #[doc = "A single member did some action; result will be `Ok` if it returned without error."] MemberExecuted { proposal_hash: ::subxt::utils::H256, result: ::core::result::Result<(), runtime_types::sp_runtime::DispatchError>, }, #[codec(index = 6)] #[doc = "A proposal was closed because its threshold was reached or after its duration was up."] Closed { proposal_hash: ::subxt::utils::H256, yes: ::core::primitive::u32, no: ::core::primitive::u32, }, } } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum RawOrigin<_0> { #[codec(index = 0)] Members(::core::primitive::u32, ::core::primitive::u32), #[codec(index = 1)] Member(_0), #[codec(index = 2)] _Phantom, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Votes<_0, _1> { pub index: _1, pub threshold: _1, pub ayes: ::std::vec::Vec<_0>, pub nays: ::std::vec::Vec<_0>, pub end: _1, } } pub mod pallet_conviction_voting { use super::runtime_types; pub mod conviction { use super::runtime_types; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum Conviction { #[codec(index = 0)] None, #[codec(index = 1)] Locked1x, #[codec(index = 2)] Locked2x, #[codec(index = 3)] Locked3x, #[codec(index = 4)] Locked4x, #[codec(index = 5)] Locked5x, #[codec(index = 6)] Locked6x, } } pub mod pallet { use super::runtime_types; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] pub enum Call { #[codec(index = 0)] #[doc = "Vote in a poll. If `vote.is_aye()`, the vote is to enact the proposal;"] #[doc = "otherwise it is a vote to keep the status quo."] #[doc = ""] #[doc = "The dispatch origin of this call must be _Signed_."] #[doc = ""] #[doc = "- `poll_index`: The index of the poll to vote for."] #[doc = "- `vote`: The vote configuration."] #[doc = ""] #[doc = "Weight: `O(R)` where R is the number of polls the voter has voted on."] vote { #[codec(compact)] poll_index: ::core::primitive::u32, vote: runtime_types::pallet_conviction_voting::vote::AccountVote< ::core::primitive::u128, >, }, #[codec(index = 1)] #[doc = "Delegate the voting power (with some given conviction) of the sending account for a"] #[doc = "particular class of polls."] #[doc = ""] #[doc = "The balance delegated is locked for as long as it's delegated, and thereafter for the"] #[doc = "time appropriate for the conviction's lock period."] #[doc = ""] #[doc = "The dispatch origin of this call must be _Signed_, and the signing account must either:"] #[doc = " - be delegating already; or"] #[doc = " - have no voting activity (if there is, then it will need to be removed/consolidated"] #[doc = " through `reap_vote` or `unvote`)."] #[doc = ""] #[doc = "- `to`: The account whose voting the `target` account's voting power will follow."] #[doc = "- `class`: The class of polls to delegate. To delegate multiple classes, multiple calls"] #[doc = " to this function are required."] #[doc = "- `conviction`: The conviction that will be attached to the delegated votes. When the"] #[doc = " account is undelegated, the funds will be locked for the corresponding period."] #[doc = "- `balance`: The amount of the account's balance to be used in delegating. This must not"] #[doc = " be more than the account's current balance."] #[doc = ""] #[doc = "Emits `Delegated`."] #[doc = ""] #[doc = "Weight: `O(R)` where R is the number of polls the voter delegating to has"] #[doc = " voted on. Weight is initially charged as if maximum votes, but is refunded later."] delegate { class: ::core::primitive::u16, to: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, conviction: runtime_types::pallet_conviction_voting::conviction::Conviction, balance: ::core::primitive::u128, }, #[codec(index = 2)] #[doc = "Undelegate the voting power of the sending account for a particular class of polls."] #[doc = ""] #[doc = "Tokens may be unlocked following once an amount of time consistent with the lock period"] #[doc = "of the conviction with which the delegation was issued has passed."] #[doc = ""] #[doc = "The dispatch origin of this call must be _Signed_ and the signing account must be"] #[doc = "currently delegating."] #[doc = ""] #[doc = "- `class`: The class of polls to remove the delegation from."] #[doc = ""] #[doc = "Emits `Undelegated`."] #[doc = ""] #[doc = "Weight: `O(R)` where R is the number of polls the voter delegating to has"] #[doc = " voted on. Weight is initially charged as if maximum votes, but is refunded later."] undelegate { class: ::core::primitive::u16 }, #[codec(index = 3)] #[doc = "Remove the lock caused by prior voting/delegating which has expired within a particular"] #[doc = "class."] #[doc = ""] #[doc = "The dispatch origin of this call must be _Signed_."] #[doc = ""] #[doc = "- `class`: The class of polls to unlock."] #[doc = "- `target`: The account to remove the lock on."] #[doc = ""] #[doc = "Weight: `O(R)` with R number of vote of target."] unlock { class: ::core::primitive::u16, target: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, }, #[codec(index = 4)] #[doc = "Remove a vote for a poll."] #[doc = ""] #[doc = "If:"] #[doc = "- the poll was cancelled, or"] #[doc = "- the poll is ongoing, or"] #[doc = "- the poll has ended such that"] #[doc = " - the vote of the account was in opposition to the result; or"] #[doc = " - there was no conviction to the account's vote; or"] #[doc = " - the account made a split vote"] #[doc = "...then the vote is removed cleanly and a following call to `unlock` may result in more"] #[doc = "funds being available."] #[doc = ""] #[doc = "If, however, the poll has ended and:"] #[doc = "- it finished corresponding to the vote of the account, and"] #[doc = "- the account made a standard vote with conviction, and"] #[doc = "- the lock period of the conviction is not over"] #[doc = "...then the lock will be aggregated into the overall account's lock, which may involve"] #[doc = "*overlocking* (where the two locks are combined into a single lock that is the maximum"] #[doc = "of both the amount locked and the time is it locked for)."] #[doc = ""] #[doc = "The dispatch origin of this call must be _Signed_, and the signer must have a vote"] #[doc = "registered for poll `index`."] #[doc = ""] #[doc = "- `index`: The index of poll of the vote to be removed."] #[doc = "- `class`: Optional parameter, if given it indicates the class of the poll. For polls"] #[doc = " which have finished or are cancelled, this must be `Some`."] #[doc = ""] #[doc = "Weight: `O(R + log R)` where R is the number of polls that `target` has voted on."] #[doc = " Weight is calculated for the maximum number of vote."] remove_vote { class: ::core::option::Option<::core::primitive::u16>, index: ::core::primitive::u32, }, #[codec(index = 5)] #[doc = "Remove a vote for a poll."] #[doc = ""] #[doc = "If the `target` is equal to the signer, then this function is exactly equivalent to"] #[doc = "`remove_vote`. If not equal to the signer, then the vote must have expired,"] #[doc = "either because the poll was cancelled, because the voter lost the poll or"] #[doc = "because the conviction period is over."] #[doc = ""] #[doc = "The dispatch origin of this call must be _Signed_."] #[doc = ""] #[doc = "- `target`: The account of the vote to be removed; this account must have voted for poll"] #[doc = " `index`."] #[doc = "- `index`: The index of poll of the vote to be removed."] #[doc = "- `class`: The class of the poll."] #[doc = ""] #[doc = "Weight: `O(R + log R)` where R is the number of polls that `target` has voted on."] #[doc = " Weight is calculated for the maximum number of vote."] remove_other_vote { target: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, class: ::core::primitive::u16, index: ::core::primitive::u32, }, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] pub enum Error { #[codec(index = 0)] #[doc = "Poll is not ongoing."] NotOngoing, #[codec(index = 1)] #[doc = "The given account did not vote on the poll."] NotVoter, #[codec(index = 2)] #[doc = "The actor has no permission to conduct the action."] NoPermission, #[codec(index = 3)] #[doc = "The actor has no permission to conduct the action right now but will do in the future."] NoPermissionYet, #[codec(index = 4)] #[doc = "The account is already delegating."] AlreadyDelegating, #[codec(index = 5)] #[doc = "The account currently has votes attached to it and the operation cannot succeed until"] #[doc = "these are removed, either through `unvote` or `reap_vote`."] AlreadyVoting, #[codec(index = 6)] #[doc = "Too high a balance was provided that the account cannot afford."] InsufficientFunds, #[codec(index = 7)] #[doc = "The account is not currently delegating."] NotDelegating, #[codec(index = 8)] #[doc = "Delegation to oneself makes no sense."] Nonsense, #[codec(index = 9)] #[doc = "Maximum number of votes reached."] MaxVotesReached, #[codec(index = 10)] #[doc = "The class must be supplied since it is not easily determinable from the state."] ClassNeeded, #[codec(index = 11)] #[doc = "The class ID supplied is invalid."] BadClass, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] pub enum Event { #[codec(index = 0)] #[doc = "An account has delegated their vote to another account. \\[who, target\\]"] Delegated(::subxt::utils::AccountId32, ::subxt::utils::AccountId32), #[codec(index = 1)] #[doc = "An \\[account\\] has cancelled a previous delegation operation."] Undelegated(::subxt::utils::AccountId32), } } pub mod types { use super::runtime_types; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Delegations<_0> { pub votes: _0, pub capital: _0, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Tally<_0> { pub ayes: _0, pub nays: _0, pub support: _0, } } pub mod vote { use super::runtime_types; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum AccountVote<_0> { #[codec(index = 0)] Standard { vote: runtime_types::pallet_conviction_voting::vote::Vote, balance: _0, }, #[codec(index = 1)] Split { aye: _0, nay: _0 }, #[codec(index = 2)] SplitAbstain { aye: _0, nay: _0, abstain: _0 }, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Casting<_0, _1, _2> { pub votes: runtime_types::bounded_collections::bounded_vec::BoundedVec<( _1, runtime_types::pallet_conviction_voting::vote::AccountVote<_0>, )>, pub delegations: runtime_types::pallet_conviction_voting::types::Delegations<_0>, pub prior: runtime_types::pallet_conviction_voting::vote::PriorLock<_1, _0>, #[codec(skip)] pub __subxt_unused_type_params: ::core::marker::PhantomData<_2>, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Delegating<_0, _1, _2> { pub balance: _0, pub target: _1, pub conviction: runtime_types::pallet_conviction_voting::conviction::Conviction, pub delegations: runtime_types::pallet_conviction_voting::types::Delegations<_0>, pub prior: runtime_types::pallet_conviction_voting::vote::PriorLock<_2, _0>, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct PriorLock<_0, _1>(pub _0, pub _1); #[derive( :: subxt :: ext :: codec :: CompactAs, :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Vote(pub ::core::primitive::u8); #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum Voting<_0, _1, _2, _3> { #[codec(index = 0)] Casting(runtime_types::pallet_conviction_voting::vote::Casting<_0, _2, _2>), #[codec(index = 1)] Delegating( runtime_types::pallet_conviction_voting::vote::Delegating<_0, _1, _2>, ), __Ignore(::core::marker::PhantomData<_3>), } } } pub mod pallet_democracy { use super::runtime_types; pub mod conviction { use super::runtime_types; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum Conviction { #[codec(index = 0)] None, #[codec(index = 1)] Locked1x, #[codec(index = 2)] Locked2x, #[codec(index = 3)] Locked3x, #[codec(index = 4)] Locked4x, #[codec(index = 5)] Locked5x, #[codec(index = 6)] Locked6x, } } pub mod pallet { use super::runtime_types; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] pub enum Call { #[codec(index = 0)] #[doc = "Propose a sensitive action to be taken."] #[doc = ""] #[doc = "The dispatch origin of this call must be _Signed_ and the sender must"] #[doc = "have funds to cover the deposit."] #[doc = ""] #[doc = "- `proposal_hash`: The hash of the proposal preimage."] #[doc = "- `value`: The amount of deposit (must be at least `MinimumDeposit`)."] #[doc = ""] #[doc = "Emits `Proposed`."] propose { proposal: runtime_types::frame_support::traits::preimages::Bounded< runtime_types::polkadot_runtime::RuntimeCall, >, #[codec(compact)] value: ::core::primitive::u128, }, #[codec(index = 1)] #[doc = "Signals agreement with a particular proposal."] #[doc = ""] #[doc = "The dispatch origin of this call must be _Signed_ and the sender"] #[doc = "must have funds to cover the deposit, equal to the original deposit."] #[doc = ""] #[doc = "- `proposal`: The index of the proposal to second."] second { #[codec(compact)] proposal: ::core::primitive::u32, }, #[codec(index = 2)] #[doc = "Vote in a referendum. If `vote.is_aye()`, the vote is to enact the proposal;"] #[doc = "otherwise it is a vote to keep the status quo."] #[doc = ""] #[doc = "The dispatch origin of this call must be _Signed_."] #[doc = ""] #[doc = "- `ref_index`: The index of the referendum to vote for."] #[doc = "- `vote`: The vote configuration."] vote { #[codec(compact)] ref_index: ::core::primitive::u32, vote: runtime_types::pallet_democracy::vote::AccountVote< ::core::primitive::u128, >, }, #[codec(index = 3)] #[doc = "Schedule an emergency cancellation of a referendum. Cannot happen twice to the same"] #[doc = "referendum."] #[doc = ""] #[doc = "The dispatch origin of this call must be `CancellationOrigin`."] #[doc = ""] #[doc = "-`ref_index`: The index of the referendum to cancel."] #[doc = ""] #[doc = "Weight: `O(1)`."] emergency_cancel { ref_index: ::core::primitive::u32 }, #[codec(index = 4)] #[doc = "Schedule a referendum to be tabled once it is legal to schedule an external"] #[doc = "referendum."] #[doc = ""] #[doc = "The dispatch origin of this call must be `ExternalOrigin`."] #[doc = ""] #[doc = "- `proposal_hash`: The preimage hash of the proposal."] external_propose { proposal: runtime_types::frame_support::traits::preimages::Bounded< runtime_types::polkadot_runtime::RuntimeCall, >, }, #[codec(index = 5)] #[doc = "Schedule a majority-carries referendum to be tabled next once it is legal to schedule"] #[doc = "an external referendum."] #[doc = ""] #[doc = "The dispatch of this call must be `ExternalMajorityOrigin`."] #[doc = ""] #[doc = "- `proposal_hash`: The preimage hash of the proposal."] #[doc = ""] #[doc = "Unlike `external_propose`, blacklisting has no effect on this and it may replace a"] #[doc = "pre-scheduled `external_propose` call."] #[doc = ""] #[doc = "Weight: `O(1)`"] external_propose_majority { proposal: runtime_types::frame_support::traits::preimages::Bounded< runtime_types::polkadot_runtime::RuntimeCall, >, }, #[codec(index = 6)] #[doc = "Schedule a negative-turnout-bias referendum to be tabled next once it is legal to"] #[doc = "schedule an external referendum."] #[doc = ""] #[doc = "The dispatch of this call must be `ExternalDefaultOrigin`."] #[doc = ""] #[doc = "- `proposal_hash`: The preimage hash of the proposal."] #[doc = ""] #[doc = "Unlike `external_propose`, blacklisting has no effect on this and it may replace a"] #[doc = "pre-scheduled `external_propose` call."] #[doc = ""] #[doc = "Weight: `O(1)`"] external_propose_default { proposal: runtime_types::frame_support::traits::preimages::Bounded< runtime_types::polkadot_runtime::RuntimeCall, >, }, #[codec(index = 7)] #[doc = "Schedule the currently externally-proposed majority-carries referendum to be tabled"] #[doc = "immediately. If there is no externally-proposed referendum currently, or if there is one"] #[doc = "but it is not a majority-carries referendum then it fails."] #[doc = ""] #[doc = "The dispatch of this call must be `FastTrackOrigin`."] #[doc = ""] #[doc = "- `proposal_hash`: The hash of the current external proposal."] #[doc = "- `voting_period`: The period that is allowed for voting on this proposal. Increased to"] #[doc = "\tMust be always greater than zero."] #[doc = "\tFor `FastTrackOrigin` must be equal or greater than `FastTrackVotingPeriod`."] #[doc = "- `delay`: The number of block after voting has ended in approval and this should be"] #[doc = " enacted. This doesn't have a minimum amount."] #[doc = ""] #[doc = "Emits `Started`."] #[doc = ""] #[doc = "Weight: `O(1)`"] fast_track { proposal_hash: ::subxt::utils::H256, voting_period: ::core::primitive::u32, delay: ::core::primitive::u32, }, #[codec(index = 8)] #[doc = "Veto and blacklist the external proposal hash."] #[doc = ""] #[doc = "The dispatch origin of this call must be `VetoOrigin`."] #[doc = ""] #[doc = "- `proposal_hash`: The preimage hash of the proposal to veto and blacklist."] #[doc = ""] #[doc = "Emits `Vetoed`."] #[doc = ""] #[doc = "Weight: `O(V + log(V))` where V is number of `existing vetoers`"] veto_external { proposal_hash: ::subxt::utils::H256 }, #[codec(index = 9)] #[doc = "Remove a referendum."] #[doc = ""] #[doc = "The dispatch origin of this call must be _Root_."] #[doc = ""] #[doc = "- `ref_index`: The index of the referendum to cancel."] #[doc = ""] #[doc = "# Weight: `O(1)`."] cancel_referendum { #[codec(compact)] ref_index: ::core::primitive::u32, }, #[codec(index = 10)] #[doc = "Delegate the voting power (with some given conviction) of the sending account."] #[doc = ""] #[doc = "The balance delegated is locked for as long as it's delegated, and thereafter for the"] #[doc = "time appropriate for the conviction's lock period."] #[doc = ""] #[doc = "The dispatch origin of this call must be _Signed_, and the signing account must either:"] #[doc = " - be delegating already; or"] #[doc = " - have no voting activity (if there is, then it will need to be removed/consolidated"] #[doc = " through `reap_vote` or `unvote`)."] #[doc = ""] #[doc = "- `to`: The account whose voting the `target` account's voting power will follow."] #[doc = "- `conviction`: The conviction that will be attached to the delegated votes. When the"] #[doc = " account is undelegated, the funds will be locked for the corresponding period."] #[doc = "- `balance`: The amount of the account's balance to be used in delegating. This must not"] #[doc = " be more than the account's current balance."] #[doc = ""] #[doc = "Emits `Delegated`."] #[doc = ""] #[doc = "Weight: `O(R)` where R is the number of referendums the voter delegating to has"] #[doc = " voted on. Weight is charged as if maximum votes."] delegate { to: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, conviction: runtime_types::pallet_democracy::conviction::Conviction, balance: ::core::primitive::u128, }, #[codec(index = 11)] #[doc = "Undelegate the voting power of the sending account."] #[doc = ""] #[doc = "Tokens may be unlocked following once an amount of time consistent with the lock period"] #[doc = "of the conviction with which the delegation was issued."] #[doc = ""] #[doc = "The dispatch origin of this call must be _Signed_ and the signing account must be"] #[doc = "currently delegating."] #[doc = ""] #[doc = "Emits `Undelegated`."] #[doc = ""] #[doc = "Weight: `O(R)` where R is the number of referendums the voter delegating to has"] #[doc = " voted on. Weight is charged as if maximum votes."] undelegate, #[codec(index = 12)] #[doc = "Clears all public proposals."] #[doc = ""] #[doc = "The dispatch origin of this call must be _Root_."] #[doc = ""] #[doc = "Weight: `O(1)`."] clear_public_proposals, #[codec(index = 13)] #[doc = "Unlock tokens that have an expired lock."] #[doc = ""] #[doc = "The dispatch origin of this call must be _Signed_."] #[doc = ""] #[doc = "- `target`: The account to remove the lock on."] #[doc = ""] #[doc = "Weight: `O(R)` with R number of vote of target."] unlock { target: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, }, #[codec(index = 14)] #[doc = "Remove a vote for a referendum."] #[doc = ""] #[doc = "If:"] #[doc = "- the referendum was cancelled, or"] #[doc = "- the referendum is ongoing, or"] #[doc = "- the referendum has ended such that"] #[doc = " - the vote of the account was in opposition to the result; or"] #[doc = " - there was no conviction to the account's vote; or"] #[doc = " - the account made a split vote"] #[doc = "...then the vote is removed cleanly and a following call to `unlock` may result in more"] #[doc = "funds being available."] #[doc = ""] #[doc = "If, however, the referendum has ended and:"] #[doc = "- it finished corresponding to the vote of the account, and"] #[doc = "- the account made a standard vote with conviction, and"] #[doc = "- the lock period of the conviction is not over"] #[doc = "...then the lock will be aggregated into the overall account's lock, which may involve"] #[doc = "*overlocking* (where the two locks are combined into a single lock that is the maximum"] #[doc = "of both the amount locked and the time is it locked for)."] #[doc = ""] #[doc = "The dispatch origin of this call must be _Signed_, and the signer must have a vote"] #[doc = "registered for referendum `index`."] #[doc = ""] #[doc = "- `index`: The index of referendum of the vote to be removed."] #[doc = ""] #[doc = "Weight: `O(R + log R)` where R is the number of referenda that `target` has voted on."] #[doc = " Weight is calculated for the maximum number of vote."] remove_vote { index: ::core::primitive::u32 }, #[codec(index = 15)] #[doc = "Remove a vote for a referendum."] #[doc = ""] #[doc = "If the `target` is equal to the signer, then this function is exactly equivalent to"] #[doc = "`remove_vote`. If not equal to the signer, then the vote must have expired,"] #[doc = "either because the referendum was cancelled, because the voter lost the referendum or"] #[doc = "because the conviction period is over."] #[doc = ""] #[doc = "The dispatch origin of this call must be _Signed_."] #[doc = ""] #[doc = "- `target`: The account of the vote to be removed; this account must have voted for"] #[doc = " referendum `index`."] #[doc = "- `index`: The index of referendum of the vote to be removed."] #[doc = ""] #[doc = "Weight: `O(R + log R)` where R is the number of referenda that `target` has voted on."] #[doc = " Weight is calculated for the maximum number of vote."] remove_other_vote { target: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, index: ::core::primitive::u32, }, #[codec(index = 16)] #[doc = "Permanently place a proposal into the blacklist. This prevents it from ever being"] #[doc = "proposed again."] #[doc = ""] #[doc = "If called on a queued public or external proposal, then this will result in it being"] #[doc = "removed. If the `ref_index` supplied is an active referendum with the proposal hash,"] #[doc = "then it will be cancelled."] #[doc = ""] #[doc = "The dispatch origin of this call must be `BlacklistOrigin`."] #[doc = ""] #[doc = "- `proposal_hash`: The proposal hash to blacklist permanently."] #[doc = "- `ref_index`: An ongoing referendum whose hash is `proposal_hash`, which will be"] #[doc = "cancelled."] #[doc = ""] #[doc = "Weight: `O(p)` (though as this is an high-privilege dispatch, we assume it has a"] #[doc = " reasonable value)."] blacklist { proposal_hash: ::subxt::utils::H256, maybe_ref_index: ::core::option::Option<::core::primitive::u32>, }, #[codec(index = 17)] #[doc = "Remove a proposal."] #[doc = ""] #[doc = "The dispatch origin of this call must be `CancelProposalOrigin`."] #[doc = ""] #[doc = "- `prop_index`: The index of the proposal to cancel."] #[doc = ""] #[doc = "Weight: `O(p)` where `p = PublicProps::::decode_len()`"] cancel_proposal { #[codec(compact)] prop_index: ::core::primitive::u32, }, #[codec(index = 18)] #[doc = "Set or clear a metadata of a proposal or a referendum."] #[doc = ""] #[doc = "Parameters:"] #[doc = "- `origin`: Must correspond to the `MetadataOwner`."] #[doc = " - `ExternalOrigin` for an external proposal with the `SuperMajorityApprove`"] #[doc = " threshold."] #[doc = " - `ExternalDefaultOrigin` for an external proposal with the `SuperMajorityAgainst`"] #[doc = " threshold."] #[doc = " - `ExternalMajorityOrigin` for an external proposal with the `SimpleMajority`"] #[doc = " threshold."] #[doc = " - `Signed` by a creator for a public proposal."] #[doc = " - `Signed` to clear a metadata for a finished referendum."] #[doc = " - `Root` to set a metadata for an ongoing referendum."] #[doc = "- `owner`: an identifier of a metadata owner."] #[doc = "- `maybe_hash`: The hash of an on-chain stored preimage. `None` to clear a metadata."] set_metadata { owner: runtime_types::pallet_democracy::types::MetadataOwner, maybe_hash: ::core::option::Option<::subxt::utils::H256>, }, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] pub enum Error { #[codec(index = 0)] #[doc = "Value too low"] ValueLow, #[codec(index = 1)] #[doc = "Proposal does not exist"] ProposalMissing, #[codec(index = 2)] #[doc = "Cannot cancel the same proposal twice"] AlreadyCanceled, #[codec(index = 3)] #[doc = "Proposal already made"] DuplicateProposal, #[codec(index = 4)] #[doc = "Proposal still blacklisted"] ProposalBlacklisted, #[codec(index = 5)] #[doc = "Next external proposal not simple majority"] NotSimpleMajority, #[codec(index = 6)] #[doc = "Invalid hash"] InvalidHash, #[codec(index = 7)] #[doc = "No external proposal"] NoProposal, #[codec(index = 8)] #[doc = "Identity may not veto a proposal twice"] AlreadyVetoed, #[codec(index = 9)] #[doc = "Vote given for invalid referendum"] ReferendumInvalid, #[codec(index = 10)] #[doc = "No proposals waiting"] NoneWaiting, #[codec(index = 11)] #[doc = "The given account did not vote on the referendum."] NotVoter, #[codec(index = 12)] #[doc = "The actor has no permission to conduct the action."] NoPermission, #[codec(index = 13)] #[doc = "The account is already delegating."] AlreadyDelegating, #[codec(index = 14)] #[doc = "Too high a balance was provided that the account cannot afford."] InsufficientFunds, #[codec(index = 15)] #[doc = "The account is not currently delegating."] NotDelegating, #[codec(index = 16)] #[doc = "The account currently has votes attached to it and the operation cannot succeed until"] #[doc = "these are removed, either through `unvote` or `reap_vote`."] VotesExist, #[codec(index = 17)] #[doc = "The instant referendum origin is currently disallowed."] InstantNotAllowed, #[codec(index = 18)] #[doc = "Delegation to oneself makes no sense."] Nonsense, #[codec(index = 19)] #[doc = "Invalid upper bound."] WrongUpperBound, #[codec(index = 20)] #[doc = "Maximum number of votes reached."] MaxVotesReached, #[codec(index = 21)] #[doc = "Maximum number of items reached."] TooMany, #[codec(index = 22)] #[doc = "Voting period too low"] VotingPeriodLow, #[codec(index = 23)] #[doc = "The preimage does not exist."] PreimageNotExist, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] pub enum Event { #[codec(index = 0)] #[doc = "A motion has been proposed by a public account."] Proposed { proposal_index: ::core::primitive::u32, deposit: ::core::primitive::u128, }, #[codec(index = 1)] #[doc = "A public proposal has been tabled for referendum vote."] Tabled { proposal_index: ::core::primitive::u32, deposit: ::core::primitive::u128, }, #[codec(index = 2)] #[doc = "An external proposal has been tabled."] ExternalTabled, #[codec(index = 3)] #[doc = "A referendum has begun."] Started { ref_index: ::core::primitive::u32, threshold: runtime_types::pallet_democracy::vote_threshold::VoteThreshold, }, #[codec(index = 4)] #[doc = "A proposal has been approved by referendum."] Passed { ref_index: ::core::primitive::u32 }, #[codec(index = 5)] #[doc = "A proposal has been rejected by referendum."] NotPassed { ref_index: ::core::primitive::u32 }, #[codec(index = 6)] #[doc = "A referendum has been cancelled."] Cancelled { ref_index: ::core::primitive::u32 }, #[codec(index = 7)] #[doc = "An account has delegated their vote to another account."] Delegated { who: ::subxt::utils::AccountId32, target: ::subxt::utils::AccountId32, }, #[codec(index = 8)] #[doc = "An account has cancelled a previous delegation operation."] Undelegated { account: ::subxt::utils::AccountId32, }, #[codec(index = 9)] #[doc = "An external proposal has been vetoed."] Vetoed { who: ::subxt::utils::AccountId32, proposal_hash: ::subxt::utils::H256, until: ::core::primitive::u32, }, #[codec(index = 10)] #[doc = "A proposal_hash has been blacklisted permanently."] Blacklisted { proposal_hash: ::subxt::utils::H256 }, #[codec(index = 11)] #[doc = "An account has voted in a referendum"] Voted { voter: ::subxt::utils::AccountId32, ref_index: ::core::primitive::u32, vote: runtime_types::pallet_democracy::vote::AccountVote< ::core::primitive::u128, >, }, #[codec(index = 12)] #[doc = "An account has secconded a proposal"] Seconded { seconder: ::subxt::utils::AccountId32, prop_index: ::core::primitive::u32, }, #[codec(index = 13)] #[doc = "A proposal got canceled."] ProposalCanceled { prop_index: ::core::primitive::u32 }, #[codec(index = 14)] #[doc = "Metadata for a proposal or a referendum has been set."] MetadataSet { owner: runtime_types::pallet_democracy::types::MetadataOwner, hash: ::subxt::utils::H256, }, #[codec(index = 15)] #[doc = "Metadata for a proposal or a referendum has been cleared."] MetadataCleared { owner: runtime_types::pallet_democracy::types::MetadataOwner, hash: ::subxt::utils::H256, }, #[codec(index = 16)] #[doc = "Metadata has been transferred to new owner."] MetadataTransferred { prev_owner: runtime_types::pallet_democracy::types::MetadataOwner, owner: runtime_types::pallet_democracy::types::MetadataOwner, hash: ::subxt::utils::H256, }, } } pub mod types { use super::runtime_types; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Delegations<_0> { pub votes: _0, pub capital: _0, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum MetadataOwner { #[codec(index = 0)] External, #[codec(index = 1)] Proposal(::core::primitive::u32), #[codec(index = 2)] Referendum(::core::primitive::u32), } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum ReferendumInfo<_0, _1, _2> { #[codec(index = 0)] Ongoing(runtime_types::pallet_democracy::types::ReferendumStatus<_0, _1, _2>), #[codec(index = 1)] Finished { approved: ::core::primitive::bool, end: _0, }, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ReferendumStatus<_0, _1, _2> { pub end: _0, pub proposal: _1, pub threshold: runtime_types::pallet_democracy::vote_threshold::VoteThreshold, pub delay: _0, pub tally: runtime_types::pallet_democracy::types::Tally<_2>, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Tally<_0> { pub ayes: _0, pub nays: _0, pub turnout: _0, } } pub mod vote { use super::runtime_types; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum AccountVote<_0> { #[codec(index = 0)] Standard { vote: runtime_types::pallet_democracy::vote::Vote, balance: _0, }, #[codec(index = 1)] Split { aye: _0, nay: _0 }, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct PriorLock<_0, _1>(pub _0, pub _1); #[derive( :: subxt :: ext :: codec :: CompactAs, :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Vote(pub ::core::primitive::u8); #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum Voting<_0, _1, _2> { #[codec(index = 0)] Direct { votes: runtime_types::bounded_collections::bounded_vec::BoundedVec<( _2, runtime_types::pallet_democracy::vote::AccountVote<_0>, )>, delegations: runtime_types::pallet_democracy::types::Delegations<_0>, prior: runtime_types::pallet_democracy::vote::PriorLock<_2, _0>, }, #[codec(index = 1)] Delegating { balance: _0, target: _1, conviction: runtime_types::pallet_democracy::conviction::Conviction, delegations: runtime_types::pallet_democracy::types::Delegations<_0>, prior: runtime_types::pallet_democracy::vote::PriorLock<_2, _0>, }, } } pub mod vote_threshold { use super::runtime_types; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum VoteThreshold { #[codec(index = 0)] SuperMajorityApprove, #[codec(index = 1)] SuperMajorityAgainst, #[codec(index = 2)] SimpleMajority, } } } pub mod pallet_election_provider_multi_phase { use super::runtime_types; pub mod pallet { use super::runtime_types; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] pub enum Call { # [codec (index = 0)] # [doc = "Submit a solution for the unsigned phase."] # [doc = ""] # [doc = "The dispatch origin fo this call must be __none__."] # [doc = ""] # [doc = "This submission is checked on the fly. Moreover, this unsigned solution is only"] # [doc = "validated when submitted to the pool from the **local** node. Effectively, this means"] # [doc = "that only active validators can submit this transaction when authoring a block (similar"] # [doc = "to an inherent)."] # [doc = ""] # [doc = "To prevent any incorrect solution (and thus wasted time/weight), this transaction will"] # [doc = "panic if the solution submitted by the validator is invalid in any way, effectively"] # [doc = "putting their authoring reward at risk."] # [doc = ""] # [doc = "No deposit or reward is associated with this submission."] submit_unsigned { raw_solution : :: std :: boxed :: Box < runtime_types :: pallet_election_provider_multi_phase :: RawSolution < runtime_types :: polkadot_runtime :: NposCompactSolution16 > > , witness : runtime_types :: pallet_election_provider_multi_phase :: SolutionOrSnapshotSize , } , # [codec (index = 1)] # [doc = "Set a new value for `MinimumUntrustedScore`."] # [doc = ""] # [doc = "Dispatch origin must be aligned with `T::ForceOrigin`."] # [doc = ""] # [doc = "This check can be turned off by setting the value to `None`."] set_minimum_untrusted_score { maybe_next_score : :: core :: option :: Option < runtime_types :: sp_npos_elections :: ElectionScore > , } , # [codec (index = 2)] # [doc = "Set a solution in the queue, to be handed out to the client of this pallet in the next"] # [doc = "call to `ElectionProvider::elect`."] # [doc = ""] # [doc = "This can only be set by `T::ForceOrigin`, and only when the phase is `Emergency`."] # [doc = ""] # [doc = "The solution is not checked for any feasibility and is assumed to be trustworthy, as any"] # [doc = "feasibility check itself can in principle cause the election process to fail (due to"] # [doc = "memory/weight constrains)."] set_emergency_election_result { supports : :: std :: vec :: Vec < (:: subxt :: utils :: AccountId32 , runtime_types :: sp_npos_elections :: Support < :: subxt :: utils :: AccountId32 > ,) > , } , # [codec (index = 3)] # [doc = "Submit a solution for the signed phase."] # [doc = ""] # [doc = "The dispatch origin fo this call must be __signed__."] # [doc = ""] # [doc = "The solution is potentially queued, based on the claimed score and processed at the end"] # [doc = "of the signed phase."] # [doc = ""] # [doc = "A deposit is reserved and recorded for the solution. Based on the outcome, the solution"] # [doc = "might be rewarded, slashed, or get all or a part of the deposit back."] submit { raw_solution : :: std :: boxed :: Box < runtime_types :: pallet_election_provider_multi_phase :: RawSolution < runtime_types :: polkadot_runtime :: NposCompactSolution16 > > , } , # [codec (index = 4)] # [doc = "Trigger the governance fallback."] # [doc = ""] # [doc = "This can only be called when [`Phase::Emergency`] is enabled, as an alternative to"] # [doc = "calling [`Call::set_emergency_election_result`]."] governance_fallback { maybe_max_voters : :: core :: option :: Option < :: core :: primitive :: u32 > , maybe_max_targets : :: core :: option :: Option < :: core :: primitive :: u32 > , } , } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Error of the pallet that can be returned in response to dispatches."] pub enum Error { #[codec(index = 0)] #[doc = "Submission was too early."] PreDispatchEarlySubmission, #[codec(index = 1)] #[doc = "Wrong number of winners presented."] PreDispatchWrongWinnerCount, #[codec(index = 2)] #[doc = "Submission was too weak, score-wise."] PreDispatchWeakSubmission, #[codec(index = 3)] #[doc = "The queue was full, and the solution was not better than any of the existing ones."] SignedQueueFull, #[codec(index = 4)] #[doc = "The origin failed to pay the deposit."] SignedCannotPayDeposit, #[codec(index = 5)] #[doc = "Witness data to dispatchable is invalid."] SignedInvalidWitness, #[codec(index = 6)] #[doc = "The signed submission consumes too much weight"] SignedTooMuchWeight, #[codec(index = 7)] #[doc = "OCW submitted solution for wrong round"] OcwCallWrongEra, #[codec(index = 8)] #[doc = "Snapshot metadata should exist but didn't."] MissingSnapshotMetadata, #[codec(index = 9)] #[doc = "`Self::insert_submission` returned an invalid index."] InvalidSubmissionIndex, #[codec(index = 10)] #[doc = "The call is not allowed at this point."] CallNotAllowed, #[codec(index = 11)] #[doc = "The fallback failed"] FallbackFailed, #[codec(index = 12)] #[doc = "Some bound not met"] BoundNotMet, #[codec(index = 13)] #[doc = "Submitted solution has too many winners"] TooManyWinners, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] pub enum Event { #[codec(index = 0)] #[doc = "A solution was stored with the given compute."] #[doc = ""] #[doc = "The `origin` indicates the origin of the solution. If `origin` is `Some(AccountId)`,"] #[doc = "the stored solution was submited in the signed phase by a miner with the `AccountId`."] #[doc = "Otherwise, the solution was stored either during the unsigned phase or by"] #[doc = "`T::ForceOrigin`. The `bool` is `true` when a previous solution was ejected to make"] #[doc = "room for this one."] SolutionStored { compute: runtime_types::pallet_election_provider_multi_phase::ElectionCompute, origin: ::core::option::Option<::subxt::utils::AccountId32>, prev_ejected: ::core::primitive::bool, }, #[codec(index = 1)] #[doc = "The election has been finalized, with the given computation and score."] ElectionFinalized { compute: runtime_types::pallet_election_provider_multi_phase::ElectionCompute, score: runtime_types::sp_npos_elections::ElectionScore, }, #[codec(index = 2)] #[doc = "An election failed."] #[doc = ""] #[doc = "Not much can be said about which computes failed in the process."] ElectionFailed, #[codec(index = 3)] #[doc = "An account has been rewarded for their signed submission being finalized."] Rewarded { account: ::subxt::utils::AccountId32, value: ::core::primitive::u128, }, #[codec(index = 4)] #[doc = "An account has been slashed for submitting an invalid signed submission."] Slashed { account: ::subxt::utils::AccountId32, value: ::core::primitive::u128, }, #[codec(index = 5)] #[doc = "There was a phase transition in a given round."] PhaseTransitioned { from: runtime_types::pallet_election_provider_multi_phase::Phase< ::core::primitive::u32, >, to: runtime_types::pallet_election_provider_multi_phase::Phase< ::core::primitive::u32, >, round: ::core::primitive::u32, }, } } pub mod signed { use super::runtime_types; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SignedSubmission<_0, _1, _2> { pub who: _0, pub deposit: _1, pub raw_solution: runtime_types::pallet_election_provider_multi_phase::RawSolution<_2>, pub call_fee: _1, } } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum ElectionCompute { #[codec(index = 0)] OnChain, #[codec(index = 1)] Signed, #[codec(index = 2)] Unsigned, #[codec(index = 3)] Fallback, #[codec(index = 4)] Emergency, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum Phase<_0> { #[codec(index = 0)] Off, #[codec(index = 1)] Signed, #[codec(index = 2)] Unsigned((::core::primitive::bool, _0)), #[codec(index = 3)] Emergency, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct RawSolution<_0> { pub solution: _0, pub score: runtime_types::sp_npos_elections::ElectionScore, pub round: ::core::primitive::u32, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ReadySolution { pub supports: runtime_types::bounded_collections::bounded_vec::BoundedVec<( ::subxt::utils::AccountId32, runtime_types::sp_npos_elections::Support<::subxt::utils::AccountId32>, )>, pub score: runtime_types::sp_npos_elections::ElectionScore, pub compute: runtime_types::pallet_election_provider_multi_phase::ElectionCompute, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct RoundSnapshot<_0, _1> { pub voters: ::std::vec::Vec<_1>, pub targets: ::std::vec::Vec<_0>, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SolutionOrSnapshotSize { #[codec(compact)] pub voters: ::core::primitive::u32, #[codec(compact)] pub targets: ::core::primitive::u32, } } pub mod pallet_elections_phragmen { use super::runtime_types; pub mod pallet { use super::runtime_types; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] pub enum Call { #[codec(index = 0)] #[doc = "Vote for a set of candidates for the upcoming round of election. This can be called to"] #[doc = "set the initial votes, or update already existing votes."] #[doc = ""] #[doc = "Upon initial voting, `value` units of `who`'s balance is locked and a deposit amount is"] #[doc = "reserved. The deposit is based on the number of votes and can be updated over time."] #[doc = ""] #[doc = "The `votes` should:"] #[doc = " - not be empty."] #[doc = " - be less than the number of possible candidates. Note that all current members and"] #[doc = " runners-up are also automatically candidates for the next round."] #[doc = ""] #[doc = "If `value` is more than `who`'s free balance, then the maximum of the two is used."] #[doc = ""] #[doc = "The dispatch origin of this call must be signed."] #[doc = ""] #[doc = "### Warning"] #[doc = ""] #[doc = "It is the responsibility of the caller to **NOT** place all of their balance into the"] #[doc = "lock and keep some for further operations."] vote { votes: ::std::vec::Vec<::subxt::utils::AccountId32>, #[codec(compact)] value: ::core::primitive::u128, }, #[codec(index = 1)] #[doc = "Remove `origin` as a voter."] #[doc = ""] #[doc = "This removes the lock and returns the deposit."] #[doc = ""] #[doc = "The dispatch origin of this call must be signed and be a voter."] remove_voter, #[codec(index = 2)] #[doc = "Submit oneself for candidacy. A fixed amount of deposit is recorded."] #[doc = ""] #[doc = "All candidates are wiped at the end of the term. They either become a member/runner-up,"] #[doc = "or leave the system while their deposit is slashed."] #[doc = ""] #[doc = "The dispatch origin of this call must be signed."] #[doc = ""] #[doc = "### Warning"] #[doc = ""] #[doc = "Even if a candidate ends up being a member, they must call [`Call::renounce_candidacy`]"] #[doc = "to get their deposit back. Losing the spot in an election will always lead to a slash."] #[doc = ""] #[doc = "The number of current candidates must be provided as witness data."] #[doc = "## Complexity"] #[doc = "O(C + log(C)) where C is candidate_count."] submit_candidacy { #[codec(compact)] candidate_count: ::core::primitive::u32, }, #[codec(index = 3)] #[doc = "Renounce one's intention to be a candidate for the next election round. 3 potential"] #[doc = "outcomes exist:"] #[doc = ""] #[doc = "- `origin` is a candidate and not elected in any set. In this case, the deposit is"] #[doc = " unreserved, returned and origin is removed as a candidate."] #[doc = "- `origin` is a current runner-up. In this case, the deposit is unreserved, returned and"] #[doc = " origin is removed as a runner-up."] #[doc = "- `origin` is a current member. In this case, the deposit is unreserved and origin is"] #[doc = " removed as a member, consequently not being a candidate for the next round anymore."] #[doc = " Similar to [`remove_member`](Self::remove_member), if replacement runners exists, they"] #[doc = " are immediately used. If the prime is renouncing, then no prime will exist until the"] #[doc = " next round."] #[doc = ""] #[doc = "The dispatch origin of this call must be signed, and have one of the above roles."] #[doc = "The type of renouncing must be provided as witness data."] #[doc = ""] #[doc = "## Complexity"] #[doc = " - Renouncing::Candidate(count): O(count + log(count))"] #[doc = " - Renouncing::Member: O(1)"] #[doc = " - Renouncing::RunnerUp: O(1)"] renounce_candidacy { renouncing: runtime_types::pallet_elections_phragmen::Renouncing, }, #[codec(index = 4)] #[doc = "Remove a particular member from the set. This is effective immediately and the bond of"] #[doc = "the outgoing member is slashed."] #[doc = ""] #[doc = "If a runner-up is available, then the best runner-up will be removed and replaces the"] #[doc = "outgoing member. Otherwise, if `rerun_election` is `true`, a new phragmen election is"] #[doc = "started, else, nothing happens."] #[doc = ""] #[doc = "If `slash_bond` is set to true, the bond of the member being removed is slashed. Else,"] #[doc = "it is returned."] #[doc = ""] #[doc = "The dispatch origin of this call must be root."] #[doc = ""] #[doc = "Note that this does not affect the designated block number of the next election."] #[doc = ""] #[doc = "## Complexity"] #[doc = "- Check details of remove_and_replace_member() and do_phragmen()."] remove_member { who: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, slash_bond: ::core::primitive::bool, rerun_election: ::core::primitive::bool, }, #[codec(index = 5)] #[doc = "Clean all voters who are defunct (i.e. they do not serve any purpose at all). The"] #[doc = "deposit of the removed voters are returned."] #[doc = ""] #[doc = "This is an root function to be used only for cleaning the state."] #[doc = ""] #[doc = "The dispatch origin of this call must be root."] #[doc = ""] #[doc = "## Complexity"] #[doc = "- Check is_defunct_voter() details."] clean_defunct_voters { num_voters: ::core::primitive::u32, num_defunct: ::core::primitive::u32, }, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] pub enum Error { #[codec(index = 0)] #[doc = "Cannot vote when no candidates or members exist."] UnableToVote, #[codec(index = 1)] #[doc = "Must vote for at least one candidate."] NoVotes, #[codec(index = 2)] #[doc = "Cannot vote more than candidates."] TooManyVotes, #[codec(index = 3)] #[doc = "Cannot vote more than maximum allowed."] MaximumVotesExceeded, #[codec(index = 4)] #[doc = "Cannot vote with stake less than minimum balance."] LowBalance, #[codec(index = 5)] #[doc = "Voter can not pay voting bond."] UnableToPayBond, #[codec(index = 6)] #[doc = "Must be a voter."] MustBeVoter, #[codec(index = 7)] #[doc = "Duplicated candidate submission."] DuplicatedCandidate, #[codec(index = 8)] #[doc = "Too many candidates have been created."] TooManyCandidates, #[codec(index = 9)] #[doc = "Member cannot re-submit candidacy."] MemberSubmit, #[codec(index = 10)] #[doc = "Runner cannot re-submit candidacy."] RunnerUpSubmit, #[codec(index = 11)] #[doc = "Candidate does not have enough funds."] InsufficientCandidateFunds, #[codec(index = 12)] #[doc = "Not a member."] NotMember, #[codec(index = 13)] #[doc = "The provided count of number of candidates is incorrect."] InvalidWitnessData, #[codec(index = 14)] #[doc = "The provided count of number of votes is incorrect."] InvalidVoteCount, #[codec(index = 15)] #[doc = "The renouncing origin presented a wrong `Renouncing` parameter."] InvalidRenouncing, #[codec(index = 16)] #[doc = "Prediction regarding replacement after member removal is wrong."] InvalidReplacement, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] pub enum Event { #[codec(index = 0)] #[doc = "A new term with new_members. This indicates that enough candidates existed to run"] #[doc = "the election, not that enough have has been elected. The inner value must be examined"] #[doc = "for this purpose. A `NewTerm(\\[\\])` indicates that some candidates got their bond"] #[doc = "slashed and none were elected, whilst `EmptyTerm` means that no candidates existed to"] #[doc = "begin with."] NewTerm { new_members: ::std::vec::Vec<(::subxt::utils::AccountId32, ::core::primitive::u128)>, }, #[codec(index = 1)] #[doc = "No (or not enough) candidates existed for this round. This is different from"] #[doc = "`NewTerm(\\[\\])`. See the description of `NewTerm`."] EmptyTerm, #[codec(index = 2)] #[doc = "Internal error happened while trying to perform election."] ElectionError, #[codec(index = 3)] #[doc = "A member has been removed. This should always be followed by either `NewTerm` or"] #[doc = "`EmptyTerm`."] MemberKicked { member: ::subxt::utils::AccountId32 }, #[codec(index = 4)] #[doc = "Someone has renounced their candidacy."] Renounced { candidate: ::subxt::utils::AccountId32, }, #[codec(index = 5)] #[doc = "A candidate was slashed by amount due to failing to obtain a seat as member or"] #[doc = "runner-up."] #[doc = ""] #[doc = "Note that old members and runners-up are also candidates."] CandidateSlashed { candidate: ::subxt::utils::AccountId32, amount: ::core::primitive::u128, }, #[codec(index = 6)] #[doc = "A seat holder was slashed by amount by being forcefully removed from the set."] SeatHolderSlashed { seat_holder: ::subxt::utils::AccountId32, amount: ::core::primitive::u128, }, } } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum Renouncing { #[codec(index = 0)] Member, #[codec(index = 1)] RunnerUp, #[codec(index = 2)] Candidate(#[codec(compact)] ::core::primitive::u32), } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SeatHolder<_0, _1> { pub who: _0, pub stake: _1, pub deposit: _1, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Voter<_0, _1> { pub votes: ::std::vec::Vec<_0>, pub stake: _1, pub deposit: _1, } } pub mod pallet_fast_unstake { use super::runtime_types; pub mod pallet { use super::runtime_types; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] pub enum Call { #[codec(index = 0)] #[doc = "Register oneself for fast-unstake."] #[doc = ""] #[doc = "The dispatch origin of this call must be signed by the controller account, similar to"] #[doc = "`staking::unbond`."] #[doc = ""] #[doc = "The stash associated with the origin must have no ongoing unlocking chunks. If"] #[doc = "successful, this will fully unbond and chill the stash. Then, it will enqueue the stash"] #[doc = "to be checked in further blocks."] #[doc = ""] #[doc = "If by the time this is called, the stash is actually eligible for fast-unstake, then"] #[doc = "they are guaranteed to remain eligible, because the call will chill them as well."] #[doc = ""] #[doc = "If the check works, the entire staking data is removed, i.e. the stash is fully"] #[doc = "unstaked."] #[doc = ""] #[doc = "If the check fails, the stash remains chilled and waiting for being unbonded as in with"] #[doc = "the normal staking system, but they lose part of their unbonding chunks due to consuming"] #[doc = "the chain's resources."] register_fast_unstake, #[codec(index = 1)] #[doc = "Deregister oneself from the fast-unstake."] #[doc = ""] #[doc = "This is useful if one is registered, they are still waiting, and they change their mind."] #[doc = ""] #[doc = "Note that the associated stash is still fully unbonded and chilled as a consequence of"] #[doc = "calling `register_fast_unstake`. This should probably be followed by a call to"] #[doc = "`Staking::rebond`."] deregister, #[codec(index = 2)] #[doc = "Control the operation of this pallet."] #[doc = ""] #[doc = "Dispatch origin must be signed by the [`Config::ControlOrigin`]."] control { eras_to_check: ::core::primitive::u32, }, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] pub enum Error { #[codec(index = 0)] #[doc = "The provided Controller account was not found."] #[doc = ""] #[doc = "This means that the given account is not bonded."] NotController, #[codec(index = 1)] #[doc = "The bonded account has already been queued."] AlreadyQueued, #[codec(index = 2)] #[doc = "The bonded account has active unlocking chunks."] NotFullyBonded, #[codec(index = 3)] #[doc = "The provided un-staker is not in the `Queue`."] NotQueued, #[codec(index = 4)] #[doc = "The provided un-staker is already in Head, and cannot deregister."] AlreadyHead, #[codec(index = 5)] #[doc = "The call is not allowed at this point because the pallet is not active."] CallNotAllowed, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "The events of this pallet."] pub enum Event { #[codec(index = 0)] #[doc = "A staker was unstaked."] Unstaked { stash: ::subxt::utils::AccountId32, result: ::core::result::Result<(), runtime_types::sp_runtime::DispatchError>, }, #[codec(index = 1)] #[doc = "A staker was slashed for requesting fast-unstake whilst being exposed."] Slashed { stash: ::subxt::utils::AccountId32, amount: ::core::primitive::u128, }, #[codec(index = 2)] #[doc = "An internal error happened. Operations will be paused now."] InternalError, #[codec(index = 3)] #[doc = "A batch was partially checked for the given eras, but the process did not finish."] BatchChecked { eras: ::std::vec::Vec<::core::primitive::u32>, }, #[codec(index = 4)] #[doc = "A batch of a given size was terminated."] #[doc = ""] #[doc = "This is always follows by a number of `Unstaked` or `Slashed` events, marking the end"] #[doc = "of the batch. A new batch will be created upon next block."] BatchFinished { size: ::core::primitive::u32 }, } } pub mod types { use super::runtime_types; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct UnstakeRequest { pub stashes: runtime_types::bounded_collections::bounded_vec::BoundedVec<( ::subxt::utils::AccountId32, ::core::primitive::u128, )>, pub checked: runtime_types::bounded_collections::bounded_vec::BoundedVec< ::core::primitive::u32, >, } } } pub mod pallet_grandpa { use super::runtime_types; pub mod pallet { use super::runtime_types; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] pub enum Call { #[codec(index = 0)] #[doc = "Report voter equivocation/misbehavior. This method will verify the"] #[doc = "equivocation proof and validate the given key ownership proof"] #[doc = "against the extracted offender. If both are valid, the offence"] #[doc = "will be reported."] report_equivocation { equivocation_proof: ::std::boxed::Box< runtime_types::sp_consensus_grandpa::EquivocationProof< ::subxt::utils::H256, ::core::primitive::u32, >, >, key_owner_proof: runtime_types::sp_session::MembershipProof, }, #[codec(index = 1)] #[doc = "Report voter equivocation/misbehavior. This method will verify the"] #[doc = "equivocation proof and validate the given key ownership proof"] #[doc = "against the extracted offender. If both are valid, the offence"] #[doc = "will be reported."] #[doc = ""] #[doc = "This extrinsic must be called unsigned and it is expected that only"] #[doc = "block authors will call it (validated in `ValidateUnsigned`), as such"] #[doc = "if the block author is defined it will be defined as the equivocation"] #[doc = "reporter."] report_equivocation_unsigned { equivocation_proof: ::std::boxed::Box< runtime_types::sp_consensus_grandpa::EquivocationProof< ::subxt::utils::H256, ::core::primitive::u32, >, >, key_owner_proof: runtime_types::sp_session::MembershipProof, }, #[codec(index = 2)] #[doc = "Note that the current authority set of the GRANDPA finality gadget has stalled."] #[doc = ""] #[doc = "This will trigger a forced authority set change at the beginning of the next session, to"] #[doc = "be enacted `delay` blocks after that. The `delay` should be high enough to safely assume"] #[doc = "that the block signalling the forced change will not be re-orged e.g. 1000 blocks."] #[doc = "The block production rate (which may be slowed down because of finality lagging) should"] #[doc = "be taken into account when choosing the `delay`. The GRANDPA voters based on the new"] #[doc = "authority will start voting on top of `best_finalized_block_number` for new finalized"] #[doc = "blocks. `best_finalized_block_number` should be the highest of the latest finalized"] #[doc = "block of all validators of the new authority set."] #[doc = ""] #[doc = "Only callable by root."] note_stalled { delay: ::core::primitive::u32, best_finalized_block_number: ::core::primitive::u32, }, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] pub enum Error { #[codec(index = 0)] #[doc = "Attempt to signal GRANDPA pause when the authority set isn't live"] #[doc = "(either paused or already pending pause)."] PauseFailed, #[codec(index = 1)] #[doc = "Attempt to signal GRANDPA resume when the authority set isn't paused"] #[doc = "(either live or already pending resume)."] ResumeFailed, #[codec(index = 2)] #[doc = "Attempt to signal GRANDPA change with one already pending."] ChangePending, #[codec(index = 3)] #[doc = "Cannot signal forced change so soon after last."] TooSoon, #[codec(index = 4)] #[doc = "A key ownership proof provided as part of an equivocation report is invalid."] InvalidKeyOwnershipProof, #[codec(index = 5)] #[doc = "An equivocation proof provided as part of an equivocation report is invalid."] InvalidEquivocationProof, #[codec(index = 6)] #[doc = "A given equivocation report is valid but already previously reported."] DuplicateOffenceReport, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] pub enum Event { #[codec(index = 0)] #[doc = "New authority set has been applied."] NewAuthorities { authority_set: ::std::vec::Vec<( runtime_types::sp_consensus_grandpa::app::Public, ::core::primitive::u64, )>, }, #[codec(index = 1)] #[doc = "Current authority set has been paused."] Paused, #[codec(index = 2)] #[doc = "Current authority set has been resumed."] Resumed, } } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct StoredPendingChange<_0> { pub scheduled_at: _0, pub delay: _0, pub next_authorities: runtime_types::bounded_collections::weak_bounded_vec::WeakBoundedVec<( runtime_types::sp_consensus_grandpa::app::Public, ::core::primitive::u64, )>, pub forced: ::core::option::Option<_0>, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum StoredState<_0> { #[codec(index = 0)] Live, #[codec(index = 1)] PendingPause { scheduled_at: _0, delay: _0 }, #[codec(index = 2)] Paused, #[codec(index = 3)] PendingResume { scheduled_at: _0, delay: _0 }, } } pub mod pallet_identity { use super::runtime_types; pub mod pallet { use super::runtime_types; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Identity pallet declaration."] pub enum Call { #[codec(index = 0)] #[doc = "Add a registrar to the system."] #[doc = ""] #[doc = "The dispatch origin for this call must be `T::RegistrarOrigin`."] #[doc = ""] #[doc = "- `account`: the account of the registrar."] #[doc = ""] #[doc = "Emits `RegistrarAdded` if successful."] #[doc = ""] #[doc = "## Complexity"] #[doc = "- `O(R)` where `R` registrar-count (governance-bounded and code-bounded)."] add_registrar { account: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, }, #[codec(index = 1)] #[doc = "Set an account's identity information and reserve the appropriate deposit."] #[doc = ""] #[doc = "If the account already has identity information, the deposit is taken as part payment"] #[doc = "for the new deposit."] #[doc = ""] #[doc = "The dispatch origin for this call must be _Signed_."] #[doc = ""] #[doc = "- `info`: The identity information."] #[doc = ""] #[doc = "Emits `IdentitySet` if successful."] #[doc = ""] #[doc = "## Complexity"] #[doc = "- `O(X + X' + R)`"] #[doc = " - where `X` additional-field-count (deposit-bounded and code-bounded)"] #[doc = " - where `R` judgements-count (registrar-count-bounded)"] set_identity { info: ::std::boxed::Box, }, #[codec(index = 2)] #[doc = "Set the sub-accounts of the sender."] #[doc = ""] #[doc = "Payment: Any aggregate balance reserved by previous `set_subs` calls will be returned"] #[doc = "and an amount `SubAccountDeposit` will be reserved for each item in `subs`."] #[doc = ""] #[doc = "The dispatch origin for this call must be _Signed_ and the sender must have a registered"] #[doc = "identity."] #[doc = ""] #[doc = "- `subs`: The identity's (new) sub-accounts."] #[doc = ""] #[doc = "## Complexity"] #[doc = "- `O(P + S)`"] #[doc = " - where `P` old-subs-count (hard- and deposit-bounded)."] #[doc = " - where `S` subs-count (hard- and deposit-bounded)."] set_subs { subs: ::std::vec::Vec<( ::subxt::utils::AccountId32, runtime_types::pallet_identity::types::Data, )>, }, #[codec(index = 3)] #[doc = "Clear an account's identity info and all sub-accounts and return all deposits."] #[doc = ""] #[doc = "Payment: All reserved balances on the account are returned."] #[doc = ""] #[doc = "The dispatch origin for this call must be _Signed_ and the sender must have a registered"] #[doc = "identity."] #[doc = ""] #[doc = "Emits `IdentityCleared` if successful."] #[doc = ""] #[doc = "## Complexity"] #[doc = "- `O(R + S + X)`"] #[doc = " - where `R` registrar-count (governance-bounded)."] #[doc = " - where `S` subs-count (hard- and deposit-bounded)."] #[doc = " - where `X` additional-field-count (deposit-bounded and code-bounded)."] clear_identity, #[codec(index = 4)] #[doc = "Request a judgement from a registrar."] #[doc = ""] #[doc = "Payment: At most `max_fee` will be reserved for payment to the registrar if judgement"] #[doc = "given."] #[doc = ""] #[doc = "The dispatch origin for this call must be _Signed_ and the sender must have a"] #[doc = "registered identity."] #[doc = ""] #[doc = "- `reg_index`: The index of the registrar whose judgement is requested."] #[doc = "- `max_fee`: The maximum fee that may be paid. This should just be auto-populated as:"] #[doc = ""] #[doc = "```nocompile"] #[doc = "Self::registrars().get(reg_index).unwrap().fee"] #[doc = "```"] #[doc = ""] #[doc = "Emits `JudgementRequested` if successful."] #[doc = ""] #[doc = "## Complexity"] #[doc = "- `O(R + X)`."] #[doc = " - where `R` registrar-count (governance-bounded)."] #[doc = " - where `X` additional-field-count (deposit-bounded and code-bounded)."] request_judgement { #[codec(compact)] reg_index: ::core::primitive::u32, #[codec(compact)] max_fee: ::core::primitive::u128, }, #[codec(index = 5)] #[doc = "Cancel a previous request."] #[doc = ""] #[doc = "Payment: A previously reserved deposit is returned on success."] #[doc = ""] #[doc = "The dispatch origin for this call must be _Signed_ and the sender must have a"] #[doc = "registered identity."] #[doc = ""] #[doc = "- `reg_index`: The index of the registrar whose judgement is no longer requested."] #[doc = ""] #[doc = "Emits `JudgementUnrequested` if successful."] #[doc = ""] #[doc = "## Complexity"] #[doc = "- `O(R + X)`."] #[doc = " - where `R` registrar-count (governance-bounded)."] #[doc = " - where `X` additional-field-count (deposit-bounded and code-bounded)."] cancel_request { reg_index: ::core::primitive::u32 }, #[codec(index = 6)] #[doc = "Set the fee required for a judgement to be requested from a registrar."] #[doc = ""] #[doc = "The dispatch origin for this call must be _Signed_ and the sender must be the account"] #[doc = "of the registrar whose index is `index`."] #[doc = ""] #[doc = "- `index`: the index of the registrar whose fee is to be set."] #[doc = "- `fee`: the new fee."] #[doc = ""] #[doc = "## Complexity"] #[doc = "- `O(R)`."] #[doc = " - where `R` registrar-count (governance-bounded)."] set_fee { #[codec(compact)] index: ::core::primitive::u32, #[codec(compact)] fee: ::core::primitive::u128, }, #[codec(index = 7)] #[doc = "Change the account associated with a registrar."] #[doc = ""] #[doc = "The dispatch origin for this call must be _Signed_ and the sender must be the account"] #[doc = "of the registrar whose index is `index`."] #[doc = ""] #[doc = "- `index`: the index of the registrar whose fee is to be set."] #[doc = "- `new`: the new account ID."] #[doc = ""] #[doc = "## Complexity"] #[doc = "- `O(R)`."] #[doc = " - where `R` registrar-count (governance-bounded)."] set_account_id { #[codec(compact)] index: ::core::primitive::u32, new: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, }, #[codec(index = 8)] #[doc = "Set the field information for a registrar."] #[doc = ""] #[doc = "The dispatch origin for this call must be _Signed_ and the sender must be the account"] #[doc = "of the registrar whose index is `index`."] #[doc = ""] #[doc = "- `index`: the index of the registrar whose fee is to be set."] #[doc = "- `fields`: the fields that the registrar concerns themselves with."] #[doc = ""] #[doc = "## Complexity"] #[doc = "- `O(R)`."] #[doc = " - where `R` registrar-count (governance-bounded)."] set_fields { #[codec(compact)] index: ::core::primitive::u32, fields: runtime_types::pallet_identity::types::BitFlags< runtime_types::pallet_identity::types::IdentityField, >, }, #[codec(index = 9)] #[doc = "Provide a judgement for an account's identity."] #[doc = ""] #[doc = "The dispatch origin for this call must be _Signed_ and the sender must be the account"] #[doc = "of the registrar whose index is `reg_index`."] #[doc = ""] #[doc = "- `reg_index`: the index of the registrar whose judgement is being made."] #[doc = "- `target`: the account whose identity the judgement is upon. This must be an account"] #[doc = " with a registered identity."] #[doc = "- `judgement`: the judgement of the registrar of index `reg_index` about `target`."] #[doc = "- `identity`: The hash of the [`IdentityInfo`] for that the judgement is provided."] #[doc = ""] #[doc = "Emits `JudgementGiven` if successful."] #[doc = ""] #[doc = "## Complexity"] #[doc = "- `O(R + X)`."] #[doc = " - where `R` registrar-count (governance-bounded)."] #[doc = " - where `X` additional-field-count (deposit-bounded and code-bounded)."] provide_judgement { #[codec(compact)] reg_index: ::core::primitive::u32, target: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, judgement: runtime_types::pallet_identity::types::Judgement< ::core::primitive::u128, >, identity: ::subxt::utils::H256, }, #[codec(index = 10)] #[doc = "Remove an account's identity and sub-account information and slash the deposits."] #[doc = ""] #[doc = "Payment: Reserved balances from `set_subs` and `set_identity` are slashed and handled by"] #[doc = "`Slash`. Verification request deposits are not returned; they should be cancelled"] #[doc = "manually using `cancel_request`."] #[doc = ""] #[doc = "The dispatch origin for this call must match `T::ForceOrigin`."] #[doc = ""] #[doc = "- `target`: the account whose identity the judgement is upon. This must be an account"] #[doc = " with a registered identity."] #[doc = ""] #[doc = "Emits `IdentityKilled` if successful."] #[doc = ""] #[doc = "## Complexity"] #[doc = "- `O(R + S + X)`"] #[doc = " - where `R` registrar-count (governance-bounded)."] #[doc = " - where `S` subs-count (hard- and deposit-bounded)."] #[doc = " - where `X` additional-field-count (deposit-bounded and code-bounded)."] kill_identity { target: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, }, #[codec(index = 11)] #[doc = "Add the given account to the sender's subs."] #[doc = ""] #[doc = "Payment: Balance reserved by a previous `set_subs` call for one sub will be repatriated"] #[doc = "to the sender."] #[doc = ""] #[doc = "The dispatch origin for this call must be _Signed_ and the sender must have a registered"] #[doc = "sub identity of `sub`."] add_sub { sub: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, data: runtime_types::pallet_identity::types::Data, }, #[codec(index = 12)] #[doc = "Alter the associated name of the given sub-account."] #[doc = ""] #[doc = "The dispatch origin for this call must be _Signed_ and the sender must have a registered"] #[doc = "sub identity of `sub`."] rename_sub { sub: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, data: runtime_types::pallet_identity::types::Data, }, #[codec(index = 13)] #[doc = "Remove the given account from the sender's subs."] #[doc = ""] #[doc = "Payment: Balance reserved by a previous `set_subs` call for one sub will be repatriated"] #[doc = "to the sender."] #[doc = ""] #[doc = "The dispatch origin for this call must be _Signed_ and the sender must have a registered"] #[doc = "sub identity of `sub`."] remove_sub { sub: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, }, #[codec(index = 14)] #[doc = "Remove the sender as a sub-account."] #[doc = ""] #[doc = "Payment: Balance reserved by a previous `set_subs` call for one sub will be repatriated"] #[doc = "to the sender (*not* the original depositor)."] #[doc = ""] #[doc = "The dispatch origin for this call must be _Signed_ and the sender must have a registered"] #[doc = "super-identity."] #[doc = ""] #[doc = "NOTE: This should not normally be used, but is provided in the case that the non-"] #[doc = "controller of an account is maliciously registered as a sub-account."] quit_sub, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] pub enum Error { #[codec(index = 0)] #[doc = "Too many subs-accounts."] TooManySubAccounts, #[codec(index = 1)] #[doc = "Account isn't found."] NotFound, #[codec(index = 2)] #[doc = "Account isn't named."] NotNamed, #[codec(index = 3)] #[doc = "Empty index."] EmptyIndex, #[codec(index = 4)] #[doc = "Fee is changed."] FeeChanged, #[codec(index = 5)] #[doc = "No identity found."] NoIdentity, #[codec(index = 6)] #[doc = "Sticky judgement."] StickyJudgement, #[codec(index = 7)] #[doc = "Judgement given."] JudgementGiven, #[codec(index = 8)] #[doc = "Invalid judgement."] InvalidJudgement, #[codec(index = 9)] #[doc = "The index is invalid."] InvalidIndex, #[codec(index = 10)] #[doc = "The target is invalid."] InvalidTarget, #[codec(index = 11)] #[doc = "Too many additional fields."] TooManyFields, #[codec(index = 12)] #[doc = "Maximum amount of registrars reached. Cannot add any more."] TooManyRegistrars, #[codec(index = 13)] #[doc = "Account ID is already named."] AlreadyClaimed, #[codec(index = 14)] #[doc = "Sender is not a sub-account."] NotSub, #[codec(index = 15)] #[doc = "Sub-account isn't owned by sender."] NotOwned, #[codec(index = 16)] #[doc = "The provided judgement was for a different identity."] JudgementForDifferentIdentity, #[codec(index = 17)] #[doc = "Error that occurs when there is an issue paying for judgement."] JudgementPaymentFailed, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] pub enum Event { #[codec(index = 0)] #[doc = "A name was set or reset (which will remove all judgements)."] IdentitySet { who: ::subxt::utils::AccountId32 }, #[codec(index = 1)] #[doc = "A name was cleared, and the given balance returned."] IdentityCleared { who: ::subxt::utils::AccountId32, deposit: ::core::primitive::u128, }, #[codec(index = 2)] #[doc = "A name was removed and the given balance slashed."] IdentityKilled { who: ::subxt::utils::AccountId32, deposit: ::core::primitive::u128, }, #[codec(index = 3)] #[doc = "A judgement was asked from a registrar."] JudgementRequested { who: ::subxt::utils::AccountId32, registrar_index: ::core::primitive::u32, }, #[codec(index = 4)] #[doc = "A judgement request was retracted."] JudgementUnrequested { who: ::subxt::utils::AccountId32, registrar_index: ::core::primitive::u32, }, #[codec(index = 5)] #[doc = "A judgement was given by a registrar."] JudgementGiven { target: ::subxt::utils::AccountId32, registrar_index: ::core::primitive::u32, }, #[codec(index = 6)] #[doc = "A registrar was added."] RegistrarAdded { registrar_index: ::core::primitive::u32, }, #[codec(index = 7)] #[doc = "A sub-identity was added to an identity and the deposit paid."] SubIdentityAdded { sub: ::subxt::utils::AccountId32, main: ::subxt::utils::AccountId32, deposit: ::core::primitive::u128, }, #[codec(index = 8)] #[doc = "A sub-identity was removed from an identity and the deposit freed."] SubIdentityRemoved { sub: ::subxt::utils::AccountId32, main: ::subxt::utils::AccountId32, deposit: ::core::primitive::u128, }, #[codec(index = 9)] #[doc = "A sub-identity was cleared, and the given deposit repatriated from the"] #[doc = "main identity account to the sub-identity account."] SubIdentityRevoked { sub: ::subxt::utils::AccountId32, main: ::subxt::utils::AccountId32, deposit: ::core::primitive::u128, }, } } pub mod types { use super::runtime_types; #[derive( :: subxt :: ext :: codec :: CompactAs, :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct BitFlags<_0>( pub ::core::primitive::u64, #[codec(skip)] pub ::core::marker::PhantomData<_0>, ); #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum Data { #[codec(index = 0)] None, #[codec(index = 1)] Raw0([::core::primitive::u8; 0usize]), #[codec(index = 2)] Raw1([::core::primitive::u8; 1usize]), #[codec(index = 3)] Raw2([::core::primitive::u8; 2usize]), #[codec(index = 4)] Raw3([::core::primitive::u8; 3usize]), #[codec(index = 5)] Raw4([::core::primitive::u8; 4usize]), #[codec(index = 6)] Raw5([::core::primitive::u8; 5usize]), #[codec(index = 7)] Raw6([::core::primitive::u8; 6usize]), #[codec(index = 8)] Raw7([::core::primitive::u8; 7usize]), #[codec(index = 9)] Raw8([::core::primitive::u8; 8usize]), #[codec(index = 10)] Raw9([::core::primitive::u8; 9usize]), #[codec(index = 11)] Raw10([::core::primitive::u8; 10usize]), #[codec(index = 12)] Raw11([::core::primitive::u8; 11usize]), #[codec(index = 13)] Raw12([::core::primitive::u8; 12usize]), #[codec(index = 14)] Raw13([::core::primitive::u8; 13usize]), #[codec(index = 15)] Raw14([::core::primitive::u8; 14usize]), #[codec(index = 16)] Raw15([::core::primitive::u8; 15usize]), #[codec(index = 17)] Raw16([::core::primitive::u8; 16usize]), #[codec(index = 18)] Raw17([::core::primitive::u8; 17usize]), #[codec(index = 19)] Raw18([::core::primitive::u8; 18usize]), #[codec(index = 20)] Raw19([::core::primitive::u8; 19usize]), #[codec(index = 21)] Raw20([::core::primitive::u8; 20usize]), #[codec(index = 22)] Raw21([::core::primitive::u8; 21usize]), #[codec(index = 23)] Raw22([::core::primitive::u8; 22usize]), #[codec(index = 24)] Raw23([::core::primitive::u8; 23usize]), #[codec(index = 25)] Raw24([::core::primitive::u8; 24usize]), #[codec(index = 26)] Raw25([::core::primitive::u8; 25usize]), #[codec(index = 27)] Raw26([::core::primitive::u8; 26usize]), #[codec(index = 28)] Raw27([::core::primitive::u8; 27usize]), #[codec(index = 29)] Raw28([::core::primitive::u8; 28usize]), #[codec(index = 30)] Raw29([::core::primitive::u8; 29usize]), #[codec(index = 31)] Raw30([::core::primitive::u8; 30usize]), #[codec(index = 32)] Raw31([::core::primitive::u8; 31usize]), #[codec(index = 33)] Raw32([::core::primitive::u8; 32usize]), #[codec(index = 34)] BlakeTwo256([::core::primitive::u8; 32usize]), #[codec(index = 35)] Sha256([::core::primitive::u8; 32usize]), #[codec(index = 36)] Keccak256([::core::primitive::u8; 32usize]), #[codec(index = 37)] ShaThree256([::core::primitive::u8; 32usize]), } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum IdentityField { #[codec(index = 1)] Display, #[codec(index = 2)] Legal, #[codec(index = 4)] Web, #[codec(index = 8)] Riot, #[codec(index = 16)] Email, #[codec(index = 32)] PgpFingerprint, #[codec(index = 64)] Image, #[codec(index = 128)] Twitter, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct IdentityInfo { pub additional: runtime_types::bounded_collections::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: ::core::option::Option<[::core::primitive::u8; 20usize]>, pub image: runtime_types::pallet_identity::types::Data, pub twitter: runtime_types::pallet_identity::types::Data, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum Judgement<_0> { #[codec(index = 0)] Unknown, #[codec(index = 1)] FeePaid(_0), #[codec(index = 2)] Reasonable, #[codec(index = 3)] KnownGood, #[codec(index = 4)] OutOfDate, #[codec(index = 5)] LowQuality, #[codec(index = 6)] Erroneous, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct RegistrarInfo<_0, _1> { pub account: _1, pub fee: _0, pub fields: runtime_types::pallet_identity::types::BitFlags< runtime_types::pallet_identity::types::IdentityField, >, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Registration<_0> { pub judgements: runtime_types::bounded_collections::bounded_vec::BoundedVec<( ::core::primitive::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; pub mod pallet { use super::runtime_types; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] pub enum Call { #[codec(index = 0)] #[doc = "## Complexity:"] #[doc = "- `O(K + E)` where K is length of `Keys` (heartbeat.validators_len) and E is length of"] #[doc = " `heartbeat.network_state.external_address`"] #[doc = " - `O(K)`: decoding of length `K`"] #[doc = " - `O(E)`: decoding/encoding of length `E`"] heartbeat { heartbeat: runtime_types::pallet_im_online::Heartbeat<::core::primitive::u32>, signature: runtime_types::pallet_im_online::sr25519::app_sr25519::Signature, }, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] pub enum Error { #[codec(index = 0)] #[doc = "Non existent public key."] InvalidKey, #[codec(index = 1)] #[doc = "Duplicated heartbeat."] DuplicatedHeartbeat, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] pub enum Event { #[codec(index = 0)] #[doc = "A new heartbeat was received from `AuthorityId`."] HeartbeatReceived { authority_id: runtime_types::pallet_im_online::sr25519::app_sr25519::Public, }, #[codec(index = 1)] #[doc = "At the end of the session, no offence was committed."] AllGood, #[codec(index = 2)] #[doc = "At the end of the session, at least one validator was found to be offline."] SomeOffline { offline: ::std::vec::Vec<( ::subxt::utils::AccountId32, runtime_types::pallet_staking::Exposure< ::subxt::utils::AccountId32, ::core::primitive::u128, >, )>, }, } } pub mod sr25519 { use super::runtime_types; pub mod app_sr25519 { use super::runtime_types; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Public(pub runtime_types::sp_core::sr25519::Public); #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Signature(pub runtime_types::sp_core::sr25519::Signature); } } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct BoundedOpaqueNetworkState { pub peer_id: runtime_types::bounded_collections::weak_bounded_vec::WeakBoundedVec< ::core::primitive::u8, >, pub external_addresses: runtime_types::bounded_collections::weak_bounded_vec::WeakBoundedVec< runtime_types::bounded_collections::weak_bounded_vec::WeakBoundedVec< ::core::primitive::u8, >, >, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Heartbeat<_0> { pub block_number: _0, pub network_state: runtime_types::sp_core::offchain::OpaqueNetworkState, pub session_index: _0, pub authority_index: _0, pub validators_len: _0, } } pub mod pallet_indices { use super::runtime_types; pub mod pallet { use super::runtime_types; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] pub enum Call { #[codec(index = 0)] #[doc = "Assign an previously unassigned index."] #[doc = ""] #[doc = "Payment: `Deposit` is reserved from the sender account."] #[doc = ""] #[doc = "The dispatch origin for this call must be _Signed_."] #[doc = ""] #[doc = "- `index`: the index to be claimed. This must not be in use."] #[doc = ""] #[doc = "Emits `IndexAssigned` if successful."] #[doc = ""] #[doc = "## Complexity"] #[doc = "- `O(1)`."] claim { index: ::core::primitive::u32 }, #[codec(index = 1)] #[doc = "Assign an index already owned by the sender to another account. The balance reservation"] #[doc = "is effectively transferred to the new account."] #[doc = ""] #[doc = "The dispatch origin for this call must be _Signed_."] #[doc = ""] #[doc = "- `index`: the index to be re-assigned. This must be owned by the sender."] #[doc = "- `new`: the new owner of the index. This function is a no-op if it is equal to sender."] #[doc = ""] #[doc = "Emits `IndexAssigned` if successful."] #[doc = ""] #[doc = "## Complexity"] #[doc = "- `O(1)`."] transfer { new: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, index: ::core::primitive::u32, }, #[codec(index = 2)] #[doc = "Free up an index owned by the sender."] #[doc = ""] #[doc = "Payment: Any previous deposit placed for the index is unreserved in the sender account."] #[doc = ""] #[doc = "The dispatch origin for this call must be _Signed_ and the sender must own the index."] #[doc = ""] #[doc = "- `index`: the index to be freed. This must be owned by the sender."] #[doc = ""] #[doc = "Emits `IndexFreed` if successful."] #[doc = ""] #[doc = "## Complexity"] #[doc = "- `O(1)`."] free { index: ::core::primitive::u32 }, #[codec(index = 3)] #[doc = "Force an index to an account. This doesn't require a deposit. If the index is already"] #[doc = "held, then any deposit is reimbursed to its current owner."] #[doc = ""] #[doc = "The dispatch origin for this call must be _Root_."] #[doc = ""] #[doc = "- `index`: the index to be (re-)assigned."] #[doc = "- `new`: the new owner of the index. This function is a no-op if it is equal to sender."] #[doc = "- `freeze`: if set to `true`, will freeze the index so it cannot be transferred."] #[doc = ""] #[doc = "Emits `IndexAssigned` if successful."] #[doc = ""] #[doc = "## Complexity"] #[doc = "- `O(1)`."] force_transfer { new: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, index: ::core::primitive::u32, freeze: ::core::primitive::bool, }, #[codec(index = 4)] #[doc = "Freeze an index so it will always point to the sender account. This consumes the"] #[doc = "deposit."] #[doc = ""] #[doc = "The dispatch origin for this call must be _Signed_ and the signing account must have a"] #[doc = "non-frozen account `index`."] #[doc = ""] #[doc = "- `index`: the index to be frozen in place."] #[doc = ""] #[doc = "Emits `IndexFrozen` if successful."] #[doc = ""] #[doc = "## Complexity"] #[doc = "- `O(1)`."] freeze { index: ::core::primitive::u32 }, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] pub enum Error { #[codec(index = 0)] #[doc = "The index was not already assigned."] NotAssigned, #[codec(index = 1)] #[doc = "The index is assigned to another account."] NotOwner, #[codec(index = 2)] #[doc = "The index was not available."] InUse, #[codec(index = 3)] #[doc = "The source and destination accounts are identical."] NotTransfer, #[codec(index = 4)] #[doc = "The index is permanent and may not be freed/changed."] Permanent, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] pub enum Event { #[codec(index = 0)] #[doc = "A account index was assigned."] IndexAssigned { who: ::subxt::utils::AccountId32, index: ::core::primitive::u32, }, #[codec(index = 1)] #[doc = "A account index has been freed up (unassigned)."] IndexFreed { index: ::core::primitive::u32 }, #[codec(index = 2)] #[doc = "A account index has been frozen to its current account ID."] IndexFrozen { index: ::core::primitive::u32, who: ::subxt::utils::AccountId32, }, } } } pub mod pallet_membership { use super::runtime_types; pub mod pallet { use super::runtime_types; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] pub enum Call { #[codec(index = 0)] #[doc = "Add a member `who` to the set."] #[doc = ""] #[doc = "May only be called from `T::AddOrigin`."] add_member { who: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, }, #[codec(index = 1)] #[doc = "Remove a member `who` from the set."] #[doc = ""] #[doc = "May only be called from `T::RemoveOrigin`."] remove_member { who: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, }, #[codec(index = 2)] #[doc = "Swap out one member `remove` for another `add`."] #[doc = ""] #[doc = "May only be called from `T::SwapOrigin`."] #[doc = ""] #[doc = "Prime membership is *not* passed from `remove` to `add`, if extant."] swap_member { remove: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, add: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, }, #[codec(index = 3)] #[doc = "Change the membership to a new set, disregarding the existing membership. Be nice and"] #[doc = "pass `members` pre-sorted."] #[doc = ""] #[doc = "May only be called from `T::ResetOrigin`."] reset_members { members: ::std::vec::Vec<::subxt::utils::AccountId32>, }, #[codec(index = 4)] #[doc = "Swap out the sending member for some other key `new`."] #[doc = ""] #[doc = "May only be called from `Signed` origin of a current member."] #[doc = ""] #[doc = "Prime membership is passed from the origin account to `new`, if extant."] change_key { new: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, }, #[codec(index = 5)] #[doc = "Set the prime member. Must be a current member."] #[doc = ""] #[doc = "May only be called from `T::PrimeOrigin`."] set_prime { who: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, }, #[codec(index = 6)] #[doc = "Remove the prime member if it exists."] #[doc = ""] #[doc = "May only be called from `T::PrimeOrigin`."] clear_prime, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] pub enum Error { #[codec(index = 0)] #[doc = "Already a member."] AlreadyMember, #[codec(index = 1)] #[doc = "Not a member."] NotMember, #[codec(index = 2)] #[doc = "Too many members."] TooManyMembers, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] pub enum Event { #[codec(index = 0)] #[doc = "The given member was added; see the transaction for who."] MemberAdded, #[codec(index = 1)] #[doc = "The given member was removed; see the transaction for who."] MemberRemoved, #[codec(index = 2)] #[doc = "Two members were swapped; see the transaction for who."] MembersSwapped, #[codec(index = 3)] #[doc = "The membership was reset; see the transaction for who the new set is."] MembersReset, #[codec(index = 4)] #[doc = "One of the members' keys changed."] KeyChanged, #[codec(index = 5)] #[doc = "Phantom member, never used."] Dummy, } } } pub mod pallet_multisig { use super::runtime_types; pub mod pallet { use super::runtime_types; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] pub enum Call { #[codec(index = 0)] #[doc = "Immediately dispatch a multi-signature call using a single approval from the caller."] #[doc = ""] #[doc = "The dispatch origin for this call must be _Signed_."] #[doc = ""] #[doc = "- `other_signatories`: The accounts (other than the sender) who are part of the"] #[doc = "multi-signature, but do not participate in the approval process."] #[doc = "- `call`: The call to be executed."] #[doc = ""] #[doc = "Result is equivalent to the dispatched result."] #[doc = ""] #[doc = "## Complexity"] #[doc = "O(Z + C) where Z is the length of the call and C its execution weight."] as_multi_threshold_1 { other_signatories: ::std::vec::Vec<::subxt::utils::AccountId32>, call: ::std::boxed::Box, }, #[codec(index = 1)] #[doc = "Register approval for a dispatch to be made from a deterministic composite account if"] #[doc = "approved by a total of `threshold - 1` of `other_signatories`."] #[doc = ""] #[doc = "If there are enough, then dispatch the call."] #[doc = ""] #[doc = "Payment: `DepositBase` will be reserved if this is the first approval, plus"] #[doc = "`threshold` times `DepositFactor`. It is returned once this dispatch happens or"] #[doc = "is cancelled."] #[doc = ""] #[doc = "The dispatch origin for this call must be _Signed_."] #[doc = ""] #[doc = "- `threshold`: The total number of approvals for this dispatch before it is executed."] #[doc = "- `other_signatories`: The accounts (other than the sender) who can approve this"] #[doc = "dispatch. May not be empty."] #[doc = "- `maybe_timepoint`: If this is the first approval, then this must be `None`. If it is"] #[doc = "not the first approval, then it must be `Some`, with the timepoint (block number and"] #[doc = "transaction index) of the first approval transaction."] #[doc = "- `call`: The call to be executed."] #[doc = ""] #[doc = "NOTE: Unless this is the final approval, you will generally want to use"] #[doc = "`approve_as_multi` instead, since it only requires a hash of the call."] #[doc = ""] #[doc = "Result is equivalent to the dispatched result if `threshold` is exactly `1`. Otherwise"] #[doc = "on success, result is `Ok` and the result from the interior call, if it was executed,"] #[doc = "may be found in the deposited `MultisigExecuted` event."] #[doc = ""] #[doc = "## Complexity"] #[doc = "- `O(S + Z + Call)`."] #[doc = "- Up to one balance-reserve or unreserve operation."] #[doc = "- One passthrough operation, one insert, both `O(S)` where `S` is the number of"] #[doc = " signatories. `S` is capped by `MaxSignatories`, with weight being proportional."] #[doc = "- One call encode & hash, both of complexity `O(Z)` where `Z` is tx-len."] #[doc = "- One encode & hash, both of complexity `O(S)`."] #[doc = "- Up to one binary search and insert (`O(logS + S)`)."] #[doc = "- I/O: 1 read `O(S)`, up to 1 mutate `O(S)`. Up to one remove."] #[doc = "- One event."] #[doc = "- The weight of the `call`."] #[doc = "- Storage: inserts one item, value size bounded by `MaxSignatories`, with a deposit"] #[doc = " taken for its lifetime of `DepositBase + threshold * DepositFactor`."] as_multi { threshold: ::core::primitive::u16, other_signatories: ::std::vec::Vec<::subxt::utils::AccountId32>, maybe_timepoint: ::core::option::Option< runtime_types::pallet_multisig::Timepoint<::core::primitive::u32>, >, call: ::std::boxed::Box, max_weight: runtime_types::sp_weights::weight_v2::Weight, }, #[codec(index = 2)] #[doc = "Register approval for a dispatch to be made from a deterministic composite account if"] #[doc = "approved by a total of `threshold - 1` of `other_signatories`."] #[doc = ""] #[doc = "Payment: `DepositBase` will be reserved if this is the first approval, plus"] #[doc = "`threshold` times `DepositFactor`. It is returned once this dispatch happens or"] #[doc = "is cancelled."] #[doc = ""] #[doc = "The dispatch origin for this call must be _Signed_."] #[doc = ""] #[doc = "- `threshold`: The total number of approvals for this dispatch before it is executed."] #[doc = "- `other_signatories`: The accounts (other than the sender) who can approve this"] #[doc = "dispatch. May not be empty."] #[doc = "- `maybe_timepoint`: If this is the first approval, then this must be `None`. If it is"] #[doc = "not the first approval, then it must be `Some`, with the timepoint (block number and"] #[doc = "transaction index) of the first approval transaction."] #[doc = "- `call_hash`: The hash of the call to be executed."] #[doc = ""] #[doc = "NOTE: If this is the final approval, you will want to use `as_multi` instead."] #[doc = ""] #[doc = "## Complexity"] #[doc = "- `O(S)`."] #[doc = "- Up to one balance-reserve or unreserve operation."] #[doc = "- One passthrough operation, one insert, both `O(S)` where `S` is the number of"] #[doc = " signatories. `S` is capped by `MaxSignatories`, with weight being proportional."] #[doc = "- One encode & hash, both of complexity `O(S)`."] #[doc = "- Up to one binary search and insert (`O(logS + S)`)."] #[doc = "- I/O: 1 read `O(S)`, up to 1 mutate `O(S)`. Up to one remove."] #[doc = "- One event."] #[doc = "- Storage: inserts one item, value size bounded by `MaxSignatories`, with a deposit"] #[doc = " taken for its lifetime of `DepositBase + threshold * DepositFactor`."] approve_as_multi { threshold: ::core::primitive::u16, other_signatories: ::std::vec::Vec<::subxt::utils::AccountId32>, maybe_timepoint: ::core::option::Option< runtime_types::pallet_multisig::Timepoint<::core::primitive::u32>, >, call_hash: [::core::primitive::u8; 32usize], max_weight: runtime_types::sp_weights::weight_v2::Weight, }, #[codec(index = 3)] #[doc = "Cancel a pre-existing, on-going multisig transaction. Any deposit reserved previously"] #[doc = "for this operation will be unreserved on success."] #[doc = ""] #[doc = "The dispatch origin for this call must be _Signed_."] #[doc = ""] #[doc = "- `threshold`: The total number of approvals for this dispatch before it is executed."] #[doc = "- `other_signatories`: The accounts (other than the sender) who can approve this"] #[doc = "dispatch. May not be empty."] #[doc = "- `timepoint`: The timepoint (block number and transaction index) of the first approval"] #[doc = "transaction for this dispatch."] #[doc = "- `call_hash`: The hash of the call to be executed."] #[doc = ""] #[doc = "## Complexity"] #[doc = "- `O(S)`."] #[doc = "- Up to one balance-reserve or unreserve operation."] #[doc = "- One passthrough operation, one insert, both `O(S)` where `S` is the number of"] #[doc = " signatories. `S` is capped by `MaxSignatories`, with weight being proportional."] #[doc = "- One encode & hash, both of complexity `O(S)`."] #[doc = "- One event."] #[doc = "- I/O: 1 read `O(S)`, one remove."] #[doc = "- Storage: removes one item."] cancel_as_multi { threshold: ::core::primitive::u16, other_signatories: ::std::vec::Vec<::subxt::utils::AccountId32>, timepoint: runtime_types::pallet_multisig::Timepoint<::core::primitive::u32>, call_hash: [::core::primitive::u8; 32usize], }, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] pub enum Error { #[codec(index = 0)] #[doc = "Threshold must be 2 or greater."] MinimumThreshold, #[codec(index = 1)] #[doc = "Call is already approved by this signatory."] AlreadyApproved, #[codec(index = 2)] #[doc = "Call doesn't need any (more) approvals."] NoApprovalsNeeded, #[codec(index = 3)] #[doc = "There are too few signatories in the list."] TooFewSignatories, #[codec(index = 4)] #[doc = "There are too many signatories in the list."] TooManySignatories, #[codec(index = 5)] #[doc = "The signatories were provided out of order; they should be ordered."] SignatoriesOutOfOrder, #[codec(index = 6)] #[doc = "The sender was contained in the other signatories; it shouldn't be."] SenderInSignatories, #[codec(index = 7)] #[doc = "Multisig operation not found when attempting to cancel."] NotFound, #[codec(index = 8)] #[doc = "Only the account that originally created the multisig is able to cancel it."] NotOwner, #[codec(index = 9)] #[doc = "No timepoint was given, yet the multisig operation is already underway."] NoTimepoint, #[codec(index = 10)] #[doc = "A different timepoint was given to the multisig operation that is underway."] WrongTimepoint, #[codec(index = 11)] #[doc = "A timepoint was given, yet no multisig operation is underway."] UnexpectedTimepoint, #[codec(index = 12)] #[doc = "The maximum weight information provided was too low."] MaxWeightTooLow, #[codec(index = 13)] #[doc = "The data to be stored is already stored."] AlreadyStored, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] pub enum Event { #[codec(index = 0)] #[doc = "A new multisig operation has begun."] NewMultisig { approving: ::subxt::utils::AccountId32, multisig: ::subxt::utils::AccountId32, call_hash: [::core::primitive::u8; 32usize], }, #[codec(index = 1)] #[doc = "A multisig operation has been approved by someone."] MultisigApproval { approving: ::subxt::utils::AccountId32, timepoint: runtime_types::pallet_multisig::Timepoint<::core::primitive::u32>, multisig: ::subxt::utils::AccountId32, call_hash: [::core::primitive::u8; 32usize], }, #[codec(index = 2)] #[doc = "A multisig operation has been executed."] MultisigExecuted { approving: ::subxt::utils::AccountId32, timepoint: runtime_types::pallet_multisig::Timepoint<::core::primitive::u32>, multisig: ::subxt::utils::AccountId32, call_hash: [::core::primitive::u8; 32usize], result: ::core::result::Result<(), runtime_types::sp_runtime::DispatchError>, }, #[codec(index = 3)] #[doc = "A multisig operation has been cancelled."] MultisigCancelled { cancelling: ::subxt::utils::AccountId32, timepoint: runtime_types::pallet_multisig::Timepoint<::core::primitive::u32>, multisig: ::subxt::utils::AccountId32, call_hash: [::core::primitive::u8; 32usize], }, } } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Multisig<_0, _1, _2> { pub when: runtime_types::pallet_multisig::Timepoint<_0>, pub deposit: _1, pub depositor: _2, pub approvals: runtime_types::bounded_collections::bounded_vec::BoundedVec<_2>, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Timepoint<_0> { pub height: _0, pub index: _0, } } pub mod pallet_nomination_pools { use super::runtime_types; pub mod pallet { use super::runtime_types; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] pub enum Call { #[codec(index = 0)] #[doc = "Stake funds with a pool. The amount to bond is transferred from the member to the"] #[doc = "pools account and immediately increases the pools bond."] #[doc = ""] #[doc = "# Note"] #[doc = ""] #[doc = "* An account can only be a member of a single pool."] #[doc = "* An account cannot join the same pool multiple times."] #[doc = "* This call will *not* dust the member account, so the member must have at least"] #[doc = " `existential deposit + amount` in their account."] #[doc = "* Only a pool with [`PoolState::Open`] can be joined"] join { #[codec(compact)] amount: ::core::primitive::u128, pool_id: ::core::primitive::u32, }, #[codec(index = 1)] #[doc = "Bond `extra` more funds from `origin` into the pool to which they already belong."] #[doc = ""] #[doc = "Additional funds can come from either the free balance of the account, of from the"] #[doc = "accumulated rewards, see [`BondExtra`]."] #[doc = ""] #[doc = "Bonding extra funds implies an automatic payout of all pending rewards as well."] #[doc = "See `bond_extra_other` to bond pending rewards of `other` members."] bond_extra { extra: runtime_types::pallet_nomination_pools::BondExtra< ::core::primitive::u128, >, }, #[codec(index = 2)] #[doc = "A bonded member can use this to claim their payout based on the rewards that the pool"] #[doc = "has accumulated since their last claimed payout (OR since joining if this is their first"] #[doc = "time claiming rewards). The payout will be transferred to the member's account."] #[doc = ""] #[doc = "The member will earn rewards pro rata based on the members stake vs the sum of the"] #[doc = "members in the pools stake. Rewards do not \"expire\"."] #[doc = ""] #[doc = "See `claim_payout_other` to caim rewards on bahalf of some `other` pool member."] claim_payout, #[codec(index = 3)] #[doc = "Unbond up to `unbonding_points` of the `member_account`'s funds from the pool. It"] #[doc = "implicitly collects the rewards one last time, since not doing so would mean some"] #[doc = "rewards would be forfeited."] #[doc = ""] #[doc = "Under certain conditions, this call can be dispatched permissionlessly (i.e. by any"] #[doc = "account)."] #[doc = ""] #[doc = "# Conditions for a permissionless dispatch."] #[doc = ""] #[doc = "* The pool is blocked and the caller is either the root or bouncer. This is refereed to"] #[doc = " as a kick."] #[doc = "* The pool is destroying and the member is not the depositor."] #[doc = "* The pool is destroying, the member is the depositor and no other members are in the"] #[doc = " pool."] #[doc = ""] #[doc = "## Conditions for permissioned dispatch (i.e. the caller is also the"] #[doc = "`member_account`):"] #[doc = ""] #[doc = "* The caller is not the depositor."] #[doc = "* The caller is the depositor, the pool is destroying and no other members are in the"] #[doc = " pool."] #[doc = ""] #[doc = "# Note"] #[doc = ""] #[doc = "If there are too many unlocking chunks to unbond with the pool account,"] #[doc = "[`Call::pool_withdraw_unbonded`] can be called to try and minimize unlocking chunks."] #[doc = "The [`StakingInterface::unbond`] will implicitly call [`Call::pool_withdraw_unbonded`]"] #[doc = "to try to free chunks if necessary (ie. if unbound was called and no unlocking chunks"] #[doc = "are available). However, it may not be possible to release the current unlocking chunks,"] #[doc = "in which case, the result of this call will likely be the `NoMoreChunks` error from the"] #[doc = "staking system."] unbond { member_account: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, #[codec(compact)] unbonding_points: ::core::primitive::u128, }, #[codec(index = 4)] #[doc = "Call `withdraw_unbonded` for the pools account. This call can be made by any account."] #[doc = ""] #[doc = "This is useful if their are too many unlocking chunks to call `unbond`, and some"] #[doc = "can be cleared by withdrawing. In the case there are too many unlocking chunks, the user"] #[doc = "would probably see an error like `NoMoreChunks` emitted from the staking system when"] #[doc = "they attempt to unbond."] pool_withdraw_unbonded { pool_id: ::core::primitive::u32, num_slashing_spans: ::core::primitive::u32, }, #[codec(index = 5)] #[doc = "Withdraw unbonded funds from `member_account`. If no bonded funds can be unbonded, an"] #[doc = "error is returned."] #[doc = ""] #[doc = "Under certain conditions, this call can be dispatched permissionlessly (i.e. by any"] #[doc = "account)."] #[doc = ""] #[doc = "# Conditions for a permissionless dispatch"] #[doc = ""] #[doc = "* The pool is in destroy mode and the target is not the depositor."] #[doc = "* The target is the depositor and they are the only member in the sub pools."] #[doc = "* The pool is blocked and the caller is either the root or bouncer."] #[doc = ""] #[doc = "# Conditions for permissioned dispatch"] #[doc = ""] #[doc = "* The caller is the target and they are not the depositor."] #[doc = ""] #[doc = "# Note"] #[doc = ""] #[doc = "If the target is the depositor, the pool will be destroyed."] withdraw_unbonded { member_account: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, num_slashing_spans: ::core::primitive::u32, }, #[codec(index = 6)] #[doc = "Create a new delegation pool."] #[doc = ""] #[doc = "# Arguments"] #[doc = ""] #[doc = "* `amount` - The amount of funds to delegate to the pool. This also acts of a sort of"] #[doc = " deposit since the pools creator cannot fully unbond funds until the pool is being"] #[doc = " destroyed."] #[doc = "* `index` - A disambiguation index for creating the account. Likely only useful when"] #[doc = " creating multiple pools in the same extrinsic."] #[doc = "* `root` - The account to set as [`PoolRoles::root`]."] #[doc = "* `nominator` - The account to set as the [`PoolRoles::nominator`]."] #[doc = "* `bouncer` - The account to set as the [`PoolRoles::bouncer`]."] #[doc = ""] #[doc = "# Note"] #[doc = ""] #[doc = "In addition to `amount`, the caller will transfer the existential deposit; so the caller"] #[doc = "needs at have at least `amount + existential_deposit` transferrable."] create { #[codec(compact)] amount: ::core::primitive::u128, root: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, nominator: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, bouncer: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, }, #[codec(index = 7)] #[doc = "Create a new delegation pool with a previously used pool id"] #[doc = ""] #[doc = "# Arguments"] #[doc = ""] #[doc = "same as `create` with the inclusion of"] #[doc = "* `pool_id` - `A valid PoolId."] create_with_pool_id { #[codec(compact)] amount: ::core::primitive::u128, root: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, nominator: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, bouncer: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, pool_id: ::core::primitive::u32, }, #[codec(index = 8)] #[doc = "Nominate on behalf of the pool."] #[doc = ""] #[doc = "The dispatch origin of this call must be signed by the pool nominator or the pool"] #[doc = "root role."] #[doc = ""] #[doc = "This directly forward the call to the staking pallet, on behalf of the pool bonded"] #[doc = "account."] nominate { pool_id: ::core::primitive::u32, validators: ::std::vec::Vec<::subxt::utils::AccountId32>, }, #[codec(index = 9)] #[doc = "Set a new state for the pool."] #[doc = ""] #[doc = "If a pool is already in the `Destroying` state, then under no condition can its state"] #[doc = "change again."] #[doc = ""] #[doc = "The dispatch origin of this call must be either:"] #[doc = ""] #[doc = "1. signed by the bouncer, or the root role of the pool,"] #[doc = "2. if the pool conditions to be open are NOT met (as described by `ok_to_be_open`), and"] #[doc = " then the state of the pool can be permissionlessly changed to `Destroying`."] set_state { pool_id: ::core::primitive::u32, state: runtime_types::pallet_nomination_pools::PoolState, }, #[codec(index = 10)] #[doc = "Set a new metadata for the pool."] #[doc = ""] #[doc = "The dispatch origin of this call must be signed by the bouncer, or the root role of the"] #[doc = "pool."] set_metadata { pool_id: ::core::primitive::u32, metadata: ::std::vec::Vec<::core::primitive::u8>, }, #[codec(index = 11)] #[doc = "Update configurations for the nomination pools. The origin for this call must be"] #[doc = "Root."] #[doc = ""] #[doc = "# Arguments"] #[doc = ""] #[doc = "* `min_join_bond` - Set [`MinJoinBond`]."] #[doc = "* `min_create_bond` - Set [`MinCreateBond`]."] #[doc = "* `max_pools` - Set [`MaxPools`]."] #[doc = "* `max_members` - Set [`MaxPoolMembers`]."] #[doc = "* `max_members_per_pool` - Set [`MaxPoolMembersPerPool`]."] #[doc = "* `global_max_commission` - Set [`GlobalMaxCommission`]."] set_configs { min_join_bond: runtime_types::pallet_nomination_pools::ConfigOp< ::core::primitive::u128, >, min_create_bond: runtime_types::pallet_nomination_pools::ConfigOp< ::core::primitive::u128, >, max_pools: runtime_types::pallet_nomination_pools::ConfigOp< ::core::primitive::u32, >, max_members: runtime_types::pallet_nomination_pools::ConfigOp< ::core::primitive::u32, >, max_members_per_pool: runtime_types::pallet_nomination_pools::ConfigOp< ::core::primitive::u32, >, global_max_commission: runtime_types::pallet_nomination_pools::ConfigOp< runtime_types::sp_arithmetic::per_things::Perbill, >, }, #[codec(index = 12)] #[doc = "Update the roles of the pool."] #[doc = ""] #[doc = "The root is the only entity that can change any of the roles, including itself,"] #[doc = "excluding the depositor, who can never change."] #[doc = ""] #[doc = "It emits an event, notifying UIs of the role change. This event is quite relevant to"] #[doc = "most pool members and they should be informed of changes to pool roles."] update_roles { pool_id: ::core::primitive::u32, new_root: runtime_types::pallet_nomination_pools::ConfigOp< ::subxt::utils::AccountId32, >, new_nominator: runtime_types::pallet_nomination_pools::ConfigOp< ::subxt::utils::AccountId32, >, new_bouncer: runtime_types::pallet_nomination_pools::ConfigOp< ::subxt::utils::AccountId32, >, }, #[codec(index = 13)] #[doc = "Chill on behalf of the pool."] #[doc = ""] #[doc = "The dispatch origin of this call must be signed by the pool nominator or the pool"] #[doc = "root role, same as [`Pallet::nominate`]."] #[doc = ""] #[doc = "This directly forward the call to the staking pallet, on behalf of the pool bonded"] #[doc = "account."] chill { pool_id: ::core::primitive::u32 }, #[codec(index = 14)] #[doc = "`origin` bonds funds from `extra` for some pool member `member` into their respective"] #[doc = "pools."] #[doc = ""] #[doc = "`origin` can bond extra funds from free balance or pending rewards when `origin =="] #[doc = "other`."] #[doc = ""] #[doc = "In the case of `origin != other`, `origin` can only bond extra pending rewards of"] #[doc = "`other` members assuming set_claim_permission for the given member is"] #[doc = "`PermissionlessAll` or `PermissionlessCompound`."] bond_extra_other { member: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, extra: runtime_types::pallet_nomination_pools::BondExtra< ::core::primitive::u128, >, }, #[codec(index = 15)] #[doc = "Allows a pool member to set a claim permission to allow or disallow permissionless"] #[doc = "bonding and withdrawing."] #[doc = ""] #[doc = "By default, this is `Permissioned`, which implies only the pool member themselves can"] #[doc = "claim their pending rewards. If a pool member wishes so, they can set this to"] #[doc = "`PermissionlessAll` to allow any account to claim their rewards and bond extra to the"] #[doc = "pool."] #[doc = ""] #[doc = "# Arguments"] #[doc = ""] #[doc = "* `origin` - Member of a pool."] #[doc = "* `actor` - Account to claim reward. // improve this"] set_claim_permission { permission: runtime_types::pallet_nomination_pools::ClaimPermission, }, #[codec(index = 16)] #[doc = "`origin` can claim payouts on some pool member `other`'s behalf."] #[doc = ""] #[doc = "Pool member `other` must have a `PermissionlessAll` or `PermissionlessWithdraw` in order"] #[doc = "for this call to be successful."] claim_payout_other { other: ::subxt::utils::AccountId32 }, #[codec(index = 17)] #[doc = "Set the commission of a pool."] #[doc = "Both a commission percentage and a commission payee must be provided in the `current`"] #[doc = "tuple. Where a `current` of `None` is provided, any current commission will be removed."] #[doc = ""] #[doc = "- If a `None` is supplied to `new_commission`, existing commission will be removed."] set_commission { pool_id: ::core::primitive::u32, new_commission: ::core::option::Option<( runtime_types::sp_arithmetic::per_things::Perbill, ::subxt::utils::AccountId32, )>, }, #[codec(index = 18)] #[doc = "Set the maximum commission of a pool."] #[doc = ""] #[doc = "- Initial max can be set to any `Perbill`, and only smaller values thereafter."] #[doc = "- Current commission will be lowered in the event it is higher than a new max"] #[doc = " commission."] set_commission_max { pool_id: ::core::primitive::u32, max_commission: runtime_types::sp_arithmetic::per_things::Perbill, }, #[codec(index = 19)] #[doc = "Set the commission change rate for a pool."] #[doc = ""] #[doc = "Initial change rate is not bounded, whereas subsequent updates can only be more"] #[doc = "restrictive than the current."] set_commission_change_rate { pool_id: ::core::primitive::u32, change_rate: runtime_types::pallet_nomination_pools::CommissionChangeRate< ::core::primitive::u32, >, }, #[codec(index = 20)] #[doc = "Claim pending commission."] #[doc = ""] #[doc = "The dispatch origin of this call must be signed by the `root` role of the pool. Pending"] #[doc = "commission is paid out and added to total claimed commission`. Total pending commission"] #[doc = "is reset to zero. the current."] claim_commission { pool_id: ::core::primitive::u32 }, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum DefensiveError { #[codec(index = 0)] NotEnoughSpaceInUnbondPool, #[codec(index = 1)] PoolNotFound, #[codec(index = 2)] RewardPoolNotFound, #[codec(index = 3)] SubPoolsNotFound, #[codec(index = 4)] BondedStashKilledPrematurely, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] pub enum Error { #[codec(index = 0)] #[doc = "A (bonded) pool id does not exist."] PoolNotFound, #[codec(index = 1)] #[doc = "An account is not a member."] PoolMemberNotFound, #[codec(index = 2)] #[doc = "A reward pool does not exist. In all cases this is a system logic error."] RewardPoolNotFound, #[codec(index = 3)] #[doc = "A sub pool does not exist."] SubPoolsNotFound, #[codec(index = 4)] #[doc = "An account is already delegating in another pool. An account may only belong to one"] #[doc = "pool at a time."] AccountBelongsToOtherPool, #[codec(index = 5)] #[doc = "The member is fully unbonded (and thus cannot access the bonded and reward pool"] #[doc = "anymore to, for example, collect rewards)."] FullyUnbonding, #[codec(index = 6)] #[doc = "The member cannot unbond further chunks due to reaching the limit."] MaxUnbondingLimit, #[codec(index = 7)] #[doc = "None of the funds can be withdrawn yet because the bonding duration has not passed."] CannotWithdrawAny, #[codec(index = 8)] #[doc = "The amount does not meet the minimum bond to either join or create a pool."] #[doc = ""] #[doc = "The depositor can never unbond to a value less than"] #[doc = "`Pallet::depositor_min_bond`. The caller does not have nominating"] #[doc = "permissions for the pool. Members can never unbond to a value below `MinJoinBond`."] MinimumBondNotMet, #[codec(index = 9)] #[doc = "The transaction could not be executed due to overflow risk for the pool."] OverflowRisk, #[codec(index = 10)] #[doc = "A pool must be in [`PoolState::Destroying`] in order for the depositor to unbond or for"] #[doc = "other members to be permissionlessly unbonded."] NotDestroying, #[codec(index = 11)] #[doc = "The caller does not have nominating permissions for the pool."] NotNominator, #[codec(index = 12)] #[doc = "Either a) the caller cannot make a valid kick or b) the pool is not destroying."] NotKickerOrDestroying, #[codec(index = 13)] #[doc = "The pool is not open to join"] NotOpen, #[codec(index = 14)] #[doc = "The system is maxed out on pools."] MaxPools, #[codec(index = 15)] #[doc = "Too many members in the pool or system."] MaxPoolMembers, #[codec(index = 16)] #[doc = "The pools state cannot be changed."] CanNotChangeState, #[codec(index = 17)] #[doc = "The caller does not have adequate permissions."] DoesNotHavePermission, #[codec(index = 18)] #[doc = "Metadata exceeds [`Config::MaxMetadataLen`]"] MetadataExceedsMaxLen, #[codec(index = 19)] #[doc = "Some error occurred that should never happen. This should be reported to the"] #[doc = "maintainers."] Defensive(runtime_types::pallet_nomination_pools::pallet::DefensiveError), #[codec(index = 20)] #[doc = "Partial unbonding now allowed permissionlessly."] PartialUnbondNotAllowedPermissionlessly, #[codec(index = 21)] #[doc = "The pool's max commission cannot be set higher than the existing value."] MaxCommissionRestricted, #[codec(index = 22)] #[doc = "The supplied commission exceeds the max allowed commission."] CommissionExceedsMaximum, #[codec(index = 23)] #[doc = "Not enough blocks have surpassed since the last commission update."] CommissionChangeThrottled, #[codec(index = 24)] #[doc = "The submitted changes to commission change rate are not allowed."] CommissionChangeRateNotAllowed, #[codec(index = 25)] #[doc = "There is no pending commission to claim."] NoPendingCommission, #[codec(index = 26)] #[doc = "No commission current has been set."] NoCommissionCurrentSet, #[codec(index = 27)] #[doc = "Pool id currently in use."] PoolIdInUse, #[codec(index = 28)] #[doc = "Pool id provided is not correct/usable."] InvalidPoolId, #[codec(index = 29)] #[doc = "Bonding extra is restricted to the exact pending reward amount."] BondExtraRestricted, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Events of this pallet."] pub enum Event { #[codec(index = 0)] #[doc = "A pool has been created."] Created { depositor: ::subxt::utils::AccountId32, pool_id: ::core::primitive::u32, }, #[codec(index = 1)] #[doc = "A member has became bonded in a pool."] Bonded { member: ::subxt::utils::AccountId32, pool_id: ::core::primitive::u32, bonded: ::core::primitive::u128, joined: ::core::primitive::bool, }, #[codec(index = 2)] #[doc = "A payout has been made to a member."] PaidOut { member: ::subxt::utils::AccountId32, pool_id: ::core::primitive::u32, payout: ::core::primitive::u128, }, #[codec(index = 3)] #[doc = "A member has unbonded from their pool."] #[doc = ""] #[doc = "- `balance` is the corresponding balance of the number of points that has been"] #[doc = " requested to be unbonded (the argument of the `unbond` transaction) from the bonded"] #[doc = " pool."] #[doc = "- `points` is the number of points that are issued as a result of `balance` being"] #[doc = "dissolved into the corresponding unbonding pool."] #[doc = "- `era` is the era in which the balance will be unbonded."] #[doc = "In the absence of slashing, these values will match. In the presence of slashing, the"] #[doc = "number of points that are issued in the unbonding pool will be less than the amount"] #[doc = "requested to be unbonded."] Unbonded { member: ::subxt::utils::AccountId32, pool_id: ::core::primitive::u32, balance: ::core::primitive::u128, points: ::core::primitive::u128, era: ::core::primitive::u32, }, #[codec(index = 4)] #[doc = "A member has withdrawn from their pool."] #[doc = ""] #[doc = "The given number of `points` have been dissolved in return of `balance`."] #[doc = ""] #[doc = "Similar to `Unbonded` event, in the absence of slashing, the ratio of point to balance"] #[doc = "will be 1."] Withdrawn { member: ::subxt::utils::AccountId32, pool_id: ::core::primitive::u32, balance: ::core::primitive::u128, points: ::core::primitive::u128, }, #[codec(index = 5)] #[doc = "A pool has been destroyed."] Destroyed { pool_id: ::core::primitive::u32 }, #[codec(index = 6)] #[doc = "The state of a pool has changed"] StateChanged { pool_id: ::core::primitive::u32, new_state: runtime_types::pallet_nomination_pools::PoolState, }, #[codec(index = 7)] #[doc = "A member has been removed from a pool."] #[doc = ""] #[doc = "The removal can be voluntary (withdrawn all unbonded funds) or involuntary (kicked)."] MemberRemoved { pool_id: ::core::primitive::u32, member: ::subxt::utils::AccountId32, }, #[codec(index = 8)] #[doc = "The roles of a pool have been updated to the given new roles. Note that the depositor"] #[doc = "can never change."] RolesUpdated { root: ::core::option::Option<::subxt::utils::AccountId32>, bouncer: ::core::option::Option<::subxt::utils::AccountId32>, nominator: ::core::option::Option<::subxt::utils::AccountId32>, }, #[codec(index = 9)] #[doc = "The active balance of pool `pool_id` has been slashed to `balance`."] PoolSlashed { pool_id: ::core::primitive::u32, balance: ::core::primitive::u128, }, #[codec(index = 10)] #[doc = "The unbond pool at `era` of pool `pool_id` has been slashed to `balance`."] UnbondingPoolSlashed { pool_id: ::core::primitive::u32, era: ::core::primitive::u32, balance: ::core::primitive::u128, }, #[codec(index = 11)] #[doc = "A pool's commission setting has been changed."] PoolCommissionUpdated { pool_id: ::core::primitive::u32, current: ::core::option::Option<( runtime_types::sp_arithmetic::per_things::Perbill, ::subxt::utils::AccountId32, )>, }, #[codec(index = 12)] #[doc = "A pool's maximum commission setting has been changed."] PoolMaxCommissionUpdated { pool_id: ::core::primitive::u32, max_commission: runtime_types::sp_arithmetic::per_things::Perbill, }, #[codec(index = 13)] #[doc = "A pool's commission `change_rate` has been changed."] PoolCommissionChangeRateUpdated { pool_id: ::core::primitive::u32, change_rate: runtime_types::pallet_nomination_pools::CommissionChangeRate< ::core::primitive::u32, >, }, #[codec(index = 14)] #[doc = "Pool commission has been claimed."] PoolCommissionClaimed { pool_id: ::core::primitive::u32, commission: ::core::primitive::u128, }, } } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum BondExtra<_0> { #[codec(index = 0)] FreeBalance(_0), #[codec(index = 1)] Rewards, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct BondedPoolInner { pub commission: runtime_types::pallet_nomination_pools::Commission, pub member_counter: ::core::primitive::u32, pub points: ::core::primitive::u128, pub roles: runtime_types::pallet_nomination_pools::PoolRoles<::subxt::utils::AccountId32>, pub state: runtime_types::pallet_nomination_pools::PoolState, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum ClaimPermission { #[codec(index = 0)] Permissioned, #[codec(index = 1)] PermissionlessCompound, #[codec(index = 2)] PermissionlessWithdraw, #[codec(index = 3)] PermissionlessAll, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Commission { pub current: ::core::option::Option<( runtime_types::sp_arithmetic::per_things::Perbill, ::subxt::utils::AccountId32, )>, pub max: ::core::option::Option, pub change_rate: ::core::option::Option< runtime_types::pallet_nomination_pools::CommissionChangeRate< ::core::primitive::u32, >, >, pub throttle_from: ::core::option::Option<::core::primitive::u32>, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct CommissionChangeRate<_0> { pub max_increase: runtime_types::sp_arithmetic::per_things::Perbill, pub min_delay: _0, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum ConfigOp<_0> { #[codec(index = 0)] Noop, #[codec(index = 1)] Set(_0), #[codec(index = 2)] Remove, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct PoolMember { pub pool_id: ::core::primitive::u32, pub points: ::core::primitive::u128, pub last_recorded_reward_counter: runtime_types::sp_arithmetic::fixed_point::FixedU128, pub unbonding_eras: runtime_types::bounded_collections::bounded_btree_map::BoundedBTreeMap< ::core::primitive::u32, ::core::primitive::u128, >, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct PoolRoles<_0> { pub depositor: _0, pub root: ::core::option::Option<_0>, pub nominator: ::core::option::Option<_0>, pub bouncer: ::core::option::Option<_0>, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum PoolState { #[codec(index = 0)] Open, #[codec(index = 1)] Blocked, #[codec(index = 2)] Destroying, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct RewardPool { pub last_recorded_reward_counter: runtime_types::sp_arithmetic::fixed_point::FixedU128, pub last_recorded_total_payouts: ::core::primitive::u128, pub total_rewards_claimed: ::core::primitive::u128, pub total_commission_pending: ::core::primitive::u128, pub total_commission_claimed: ::core::primitive::u128, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SubPools { pub no_era: runtime_types::pallet_nomination_pools::UnbondPool, pub with_era: runtime_types::bounded_collections::bounded_btree_map::BoundedBTreeMap< ::core::primitive::u32, runtime_types::pallet_nomination_pools::UnbondPool, >, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct UnbondPool { pub points: ::core::primitive::u128, pub balance: ::core::primitive::u128, } } pub mod pallet_offences { use super::runtime_types; pub mod pallet { use super::runtime_types; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Events type."] pub enum Event { #[codec(index = 0)] #[doc = "There is an offence reported of the given `kind` happened at the `session_index` and"] #[doc = "(kind-specific) time slot. This event is not deposited for duplicate slashes."] #[doc = "\\[kind, timeslot\\]."] Offence { kind: [::core::primitive::u8; 16usize], timeslot: ::std::vec::Vec<::core::primitive::u8>, }, } } } pub mod pallet_preimage { use super::runtime_types; pub mod pallet { use super::runtime_types; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] pub enum Call { #[codec(index = 0)] #[doc = "Register a preimage on-chain."] #[doc = ""] #[doc = "If the preimage was previously requested, no fees or deposits are taken for providing"] #[doc = "the preimage. Otherwise, a deposit is taken proportional to the size of the preimage."] note_preimage { bytes: ::std::vec::Vec<::core::primitive::u8>, }, #[codec(index = 1)] #[doc = "Clear an unrequested preimage from the runtime storage."] #[doc = ""] #[doc = "If `len` is provided, then it will be a much cheaper operation."] #[doc = ""] #[doc = "- `hash`: The hash of the preimage to be removed from the store."] #[doc = "- `len`: The length of the preimage of `hash`."] unnote_preimage { hash: ::subxt::utils::H256 }, #[codec(index = 2)] #[doc = "Request a preimage be uploaded to the chain without paying any fees or deposits."] #[doc = ""] #[doc = "If the preimage requests has already been provided on-chain, we unreserve any deposit"] #[doc = "a user may have paid, and take the control of the preimage out of their hands."] request_preimage { hash: ::subxt::utils::H256 }, #[codec(index = 3)] #[doc = "Clear a previously made request for a preimage."] #[doc = ""] #[doc = "NOTE: THIS MUST NOT BE CALLED ON `hash` MORE TIMES THAN `request_preimage`."] unrequest_preimage { hash: ::subxt::utils::H256 }, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] pub enum Error { #[codec(index = 0)] #[doc = "Preimage is too large to store on-chain."] TooBig, #[codec(index = 1)] #[doc = "Preimage has already been noted on-chain."] AlreadyNoted, #[codec(index = 2)] #[doc = "The user is not authorized to perform this action."] NotAuthorized, #[codec(index = 3)] #[doc = "The preimage cannot be removed since it has not yet been noted."] NotNoted, #[codec(index = 4)] #[doc = "A preimage may not be removed when there are outstanding requests."] Requested, #[codec(index = 5)] #[doc = "The preimage request cannot be removed since no outstanding requests exist."] NotRequested, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] pub enum Event { #[codec(index = 0)] #[doc = "A preimage has been noted."] Noted { hash: ::subxt::utils::H256 }, #[codec(index = 1)] #[doc = "A preimage has been requested."] Requested { hash: ::subxt::utils::H256 }, #[codec(index = 2)] #[doc = "A preimage has ben cleared."] Cleared { hash: ::subxt::utils::H256 }, } } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum RequestStatus<_0, _1> { #[codec(index = 0)] Unrequested { deposit: (_0, _1), len: ::core::primitive::u32, }, #[codec(index = 1)] Requested { deposit: ::core::option::Option<(_0, _1)>, count: ::core::primitive::u32, len: ::core::option::Option<::core::primitive::u32>, }, } } pub mod pallet_proxy { use super::runtime_types; pub mod pallet { use super::runtime_types; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] pub enum Call { #[codec(index = 0)] #[doc = "Dispatch the given `call` from an account that the sender is authorised for through"] #[doc = "`add_proxy`."] #[doc = ""] #[doc = "The dispatch origin for this call must be _Signed_."] #[doc = ""] #[doc = "Parameters:"] #[doc = "- `real`: The account that the proxy will make a call on behalf of."] #[doc = "- `force_proxy_type`: Specify the exact proxy type to be used and checked for this call."] #[doc = "- `call`: The call to be made by the `real` account."] proxy { real: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, force_proxy_type: ::core::option::Option, call: ::std::boxed::Box, }, #[codec(index = 1)] #[doc = "Register a proxy account for the sender that is able to make calls on its behalf."] #[doc = ""] #[doc = "The dispatch origin for this call must be _Signed_."] #[doc = ""] #[doc = "Parameters:"] #[doc = "- `proxy`: The account that the `caller` would like to make a proxy."] #[doc = "- `proxy_type`: The permissions allowed for this proxy account."] #[doc = "- `delay`: The announcement period required of the initial proxy. Will generally be"] #[doc = "zero."] add_proxy { delegate: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, proxy_type: runtime_types::polkadot_runtime::ProxyType, delay: ::core::primitive::u32, }, #[codec(index = 2)] #[doc = "Unregister a proxy account for the sender."] #[doc = ""] #[doc = "The dispatch origin for this call must be _Signed_."] #[doc = ""] #[doc = "Parameters:"] #[doc = "- `proxy`: The account that the `caller` would like to remove as a proxy."] #[doc = "- `proxy_type`: The permissions currently enabled for the removed proxy account."] remove_proxy { delegate: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, proxy_type: runtime_types::polkadot_runtime::ProxyType, delay: ::core::primitive::u32, }, #[codec(index = 3)] #[doc = "Unregister all proxy accounts for the sender."] #[doc = ""] #[doc = "The dispatch origin for this call must be _Signed_."] #[doc = ""] #[doc = "WARNING: This may be called on accounts created by `pure`, however if done, then"] #[doc = "the unreserved fees will be inaccessible. **All access to this account will be lost.**"] remove_proxies, #[codec(index = 4)] #[doc = "Spawn a fresh new account that is guaranteed to be otherwise inaccessible, and"] #[doc = "initialize it with a proxy of `proxy_type` for `origin` sender."] #[doc = ""] #[doc = "Requires a `Signed` origin."] #[doc = ""] #[doc = "- `proxy_type`: The type of the proxy that the sender will be registered as over the"] #[doc = "new account. This will almost always be the most permissive `ProxyType` possible to"] #[doc = "allow for maximum flexibility."] #[doc = "- `index`: A disambiguation index, in case this is called multiple times in the same"] #[doc = "transaction (e.g. with `utility::batch`). Unless you're using `batch` you probably just"] #[doc = "want to use `0`."] #[doc = "- `delay`: The announcement period required of the initial proxy. Will generally be"] #[doc = "zero."] #[doc = ""] #[doc = "Fails with `Duplicate` if this has already been called in this transaction, from the"] #[doc = "same sender, with the same parameters."] #[doc = ""] #[doc = "Fails if there are insufficient funds to pay for deposit."] create_pure { proxy_type: runtime_types::polkadot_runtime::ProxyType, delay: ::core::primitive::u32, index: ::core::primitive::u16, }, #[codec(index = 5)] #[doc = "Removes a previously spawned pure proxy."] #[doc = ""] #[doc = "WARNING: **All access to this account will be lost.** Any funds held in it will be"] #[doc = "inaccessible."] #[doc = ""] #[doc = "Requires a `Signed` origin, and the sender account must have been created by a call to"] #[doc = "`pure` with corresponding parameters."] #[doc = ""] #[doc = "- `spawner`: The account that originally called `pure` to create this account."] #[doc = "- `index`: The disambiguation index originally passed to `pure`. Probably `0`."] #[doc = "- `proxy_type`: The proxy type originally passed to `pure`."] #[doc = "- `height`: The height of the chain when the call to `pure` was processed."] #[doc = "- `ext_index`: The extrinsic index in which the call to `pure` was processed."] #[doc = ""] #[doc = "Fails with `NoPermission` in case the caller is not a previously created pure"] #[doc = "account whose `pure` call has corresponding parameters."] kill_pure { spawner: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, proxy_type: runtime_types::polkadot_runtime::ProxyType, index: ::core::primitive::u16, #[codec(compact)] height: ::core::primitive::u32, #[codec(compact)] ext_index: ::core::primitive::u32, }, #[codec(index = 6)] #[doc = "Publish the hash of a proxy-call that will be made in the future."] #[doc = ""] #[doc = "This must be called some number of blocks before the corresponding `proxy` is attempted"] #[doc = "if the delay associated with the proxy relationship is greater than zero."] #[doc = ""] #[doc = "No more than `MaxPending` announcements may be made at any one time."] #[doc = ""] #[doc = "This will take a deposit of `AnnouncementDepositFactor` as well as"] #[doc = "`AnnouncementDepositBase` if there are no other pending announcements."] #[doc = ""] #[doc = "The dispatch origin for this call must be _Signed_ and a proxy of `real`."] #[doc = ""] #[doc = "Parameters:"] #[doc = "- `real`: The account that the proxy will make a call on behalf of."] #[doc = "- `call_hash`: The hash of the call to be made by the `real` account."] announce { real: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, call_hash: ::subxt::utils::H256, }, #[codec(index = 7)] #[doc = "Remove a given announcement."] #[doc = ""] #[doc = "May be called by a proxy account to remove a call they previously announced and return"] #[doc = "the deposit."] #[doc = ""] #[doc = "The dispatch origin for this call must be _Signed_."] #[doc = ""] #[doc = "Parameters:"] #[doc = "- `real`: The account that the proxy will make a call on behalf of."] #[doc = "- `call_hash`: The hash of the call to be made by the `real` account."] remove_announcement { real: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, call_hash: ::subxt::utils::H256, }, #[codec(index = 8)] #[doc = "Remove the given announcement of a delegate."] #[doc = ""] #[doc = "May be called by a target (proxied) account to remove a call that one of their delegates"] #[doc = "(`delegate`) has announced they want to execute. The deposit is returned."] #[doc = ""] #[doc = "The dispatch origin for this call must be _Signed_."] #[doc = ""] #[doc = "Parameters:"] #[doc = "- `delegate`: The account that previously announced the call."] #[doc = "- `call_hash`: The hash of the call to be made."] reject_announcement { delegate: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, call_hash: ::subxt::utils::H256, }, #[codec(index = 9)] #[doc = "Dispatch the given `call` from an account that the sender is authorized for through"] #[doc = "`add_proxy`."] #[doc = ""] #[doc = "Removes any corresponding announcement(s)."] #[doc = ""] #[doc = "The dispatch origin for this call must be _Signed_."] #[doc = ""] #[doc = "Parameters:"] #[doc = "- `real`: The account that the proxy will make a call on behalf of."] #[doc = "- `force_proxy_type`: Specify the exact proxy type to be used and checked for this call."] #[doc = "- `call`: The call to be made by the `real` account."] proxy_announced { delegate: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, real: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, force_proxy_type: ::core::option::Option, call: ::std::boxed::Box, }, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] pub enum Error { #[codec(index = 0)] #[doc = "There are too many proxies registered or too many announcements pending."] TooMany, #[codec(index = 1)] #[doc = "Proxy registration not found."] NotFound, #[codec(index = 2)] #[doc = "Sender is not a proxy of the account to be proxied."] NotProxy, #[codec(index = 3)] #[doc = "A call which is incompatible with the proxy type's filter was attempted."] Unproxyable, #[codec(index = 4)] #[doc = "Account is already a proxy."] Duplicate, #[codec(index = 5)] #[doc = "Call may not be made by proxy because it may escalate its privileges."] NoPermission, #[codec(index = 6)] #[doc = "Announcement, if made at all, was made too recently."] Unannounced, #[codec(index = 7)] #[doc = "Cannot add self as proxy."] NoSelfProxy, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] pub enum Event { #[codec(index = 0)] #[doc = "A proxy was executed correctly, with the given."] ProxyExecuted { result: ::core::result::Result<(), runtime_types::sp_runtime::DispatchError>, }, #[codec(index = 1)] #[doc = "A pure account has been created by new proxy with given"] #[doc = "disambiguation index and proxy type."] PureCreated { pure: ::subxt::utils::AccountId32, who: ::subxt::utils::AccountId32, proxy_type: runtime_types::polkadot_runtime::ProxyType, disambiguation_index: ::core::primitive::u16, }, #[codec(index = 2)] #[doc = "An announcement was placed to make a call in the future."] Announced { real: ::subxt::utils::AccountId32, proxy: ::subxt::utils::AccountId32, call_hash: ::subxt::utils::H256, }, #[codec(index = 3)] #[doc = "A proxy was added."] ProxyAdded { delegator: ::subxt::utils::AccountId32, delegatee: ::subxt::utils::AccountId32, proxy_type: runtime_types::polkadot_runtime::ProxyType, delay: ::core::primitive::u32, }, #[codec(index = 4)] #[doc = "A proxy was removed."] ProxyRemoved { delegator: ::subxt::utils::AccountId32, delegatee: ::subxt::utils::AccountId32, proxy_type: runtime_types::polkadot_runtime::ProxyType, delay: ::core::primitive::u32, }, } } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Announcement<_0, _1, _2> { pub real: _0, pub call_hash: _1, pub height: _2, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ProxyDefinition<_0, _1, _2> { pub delegate: _0, pub proxy_type: _1, pub delay: _2, } } pub mod pallet_referenda { use super::runtime_types; pub mod pallet { use super::runtime_types; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] pub enum Call { #[codec(index = 0)] #[doc = "Propose a referendum on a privileged action."] #[doc = ""] #[doc = "- `origin`: must be `SubmitOrigin` and the account must have `SubmissionDeposit` funds"] #[doc = " available."] #[doc = "- `proposal_origin`: The origin from which the proposal should be executed."] #[doc = "- `proposal`: The proposal."] #[doc = "- `enactment_moment`: The moment that the proposal should be enacted."] #[doc = ""] #[doc = "Emits `Submitted`."] submit { proposal_origin: ::std::boxed::Box, proposal: runtime_types::frame_support::traits::preimages::Bounded< runtime_types::polkadot_runtime::RuntimeCall, >, enactment_moment: runtime_types::frame_support::traits::schedule::DispatchTime< ::core::primitive::u32, >, }, #[codec(index = 1)] #[doc = "Post the Decision Deposit for a referendum."] #[doc = ""] #[doc = "- `origin`: must be `Signed` and the account must have funds available for the"] #[doc = " referendum's track's Decision Deposit."] #[doc = "- `index`: The index of the submitted referendum whose Decision Deposit is yet to be"] #[doc = " posted."] #[doc = ""] #[doc = "Emits `DecisionDepositPlaced`."] place_decision_deposit { index: ::core::primitive::u32 }, #[codec(index = 2)] #[doc = "Refund the Decision Deposit for a closed referendum back to the depositor."] #[doc = ""] #[doc = "- `origin`: must be `Signed` or `Root`."] #[doc = "- `index`: The index of a closed referendum whose Decision Deposit has not yet been"] #[doc = " refunded."] #[doc = ""] #[doc = "Emits `DecisionDepositRefunded`."] refund_decision_deposit { index: ::core::primitive::u32 }, #[codec(index = 3)] #[doc = "Cancel an ongoing referendum."] #[doc = ""] #[doc = "- `origin`: must be the `CancelOrigin`."] #[doc = "- `index`: The index of the referendum to be cancelled."] #[doc = ""] #[doc = "Emits `Cancelled`."] cancel { index: ::core::primitive::u32 }, #[codec(index = 4)] #[doc = "Cancel an ongoing referendum and slash the deposits."] #[doc = ""] #[doc = "- `origin`: must be the `KillOrigin`."] #[doc = "- `index`: The index of the referendum to be cancelled."] #[doc = ""] #[doc = "Emits `Killed` and `DepositSlashed`."] kill { index: ::core::primitive::u32 }, #[codec(index = 5)] #[doc = "Advance a referendum onto its next logical state. Only used internally."] #[doc = ""] #[doc = "- `origin`: must be `Root`."] #[doc = "- `index`: the referendum to be advanced."] nudge_referendum { index: ::core::primitive::u32 }, #[codec(index = 6)] #[doc = "Advance a track onto its next logical state. Only used internally."] #[doc = ""] #[doc = "- `origin`: must be `Root`."] #[doc = "- `track`: the track to be advanced."] #[doc = ""] #[doc = "Action item for when there is now one fewer referendum in the deciding phase and the"] #[doc = "`DecidingCount` is not yet updated. This means that we should either:"] #[doc = "- begin deciding another referendum (and leave `DecidingCount` alone); or"] #[doc = "- decrement `DecidingCount`."] one_fewer_deciding { track: ::core::primitive::u16 }, #[codec(index = 7)] #[doc = "Refund the Submission Deposit for a closed referendum back to the depositor."] #[doc = ""] #[doc = "- `origin`: must be `Signed` or `Root`."] #[doc = "- `index`: The index of a closed referendum whose Submission Deposit has not yet been"] #[doc = " refunded."] #[doc = ""] #[doc = "Emits `SubmissionDepositRefunded`."] refund_submission_deposit { index: ::core::primitive::u32 }, #[codec(index = 8)] #[doc = "Set or clear metadata of a referendum."] #[doc = ""] #[doc = "Parameters:"] #[doc = "- `origin`: Must be `Signed` by a creator of a referendum or by anyone to clear a"] #[doc = " metadata of a finished referendum."] #[doc = "- `index`: The index of a referendum to set or clear metadata for."] #[doc = "- `maybe_hash`: The hash of an on-chain stored preimage. `None` to clear a metadata."] set_metadata { index: ::core::primitive::u32, maybe_hash: ::core::option::Option<::subxt::utils::H256>, }, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] pub enum Error { #[codec(index = 0)] #[doc = "Referendum is not ongoing."] NotOngoing, #[codec(index = 1)] #[doc = "Referendum's decision deposit is already paid."] HasDeposit, #[codec(index = 2)] #[doc = "The track identifier given was invalid."] BadTrack, #[codec(index = 3)] #[doc = "There are already a full complement of referenda in progress for this track."] Full, #[codec(index = 4)] #[doc = "The queue of the track is empty."] QueueEmpty, #[codec(index = 5)] #[doc = "The referendum index provided is invalid in this context."] BadReferendum, #[codec(index = 6)] #[doc = "There was nothing to do in the advancement."] NothingToDo, #[codec(index = 7)] #[doc = "No track exists for the proposal origin."] NoTrack, #[codec(index = 8)] #[doc = "Any deposit cannot be refunded until after the decision is over."] Unfinished, #[codec(index = 9)] #[doc = "The deposit refunder is not the depositor."] NoPermission, #[codec(index = 10)] #[doc = "The deposit cannot be refunded since none was made."] NoDeposit, #[codec(index = 11)] #[doc = "The referendum status is invalid for this operation."] BadStatus, #[codec(index = 12)] #[doc = "The preimage does not exist."] PreimageNotExist, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] pub enum Event { #[codec(index = 0)] #[doc = "A referendum has been submitted."] Submitted { index: ::core::primitive::u32, track: ::core::primitive::u16, proposal: runtime_types::frame_support::traits::preimages::Bounded< runtime_types::polkadot_runtime::RuntimeCall, >, }, #[codec(index = 1)] #[doc = "The decision deposit has been placed."] DecisionDepositPlaced { index: ::core::primitive::u32, who: ::subxt::utils::AccountId32, amount: ::core::primitive::u128, }, #[codec(index = 2)] #[doc = "The decision deposit has been refunded."] DecisionDepositRefunded { index: ::core::primitive::u32, who: ::subxt::utils::AccountId32, amount: ::core::primitive::u128, }, #[codec(index = 3)] #[doc = "A deposit has been slashaed."] DepositSlashed { who: ::subxt::utils::AccountId32, amount: ::core::primitive::u128, }, #[codec(index = 4)] #[doc = "A referendum has moved into the deciding phase."] DecisionStarted { index: ::core::primitive::u32, track: ::core::primitive::u16, proposal: runtime_types::frame_support::traits::preimages::Bounded< runtime_types::polkadot_runtime::RuntimeCall, >, tally: runtime_types::pallet_conviction_voting::types::Tally< ::core::primitive::u128, >, }, #[codec(index = 5)] ConfirmStarted { index: ::core::primitive::u32 }, #[codec(index = 6)] ConfirmAborted { index: ::core::primitive::u32 }, #[codec(index = 7)] #[doc = "A referendum has ended its confirmation phase and is ready for approval."] Confirmed { index: ::core::primitive::u32, tally: runtime_types::pallet_conviction_voting::types::Tally< ::core::primitive::u128, >, }, #[codec(index = 8)] #[doc = "A referendum has been approved and its proposal has been scheduled."] Approved { index: ::core::primitive::u32 }, #[codec(index = 9)] #[doc = "A proposal has been rejected by referendum."] Rejected { index: ::core::primitive::u32, tally: runtime_types::pallet_conviction_voting::types::Tally< ::core::primitive::u128, >, }, #[codec(index = 10)] #[doc = "A referendum has been timed out without being decided."] TimedOut { index: ::core::primitive::u32, tally: runtime_types::pallet_conviction_voting::types::Tally< ::core::primitive::u128, >, }, #[codec(index = 11)] #[doc = "A referendum has been cancelled."] Cancelled { index: ::core::primitive::u32, tally: runtime_types::pallet_conviction_voting::types::Tally< ::core::primitive::u128, >, }, #[codec(index = 12)] #[doc = "A referendum has been killed."] Killed { index: ::core::primitive::u32, tally: runtime_types::pallet_conviction_voting::types::Tally< ::core::primitive::u128, >, }, #[codec(index = 13)] #[doc = "The submission deposit has been refunded."] SubmissionDepositRefunded { index: ::core::primitive::u32, who: ::subxt::utils::AccountId32, amount: ::core::primitive::u128, }, #[codec(index = 14)] #[doc = "Metadata for a referendum has been set."] MetadataSet { index: ::core::primitive::u32, hash: ::subxt::utils::H256, }, #[codec(index = 15)] #[doc = "Metadata for a referendum has been cleared."] MetadataCleared { index: ::core::primitive::u32, hash: ::subxt::utils::H256, }, } } pub mod types { use super::runtime_types; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum Curve { #[codec(index = 0)] LinearDecreasing { length: runtime_types::sp_arithmetic::per_things::Perbill, floor: runtime_types::sp_arithmetic::per_things::Perbill, ceil: runtime_types::sp_arithmetic::per_things::Perbill, }, #[codec(index = 1)] SteppedDecreasing { begin: runtime_types::sp_arithmetic::per_things::Perbill, end: runtime_types::sp_arithmetic::per_things::Perbill, step: runtime_types::sp_arithmetic::per_things::Perbill, period: runtime_types::sp_arithmetic::per_things::Perbill, }, #[codec(index = 2)] Reciprocal { factor: runtime_types::sp_arithmetic::fixed_point::FixedI64, x_offset: runtime_types::sp_arithmetic::fixed_point::FixedI64, y_offset: runtime_types::sp_arithmetic::fixed_point::FixedI64, }, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct DecidingStatus<_0> { pub since: _0, pub confirming: ::core::option::Option<_0>, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Deposit<_0, _1> { pub who: _0, pub amount: _1, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum ReferendumInfo<_0, _1, _2, _3, _4, _5, _6, _7> { #[codec(index = 0)] Ongoing( runtime_types::pallet_referenda::types::ReferendumStatus< _0, _1, _2, _3, _4, _5, _6, _7, >, ), #[codec(index = 1)] Approved( _2, ::core::option::Option< runtime_types::pallet_referenda::types::Deposit<_6, _4>, >, ::core::option::Option< runtime_types::pallet_referenda::types::Deposit<_6, _4>, >, ), #[codec(index = 2)] Rejected( _2, ::core::option::Option< runtime_types::pallet_referenda::types::Deposit<_6, _4>, >, ::core::option::Option< runtime_types::pallet_referenda::types::Deposit<_6, _4>, >, ), #[codec(index = 3)] Cancelled( _2, ::core::option::Option< runtime_types::pallet_referenda::types::Deposit<_6, _4>, >, ::core::option::Option< runtime_types::pallet_referenda::types::Deposit<_6, _4>, >, ), #[codec(index = 4)] TimedOut( _2, ::core::option::Option< runtime_types::pallet_referenda::types::Deposit<_6, _4>, >, ::core::option::Option< runtime_types::pallet_referenda::types::Deposit<_6, _4>, >, ), #[codec(index = 5)] Killed(_2), } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ReferendumStatus<_0, _1, _2, _3, _4, _5, _6, _7> { pub track: _0, pub origin: _1, pub proposal: _3, pub enactment: runtime_types::frame_support::traits::schedule::DispatchTime<_2>, pub submitted: _2, pub submission_deposit: runtime_types::pallet_referenda::types::Deposit<_6, _4>, pub decision_deposit: ::core::option::Option< runtime_types::pallet_referenda::types::Deposit<_6, _4>, >, pub deciding: ::core::option::Option< runtime_types::pallet_referenda::types::DecidingStatus<_2>, >, pub tally: _5, pub in_queue: ::core::primitive::bool, pub alarm: ::core::option::Option<(_2, _7)>, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct TrackInfo<_0, _1> { pub name: ::std::string::String, pub max_deciding: _1, pub decision_deposit: _0, pub prepare_period: _1, pub decision_period: _1, pub confirm_period: _1, pub min_enactment_period: _1, pub min_approval: runtime_types::pallet_referenda::types::Curve, pub min_support: runtime_types::pallet_referenda::types::Curve, } } } pub mod pallet_scheduler { use super::runtime_types; pub mod pallet { use super::runtime_types; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] pub enum Call { #[codec(index = 0)] #[doc = "Anonymously schedule a task."] schedule { when: ::core::primitive::u32, maybe_periodic: ::core::option::Option<( ::core::primitive::u32, ::core::primitive::u32, )>, priority: ::core::primitive::u8, call: ::std::boxed::Box, }, #[codec(index = 1)] #[doc = "Cancel an anonymously scheduled task."] cancel { when: ::core::primitive::u32, index: ::core::primitive::u32, }, #[codec(index = 2)] #[doc = "Schedule a named task."] schedule_named { id: [::core::primitive::u8; 32usize], when: ::core::primitive::u32, maybe_periodic: ::core::option::Option<( ::core::primitive::u32, ::core::primitive::u32, )>, priority: ::core::primitive::u8, call: ::std::boxed::Box, }, #[codec(index = 3)] #[doc = "Cancel a named scheduled task."] cancel_named { id: [::core::primitive::u8; 32usize], }, #[codec(index = 4)] #[doc = "Anonymously schedule a task after a delay."] schedule_after { after: ::core::primitive::u32, maybe_periodic: ::core::option::Option<( ::core::primitive::u32, ::core::primitive::u32, )>, priority: ::core::primitive::u8, call: ::std::boxed::Box, }, #[codec(index = 5)] #[doc = "Schedule a named task after a delay."] schedule_named_after { id: [::core::primitive::u8; 32usize], after: ::core::primitive::u32, maybe_periodic: ::core::option::Option<( ::core::primitive::u32, ::core::primitive::u32, )>, priority: ::core::primitive::u8, call: ::std::boxed::Box, }, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] pub enum Error { #[codec(index = 0)] #[doc = "Failed to schedule a call"] FailedToSchedule, #[codec(index = 1)] #[doc = "Cannot find the scheduled call."] NotFound, #[codec(index = 2)] #[doc = "Given target block number is in the past."] TargetBlockNumberInPast, #[codec(index = 3)] #[doc = "Reschedule failed because it does not change scheduled time."] RescheduleNoChange, #[codec(index = 4)] #[doc = "Attempt to use a non-named function on a named task."] Named, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Events type."] pub enum Event { #[codec(index = 0)] #[doc = "Scheduled some task."] Scheduled { when: ::core::primitive::u32, index: ::core::primitive::u32, }, #[codec(index = 1)] #[doc = "Canceled some task."] Canceled { when: ::core::primitive::u32, index: ::core::primitive::u32, }, #[codec(index = 2)] #[doc = "Dispatched some task."] Dispatched { task: (::core::primitive::u32, ::core::primitive::u32), id: ::core::option::Option<[::core::primitive::u8; 32usize]>, result: ::core::result::Result<(), runtime_types::sp_runtime::DispatchError>, }, #[codec(index = 3)] #[doc = "The call for the provided hash was not found so the task has been aborted."] CallUnavailable { task: (::core::primitive::u32, ::core::primitive::u32), id: ::core::option::Option<[::core::primitive::u8; 32usize]>, }, #[codec(index = 4)] #[doc = "The given task was unable to be renewed since the agenda is full at that block."] PeriodicFailed { task: (::core::primitive::u32, ::core::primitive::u32), id: ::core::option::Option<[::core::primitive::u8; 32usize]>, }, #[codec(index = 5)] #[doc = "The given task can never be executed since it is overweight."] PermanentlyOverweight { task: (::core::primitive::u32, ::core::primitive::u32), id: ::core::option::Option<[::core::primitive::u8; 32usize]>, }, } } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Scheduled<_0, _1, _2, _3, _4> { pub maybe_id: ::core::option::Option<_0>, pub priority: ::core::primitive::u8, pub call: _1, pub maybe_periodic: ::core::option::Option<(_2, _2)>, pub origin: _3, #[codec(skip)] pub __subxt_unused_type_params: ::core::marker::PhantomData<_4>, } } pub mod pallet_session { use super::runtime_types; pub mod pallet { use super::runtime_types; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] pub enum Call { #[codec(index = 0)] #[doc = "Sets the session key(s) of the function caller to `keys`."] #[doc = "Allows an account to set its session key prior to becoming a validator."] #[doc = "This doesn't take effect until the next session."] #[doc = ""] #[doc = "The dispatch origin of this function must be signed."] #[doc = ""] #[doc = "## Complexity"] #[doc = "- `O(1)`. Actual cost depends on the number of length of `T::Keys::key_ids()` which is"] #[doc = " fixed."] set_keys { keys: runtime_types::polkadot_runtime::SessionKeys, proof: ::std::vec::Vec<::core::primitive::u8>, }, #[codec(index = 1)] #[doc = "Removes any session key(s) of the function caller."] #[doc = ""] #[doc = "This doesn't take effect until the next session."] #[doc = ""] #[doc = "The dispatch origin of this function must be Signed and the account must be either be"] #[doc = "convertible to a validator ID using the chain's typical addressing system (this usually"] #[doc = "means being a controller account) or directly convertible into a validator ID (which"] #[doc = "usually means being a stash account)."] #[doc = ""] #[doc = "## Complexity"] #[doc = "- `O(1)` in number of key types. Actual cost depends on the number of length of"] #[doc = " `T::Keys::key_ids()` which is fixed."] purge_keys, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Error for the session pallet."] pub enum Error { #[codec(index = 0)] #[doc = "Invalid ownership proof."] InvalidProof, #[codec(index = 1)] #[doc = "No associated validator ID for account."] NoAssociatedValidatorId, #[codec(index = 2)] #[doc = "Registered duplicate key."] DuplicatedKey, #[codec(index = 3)] #[doc = "No keys are associated with this account."] NoKeys, #[codec(index = 4)] #[doc = "Key setting account is not live, so it's impossible to associate keys."] NoAccount, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] pub enum Event { #[codec(index = 0)] #[doc = "New session has happened. Note that the argument is the session index, not the"] #[doc = "block number as the type might suggest."] NewSession { session_index: ::core::primitive::u32, }, } } } pub mod pallet_staking { use super::runtime_types; pub mod pallet { use super::runtime_types; pub mod pallet { use super::runtime_types; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] pub enum Call { #[codec(index = 0)] #[doc = "Take the origin account as a stash and lock up `value` of its balance. `controller` will"] #[doc = "be the account that controls it."] #[doc = ""] #[doc = "`value` must be more than the `minimum_balance` specified by `T::Currency`."] #[doc = ""] #[doc = "The dispatch origin for this call must be _Signed_ by the stash account."] #[doc = ""] #[doc = "Emits `Bonded`."] #[doc = "## Complexity"] #[doc = "- Independent of the arguments. Moderate complexity."] #[doc = "- O(1)."] #[doc = "- Three extra DB entries."] #[doc = ""] #[doc = "NOTE: Two of the storage writes (`Self::bonded`, `Self::payee`) are _never_ cleaned"] #[doc = "unless the `origin` falls below _existential deposit_ and gets removed as dust."] bond { controller: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, #[codec(compact)] value: ::core::primitive::u128, payee: runtime_types::pallet_staking::RewardDestination< ::subxt::utils::AccountId32, >, }, #[codec(index = 1)] #[doc = "Add some extra amount that have appeared in the stash `free_balance` into the balance up"] #[doc = "for staking."] #[doc = ""] #[doc = "The dispatch origin for this call must be _Signed_ by the stash, not the controller."] #[doc = ""] #[doc = "Use this if there are additional funds in your stash account that you wish to bond."] #[doc = "Unlike [`bond`](Self::bond) or [`unbond`](Self::unbond) this function does not impose"] #[doc = "any limitation on the amount that can be added."] #[doc = ""] #[doc = "Emits `Bonded`."] #[doc = ""] #[doc = "## Complexity"] #[doc = "- Independent of the arguments. Insignificant complexity."] #[doc = "- O(1)."] bond_extra { #[codec(compact)] max_additional: ::core::primitive::u128, }, #[codec(index = 2)] #[doc = "Schedule a portion of the stash to be unlocked ready for transfer out after the bond"] #[doc = "period ends. If this leaves an amount actively bonded less than"] #[doc = "T::Currency::minimum_balance(), then it is increased to the full amount."] #[doc = ""] #[doc = "The dispatch origin for this call must be _Signed_ by the controller, not the stash."] #[doc = ""] #[doc = "Once the unlock period is done, you can call `withdraw_unbonded` to actually move"] #[doc = "the funds out of management ready for transfer."] #[doc = ""] #[doc = "No more than a limited number of unlocking chunks (see `MaxUnlockingChunks`)"] #[doc = "can co-exists at the same time. If there are no unlocking chunks slots available"] #[doc = "[`Call::withdraw_unbonded`] is called to remove some of the chunks (if possible)."] #[doc = ""] #[doc = "If a user encounters the `InsufficientBond` error when calling this extrinsic,"] #[doc = "they should call `chill` first in order to free up their bonded funds."] #[doc = ""] #[doc = "Emits `Unbonded`."] #[doc = ""] #[doc = "See also [`Call::withdraw_unbonded`]."] unbond { #[codec(compact)] value: ::core::primitive::u128, }, #[codec(index = 3)] #[doc = "Remove any unlocked chunks from the `unlocking` queue from our management."] #[doc = ""] #[doc = "This essentially frees up that balance to be used by the stash account to do"] #[doc = "whatever it wants."] #[doc = ""] #[doc = "The dispatch origin for this call must be _Signed_ by the controller."] #[doc = ""] #[doc = "Emits `Withdrawn`."] #[doc = ""] #[doc = "See also [`Call::unbond`]."] #[doc = ""] #[doc = "## Complexity"] #[doc = "O(S) where S is the number of slashing spans to remove"] #[doc = "NOTE: Weight annotation is the kill scenario, we refund otherwise."] withdraw_unbonded { num_slashing_spans: ::core::primitive::u32, }, #[codec(index = 4)] #[doc = "Declare the desire to validate for the origin controller."] #[doc = ""] #[doc = "Effects will be felt at the beginning of the next era."] #[doc = ""] #[doc = "The dispatch origin for this call must be _Signed_ by the controller, not the stash."] validate { prefs: runtime_types::pallet_staking::ValidatorPrefs, }, #[codec(index = 5)] #[doc = "Declare the desire to nominate `targets` for the origin controller."] #[doc = ""] #[doc = "Effects will be felt at the beginning of the next era."] #[doc = ""] #[doc = "The dispatch origin for this call must be _Signed_ by the controller, not the stash."] #[doc = ""] #[doc = "## Complexity"] #[doc = "- The transaction's complexity is proportional to the size of `targets` (N)"] #[doc = "which is capped at CompactAssignments::LIMIT (T::MaxNominations)."] #[doc = "- Both the reads and writes follow a similar pattern."] nominate { targets: ::std::vec::Vec< ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, >, }, #[codec(index = 6)] #[doc = "Declare no desire to either validate or nominate."] #[doc = ""] #[doc = "Effects will be felt at the beginning of the next era."] #[doc = ""] #[doc = "The dispatch origin for this call must be _Signed_ by the controller, not the stash."] #[doc = ""] #[doc = "## Complexity"] #[doc = "- Independent of the arguments. Insignificant complexity."] #[doc = "- Contains one read."] #[doc = "- Writes are limited to the `origin` account key."] chill, #[codec(index = 7)] #[doc = "(Re-)set the payment target for a controller."] #[doc = ""] #[doc = "Effects will be felt instantly (as soon as this function is completed successfully)."] #[doc = ""] #[doc = "The dispatch origin for this call must be _Signed_ by the controller, not the stash."] #[doc = ""] #[doc = "## Complexity"] #[doc = "- O(1)"] #[doc = "- Independent of the arguments. Insignificant complexity."] #[doc = "- Contains a limited number of reads."] #[doc = "- Writes are limited to the `origin` account key."] #[doc = "---------"] set_payee { payee: runtime_types::pallet_staking::RewardDestination< ::subxt::utils::AccountId32, >, }, #[codec(index = 8)] #[doc = "(Re-)set the controller of a stash."] #[doc = ""] #[doc = "Effects will be felt instantly (as soon as this function is completed successfully)."] #[doc = ""] #[doc = "The dispatch origin for this call must be _Signed_ by the stash, not the controller."] #[doc = ""] #[doc = "## Complexity"] #[doc = "O(1)"] #[doc = "- Independent of the arguments. Insignificant complexity."] #[doc = "- Contains a limited number of reads."] #[doc = "- Writes are limited to the `origin` account key."] set_controller { controller: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, }, #[codec(index = 9)] #[doc = "Sets the ideal number of validators."] #[doc = ""] #[doc = "The dispatch origin must be Root."] #[doc = ""] #[doc = "## Complexity"] #[doc = "O(1)"] set_validator_count { #[codec(compact)] new: ::core::primitive::u32, }, #[codec(index = 10)] #[doc = "Increments the ideal number of validators upto maximum of"] #[doc = "`ElectionProviderBase::MaxWinners`."] #[doc = ""] #[doc = "The dispatch origin must be Root."] #[doc = ""] #[doc = "## Complexity"] #[doc = "Same as [`Self::set_validator_count`]."] increase_validator_count { #[codec(compact)] additional: ::core::primitive::u32, }, #[codec(index = 11)] #[doc = "Scale up the ideal number of validators by a factor upto maximum of"] #[doc = "`ElectionProviderBase::MaxWinners`."] #[doc = ""] #[doc = "The dispatch origin must be Root."] #[doc = ""] #[doc = "## Complexity"] #[doc = "Same as [`Self::set_validator_count`]."] scale_validator_count { factor: runtime_types::sp_arithmetic::per_things::Percent, }, #[codec(index = 12)] #[doc = "Force there to be no new eras indefinitely."] #[doc = ""] #[doc = "The dispatch origin must be Root."] #[doc = ""] #[doc = "# Warning"] #[doc = ""] #[doc = "The election process starts multiple blocks before the end of the era."] #[doc = "Thus the election process may be ongoing when this is called. In this case the"] #[doc = "election will continue until the next era is triggered."] #[doc = ""] #[doc = "## Complexity"] #[doc = "- No arguments."] #[doc = "- Weight: O(1)"] force_no_eras, #[codec(index = 13)] #[doc = "Force there to be a new era at the end of the next session. After this, it will be"] #[doc = "reset to normal (non-forced) behaviour."] #[doc = ""] #[doc = "The dispatch origin must be Root."] #[doc = ""] #[doc = "# Warning"] #[doc = ""] #[doc = "The election process starts multiple blocks before the end of the era."] #[doc = "If this is called just before a new era is triggered, the election process may not"] #[doc = "have enough blocks to get a result."] #[doc = ""] #[doc = "## Complexity"] #[doc = "- No arguments."] #[doc = "- Weight: O(1)"] force_new_era, #[codec(index = 14)] #[doc = "Set the validators who cannot be slashed (if any)."] #[doc = ""] #[doc = "The dispatch origin must be Root."] set_invulnerables { invulnerables: ::std::vec::Vec<::subxt::utils::AccountId32>, }, #[codec(index = 15)] #[doc = "Force a current staker to become completely unstaked, immediately."] #[doc = ""] #[doc = "The dispatch origin must be Root."] force_unstake { stash: ::subxt::utils::AccountId32, num_slashing_spans: ::core::primitive::u32, }, #[codec(index = 16)] #[doc = "Force there to be a new era at the end of sessions indefinitely."] #[doc = ""] #[doc = "The dispatch origin must be Root."] #[doc = ""] #[doc = "# Warning"] #[doc = ""] #[doc = "The election process starts multiple blocks before the end of the era."] #[doc = "If this is called just before a new era is triggered, the election process may not"] #[doc = "have enough blocks to get a result."] force_new_era_always, #[codec(index = 17)] #[doc = "Cancel enactment of a deferred slash."] #[doc = ""] #[doc = "Can be called by the `T::AdminOrigin`."] #[doc = ""] #[doc = "Parameters: era and indices of the slashes for that era to kill."] cancel_deferred_slash { era: ::core::primitive::u32, slash_indices: ::std::vec::Vec<::core::primitive::u32>, }, #[codec(index = 18)] #[doc = "Pay out all the stakers behind a single validator for a single era."] #[doc = ""] #[doc = "- `validator_stash` is the stash account of the validator. Their nominators, up to"] #[doc = " `T::MaxNominatorRewardedPerValidator`, will also receive their rewards."] #[doc = "- `era` may be any era between `[current_era - history_depth; current_era]`."] #[doc = ""] #[doc = "The origin of this call must be _Signed_. Any account can call this function, even if"] #[doc = "it is not one of the stakers."] #[doc = ""] #[doc = "## Complexity"] #[doc = "- At most O(MaxNominatorRewardedPerValidator)."] payout_stakers { validator_stash: ::subxt::utils::AccountId32, era: ::core::primitive::u32, }, #[codec(index = 19)] #[doc = "Rebond a portion of the stash scheduled to be unlocked."] #[doc = ""] #[doc = "The dispatch origin must be signed by the controller."] #[doc = ""] #[doc = "## Complexity"] #[doc = "- Time complexity: O(L), where L is unlocking chunks"] #[doc = "- Bounded by `MaxUnlockingChunks`."] rebond { #[codec(compact)] value: ::core::primitive::u128, }, #[codec(index = 20)] #[doc = "Remove all data structures concerning a staker/stash once it is at a state where it can"] #[doc = "be considered `dust` in the staking system. The requirements are:"] #[doc = ""] #[doc = "1. the `total_balance` of the stash is below existential deposit."] #[doc = "2. or, the `ledger.total` of the stash is below existential deposit."] #[doc = ""] #[doc = "The former can happen in cases like a slash; the latter when a fully unbonded account"] #[doc = "is still receiving staking rewards in `RewardDestination::Staked`."] #[doc = ""] #[doc = "It can be called by anyone, as long as `stash` meets the above requirements."] #[doc = ""] #[doc = "Refunds the transaction fees upon successful execution."] reap_stash { stash: ::subxt::utils::AccountId32, num_slashing_spans: ::core::primitive::u32, }, #[codec(index = 21)] #[doc = "Remove the given nominations from the calling validator."] #[doc = ""] #[doc = "Effects will be felt at the beginning of the next era."] #[doc = ""] #[doc = "The dispatch origin for this call must be _Signed_ by the controller, not the stash."] #[doc = ""] #[doc = "- `who`: A list of nominator stash accounts who are nominating this validator which"] #[doc = " should no longer be nominating this validator."] #[doc = ""] #[doc = "Note: Making this call only makes sense if you first set the validator preferences to"] #[doc = "block any further nominations."] kick { who: ::std::vec::Vec< ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, >, }, #[codec(index = 22)] #[doc = "Update the various staking configurations ."] #[doc = ""] #[doc = "* `min_nominator_bond`: The minimum active bond needed to be a nominator."] #[doc = "* `min_validator_bond`: The minimum active bond needed to be a validator."] #[doc = "* `max_nominator_count`: The max number of users who can be a nominator at once. When"] #[doc = " set to `None`, no limit is enforced."] #[doc = "* `max_validator_count`: The max number of users who can be a validator at once. When"] #[doc = " set to `None`, no limit is enforced."] #[doc = "* `chill_threshold`: The ratio of `max_nominator_count` or `max_validator_count` which"] #[doc = " should be filled in order for the `chill_other` transaction to work."] #[doc = "* `min_commission`: The minimum amount of commission that each validators must maintain."] #[doc = " This is checked only upon calling `validate`. Existing validators are not affected."] #[doc = ""] #[doc = "RuntimeOrigin must be Root to call this function."] #[doc = ""] #[doc = "NOTE: Existing nominators and validators will not be affected by this update."] #[doc = "to kick people under the new limits, `chill_other` should be called."] set_staking_configs { min_nominator_bond: runtime_types::pallet_staking::pallet::pallet::ConfigOp< ::core::primitive::u128, >, min_validator_bond: runtime_types::pallet_staking::pallet::pallet::ConfigOp< ::core::primitive::u128, >, max_nominator_count: runtime_types::pallet_staking::pallet::pallet::ConfigOp< ::core::primitive::u32, >, max_validator_count: runtime_types::pallet_staking::pallet::pallet::ConfigOp< ::core::primitive::u32, >, chill_threshold: runtime_types::pallet_staking::pallet::pallet::ConfigOp< runtime_types::sp_arithmetic::per_things::Percent, >, min_commission: runtime_types::pallet_staking::pallet::pallet::ConfigOp< runtime_types::sp_arithmetic::per_things::Perbill, >, }, #[codec(index = 23)] #[doc = "Declare a `controller` to stop participating as either a validator or nominator."] #[doc = ""] #[doc = "Effects will be felt at the beginning of the next era."] #[doc = ""] #[doc = "The dispatch origin for this call must be _Signed_, but can be called by anyone."] #[doc = ""] #[doc = "If the caller is the same as the controller being targeted, then no further checks are"] #[doc = "enforced, and this function behaves just like `chill`."] #[doc = ""] #[doc = "If the caller is different than the controller being targeted, the following conditions"] #[doc = "must be met:"] #[doc = ""] #[doc = "* `controller` must belong to a nominator who has become non-decodable,"] #[doc = ""] #[doc = "Or:"] #[doc = ""] #[doc = "* A `ChillThreshold` must be set and checked which defines how close to the max"] #[doc = " nominators or validators we must reach before users can start chilling one-another."] #[doc = "* A `MaxNominatorCount` and `MaxValidatorCount` must be set which is used to determine"] #[doc = " how close we are to the threshold."] #[doc = "* A `MinNominatorBond` and `MinValidatorBond` must be set and checked, which determines"] #[doc = " if this is a person that should be chilled because they have not met the threshold"] #[doc = " bond required."] #[doc = ""] #[doc = "This can be helpful if bond requirements are updated, and we need to remove old users"] #[doc = "who do not satisfy these requirements."] chill_other { controller: ::subxt::utils::AccountId32, }, #[codec(index = 24)] #[doc = "Force a validator to have at least the minimum commission. This will not affect a"] #[doc = "validator who already has a commission greater than or equal to the minimum. Any account"] #[doc = "can call this."] force_apply_min_commission { validator_stash: ::subxt::utils::AccountId32, }, #[codec(index = 25)] #[doc = "Sets the minimum amount of commission that each validators must maintain."] #[doc = ""] #[doc = "This call has lower privilege requirements than `set_staking_config` and can be called"] #[doc = "by the `T::AdminOrigin`. Root can always call this."] set_min_commission { new: runtime_types::sp_arithmetic::per_things::Perbill, }, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum ConfigOp<_0> { #[codec(index = 0)] Noop, #[codec(index = 1)] Set(_0), #[codec(index = 2)] Remove, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] pub enum Error { #[codec(index = 0)] #[doc = "Not a controller account."] NotController, #[codec(index = 1)] #[doc = "Not a stash account."] NotStash, #[codec(index = 2)] #[doc = "Stash is already bonded."] AlreadyBonded, #[codec(index = 3)] #[doc = "Controller is already paired."] AlreadyPaired, #[codec(index = 4)] #[doc = "Targets cannot be empty."] EmptyTargets, #[codec(index = 5)] #[doc = "Duplicate index."] DuplicateIndex, #[codec(index = 6)] #[doc = "Slash record index out of bounds."] InvalidSlashIndex, #[codec(index = 7)] #[doc = "Cannot have a validator or nominator role, with value less than the minimum defined by"] #[doc = "governance (see `MinValidatorBond` and `MinNominatorBond`). If unbonding is the"] #[doc = "intention, `chill` first to remove one's role as validator/nominator."] InsufficientBond, #[codec(index = 8)] #[doc = "Can not schedule more unlock chunks."] NoMoreChunks, #[codec(index = 9)] #[doc = "Can not rebond without unlocking chunks."] NoUnlockChunk, #[codec(index = 10)] #[doc = "Attempting to target a stash that still has funds."] FundedTarget, #[codec(index = 11)] #[doc = "Invalid era to reward."] InvalidEraToReward, #[codec(index = 12)] #[doc = "Invalid number of nominations."] InvalidNumberOfNominations, #[codec(index = 13)] #[doc = "Items are not sorted and unique."] NotSortedAndUnique, #[codec(index = 14)] #[doc = "Rewards for this era have already been claimed for this validator."] AlreadyClaimed, #[codec(index = 15)] #[doc = "Incorrect previous history depth input provided."] IncorrectHistoryDepth, #[codec(index = 16)] #[doc = "Incorrect number of slashing spans provided."] IncorrectSlashingSpans, #[codec(index = 17)] #[doc = "Internal state has become somehow corrupted and the operation cannot continue."] BadState, #[codec(index = 18)] #[doc = "Too many nomination targets supplied."] TooManyTargets, #[codec(index = 19)] #[doc = "A nomination target was supplied that was blocked or otherwise not a validator."] BadTarget, #[codec(index = 20)] #[doc = "The user has enough bond and thus cannot be chilled forcefully by an external person."] CannotChillOther, #[codec(index = 21)] #[doc = "There are too many nominators in the system. Governance needs to adjust the staking"] #[doc = "settings to keep things safe for the runtime."] TooManyNominators, #[codec(index = 22)] #[doc = "There are too many validator candidates in the system. Governance needs to adjust the"] #[doc = "staking settings to keep things safe for the runtime."] TooManyValidators, #[codec(index = 23)] #[doc = "Commission is too low. Must be at least `MinCommission`."] CommissionTooLow, #[codec(index = 24)] #[doc = "Some bound is not met."] BoundNotMet, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] pub enum Event { #[codec(index = 0)] #[doc = "The era payout has been set; the first balance is the validator-payout; the second is"] #[doc = "the remainder from the maximum amount of reward."] EraPaid { era_index: ::core::primitive::u32, validator_payout: ::core::primitive::u128, remainder: ::core::primitive::u128, }, #[codec(index = 1)] #[doc = "The nominator has been rewarded by this amount."] Rewarded { stash: ::subxt::utils::AccountId32, amount: ::core::primitive::u128, }, #[codec(index = 2)] #[doc = "A staker (validator or nominator) has been slashed by the given amount."] Slashed { staker: ::subxt::utils::AccountId32, amount: ::core::primitive::u128, }, #[codec(index = 3)] #[doc = "A slash for the given validator, for the given percentage of their stake, at the given"] #[doc = "era as been reported."] SlashReported { validator: ::subxt::utils::AccountId32, fraction: runtime_types::sp_arithmetic::per_things::Perbill, slash_era: ::core::primitive::u32, }, #[codec(index = 4)] #[doc = "An old slashing report from a prior era was discarded because it could"] #[doc = "not be processed."] OldSlashingReportDiscarded { session_index: ::core::primitive::u32, }, #[codec(index = 5)] #[doc = "A new set of stakers was elected."] StakersElected, #[codec(index = 6)] #[doc = "An account has bonded this amount. \\[stash, amount\\]"] #[doc = ""] #[doc = "NOTE: This event is only emitted when funds are bonded via a dispatchable. Notably,"] #[doc = "it will not be emitted for staking rewards when they are added to stake."] Bonded { stash: ::subxt::utils::AccountId32, amount: ::core::primitive::u128, }, #[codec(index = 7)] #[doc = "An account has unbonded this amount."] Unbonded { stash: ::subxt::utils::AccountId32, amount: ::core::primitive::u128, }, #[codec(index = 8)] #[doc = "An account has called `withdraw_unbonded` and removed unbonding chunks worth `Balance`"] #[doc = "from the unlocking queue."] Withdrawn { stash: ::subxt::utils::AccountId32, amount: ::core::primitive::u128, }, #[codec(index = 9)] #[doc = "A nominator has been kicked from a validator."] Kicked { nominator: ::subxt::utils::AccountId32, stash: ::subxt::utils::AccountId32, }, #[codec(index = 10)] #[doc = "The election failed. No new era is planned."] StakingElectionFailed, #[codec(index = 11)] #[doc = "An account has stopped participating as either a validator or nominator."] Chilled { stash: ::subxt::utils::AccountId32 }, #[codec(index = 12)] #[doc = "The stakers' rewards are getting paid."] PayoutStarted { era_index: ::core::primitive::u32, validator_stash: ::subxt::utils::AccountId32, }, #[codec(index = 13)] #[doc = "A validator has set their preferences."] ValidatorPrefsSet { stash: ::subxt::utils::AccountId32, prefs: runtime_types::pallet_staking::ValidatorPrefs, }, #[codec(index = 14)] #[doc = "A new force era mode was set."] ForceEra { mode: runtime_types::pallet_staking::Forcing, }, } } } pub mod slashing { use super::runtime_types; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SlashingSpans { pub span_index: ::core::primitive::u32, pub last_start: ::core::primitive::u32, pub last_nonzero_slash: ::core::primitive::u32, pub prior: ::std::vec::Vec<::core::primitive::u32>, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SpanRecord<_0> { pub slashed: _0, pub paid_out: _0, } } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ActiveEraInfo { pub index: ::core::primitive::u32, pub start: ::core::option::Option<::core::primitive::u64>, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct EraRewardPoints<_0> { pub total: ::core::primitive::u32, pub individual: ::subxt::utils::KeyedVec<_0, ::core::primitive::u32>, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Exposure<_0, _1> { #[codec(compact)] pub total: _1, #[codec(compact)] pub own: _1, pub others: ::std::vec::Vec>, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum Forcing { #[codec(index = 0)] NotForcing, #[codec(index = 1)] ForceNew, #[codec(index = 2)] ForceNone, #[codec(index = 3)] ForceAlways, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct IndividualExposure<_0, _1> { pub who: _0, #[codec(compact)] pub value: _1, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Nominations { pub targets: runtime_types::bounded_collections::bounded_vec::BoundedVec< ::subxt::utils::AccountId32, >, pub submitted_in: ::core::primitive::u32, pub suppressed: ::core::primitive::bool, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum RewardDestination<_0> { #[codec(index = 0)] Staked, #[codec(index = 1)] Stash, #[codec(index = 2)] Controller, #[codec(index = 3)] Account(_0), #[codec(index = 4)] None, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct StakingLedger { pub stash: ::subxt::utils::AccountId32, #[codec(compact)] pub total: ::core::primitive::u128, #[codec(compact)] pub active: ::core::primitive::u128, pub unlocking: runtime_types::bounded_collections::bounded_vec::BoundedVec< runtime_types::pallet_staking::UnlockChunk<::core::primitive::u128>, >, pub claimed_rewards: runtime_types::bounded_collections::bounded_vec::BoundedVec< ::core::primitive::u32, >, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct UnappliedSlash<_0, _1> { pub validator: _0, pub own: _1, pub others: ::std::vec::Vec<(_0, _1)>, pub reporters: ::std::vec::Vec<_0>, pub payout: _1, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct UnlockChunk<_0> { #[codec(compact)] pub value: _0, #[codec(compact)] pub era: ::core::primitive::u32, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ValidatorPrefs { #[codec(compact)] pub commission: runtime_types::sp_arithmetic::per_things::Perbill, pub blocked: ::core::primitive::bool, } } pub mod pallet_timestamp { use super::runtime_types; pub mod pallet { use super::runtime_types; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] pub enum Call { #[codec(index = 0)] #[doc = "Set the current time."] #[doc = ""] #[doc = "This call should be invoked exactly once per block. It will panic at the finalization"] #[doc = "phase, if this call hasn't been invoked by that time."] #[doc = ""] #[doc = "The timestamp should be greater than the previous one by the amount specified by"] #[doc = "`MinimumPeriod`."] #[doc = ""] #[doc = "The dispatch origin for this call must be `Inherent`."] #[doc = ""] #[doc = "## Complexity"] #[doc = "- `O(1)` (Note that implementations of `OnTimestampSet` must also be `O(1)`)"] #[doc = "- 1 storage read and 1 storage mutation (codec `O(1)`). (because of `DidUpdate::take` in"] #[doc = " `on_finalize`)"] #[doc = "- 1 event handler `on_timestamp_set`. Must be `O(1)`."] set { #[codec(compact)] now: ::core::primitive::u64, }, } } } pub mod pallet_tips { use super::runtime_types; pub mod pallet { use super::runtime_types; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] pub enum Call { #[codec(index = 0)] #[doc = "Report something `reason` that deserves a tip and claim any eventual the finder's fee."] #[doc = ""] #[doc = "The dispatch origin for this call must be _Signed_."] #[doc = ""] #[doc = "Payment: `TipReportDepositBase` will be reserved from the origin account, as well as"] #[doc = "`DataDepositPerByte` for each byte in `reason`."] #[doc = ""] #[doc = "- `reason`: The reason for, or the thing that deserves, the tip; generally this will be"] #[doc = " a UTF-8-encoded URL."] #[doc = "- `who`: The account which should be credited for the tip."] #[doc = ""] #[doc = "Emits `NewTip` if successful."] #[doc = ""] #[doc = "## Complexity"] #[doc = "- `O(R)` where `R` length of `reason`."] #[doc = " - encoding and hashing of 'reason'"] report_awesome { reason: ::std::vec::Vec<::core::primitive::u8>, who: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, }, #[codec(index = 1)] #[doc = "Retract a prior tip-report from `report_awesome`, and cancel the process of tipping."] #[doc = ""] #[doc = "If successful, the original deposit will be unreserved."] #[doc = ""] #[doc = "The dispatch origin for this call must be _Signed_ and the tip identified by `hash`"] #[doc = "must have been reported by the signing account through `report_awesome` (and not"] #[doc = "through `tip_new`)."] #[doc = ""] #[doc = "- `hash`: The identity of the open tip for which a tip value is declared. This is formed"] #[doc = " as the hash of the tuple of the original tip `reason` and the beneficiary account ID."] #[doc = ""] #[doc = "Emits `TipRetracted` if successful."] #[doc = ""] #[doc = "## Complexity"] #[doc = "- `O(1)`"] #[doc = " - Depends on the length of `T::Hash` which is fixed."] retract_tip { hash: ::subxt::utils::H256 }, #[codec(index = 2)] #[doc = "Give a tip for something new; no finder's fee will be taken."] #[doc = ""] #[doc = "The dispatch origin for this call must be _Signed_ and the signing account must be a"] #[doc = "member of the `Tippers` set."] #[doc = ""] #[doc = "- `reason`: The reason for, or the thing that deserves, the tip; generally this will be"] #[doc = " a UTF-8-encoded URL."] #[doc = "- `who`: The account which should be credited for the tip."] #[doc = "- `tip_value`: The amount of tip that the sender would like to give. The median tip"] #[doc = " value of active tippers will be given to the `who`."] #[doc = ""] #[doc = "Emits `NewTip` if successful."] #[doc = ""] #[doc = "## Complexity"] #[doc = "- `O(R + T)` where `R` length of `reason`, `T` is the number of tippers."] #[doc = " - `O(T)`: decoding `Tipper` vec of length `T`. `T` is charged as upper bound given by"] #[doc = " `ContainsLengthBound`. The actual cost depends on the implementation of"] #[doc = " `T::Tippers`."] #[doc = " - `O(R)`: hashing and encoding of reason of length `R`"] tip_new { reason: ::std::vec::Vec<::core::primitive::u8>, who: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, #[codec(compact)] tip_value: ::core::primitive::u128, }, #[codec(index = 3)] #[doc = "Declare a tip value for an already-open tip."] #[doc = ""] #[doc = "The dispatch origin for this call must be _Signed_ and the signing account must be a"] #[doc = "member of the `Tippers` set."] #[doc = ""] #[doc = "- `hash`: The identity of the open tip for which a tip value is declared. This is formed"] #[doc = " as the hash of the tuple of the hash of the original tip `reason` and the beneficiary"] #[doc = " account ID."] #[doc = "- `tip_value`: The amount of tip that the sender would like to give. The median tip"] #[doc = " value of active tippers will be given to the `who`."] #[doc = ""] #[doc = "Emits `TipClosing` if the threshold of tippers has been reached and the countdown period"] #[doc = "has started."] #[doc = ""] #[doc = "## Complexity"] #[doc = "- `O(T)` where `T` is the number of tippers. decoding `Tipper` vec of length `T`, insert"] #[doc = " tip and check closing, `T` is charged as upper bound given by `ContainsLengthBound`."] #[doc = " The actual cost depends on the implementation of `T::Tippers`."] #[doc = ""] #[doc = " Actually weight could be lower as it depends on how many tips are in `OpenTip` but it"] #[doc = " is weighted as if almost full i.e of length `T-1`."] tip { hash: ::subxt::utils::H256, #[codec(compact)] tip_value: ::core::primitive::u128, }, #[codec(index = 4)] #[doc = "Close and payout a tip."] #[doc = ""] #[doc = "The dispatch origin for this call must be _Signed_."] #[doc = ""] #[doc = "The tip identified by `hash` must have finished its countdown period."] #[doc = ""] #[doc = "- `hash`: The identity of the open tip for which a tip value is declared. This is formed"] #[doc = " as the hash of the tuple of the original tip `reason` and the beneficiary account ID."] #[doc = ""] #[doc = "## Complexity"] #[doc = "- : `O(T)` where `T` is the number of tippers. decoding `Tipper` vec of length `T`. `T`"] #[doc = " is charged as upper bound given by `ContainsLengthBound`. The actual cost depends on"] #[doc = " the implementation of `T::Tippers`."] close_tip { hash: ::subxt::utils::H256 }, #[codec(index = 5)] #[doc = "Remove and slash an already-open tip."] #[doc = ""] #[doc = "May only be called from `T::RejectOrigin`."] #[doc = ""] #[doc = "As a result, the finder is slashed and the deposits are lost."] #[doc = ""] #[doc = "Emits `TipSlashed` if successful."] #[doc = ""] #[doc = "## Complexity"] #[doc = "- O(1)."] slash_tip { hash: ::subxt::utils::H256 }, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] pub enum Error { #[codec(index = 0)] #[doc = "The reason given is just too big."] ReasonTooBig, #[codec(index = 1)] #[doc = "The tip was already found/started."] AlreadyKnown, #[codec(index = 2)] #[doc = "The tip hash is unknown."] UnknownTip, #[codec(index = 3)] #[doc = "The account attempting to retract the tip is not the finder of the tip."] NotFinder, #[codec(index = 4)] #[doc = "The tip cannot be claimed/closed because there are not enough tippers yet."] StillOpen, #[codec(index = 5)] #[doc = "The tip cannot be claimed/closed because it's still in the countdown period."] Premature, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] pub enum Event { #[codec(index = 0)] #[doc = "A new tip suggestion has been opened."] NewTip { tip_hash: ::subxt::utils::H256 }, #[codec(index = 1)] #[doc = "A tip suggestion has reached threshold and is closing."] TipClosing { tip_hash: ::subxt::utils::H256 }, #[codec(index = 2)] #[doc = "A tip suggestion has been closed."] TipClosed { tip_hash: ::subxt::utils::H256, who: ::subxt::utils::AccountId32, payout: ::core::primitive::u128, }, #[codec(index = 3)] #[doc = "A tip suggestion has been retracted."] TipRetracted { tip_hash: ::subxt::utils::H256 }, #[codec(index = 4)] #[doc = "A tip suggestion has been slashed."] TipSlashed { tip_hash: ::subxt::utils::H256, finder: ::subxt::utils::AccountId32, deposit: ::core::primitive::u128, }, } } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct OpenTip<_0, _1, _2, _3> { pub reason: _3, pub who: _0, pub finder: _0, pub deposit: _1, pub closes: ::core::option::Option<_2>, pub tips: ::std::vec::Vec<(_0, _1)>, pub finders_fee: ::core::primitive::bool, } } pub mod pallet_transaction_payment { use super::runtime_types; pub mod pallet { use super::runtime_types; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] pub enum Event { #[codec(index = 0)] #[doc = "A transaction fee `actual_fee`, of which `tip` was added to the minimum inclusion fee,"] #[doc = "has been paid by `who`."] TransactionFeePaid { who: ::subxt::utils::AccountId32, actual_fee: ::core::primitive::u128, tip: ::core::primitive::u128, }, } } pub mod types { use super::runtime_types; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct FeeDetails<_0> { pub inclusion_fee: ::core::option::Option< runtime_types::pallet_transaction_payment::types::InclusionFee<_0>, >, pub tip: _0, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct InclusionFee<_0> { pub base_fee: _0, pub len_fee: _0, pub adjusted_weight_fee: _0, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct RuntimeDispatchInfo<_0, _1> { pub weight: _1, pub class: runtime_types::frame_support::dispatch::DispatchClass, pub partial_fee: _0, } } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ChargeTransactionPayment(#[codec(compact)] pub ::core::primitive::u128); #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum Releases { #[codec(index = 0)] V1Ancient, #[codec(index = 1)] V2, } } pub mod pallet_treasury { use super::runtime_types; pub mod pallet { use super::runtime_types; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] pub enum Call { #[codec(index = 0)] #[doc = "Put forward a suggestion for spending. A deposit proportional to the value"] #[doc = "is reserved and slashed if the proposal is rejected. It is returned once the"] #[doc = "proposal is awarded."] #[doc = ""] #[doc = "## Complexity"] #[doc = "- O(1)"] propose_spend { #[codec(compact)] value: ::core::primitive::u128, beneficiary: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, }, #[codec(index = 1)] #[doc = "Reject a proposed spend. The original deposit will be slashed."] #[doc = ""] #[doc = "May only be called from `T::RejectOrigin`."] #[doc = ""] #[doc = "## Complexity"] #[doc = "- O(1)"] reject_proposal { #[codec(compact)] proposal_id: ::core::primitive::u32, }, #[codec(index = 2)] #[doc = "Approve a proposal. At a later time, the proposal will be allocated to the beneficiary"] #[doc = "and the original deposit will be returned."] #[doc = ""] #[doc = "May only be called from `T::ApproveOrigin`."] #[doc = ""] #[doc = "## Complexity"] #[doc = " - O(1)."] approve_proposal { #[codec(compact)] proposal_id: ::core::primitive::u32, }, #[codec(index = 3)] #[doc = "Propose and approve a spend of treasury funds."] #[doc = ""] #[doc = "- `origin`: Must be `SpendOrigin` with the `Success` value being at least `amount`."] #[doc = "- `amount`: The amount to be transferred from the treasury to the `beneficiary`."] #[doc = "- `beneficiary`: The destination account for the transfer."] #[doc = ""] #[doc = "NOTE: For record-keeping purposes, the proposer is deemed to be equivalent to the"] #[doc = "beneficiary."] spend { #[codec(compact)] amount: ::core::primitive::u128, beneficiary: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, }, #[codec(index = 4)] #[doc = "Force a previously approved proposal to be removed from the approval queue."] #[doc = "The original deposit will no longer be returned."] #[doc = ""] #[doc = "May only be called from `T::RejectOrigin`."] #[doc = "- `proposal_id`: The index of a proposal"] #[doc = ""] #[doc = "## Complexity"] #[doc = "- O(A) where `A` is the number of approvals"] #[doc = ""] #[doc = "Errors:"] #[doc = "- `ProposalNotApproved`: The `proposal_id` supplied was not found in the approval queue,"] #[doc = "i.e., the proposal has not been approved. This could also mean the proposal does not"] #[doc = "exist altogether, thus there is no way it would have been approved in the first place."] remove_approval { #[codec(compact)] proposal_id: ::core::primitive::u32, }, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Error for the treasury pallet."] pub enum Error { #[codec(index = 0)] #[doc = "Proposer's balance is too low."] InsufficientProposersBalance, #[codec(index = 1)] #[doc = "No proposal or bounty at that index."] InvalidIndex, #[codec(index = 2)] #[doc = "Too many approvals in the queue."] TooManyApprovals, #[codec(index = 3)] #[doc = "The spend origin is valid but the amount it is allowed to spend is lower than the"] #[doc = "amount to be spent."] InsufficientPermission, #[codec(index = 4)] #[doc = "Proposal has not been approved."] ProposalNotApproved, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] pub enum Event { #[codec(index = 0)] #[doc = "New proposal."] Proposed { proposal_index: ::core::primitive::u32, }, #[codec(index = 1)] #[doc = "We have ended a spend period and will now allocate funds."] Spending { budget_remaining: ::core::primitive::u128, }, #[codec(index = 2)] #[doc = "Some funds have been allocated."] Awarded { proposal_index: ::core::primitive::u32, award: ::core::primitive::u128, account: ::subxt::utils::AccountId32, }, #[codec(index = 3)] #[doc = "A proposal was rejected; funds were slashed."] Rejected { proposal_index: ::core::primitive::u32, slashed: ::core::primitive::u128, }, #[codec(index = 4)] #[doc = "Some of our funds have been burnt."] Burnt { burnt_funds: ::core::primitive::u128, }, #[codec(index = 5)] #[doc = "Spending has finished; this is the amount that rolls over until next spend."] Rollover { rollover_balance: ::core::primitive::u128, }, #[codec(index = 6)] #[doc = "Some funds have been deposited."] Deposit { value: ::core::primitive::u128 }, #[codec(index = 7)] #[doc = "A new spend proposal has been approved."] SpendApproved { proposal_index: ::core::primitive::u32, amount: ::core::primitive::u128, beneficiary: ::subxt::utils::AccountId32, }, #[codec(index = 8)] #[doc = "The inactive funds of the pallet have been updated."] UpdatedInactive { reactivated: ::core::primitive::u128, deactivated: ::core::primitive::u128, }, } } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Proposal<_0, _1> { pub proposer: _0, pub value: _1, pub beneficiary: _0, pub bond: _1, } } pub mod pallet_utility { use super::runtime_types; pub mod pallet { use super::runtime_types; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] pub enum Call { #[codec(index = 0)] #[doc = "Send a batch of dispatch calls."] #[doc = ""] #[doc = "May be called from any origin except `None`."] #[doc = ""] #[doc = "- `calls`: The calls to be dispatched from the same origin. The number of call must not"] #[doc = " exceed the constant: `batched_calls_limit` (available in constant metadata)."] #[doc = ""] #[doc = "If origin is root then the calls are dispatched without checking origin filter. (This"] #[doc = "includes bypassing `frame_system::Config::BaseCallFilter`)."] #[doc = ""] #[doc = "## Complexity"] #[doc = "- O(C) where C is the number of calls to be batched."] #[doc = ""] #[doc = "This will return `Ok` in all circumstances. To determine the success of the batch, an"] #[doc = "event is deposited. If a call failed and the batch was interrupted, then the"] #[doc = "`BatchInterrupted` event is deposited, along with the number of successful calls made"] #[doc = "and the error of the failed call. If all were successful, then the `BatchCompleted`"] #[doc = "event is deposited."] batch { calls: ::std::vec::Vec, }, #[codec(index = 1)] #[doc = "Send a call through an indexed pseudonym of the sender."] #[doc = ""] #[doc = "Filter from origin are passed along. The call will be dispatched with an origin which"] #[doc = "use the same filter as the origin of this call."] #[doc = ""] #[doc = "NOTE: If you need to ensure that any account-based filtering is not honored (i.e."] #[doc = "because you expect `proxy` to have been used prior in the call stack and you do not want"] #[doc = "the call restrictions to apply to any sub-accounts), then use `as_multi_threshold_1`"] #[doc = "in the Multisig pallet instead."] #[doc = ""] #[doc = "NOTE: Prior to version *12, this was called `as_limited_sub`."] #[doc = ""] #[doc = "The dispatch origin for this call must be _Signed_."] as_derivative { index: ::core::primitive::u16, call: ::std::boxed::Box, }, #[codec(index = 2)] #[doc = "Send a batch of dispatch calls and atomically execute them."] #[doc = "The whole transaction will rollback and fail if any of the calls failed."] #[doc = ""] #[doc = "May be called from any origin except `None`."] #[doc = ""] #[doc = "- `calls`: The calls to be dispatched from the same origin. The number of call must not"] #[doc = " exceed the constant: `batched_calls_limit` (available in constant metadata)."] #[doc = ""] #[doc = "If origin is root then the calls are dispatched without checking origin filter. (This"] #[doc = "includes bypassing `frame_system::Config::BaseCallFilter`)."] #[doc = ""] #[doc = "## Complexity"] #[doc = "- O(C) where C is the number of calls to be batched."] batch_all { calls: ::std::vec::Vec, }, #[codec(index = 3)] #[doc = "Dispatches a function call with a provided origin."] #[doc = ""] #[doc = "The dispatch origin for this call must be _Root_."] #[doc = ""] #[doc = "## Complexity"] #[doc = "- O(1)."] dispatch_as { as_origin: ::std::boxed::Box, call: ::std::boxed::Box, }, #[codec(index = 4)] #[doc = "Send a batch of dispatch calls."] #[doc = "Unlike `batch`, it allows errors and won't interrupt."] #[doc = ""] #[doc = "May be called from any origin except `None`."] #[doc = ""] #[doc = "- `calls`: The calls to be dispatched from the same origin. The number of call must not"] #[doc = " exceed the constant: `batched_calls_limit` (available in constant metadata)."] #[doc = ""] #[doc = "If origin is root then the calls are dispatch without checking origin filter. (This"] #[doc = "includes bypassing `frame_system::Config::BaseCallFilter`)."] #[doc = ""] #[doc = "## Complexity"] #[doc = "- O(C) where C is the number of calls to be batched."] force_batch { calls: ::std::vec::Vec, }, #[codec(index = 5)] #[doc = "Dispatch a function call with a specified weight."] #[doc = ""] #[doc = "This function does not check the weight of the call, and instead allows the"] #[doc = "Root origin to specify the weight of the call."] #[doc = ""] #[doc = "The dispatch origin for this call must be _Root_."] with_weight { call: ::std::boxed::Box, weight: runtime_types::sp_weights::weight_v2::Weight, }, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] pub enum Error { #[codec(index = 0)] #[doc = "Too many calls batched."] TooManyCalls, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] pub enum Event { #[codec(index = 0)] #[doc = "Batch of dispatches did not complete fully. Index of first failing dispatch given, as"] #[doc = "well as the error."] BatchInterrupted { index: ::core::primitive::u32, error: runtime_types::sp_runtime::DispatchError, }, #[codec(index = 1)] #[doc = "Batch of dispatches completed fully with no error."] BatchCompleted, #[codec(index = 2)] #[doc = "Batch of dispatches completed but has errors."] BatchCompletedWithErrors, #[codec(index = 3)] #[doc = "A single item within a Batch of dispatches has completed with no error."] ItemCompleted, #[codec(index = 4)] #[doc = "A single item within a Batch of dispatches has completed with error."] ItemFailed { error: runtime_types::sp_runtime::DispatchError, }, #[codec(index = 5)] #[doc = "A call was dispatched."] DispatchedAs { result: ::core::result::Result<(), runtime_types::sp_runtime::DispatchError>, }, } } } pub mod pallet_vesting { use super::runtime_types; pub mod pallet { use super::runtime_types; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] pub enum Call { #[codec(index = 0)] #[doc = "Unlock any vested funds of the sender account."] #[doc = ""] #[doc = "The dispatch origin for this call must be _Signed_ and the sender must have funds still"] #[doc = "locked under this pallet."] #[doc = ""] #[doc = "Emits either `VestingCompleted` or `VestingUpdated`."] #[doc = ""] #[doc = "## Complexity"] #[doc = "- `O(1)`."] vest, #[codec(index = 1)] #[doc = "Unlock any vested funds of a `target` account."] #[doc = ""] #[doc = "The dispatch origin for this call must be _Signed_."] #[doc = ""] #[doc = "- `target`: The account whose vested funds should be unlocked. Must have funds still"] #[doc = "locked under this pallet."] #[doc = ""] #[doc = "Emits either `VestingCompleted` or `VestingUpdated`."] #[doc = ""] #[doc = "## Complexity"] #[doc = "- `O(1)`."] vest_other { target: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, }, #[codec(index = 2)] #[doc = "Create a vested transfer."] #[doc = ""] #[doc = "The dispatch origin for this call must be _Signed_."] #[doc = ""] #[doc = "- `target`: The account receiving the vested funds."] #[doc = "- `schedule`: The vesting schedule attached to the transfer."] #[doc = ""] #[doc = "Emits `VestingCreated`."] #[doc = ""] #[doc = "NOTE: This will unlock all schedules through the current block."] #[doc = ""] #[doc = "## Complexity"] #[doc = "- `O(1)`."] vested_transfer { target: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, schedule: runtime_types::pallet_vesting::vesting_info::VestingInfo< ::core::primitive::u128, ::core::primitive::u32, >, }, #[codec(index = 3)] #[doc = "Force a vested transfer."] #[doc = ""] #[doc = "The dispatch origin for this call must be _Root_."] #[doc = ""] #[doc = "- `source`: The account whose funds should be transferred."] #[doc = "- `target`: The account that should be transferred the vested funds."] #[doc = "- `schedule`: The vesting schedule attached to the transfer."] #[doc = ""] #[doc = "Emits `VestingCreated`."] #[doc = ""] #[doc = "NOTE: This will unlock all schedules through the current block."] #[doc = ""] #[doc = "## Complexity"] #[doc = "- `O(1)`."] force_vested_transfer { source: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, target: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, schedule: runtime_types::pallet_vesting::vesting_info::VestingInfo< ::core::primitive::u128, ::core::primitive::u32, >, }, #[codec(index = 4)] #[doc = "Merge two vesting schedules together, creating a new vesting schedule that unlocks over"] #[doc = "the highest possible start and end blocks. If both schedules have already started the"] #[doc = "current block will be used as the schedule start; with the caveat that if one schedule"] #[doc = "is finished by the current block, the other will be treated as the new merged schedule,"] #[doc = "unmodified."] #[doc = ""] #[doc = "NOTE: If `schedule1_index == schedule2_index` this is a no-op."] #[doc = "NOTE: This will unlock all schedules through the current block prior to merging."] #[doc = "NOTE: If both schedules have ended by the current block, no new schedule will be created"] #[doc = "and both will be removed."] #[doc = ""] #[doc = "Merged schedule attributes:"] #[doc = "- `starting_block`: `MAX(schedule1.starting_block, scheduled2.starting_block,"] #[doc = " current_block)`."] #[doc = "- `ending_block`: `MAX(schedule1.ending_block, schedule2.ending_block)`."] #[doc = "- `locked`: `schedule1.locked_at(current_block) + schedule2.locked_at(current_block)`."] #[doc = ""] #[doc = "The dispatch origin for this call must be _Signed_."] #[doc = ""] #[doc = "- `schedule1_index`: index of the first schedule to merge."] #[doc = "- `schedule2_index`: index of the second schedule to merge."] merge_schedules { schedule1_index: ::core::primitive::u32, schedule2_index: ::core::primitive::u32, }, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Error for the vesting pallet."] pub enum Error { #[codec(index = 0)] #[doc = "The account given is not vesting."] NotVesting, #[codec(index = 1)] #[doc = "The account already has `MaxVestingSchedules` count of schedules and thus"] #[doc = "cannot add another one. Consider merging existing schedules in order to add another."] AtMaxVestingSchedules, #[codec(index = 2)] #[doc = "Amount being transferred is too low to create a vesting schedule."] AmountLow, #[codec(index = 3)] #[doc = "An index was out of bounds of the vesting schedules."] ScheduleIndexOutOfBounds, #[codec(index = 4)] #[doc = "Failed to create a new schedule because some parameter was invalid."] InvalidScheduleParams, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] pub enum Event { #[codec(index = 0)] #[doc = "The amount vested has been updated. This could indicate a change in funds available."] #[doc = "The balance given is the amount which is left unvested (and thus locked)."] VestingUpdated { account: ::subxt::utils::AccountId32, unvested: ::core::primitive::u128, }, #[codec(index = 1)] #[doc = "An \\[account\\] has become fully vested."] VestingCompleted { account: ::subxt::utils::AccountId32, }, } } pub mod vesting_info { use super::runtime_types; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct VestingInfo<_0, _1> { pub locked: _0, pub per_block: _0, pub starting_block: _1, } } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum Releases { #[codec(index = 0)] V0, #[codec(index = 1)] V1, } } pub mod pallet_whitelist { use super::runtime_types; pub mod pallet { use super::runtime_types; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] pub enum Call { #[codec(index = 0)] whitelist_call { call_hash: ::subxt::utils::H256 }, #[codec(index = 1)] remove_whitelisted_call { call_hash: ::subxt::utils::H256 }, #[codec(index = 2)] dispatch_whitelisted_call { call_hash: ::subxt::utils::H256, call_encoded_len: ::core::primitive::u32, call_weight_witness: runtime_types::sp_weights::weight_v2::Weight, }, #[codec(index = 3)] dispatch_whitelisted_call_with_preimage { call: ::std::boxed::Box, }, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] pub enum Error { #[codec(index = 0)] #[doc = "The preimage of the call hash could not be loaded."] UnavailablePreImage, #[codec(index = 1)] #[doc = "The call could not be decoded."] UndecodableCall, #[codec(index = 2)] #[doc = "The weight of the decoded call was higher than the witness."] InvalidCallWeightWitness, #[codec(index = 3)] #[doc = "The call was not whitelisted."] CallIsNotWhitelisted, #[codec(index = 4)] #[doc = "The call was already whitelisted; No-Op."] CallAlreadyWhitelisted, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] pub enum Event { #[codec(index = 0)] CallWhitelisted { call_hash: ::subxt::utils::H256 }, #[codec(index = 1)] WhitelistedCallRemoved { call_hash: ::subxt::utils::H256 }, #[codec(index = 2)] WhitelistedCallDispatched { call_hash: ::subxt::utils::H256, result: ::core::result::Result< runtime_types::frame_support::dispatch::PostDispatchInfo, runtime_types::sp_runtime::DispatchErrorWithPostInfo< runtime_types::frame_support::dispatch::PostDispatchInfo, >, >, }, } } } pub mod pallet_xcm { use super::runtime_types; pub mod pallet { use super::runtime_types; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] pub enum Call { #[codec(index = 0)] send { dest: ::std::boxed::Box, message: ::std::boxed::Box, }, #[codec(index = 1)] #[doc = "Teleport some assets from the local chain to some destination chain."] #[doc = ""] #[doc = "Fee payment on the destination side is made from the asset in the `assets` vector of"] #[doc = "index `fee_asset_item`. The weight limit for fees is not provided and thus is unlimited,"] #[doc = "with all fees taken as needed from the asset."] #[doc = ""] #[doc = "- `origin`: Must be capable of withdrawing the `assets` and executing XCM."] #[doc = "- `dest`: Destination context for the assets. Will typically be `X2(Parent, Parachain(..))` to send"] #[doc = " from parachain to parachain, or `X1(Parachain(..))` to send from relay to parachain."] #[doc = "- `beneficiary`: A beneficiary location for the assets in the context of `dest`. Will generally be"] #[doc = " an `AccountId32` value."] #[doc = "- `assets`: The assets to be withdrawn. The first item should be the currency used to to pay the fee on the"] #[doc = " `dest` side. May not be empty."] #[doc = "- `fee_asset_item`: The index into `assets` of the item which should be used to pay"] #[doc = " fees."] teleport_assets { dest: ::std::boxed::Box, beneficiary: ::std::boxed::Box, assets: ::std::boxed::Box, fee_asset_item: ::core::primitive::u32, }, #[codec(index = 2)] #[doc = "Transfer some assets from the local chain to the sovereign account of a destination"] #[doc = "chain and forward a notification XCM."] #[doc = ""] #[doc = "Fee payment on the destination side is made from the asset in the `assets` vector of"] #[doc = "index `fee_asset_item`. The weight limit for fees is not provided and thus is unlimited,"] #[doc = "with all fees taken as needed from the asset."] #[doc = ""] #[doc = "- `origin`: Must be capable of withdrawing the `assets` and executing XCM."] #[doc = "- `dest`: Destination context for the assets. Will typically be `X2(Parent, Parachain(..))` to send"] #[doc = " from parachain to parachain, or `X1(Parachain(..))` to send from relay to parachain."] #[doc = "- `beneficiary`: A beneficiary location for the assets in the context of `dest`. Will generally be"] #[doc = " an `AccountId32` value."] #[doc = "- `assets`: The assets to be withdrawn. This should include the assets used to pay the fee on the"] #[doc = " `dest` side."] #[doc = "- `fee_asset_item`: The index into `assets` of the item which should be used to pay"] #[doc = " fees."] reserve_transfer_assets { dest: ::std::boxed::Box, beneficiary: ::std::boxed::Box, assets: ::std::boxed::Box, fee_asset_item: ::core::primitive::u32, }, #[codec(index = 3)] #[doc = "Execute an XCM message from a local, signed, origin."] #[doc = ""] #[doc = "An event is deposited indicating whether `msg` could be executed completely or only"] #[doc = "partially."] #[doc = ""] #[doc = "No more than `max_weight` will be used in its attempted execution. If this is less than the"] #[doc = "maximum amount of weight that the message could take to be executed, then no execution"] #[doc = "attempt will be made."] #[doc = ""] #[doc = "NOTE: A successful return to this does *not* imply that the `msg` was executed successfully"] #[doc = "to completion; only that *some* of it was executed."] execute { message: ::std::boxed::Box, max_weight: runtime_types::sp_weights::weight_v2::Weight, }, #[codec(index = 4)] #[doc = "Extoll that a particular destination can be communicated with through a particular"] #[doc = "version of XCM."] #[doc = ""] #[doc = "- `origin`: Must be an origin specified by AdminOrigin."] #[doc = "- `location`: The destination that is being described."] #[doc = "- `xcm_version`: The latest version of XCM that `location` supports."] force_xcm_version { location: ::std::boxed::Box, xcm_version: ::core::primitive::u32, }, #[codec(index = 5)] #[doc = "Set a safe XCM version (the version that XCM should be encoded with if the most recent"] #[doc = "version a destination can accept is unknown)."] #[doc = ""] #[doc = "- `origin`: Must be an origin specified by AdminOrigin."] #[doc = "- `maybe_xcm_version`: The default XCM encoding version, or `None` to disable."] force_default_xcm_version { maybe_xcm_version: ::core::option::Option<::core::primitive::u32>, }, #[codec(index = 6)] #[doc = "Ask a location to notify us regarding their XCM version and any changes to it."] #[doc = ""] #[doc = "- `origin`: Must be an origin specified by AdminOrigin."] #[doc = "- `location`: The location to which we should subscribe for XCM version notifications."] force_subscribe_version_notify { location: ::std::boxed::Box, }, #[codec(index = 7)] #[doc = "Require that a particular destination should no longer notify us regarding any XCM"] #[doc = "version changes."] #[doc = ""] #[doc = "- `origin`: Must be an origin specified by AdminOrigin."] #[doc = "- `location`: The location to which we are currently subscribed for XCM version"] #[doc = " notifications which we no longer desire."] force_unsubscribe_version_notify { location: ::std::boxed::Box, }, #[codec(index = 8)] #[doc = "Transfer some assets from the local chain to the sovereign account of a destination"] #[doc = "chain and forward a notification XCM."] #[doc = ""] #[doc = "Fee payment on the destination side is made from the asset in the `assets` vector of"] #[doc = "index `fee_asset_item`, up to enough to pay for `weight_limit` of weight. If more weight"] #[doc = "is needed than `weight_limit`, then the operation will fail and the assets send may be"] #[doc = "at risk."] #[doc = ""] #[doc = "- `origin`: Must be capable of withdrawing the `assets` and executing XCM."] #[doc = "- `dest`: Destination context for the assets. Will typically be `X2(Parent, Parachain(..))` to send"] #[doc = " from parachain to parachain, or `X1(Parachain(..))` to send from relay to parachain."] #[doc = "- `beneficiary`: A beneficiary location for the assets in the context of `dest`. Will generally be"] #[doc = " an `AccountId32` value."] #[doc = "- `assets`: The assets to be withdrawn. This should include the assets used to pay the fee on the"] #[doc = " `dest` side."] #[doc = "- `fee_asset_item`: The index into `assets` of the item which should be used to pay"] #[doc = " fees."] #[doc = "- `weight_limit`: The remote-side weight limit, if any, for the XCM fee purchase."] limited_reserve_transfer_assets { dest: ::std::boxed::Box, beneficiary: ::std::boxed::Box, assets: ::std::boxed::Box, fee_asset_item: ::core::primitive::u32, weight_limit: runtime_types::xcm::v3::WeightLimit, }, #[codec(index = 9)] #[doc = "Teleport some assets from the local chain to some destination chain."] #[doc = ""] #[doc = "Fee payment on the destination side is made from the asset in the `assets` vector of"] #[doc = "index `fee_asset_item`, up to enough to pay for `weight_limit` of weight. If more weight"] #[doc = "is needed than `weight_limit`, then the operation will fail and the assets send may be"] #[doc = "at risk."] #[doc = ""] #[doc = "- `origin`: Must be capable of withdrawing the `assets` and executing XCM."] #[doc = "- `dest`: Destination context for the assets. Will typically be `X2(Parent, Parachain(..))` to send"] #[doc = " from parachain to parachain, or `X1(Parachain(..))` to send from relay to parachain."] #[doc = "- `beneficiary`: A beneficiary location for the assets in the context of `dest`. Will generally be"] #[doc = " an `AccountId32` value."] #[doc = "- `assets`: The assets to be withdrawn. The first item should be the currency used to to pay the fee on the"] #[doc = " `dest` side. May not be empty."] #[doc = "- `fee_asset_item`: The index into `assets` of the item which should be used to pay"] #[doc = " fees."] #[doc = "- `weight_limit`: The remote-side weight limit, if any, for the XCM fee purchase."] limited_teleport_assets { dest: ::std::boxed::Box, beneficiary: ::std::boxed::Box, assets: ::std::boxed::Box, fee_asset_item: ::core::primitive::u32, weight_limit: runtime_types::xcm::v3::WeightLimit, }, #[codec(index = 10)] #[doc = "Set or unset the global suspension state of the XCM executor."] #[doc = ""] #[doc = "- `origin`: Must be an origin specified by AdminOrigin."] #[doc = "- `suspended`: `true` to suspend, `false` to resume."] force_suspension { suspended: ::core::primitive::bool }, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] pub enum Error { #[codec(index = 0)] #[doc = "The desired destination was unreachable, generally because there is a no way of routing"] #[doc = "to it."] Unreachable, #[codec(index = 1)] #[doc = "There was some other issue (i.e. not to do with routing) in sending the message. Perhaps"] #[doc = "a lack of space for buffering the message."] SendFailure, #[codec(index = 2)] #[doc = "The message execution fails the filter."] Filtered, #[codec(index = 3)] #[doc = "The message's weight could not be determined."] UnweighableMessage, #[codec(index = 4)] #[doc = "The destination `MultiLocation` provided cannot be inverted."] DestinationNotInvertible, #[codec(index = 5)] #[doc = "The assets to be sent are empty."] Empty, #[codec(index = 6)] #[doc = "Could not re-anchor the assets to declare the fees for the destination chain."] CannotReanchor, #[codec(index = 7)] #[doc = "Too many assets have been attempted for transfer."] TooManyAssets, #[codec(index = 8)] #[doc = "Origin is invalid for sending."] InvalidOrigin, #[codec(index = 9)] #[doc = "The version of the `Versioned` value used is not able to be interpreted."] BadVersion, #[codec(index = 10)] #[doc = "The given location could not be used (e.g. because it cannot be expressed in the"] #[doc = "desired version of XCM)."] BadLocation, #[codec(index = 11)] #[doc = "The referenced subscription could not be found."] NoSubscription, #[codec(index = 12)] #[doc = "The location is invalid since it already has a subscription from us."] AlreadySubscribed, #[codec(index = 13)] #[doc = "Invalid asset for the operation."] InvalidAsset, #[codec(index = 14)] #[doc = "The owner does not own (all) of the asset that they wish to do the operation on."] LowBalance, #[codec(index = 15)] #[doc = "The asset owner has too many locks on the asset."] TooManyLocks, #[codec(index = 16)] #[doc = "The given account is not an identifiable sovereign account for any location."] AccountNotSovereign, #[codec(index = 17)] #[doc = "The operation required fees to be paid which the initiator could not meet."] FeesNotMet, #[codec(index = 18)] #[doc = "A remote lock with the corresponding data could not be found."] LockNotFound, #[codec(index = 19)] #[doc = "The unlock operation cannot succeed because there are still users of the lock."] InUse, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] pub enum Event { #[codec(index = 0)] #[doc = "Execution of an XCM message was attempted."] #[doc = ""] #[doc = "\\[ outcome \\]"] Attempted(runtime_types::xcm::v3::traits::Outcome), #[codec(index = 1)] #[doc = "A XCM message was sent."] #[doc = ""] #[doc = "\\[ origin, destination, message \\]"] Sent( runtime_types::xcm::v3::multilocation::MultiLocation, runtime_types::xcm::v3::multilocation::MultiLocation, runtime_types::xcm::v3::Xcm, ), #[codec(index = 2)] #[doc = "Query response received which does not match a registered query. This may be because a"] #[doc = "matching query was never registered, it may be because it is a duplicate response, or"] #[doc = "because the query timed out."] #[doc = ""] #[doc = "\\[ origin location, id \\]"] UnexpectedResponse( runtime_types::xcm::v3::multilocation::MultiLocation, ::core::primitive::u64, ), #[codec(index = 3)] #[doc = "Query response has been received and is ready for taking with `take_response`. There is"] #[doc = "no registered notification call."] #[doc = ""] #[doc = "\\[ id, response \\]"] ResponseReady(::core::primitive::u64, runtime_types::xcm::v3::Response), #[codec(index = 4)] #[doc = "Query response has been received and query is removed. The registered notification has"] #[doc = "been dispatched and executed successfully."] #[doc = ""] #[doc = "\\[ id, pallet index, call index \\]"] Notified( ::core::primitive::u64, ::core::primitive::u8, ::core::primitive::u8, ), #[codec(index = 5)] #[doc = "Query response has been received and query is removed. The registered notification could"] #[doc = "not be dispatched because the dispatch weight is greater than the maximum weight"] #[doc = "originally budgeted by this runtime for the query result."] #[doc = ""] #[doc = "\\[ id, pallet index, call index, actual weight, max budgeted weight \\]"] NotifyOverweight( ::core::primitive::u64, ::core::primitive::u8, ::core::primitive::u8, runtime_types::sp_weights::weight_v2::Weight, runtime_types::sp_weights::weight_v2::Weight, ), #[codec(index = 6)] #[doc = "Query response has been received and query is removed. There was a general error with"] #[doc = "dispatching the notification call."] #[doc = ""] #[doc = "\\[ id, pallet index, call index \\]"] NotifyDispatchError( ::core::primitive::u64, ::core::primitive::u8, ::core::primitive::u8, ), #[codec(index = 7)] #[doc = "Query response has been received and query is removed. The dispatch was unable to be"] #[doc = "decoded into a `Call`; this might be due to dispatch function having a signature which"] #[doc = "is not `(origin, QueryId, Response)`."] #[doc = ""] #[doc = "\\[ id, pallet index, call index \\]"] NotifyDecodeFailed( ::core::primitive::u64, ::core::primitive::u8, ::core::primitive::u8, ), #[codec(index = 8)] #[doc = "Expected query response has been received but the origin location of the response does"] #[doc = "not match that expected. The query remains registered for a later, valid, response to"] #[doc = "be received and acted upon."] #[doc = ""] #[doc = "\\[ origin location, id, expected location \\]"] InvalidResponder( runtime_types::xcm::v3::multilocation::MultiLocation, ::core::primitive::u64, ::core::option::Option< runtime_types::xcm::v3::multilocation::MultiLocation, >, ), #[codec(index = 9)] #[doc = "Expected query response has been received but the expected origin location placed in"] #[doc = "storage by this runtime previously cannot be decoded. The query remains registered."] #[doc = ""] #[doc = "This is unexpected (since a location placed in storage in a previously executing"] #[doc = "runtime should be readable prior to query timeout) and dangerous since the possibly"] #[doc = "valid response will be dropped. Manual governance intervention is probably going to be"] #[doc = "needed."] #[doc = ""] #[doc = "\\[ origin location, id \\]"] InvalidResponderVersion( runtime_types::xcm::v3::multilocation::MultiLocation, ::core::primitive::u64, ), #[codec(index = 10)] #[doc = "Received query response has been read and removed."] #[doc = ""] #[doc = "\\[ id \\]"] ResponseTaken(::core::primitive::u64), #[codec(index = 11)] #[doc = "Some assets have been placed in an asset trap."] #[doc = ""] #[doc = "\\[ hash, origin, assets \\]"] AssetsTrapped( ::subxt::utils::H256, runtime_types::xcm::v3::multilocation::MultiLocation, runtime_types::xcm::VersionedMultiAssets, ), #[codec(index = 12)] #[doc = "An XCM version change notification message has been attempted to be sent."] #[doc = ""] #[doc = "The cost of sending it (borne by the chain) is included."] #[doc = ""] #[doc = "\\[ destination, result, cost \\]"] VersionChangeNotified( runtime_types::xcm::v3::multilocation::MultiLocation, ::core::primitive::u32, runtime_types::xcm::v3::multiasset::MultiAssets, ), #[codec(index = 13)] #[doc = "The supported version of a location has been changed. This might be through an"] #[doc = "automatic notification or a manual intervention."] #[doc = ""] #[doc = "\\[ location, XCM version \\]"] SupportedVersionChanged( runtime_types::xcm::v3::multilocation::MultiLocation, ::core::primitive::u32, ), #[codec(index = 14)] #[doc = "A given location which had a version change subscription was dropped owing to an error"] #[doc = "sending the notification to it."] #[doc = ""] #[doc = "\\[ location, query ID, error \\]"] NotifyTargetSendFail( runtime_types::xcm::v3::multilocation::MultiLocation, ::core::primitive::u64, runtime_types::xcm::v3::traits::Error, ), #[codec(index = 15)] #[doc = "A given location which had a version change subscription was dropped owing to an error"] #[doc = "migrating the location to our new XCM format."] #[doc = ""] #[doc = "\\[ location, query ID \\]"] NotifyTargetMigrationFail( runtime_types::xcm::VersionedMultiLocation, ::core::primitive::u64, ), #[codec(index = 16)] #[doc = "Expected query response has been received but the expected querier location placed in"] #[doc = "storage by this runtime previously cannot be decoded. The query remains registered."] #[doc = ""] #[doc = "This is unexpected (since a location placed in storage in a previously executing"] #[doc = "runtime should be readable prior to query timeout) and dangerous since the possibly"] #[doc = "valid response will be dropped. Manual governance intervention is probably going to be"] #[doc = "needed."] #[doc = ""] #[doc = "\\[ origin location, id \\]"] InvalidQuerierVersion( runtime_types::xcm::v3::multilocation::MultiLocation, ::core::primitive::u64, ), #[codec(index = 17)] #[doc = "Expected query response has been received but the querier location of the response does"] #[doc = "not match the expected. The query remains registered for a later, valid, response to"] #[doc = "be received and acted upon."] #[doc = ""] #[doc = "\\[ origin location, id, expected querier, maybe actual querier \\]"] InvalidQuerier( runtime_types::xcm::v3::multilocation::MultiLocation, ::core::primitive::u64, runtime_types::xcm::v3::multilocation::MultiLocation, ::core::option::Option< runtime_types::xcm::v3::multilocation::MultiLocation, >, ), #[codec(index = 18)] #[doc = "A remote has requested XCM version change notification from us and we have honored it."] #[doc = "A version information message is sent to them and its cost is included."] #[doc = ""] #[doc = "\\[ destination location, cost \\]"] VersionNotifyStarted( runtime_types::xcm::v3::multilocation::MultiLocation, runtime_types::xcm::v3::multiasset::MultiAssets, ), #[codec(index = 19)] #[doc = "We have requested that a remote chain sends us XCM version change notifications."] #[doc = ""] #[doc = "\\[ destination location, cost \\]"] VersionNotifyRequested( runtime_types::xcm::v3::multilocation::MultiLocation, runtime_types::xcm::v3::multiasset::MultiAssets, ), #[codec(index = 20)] #[doc = "We have requested that a remote chain stops sending us XCM version change notifications."] #[doc = ""] #[doc = "\\[ destination location, cost \\]"] VersionNotifyUnrequested( runtime_types::xcm::v3::multilocation::MultiLocation, runtime_types::xcm::v3::multiasset::MultiAssets, ), #[codec(index = 21)] #[doc = "Fees were paid from a location for an operation (often for using `SendXcm`)."] #[doc = ""] #[doc = "\\[ paying location, fees \\]"] FeesPaid( runtime_types::xcm::v3::multilocation::MultiLocation, runtime_types::xcm::v3::multiasset::MultiAssets, ), #[codec(index = 22)] #[doc = "Some assets have been claimed from an asset trap"] #[doc = ""] #[doc = "\\[ hash, origin, assets \\]"] AssetsClaimed( ::subxt::utils::H256, runtime_types::xcm::v3::multilocation::MultiLocation, runtime_types::xcm::VersionedMultiAssets, ), } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum Origin { #[codec(index = 0)] Xcm(runtime_types::xcm::v3::multilocation::MultiLocation), #[codec(index = 1)] Response(runtime_types::xcm::v3::multilocation::MultiLocation), } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum QueryStatus<_0> { #[codec(index = 0)] Pending { responder: runtime_types::xcm::VersionedMultiLocation, maybe_match_querier: ::core::option::Option, maybe_notify: ::core::option::Option<(::core::primitive::u8, ::core::primitive::u8)>, timeout: _0, }, #[codec(index = 1)] VersionNotifier { origin: runtime_types::xcm::VersionedMultiLocation, is_active: ::core::primitive::bool, }, #[codec(index = 2)] Ready { response: runtime_types::xcm::VersionedResponse, at: _0, }, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct RemoteLockedFungibleRecord { pub amount: ::core::primitive::u128, pub owner: runtime_types::xcm::VersionedMultiLocation, pub locker: runtime_types::xcm::VersionedMultiLocation, pub users: ::core::primitive::u32, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum VersionMigrationStage { #[codec(index = 0)] MigrateSupportedVersion, #[codec(index = 1)] MigrateVersionNotifiers, #[codec(index = 2)] NotifyCurrentTargets( ::core::option::Option<::std::vec::Vec<::core::primitive::u8>>, ), #[codec(index = 3)] MigrateAndNotifyOldTargets, } } } pub mod polkadot_core_primitives { use super::runtime_types; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct CandidateHash(pub ::subxt::utils::H256); #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct InboundDownwardMessage<_0> { pub sent_at: _0, pub msg: ::std::vec::Vec<::core::primitive::u8>, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct InboundHrmpMessage<_0> { pub sent_at: _0, pub data: ::std::vec::Vec<::core::primitive::u8>, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct OutboundHrmpMessage<_0> { pub recipient: _0, pub data: ::std::vec::Vec<::core::primitive::u8>, } } pub mod polkadot_parachain { use super::runtime_types; pub mod primitives { use super::runtime_types; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct HeadData(pub ::std::vec::Vec<::core::primitive::u8>); #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct HrmpChannelId { pub sender: runtime_types::polkadot_parachain::primitives::Id, pub recipient: runtime_types::polkadot_parachain::primitives::Id, } #[derive( :: subxt :: ext :: codec :: CompactAs, :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Id(pub ::core::primitive::u32); #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ValidationCode(pub ::std::vec::Vec<::core::primitive::u8>); #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ValidationCodeHash(pub ::subxt::utils::H256); } } pub mod polkadot_primitives { use super::runtime_types; pub mod v4 { use super::runtime_types; pub mod assignment_app { use super::runtime_types; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Public(pub runtime_types::sp_core::sr25519::Public); } pub mod collator_app { use super::runtime_types; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Public(pub runtime_types::sp_core::sr25519::Public); #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Signature(pub runtime_types::sp_core::sr25519::Signature); } pub mod executor_params { use super::runtime_types; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum ExecutorParam { #[codec(index = 1)] MaxMemoryPages(::core::primitive::u32), #[codec(index = 2)] StackLogicalMax(::core::primitive::u32), #[codec(index = 3)] StackNativeMax(::core::primitive::u32), #[codec(index = 4)] PrecheckingMaxMemory(::core::primitive::u64), #[codec(index = 5)] PvfPrepTimeout( runtime_types::polkadot_primitives::v4::PvfPrepTimeoutKind, ::core::primitive::u64, ), #[codec(index = 6)] PvfExecTimeout( runtime_types::polkadot_primitives::v4::PvfExecTimeoutKind, ::core::primitive::u64, ), #[codec(index = 7)] WasmExtBulkMemory, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ExecutorParams( pub ::std::vec::Vec< runtime_types::polkadot_primitives::v4::executor_params::ExecutorParam, >, ); } pub mod signed { use super::runtime_types; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct UncheckedSigned<_0, _1> { pub payload: _0, pub validator_index: runtime_types::polkadot_primitives::v4::ValidatorIndex, pub signature: runtime_types::polkadot_primitives::v4::validator_app::Signature, #[codec(skip)] pub __subxt_unused_type_params: ::core::marker::PhantomData<_1>, } } pub mod validator_app { use super::runtime_types; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Public(pub runtime_types::sp_core::sr25519::Public); #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Signature(pub runtime_types::sp_core::sr25519::Signature); } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct AvailabilityBitfield( pub ::subxt::utils::bits::DecodedBits< ::core::primitive::u8, ::subxt::utils::bits::Lsb0, >, ); #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct BackedCandidate<_0> { pub candidate: runtime_types::polkadot_primitives::v4::CommittedCandidateReceipt<_0>, pub validity_votes: ::std::vec::Vec< runtime_types::polkadot_primitives::v4::ValidityAttestation, >, pub validator_indices: ::subxt::utils::bits::DecodedBits< ::core::primitive::u8, ::subxt::utils::bits::Lsb0, >, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct CandidateCommitments<_0> { pub upward_messages: runtime_types::bounded_collections::bounded_vec::BoundedVec< ::std::vec::Vec<::core::primitive::u8>, >, pub horizontal_messages: runtime_types::bounded_collections::bounded_vec::BoundedVec< runtime_types::polkadot_core_primitives::OutboundHrmpMessage< runtime_types::polkadot_parachain::primitives::Id, >, >, pub new_validation_code: ::core::option::Option< runtime_types::polkadot_parachain::primitives::ValidationCode, >, pub head_data: runtime_types::polkadot_parachain::primitives::HeadData, pub processed_downward_messages: _0, pub hrmp_watermark: _0, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct CandidateDescriptor<_0> { pub para_id: runtime_types::polkadot_parachain::primitives::Id, pub relay_parent: _0, pub collator: runtime_types::polkadot_primitives::v4::collator_app::Public, pub persisted_validation_data_hash: _0, pub pov_hash: _0, pub erasure_root: _0, pub signature: runtime_types::polkadot_primitives::v4::collator_app::Signature, pub para_head: _0, pub validation_code_hash: runtime_types::polkadot_parachain::primitives::ValidationCodeHash, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum CandidateEvent<_0> { #[codec(index = 0)] CandidateBacked( runtime_types::polkadot_primitives::v4::CandidateReceipt<_0>, runtime_types::polkadot_parachain::primitives::HeadData, runtime_types::polkadot_primitives::v4::CoreIndex, runtime_types::polkadot_primitives::v4::GroupIndex, ), #[codec(index = 1)] CandidateIncluded( runtime_types::polkadot_primitives::v4::CandidateReceipt<_0>, runtime_types::polkadot_parachain::primitives::HeadData, runtime_types::polkadot_primitives::v4::CoreIndex, runtime_types::polkadot_primitives::v4::GroupIndex, ), #[codec(index = 2)] CandidateTimedOut( runtime_types::polkadot_primitives::v4::CandidateReceipt<_0>, runtime_types::polkadot_parachain::primitives::HeadData, runtime_types::polkadot_primitives::v4::CoreIndex, ), } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct CandidateReceipt<_0> { pub descriptor: runtime_types::polkadot_primitives::v4::CandidateDescriptor<_0>, pub commitments_hash: _0, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct CommittedCandidateReceipt<_0> { pub descriptor: runtime_types::polkadot_primitives::v4::CandidateDescriptor<_0>, pub commitments: runtime_types::polkadot_primitives::v4::CandidateCommitments< ::core::primitive::u32, >, } #[derive( :: subxt :: ext :: codec :: CompactAs, :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct CoreIndex(pub ::core::primitive::u32); #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum CoreOccupied { #[codec(index = 0)] Parathread(runtime_types::polkadot_primitives::v4::ParathreadEntry), #[codec(index = 1)] Parachain, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum CoreState<_0, _1> { #[codec(index = 0)] Occupied(runtime_types::polkadot_primitives::v4::OccupiedCore<_0, _1>), #[codec(index = 1)] Scheduled(runtime_types::polkadot_primitives::v4::ScheduledCore), #[codec(index = 2)] Free, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct DisputeState<_0> { pub validators_for: ::subxt::utils::bits::DecodedBits< ::core::primitive::u8, ::subxt::utils::bits::Lsb0, >, pub validators_against: ::subxt::utils::bits::DecodedBits< ::core::primitive::u8, ::subxt::utils::bits::Lsb0, >, pub start: _0, pub concluded_at: ::core::option::Option<_0>, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum DisputeStatement { #[codec(index = 0)] Valid(runtime_types::polkadot_primitives::v4::ValidDisputeStatementKind), #[codec(index = 1)] Invalid(runtime_types::polkadot_primitives::v4::InvalidDisputeStatementKind), } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct DisputeStatementSet { pub candidate_hash: runtime_types::polkadot_core_primitives::CandidateHash, pub session: ::core::primitive::u32, pub statements: ::std::vec::Vec<( runtime_types::polkadot_primitives::v4::DisputeStatement, runtime_types::polkadot_primitives::v4::ValidatorIndex, runtime_types::polkadot_primitives::v4::validator_app::Signature, )>, } #[derive( :: subxt :: ext :: codec :: CompactAs, :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct GroupIndex(pub ::core::primitive::u32); #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct GroupRotationInfo<_0> { pub session_start_block: _0, pub group_rotation_frequency: _0, pub now: _0, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct IndexedVec<_0, _1>( pub ::std::vec::Vec<_1>, #[codec(skip)] pub ::core::marker::PhantomData<_0>, ); #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct InherentData<_0> { pub bitfields: ::std::vec::Vec< runtime_types::polkadot_primitives::v4::signed::UncheckedSigned< runtime_types::polkadot_primitives::v4::AvailabilityBitfield, runtime_types::polkadot_primitives::v4::AvailabilityBitfield, >, >, pub backed_candidates: ::std::vec::Vec< runtime_types::polkadot_primitives::v4::BackedCandidate< ::subxt::utils::H256, >, >, pub disputes: ::std::vec::Vec< runtime_types::polkadot_primitives::v4::DisputeStatementSet, >, pub parent_header: _0, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum InvalidDisputeStatementKind { #[codec(index = 0)] Explicit, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct OccupiedCore<_0, _1> { pub next_up_on_available: ::core::option::Option< runtime_types::polkadot_primitives::v4::ScheduledCore, >, pub occupied_since: _1, pub time_out_at: _1, pub next_up_on_time_out: ::core::option::Option< runtime_types::polkadot_primitives::v4::ScheduledCore, >, pub availability: ::subxt::utils::bits::DecodedBits< ::core::primitive::u8, ::subxt::utils::bits::Lsb0, >, pub group_responsible: runtime_types::polkadot_primitives::v4::GroupIndex, pub candidate_hash: runtime_types::polkadot_core_primitives::CandidateHash, pub candidate_descriptor: runtime_types::polkadot_primitives::v4::CandidateDescriptor<_0>, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum OccupiedCoreAssumption { #[codec(index = 0)] Included, #[codec(index = 1)] TimedOut, #[codec(index = 2)] Free, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ParathreadClaim( pub runtime_types::polkadot_parachain::primitives::Id, pub runtime_types::polkadot_primitives::v4::collator_app::Public, ); #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ParathreadEntry { pub claim: runtime_types::polkadot_primitives::v4::ParathreadClaim, pub retries: ::core::primitive::u32, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct PersistedValidationData<_0, _1> { pub parent_head: runtime_types::polkadot_parachain::primitives::HeadData, pub relay_parent_number: _1, pub relay_parent_storage_root: _0, pub max_pov_size: _1, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct PvfCheckStatement { pub accept: ::core::primitive::bool, pub subject: runtime_types::polkadot_parachain::primitives::ValidationCodeHash, pub session_index: ::core::primitive::u32, pub validator_index: runtime_types::polkadot_primitives::v4::ValidatorIndex, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum PvfExecTimeoutKind { #[codec(index = 0)] Backing, #[codec(index = 1)] Approval, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum PvfPrepTimeoutKind { #[codec(index = 0)] Precheck, #[codec(index = 1)] Lenient, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ScheduledCore { pub para_id: runtime_types::polkadot_parachain::primitives::Id, pub collator: ::core::option::Option< runtime_types::polkadot_primitives::v4::collator_app::Public, >, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ScrapedOnChainVotes<_0> { pub session: ::core::primitive::u32, pub backing_validators_per_candidate: ::std::vec::Vec<( runtime_types::polkadot_primitives::v4::CandidateReceipt<_0>, ::std::vec::Vec<( runtime_types::polkadot_primitives::v4::ValidatorIndex, runtime_types::polkadot_primitives::v4::ValidityAttestation, )>, )>, pub disputes: ::std::vec::Vec< runtime_types::polkadot_primitives::v4::DisputeStatementSet, >, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SessionInfo { pub active_validator_indices: ::std::vec::Vec, pub random_seed: [::core::primitive::u8; 32usize], pub dispute_period: ::core::primitive::u32, pub validators: runtime_types::polkadot_primitives::v4::IndexedVec< runtime_types::polkadot_primitives::v4::ValidatorIndex, runtime_types::polkadot_primitives::v4::validator_app::Public, >, pub discovery_keys: ::std::vec::Vec, pub assignment_keys: ::std::vec::Vec< runtime_types::polkadot_primitives::v4::assignment_app::Public, >, pub validator_groups: runtime_types::polkadot_primitives::v4::IndexedVec< runtime_types::polkadot_primitives::v4::GroupIndex, ::std::vec::Vec, >, pub n_cores: ::core::primitive::u32, pub zeroth_delay_tranche_width: ::core::primitive::u32, pub relay_vrf_modulo_samples: ::core::primitive::u32, pub n_delay_tranches: ::core::primitive::u32, pub no_show_slots: ::core::primitive::u32, pub needed_approvals: ::core::primitive::u32, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum UpgradeGoAhead { #[codec(index = 0)] Abort, #[codec(index = 1)] GoAhead, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum UpgradeRestriction { #[codec(index = 0)] Present, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum ValidDisputeStatementKind { #[codec(index = 0)] Explicit, #[codec(index = 1)] BackingSeconded(::subxt::utils::H256), #[codec(index = 2)] BackingValid(::subxt::utils::H256), #[codec(index = 3)] ApprovalChecking, } #[derive( :: subxt :: ext :: codec :: CompactAs, :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ValidatorIndex(pub ::core::primitive::u32); #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum ValidityAttestation { #[codec(index = 1)] Implicit(runtime_types::polkadot_primitives::v4::validator_app::Signature), #[codec(index = 2)] Explicit(runtime_types::polkadot_primitives::v4::validator_app::Signature), } } pub mod vstaging { use super::runtime_types; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct AsyncBackingParams { pub max_candidate_depth: ::core::primitive::u32, pub allowed_ancestry_len: ::core::primitive::u32, } } } pub mod polkadot_runtime { use super::runtime_types; pub mod governance { use super::runtime_types; pub mod origins { use super::runtime_types; pub mod pallet_custom_origins { use super::runtime_types; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum Origin { #[codec(index = 0)] StakingAdmin, #[codec(index = 1)] Treasurer, #[codec(index = 2)] FellowshipAdmin, #[codec(index = 3)] GeneralAdmin, #[codec(index = 4)] AuctionAdmin, #[codec(index = 5)] LeaseAdmin, #[codec(index = 6)] ReferendumCanceller, #[codec(index = 7)] ReferendumKiller, #[codec(index = 8)] SmallTipper, #[codec(index = 9)] BigTipper, #[codec(index = 10)] SmallSpender, #[codec(index = 11)] MediumSpender, #[codec(index = 12)] BigSpender, #[codec(index = 13)] WhitelistedCaller, } } } } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct NposCompactSolution16 { pub votes1: ::std::vec::Vec<( ::subxt::ext::codec::Compact<::core::primitive::u32>, ::subxt::ext::codec::Compact<::core::primitive::u16>, )>, pub votes2: ::std::vec::Vec<( ::subxt::ext::codec::Compact<::core::primitive::u32>, ( ::subxt::ext::codec::Compact<::core::primitive::u16>, ::subxt::ext::codec::Compact< runtime_types::sp_arithmetic::per_things::PerU16, >, ), ::subxt::ext::codec::Compact<::core::primitive::u16>, )>, pub votes3: ::std::vec::Vec<( ::subxt::ext::codec::Compact<::core::primitive::u32>, [( ::subxt::ext::codec::Compact<::core::primitive::u16>, ::subxt::ext::codec::Compact< runtime_types::sp_arithmetic::per_things::PerU16, >, ); 2usize], ::subxt::ext::codec::Compact<::core::primitive::u16>, )>, pub votes4: ::std::vec::Vec<( ::subxt::ext::codec::Compact<::core::primitive::u32>, [( ::subxt::ext::codec::Compact<::core::primitive::u16>, ::subxt::ext::codec::Compact< runtime_types::sp_arithmetic::per_things::PerU16, >, ); 3usize], ::subxt::ext::codec::Compact<::core::primitive::u16>, )>, pub votes5: ::std::vec::Vec<( ::subxt::ext::codec::Compact<::core::primitive::u32>, [( ::subxt::ext::codec::Compact<::core::primitive::u16>, ::subxt::ext::codec::Compact< runtime_types::sp_arithmetic::per_things::PerU16, >, ); 4usize], ::subxt::ext::codec::Compact<::core::primitive::u16>, )>, pub votes6: ::std::vec::Vec<( ::subxt::ext::codec::Compact<::core::primitive::u32>, [( ::subxt::ext::codec::Compact<::core::primitive::u16>, ::subxt::ext::codec::Compact< runtime_types::sp_arithmetic::per_things::PerU16, >, ); 5usize], ::subxt::ext::codec::Compact<::core::primitive::u16>, )>, pub votes7: ::std::vec::Vec<( ::subxt::ext::codec::Compact<::core::primitive::u32>, [( ::subxt::ext::codec::Compact<::core::primitive::u16>, ::subxt::ext::codec::Compact< runtime_types::sp_arithmetic::per_things::PerU16, >, ); 6usize], ::subxt::ext::codec::Compact<::core::primitive::u16>, )>, pub votes8: ::std::vec::Vec<( ::subxt::ext::codec::Compact<::core::primitive::u32>, [( ::subxt::ext::codec::Compact<::core::primitive::u16>, ::subxt::ext::codec::Compact< runtime_types::sp_arithmetic::per_things::PerU16, >, ); 7usize], ::subxt::ext::codec::Compact<::core::primitive::u16>, )>, pub votes9: ::std::vec::Vec<( ::subxt::ext::codec::Compact<::core::primitive::u32>, [( ::subxt::ext::codec::Compact<::core::primitive::u16>, ::subxt::ext::codec::Compact< runtime_types::sp_arithmetic::per_things::PerU16, >, ); 8usize], ::subxt::ext::codec::Compact<::core::primitive::u16>, )>, pub votes10: ::std::vec::Vec<( ::subxt::ext::codec::Compact<::core::primitive::u32>, [( ::subxt::ext::codec::Compact<::core::primitive::u16>, ::subxt::ext::codec::Compact< runtime_types::sp_arithmetic::per_things::PerU16, >, ); 9usize], ::subxt::ext::codec::Compact<::core::primitive::u16>, )>, pub votes11: ::std::vec::Vec<( ::subxt::ext::codec::Compact<::core::primitive::u32>, [( ::subxt::ext::codec::Compact<::core::primitive::u16>, ::subxt::ext::codec::Compact< runtime_types::sp_arithmetic::per_things::PerU16, >, ); 10usize], ::subxt::ext::codec::Compact<::core::primitive::u16>, )>, pub votes12: ::std::vec::Vec<( ::subxt::ext::codec::Compact<::core::primitive::u32>, [( ::subxt::ext::codec::Compact<::core::primitive::u16>, ::subxt::ext::codec::Compact< runtime_types::sp_arithmetic::per_things::PerU16, >, ); 11usize], ::subxt::ext::codec::Compact<::core::primitive::u16>, )>, pub votes13: ::std::vec::Vec<( ::subxt::ext::codec::Compact<::core::primitive::u32>, [( ::subxt::ext::codec::Compact<::core::primitive::u16>, ::subxt::ext::codec::Compact< runtime_types::sp_arithmetic::per_things::PerU16, >, ); 12usize], ::subxt::ext::codec::Compact<::core::primitive::u16>, )>, pub votes14: ::std::vec::Vec<( ::subxt::ext::codec::Compact<::core::primitive::u32>, [( ::subxt::ext::codec::Compact<::core::primitive::u16>, ::subxt::ext::codec::Compact< runtime_types::sp_arithmetic::per_things::PerU16, >, ); 13usize], ::subxt::ext::codec::Compact<::core::primitive::u16>, )>, pub votes15: ::std::vec::Vec<( ::subxt::ext::codec::Compact<::core::primitive::u32>, [( ::subxt::ext::codec::Compact<::core::primitive::u16>, ::subxt::ext::codec::Compact< runtime_types::sp_arithmetic::per_things::PerU16, >, ); 14usize], ::subxt::ext::codec::Compact<::core::primitive::u16>, )>, pub votes16: ::std::vec::Vec<( ::subxt::ext::codec::Compact<::core::primitive::u32>, [( ::subxt::ext::codec::Compact<::core::primitive::u16>, ::subxt::ext::codec::Compact< runtime_types::sp_arithmetic::per_things::PerU16, >, ); 15usize], ::subxt::ext::codec::Compact<::core::primitive::u16>, )>, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum OriginCaller { # [codec (index = 0)] system (runtime_types :: frame_support :: dispatch :: RawOrigin < :: subxt :: utils :: AccountId32 > ,) , # [codec (index = 15)] Council (runtime_types :: pallet_collective :: RawOrigin < :: subxt :: utils :: AccountId32 > ,) , # [codec (index = 16)] TechnicalCommittee (runtime_types :: pallet_collective :: RawOrigin < :: subxt :: utils :: AccountId32 > ,) , # [codec (index = 22)] Origins (runtime_types :: polkadot_runtime :: governance :: origins :: pallet_custom_origins :: Origin ,) , # [codec (index = 50)] ParachainsOrigin (runtime_types :: polkadot_runtime_parachains :: origin :: pallet :: Origin ,) , # [codec (index = 99)] XcmPallet (runtime_types :: pallet_xcm :: pallet :: Origin ,) , # [codec (index = 6)] Void (runtime_types :: sp_core :: Void ,) , } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum ProxyType { #[codec(index = 0)] Any, #[codec(index = 1)] NonTransfer, #[codec(index = 2)] Governance, #[codec(index = 3)] Staking, #[codec(index = 5)] IdentityJudgement, #[codec(index = 6)] CancelProxy, #[codec(index = 7)] Auction, #[codec(index = 8)] NominationPools, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Runtime; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum RuntimeCall { #[codec(index = 0)] System(runtime_types::frame_system::pallet::Call), #[codec(index = 1)] Scheduler(runtime_types::pallet_scheduler::pallet::Call), #[codec(index = 10)] Preimage(runtime_types::pallet_preimage::pallet::Call), #[codec(index = 2)] Babe(runtime_types::pallet_babe::pallet::Call), #[codec(index = 3)] Timestamp(runtime_types::pallet_timestamp::pallet::Call), #[codec(index = 4)] Indices(runtime_types::pallet_indices::pallet::Call), #[codec(index = 5)] Balances(runtime_types::pallet_balances::pallet::Call), #[codec(index = 7)] Staking(runtime_types::pallet_staking::pallet::pallet::Call), #[codec(index = 9)] Session(runtime_types::pallet_session::pallet::Call), #[codec(index = 11)] Grandpa(runtime_types::pallet_grandpa::pallet::Call), #[codec(index = 12)] ImOnline(runtime_types::pallet_im_online::pallet::Call), #[codec(index = 14)] Democracy(runtime_types::pallet_democracy::pallet::Call), #[codec(index = 15)] Council(runtime_types::pallet_collective::pallet::Call), #[codec(index = 16)] TechnicalCommittee(runtime_types::pallet_collective::pallet::Call2), #[codec(index = 17)] PhragmenElection(runtime_types::pallet_elections_phragmen::pallet::Call), #[codec(index = 18)] TechnicalMembership(runtime_types::pallet_membership::pallet::Call), #[codec(index = 19)] Treasury(runtime_types::pallet_treasury::pallet::Call), #[codec(index = 20)] ConvictionVoting(runtime_types::pallet_conviction_voting::pallet::Call), #[codec(index = 21)] Referenda(runtime_types::pallet_referenda::pallet::Call), #[codec(index = 23)] Whitelist(runtime_types::pallet_whitelist::pallet::Call), #[codec(index = 24)] Claims(runtime_types::polkadot_runtime_common::claims::pallet::Call), #[codec(index = 25)] Vesting(runtime_types::pallet_vesting::pallet::Call), #[codec(index = 26)] Utility(runtime_types::pallet_utility::pallet::Call), #[codec(index = 28)] Identity(runtime_types::pallet_identity::pallet::Call), #[codec(index = 29)] Proxy(runtime_types::pallet_proxy::pallet::Call), #[codec(index = 30)] Multisig(runtime_types::pallet_multisig::pallet::Call), #[codec(index = 34)] Bounties(runtime_types::pallet_bounties::pallet::Call), #[codec(index = 38)] ChildBounties(runtime_types::pallet_child_bounties::pallet::Call), #[codec(index = 35)] Tips(runtime_types::pallet_tips::pallet::Call), #[codec(index = 36)] ElectionProviderMultiPhase( runtime_types::pallet_election_provider_multi_phase::pallet::Call, ), #[codec(index = 37)] VoterList(runtime_types::pallet_bags_list::pallet::Call), #[codec(index = 39)] NominationPools(runtime_types::pallet_nomination_pools::pallet::Call), #[codec(index = 40)] FastUnstake(runtime_types::pallet_fast_unstake::pallet::Call), #[codec(index = 51)] Configuration( runtime_types::polkadot_runtime_parachains::configuration::pallet::Call, ), #[codec(index = 52)] ParasShared(runtime_types::polkadot_runtime_parachains::shared::pallet::Call), #[codec(index = 53)] ParaInclusion(runtime_types::polkadot_runtime_parachains::inclusion::pallet::Call), #[codec(index = 54)] ParaInherent( runtime_types::polkadot_runtime_parachains::paras_inherent::pallet::Call, ), #[codec(index = 56)] Paras(runtime_types::polkadot_runtime_parachains::paras::pallet::Call), #[codec(index = 57)] Initializer(runtime_types::polkadot_runtime_parachains::initializer::pallet::Call), #[codec(index = 59)] Ump(runtime_types::polkadot_runtime_parachains::ump::pallet::Call), #[codec(index = 60)] Hrmp(runtime_types::polkadot_runtime_parachains::hrmp::pallet::Call), #[codec(index = 62)] ParasDisputes(runtime_types::polkadot_runtime_parachains::disputes::pallet::Call), #[codec(index = 63)] ParasSlashing( runtime_types::polkadot_runtime_parachains::disputes::slashing::pallet::Call, ), #[codec(index = 70)] Registrar(runtime_types::polkadot_runtime_common::paras_registrar::pallet::Call), #[codec(index = 71)] Slots(runtime_types::polkadot_runtime_common::slots::pallet::Call), #[codec(index = 72)] Auctions(runtime_types::polkadot_runtime_common::auctions::pallet::Call), #[codec(index = 73)] Crowdloan(runtime_types::polkadot_runtime_common::crowdloan::pallet::Call), #[codec(index = 99)] XcmPallet(runtime_types::pallet_xcm::pallet::Call), } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum RuntimeEvent { #[codec(index = 0)] System(runtime_types::frame_system::pallet::Event), #[codec(index = 1)] Scheduler(runtime_types::pallet_scheduler::pallet::Event), #[codec(index = 10)] Preimage(runtime_types::pallet_preimage::pallet::Event), #[codec(index = 4)] Indices(runtime_types::pallet_indices::pallet::Event), #[codec(index = 5)] Balances(runtime_types::pallet_balances::pallet::Event), #[codec(index = 32)] TransactionPayment(runtime_types::pallet_transaction_payment::pallet::Event), #[codec(index = 7)] Staking(runtime_types::pallet_staking::pallet::pallet::Event), #[codec(index = 8)] Offences(runtime_types::pallet_offences::pallet::Event), #[codec(index = 9)] Session(runtime_types::pallet_session::pallet::Event), #[codec(index = 11)] Grandpa(runtime_types::pallet_grandpa::pallet::Event), #[codec(index = 12)] ImOnline(runtime_types::pallet_im_online::pallet::Event), #[codec(index = 14)] Democracy(runtime_types::pallet_democracy::pallet::Event), #[codec(index = 15)] Council(runtime_types::pallet_collective::pallet::Event), #[codec(index = 16)] TechnicalCommittee(runtime_types::pallet_collective::pallet::Event2), #[codec(index = 17)] PhragmenElection(runtime_types::pallet_elections_phragmen::pallet::Event), #[codec(index = 18)] TechnicalMembership(runtime_types::pallet_membership::pallet::Event), #[codec(index = 19)] Treasury(runtime_types::pallet_treasury::pallet::Event), #[codec(index = 20)] ConvictionVoting(runtime_types::pallet_conviction_voting::pallet::Event), #[codec(index = 21)] Referenda(runtime_types::pallet_referenda::pallet::Event), #[codec(index = 23)] Whitelist(runtime_types::pallet_whitelist::pallet::Event), #[codec(index = 24)] Claims(runtime_types::polkadot_runtime_common::claims::pallet::Event), #[codec(index = 25)] Vesting(runtime_types::pallet_vesting::pallet::Event), #[codec(index = 26)] Utility(runtime_types::pallet_utility::pallet::Event), #[codec(index = 28)] Identity(runtime_types::pallet_identity::pallet::Event), #[codec(index = 29)] Proxy(runtime_types::pallet_proxy::pallet::Event), #[codec(index = 30)] Multisig(runtime_types::pallet_multisig::pallet::Event), #[codec(index = 34)] Bounties(runtime_types::pallet_bounties::pallet::Event), #[codec(index = 38)] ChildBounties(runtime_types::pallet_child_bounties::pallet::Event), #[codec(index = 35)] Tips(runtime_types::pallet_tips::pallet::Event), #[codec(index = 36)] ElectionProviderMultiPhase( runtime_types::pallet_election_provider_multi_phase::pallet::Event, ), #[codec(index = 37)] VoterList(runtime_types::pallet_bags_list::pallet::Event), #[codec(index = 39)] NominationPools(runtime_types::pallet_nomination_pools::pallet::Event), #[codec(index = 40)] FastUnstake(runtime_types::pallet_fast_unstake::pallet::Event), #[codec(index = 53)] ParaInclusion(runtime_types::polkadot_runtime_parachains::inclusion::pallet::Event), #[codec(index = 56)] Paras(runtime_types::polkadot_runtime_parachains::paras::pallet::Event), #[codec(index = 59)] Ump(runtime_types::polkadot_runtime_parachains::ump::pallet::Event), #[codec(index = 60)] Hrmp(runtime_types::polkadot_runtime_parachains::hrmp::pallet::Event), #[codec(index = 62)] ParasDisputes(runtime_types::polkadot_runtime_parachains::disputes::pallet::Event), #[codec(index = 70)] Registrar(runtime_types::polkadot_runtime_common::paras_registrar::pallet::Event), #[codec(index = 71)] Slots(runtime_types::polkadot_runtime_common::slots::pallet::Event), #[codec(index = 72)] Auctions(runtime_types::polkadot_runtime_common::auctions::pallet::Event), #[codec(index = 73)] Crowdloan(runtime_types::polkadot_runtime_common::crowdloan::pallet::Event), #[codec(index = 99)] XcmPallet(runtime_types::pallet_xcm::pallet::Event), } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SessionKeys { pub grandpa: runtime_types::sp_consensus_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 para_validator: runtime_types::polkadot_primitives::v4::validator_app::Public, pub para_assignment: runtime_types::polkadot_primitives::v4::assignment_app::Public, pub authority_discovery: runtime_types::sp_authority_discovery::app::Public, } } pub mod polkadot_runtime_common { use super::runtime_types; pub mod auctions { use super::runtime_types; pub mod pallet { use super::runtime_types; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] pub enum Call { #[codec(index = 0)] #[doc = "Create a new auction."] #[doc = ""] #[doc = "This can only happen when there isn't already an auction in progress and may only be"] #[doc = "called by the root origin. Accepts the `duration` of this auction and the"] #[doc = "`lease_period_index` of the initial lease period of the four that are to be auctioned."] new_auction { #[codec(compact)] duration: ::core::primitive::u32, #[codec(compact)] lease_period_index: ::core::primitive::u32, }, #[codec(index = 1)] #[doc = "Make a new bid from an account (including a parachain account) for deploying a new"] #[doc = "parachain."] #[doc = ""] #[doc = "Multiple simultaneous bids from the same bidder are allowed only as long as all active"] #[doc = "bids overlap each other (i.e. are mutually exclusive). Bids cannot be redacted."] #[doc = ""] #[doc = "- `sub` is the sub-bidder ID, allowing for multiple competing bids to be made by (and"] #[doc = "funded by) the same account."] #[doc = "- `auction_index` is the index of the auction to bid on. Should just be the present"] #[doc = "value of `AuctionCounter`."] #[doc = "- `first_slot` is the first lease period index of the range to bid on. This is the"] #[doc = "absolute lease period index value, not an auction-specific offset."] #[doc = "- `last_slot` is the last lease period index of the range to bid on. This is the"] #[doc = "absolute lease period index value, not an auction-specific offset."] #[doc = "- `amount` is the amount to bid to be held as deposit for the parachain should the"] #[doc = "bid win. This amount is held throughout the range."] bid { #[codec(compact)] para: runtime_types::polkadot_parachain::primitives::Id, #[codec(compact)] auction_index: ::core::primitive::u32, #[codec(compact)] first_slot: ::core::primitive::u32, #[codec(compact)] last_slot: ::core::primitive::u32, #[codec(compact)] amount: ::core::primitive::u128, }, #[codec(index = 2)] #[doc = "Cancel an in-progress auction."] #[doc = ""] #[doc = "Can only be called by Root origin."] cancel_auction, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] pub enum Error { #[codec(index = 0)] #[doc = "This auction is already in progress."] AuctionInProgress, #[codec(index = 1)] #[doc = "The lease period is in the past."] LeasePeriodInPast, #[codec(index = 2)] #[doc = "Para is not registered"] ParaNotRegistered, #[codec(index = 3)] #[doc = "Not a current auction."] NotCurrentAuction, #[codec(index = 4)] #[doc = "Not an auction."] NotAuction, #[codec(index = 5)] #[doc = "Auction has already ended."] AuctionEnded, #[codec(index = 6)] #[doc = "The para is already leased out for part of this range."] AlreadyLeasedOut, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] pub enum Event { #[codec(index = 0)] #[doc = "An auction started. Provides its index and the block number where it will begin to"] #[doc = "close and the first lease period of the quadruplet that is auctioned."] AuctionStarted { auction_index: ::core::primitive::u32, lease_period: ::core::primitive::u32, ending: ::core::primitive::u32, }, #[codec(index = 1)] #[doc = "An auction ended. All funds become unreserved."] AuctionClosed { auction_index: ::core::primitive::u32, }, #[codec(index = 2)] #[doc = "Funds were reserved for a winning bid. First balance is the extra amount reserved."] #[doc = "Second is the total."] Reserved { bidder: ::subxt::utils::AccountId32, extra_reserved: ::core::primitive::u128, total_amount: ::core::primitive::u128, }, #[codec(index = 3)] #[doc = "Funds were unreserved since bidder is no longer active. `[bidder, amount]`"] Unreserved { bidder: ::subxt::utils::AccountId32, amount: ::core::primitive::u128, }, #[codec(index = 4)] #[doc = "Someone attempted to lease the same slot twice for a parachain. The amount is held in reserve"] #[doc = "but no parachain slot has been leased."] ReserveConfiscated { para_id: runtime_types::polkadot_parachain::primitives::Id, leaser: ::subxt::utils::AccountId32, amount: ::core::primitive::u128, }, #[codec(index = 5)] #[doc = "A new bid has been accepted as the current winner."] BidAccepted { bidder: ::subxt::utils::AccountId32, para_id: runtime_types::polkadot_parachain::primitives::Id, amount: ::core::primitive::u128, first_slot: ::core::primitive::u32, last_slot: ::core::primitive::u32, }, #[codec(index = 6)] #[doc = "The winning offset was chosen for an auction. This will map into the `Winning` storage map."] WinningOffset { auction_index: ::core::primitive::u32, block_number: ::core::primitive::u32, }, } } } pub mod claims { use super::runtime_types; pub mod pallet { use super::runtime_types; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] pub enum Call { #[codec(index = 0)] #[doc = "Make a claim to collect your DOTs."] #[doc = ""] #[doc = "The dispatch origin for this call must be _None_."] #[doc = ""] #[doc = "Unsigned Validation:"] #[doc = "A call to claim is deemed valid if the signature provided matches"] #[doc = "the expected signed message of:"] #[doc = ""] #[doc = "> Ethereum Signed Message:"] #[doc = "> (configured prefix string)(address)"] #[doc = ""] #[doc = "and `address` matches the `dest` account."] #[doc = ""] #[doc = "Parameters:"] #[doc = "- `dest`: The destination account to payout the claim."] #[doc = "- `ethereum_signature`: The signature of an ethereum signed message"] #[doc = " matching the format described above."] #[doc = ""] #[doc = ""] #[doc = "The weight of this call is invariant over the input parameters."] #[doc = "Weight includes logic to validate unsigned `claim` call."] #[doc = ""] #[doc = "Total Complexity: O(1)"] #[doc = ""] claim { dest: ::subxt::utils::AccountId32, ethereum_signature: runtime_types::polkadot_runtime_common::claims::EcdsaSignature, }, #[codec(index = 1)] #[doc = "Mint a new claim to collect DOTs."] #[doc = ""] #[doc = "The dispatch origin for this call must be _Root_."] #[doc = ""] #[doc = "Parameters:"] #[doc = "- `who`: The Ethereum address allowed to collect this claim."] #[doc = "- `value`: The number of DOTs that will be claimed."] #[doc = "- `vesting_schedule`: An optional vesting schedule for these DOTs."] #[doc = ""] #[doc = ""] #[doc = "The weight of this call is invariant over the input parameters."] #[doc = "We assume worst case that both vesting and statement is being inserted."] #[doc = ""] #[doc = "Total Complexity: O(1)"] #[doc = ""] mint_claim { who: runtime_types::polkadot_runtime_common::claims::EthereumAddress, value: ::core::primitive::u128, vesting_schedule: ::core::option::Option<( ::core::primitive::u128, ::core::primitive::u128, ::core::primitive::u32, )>, statement: ::core::option::Option< runtime_types::polkadot_runtime_common::claims::StatementKind, >, }, #[codec(index = 2)] #[doc = "Make a claim to collect your DOTs by signing a statement."] #[doc = ""] #[doc = "The dispatch origin for this call must be _None_."] #[doc = ""] #[doc = "Unsigned Validation:"] #[doc = "A call to `claim_attest` is deemed valid if the signature provided matches"] #[doc = "the expected signed message of:"] #[doc = ""] #[doc = "> Ethereum Signed Message:"] #[doc = "> (configured prefix string)(address)(statement)"] #[doc = ""] #[doc = "and `address` matches the `dest` account; the `statement` must match that which is"] #[doc = "expected according to your purchase arrangement."] #[doc = ""] #[doc = "Parameters:"] #[doc = "- `dest`: The destination account to payout the claim."] #[doc = "- `ethereum_signature`: The signature of an ethereum signed message"] #[doc = " matching the format described above."] #[doc = "- `statement`: The identity of the statement which is being attested to in the signature."] #[doc = ""] #[doc = ""] #[doc = "The weight of this call is invariant over the input parameters."] #[doc = "Weight includes logic to validate unsigned `claim_attest` call."] #[doc = ""] #[doc = "Total Complexity: O(1)"] #[doc = ""] claim_attest { dest: ::subxt::utils::AccountId32, ethereum_signature: runtime_types::polkadot_runtime_common::claims::EcdsaSignature, statement: ::std::vec::Vec<::core::primitive::u8>, }, #[codec(index = 3)] #[doc = "Attest to a statement, needed to finalize the claims process."] #[doc = ""] #[doc = "WARNING: Insecure unless your chain includes `PrevalidateAttests` as a `SignedExtension`."] #[doc = ""] #[doc = "Unsigned Validation:"] #[doc = "A call to attest is deemed valid if the sender has a `Preclaim` registered"] #[doc = "and provides a `statement` which is expected for the account."] #[doc = ""] #[doc = "Parameters:"] #[doc = "- `statement`: The identity of the statement which is being attested to in the signature."] #[doc = ""] #[doc = ""] #[doc = "The weight of this call is invariant over the input parameters."] #[doc = "Weight includes logic to do pre-validation on `attest` call."] #[doc = ""] #[doc = "Total Complexity: O(1)"] #[doc = ""] attest { statement: ::std::vec::Vec<::core::primitive::u8>, }, #[codec(index = 4)] move_claim { old: runtime_types::polkadot_runtime_common::claims::EthereumAddress, new: runtime_types::polkadot_runtime_common::claims::EthereumAddress, maybe_preclaim: ::core::option::Option<::subxt::utils::AccountId32>, }, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] pub enum Error { #[codec(index = 0)] #[doc = "Invalid Ethereum signature."] InvalidEthereumSignature, #[codec(index = 1)] #[doc = "Ethereum address has no claim."] SignerHasNoClaim, #[codec(index = 2)] #[doc = "Account ID sending transaction has no claim."] SenderHasNoClaim, #[codec(index = 3)] #[doc = "There's not enough in the pot to pay out some unvested amount. Generally implies a logic"] #[doc = "error."] PotUnderflow, #[codec(index = 4)] #[doc = "A needed statement was not included."] InvalidStatement, #[codec(index = 5)] #[doc = "The account already has a vested balance."] VestedBalanceExists, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] pub enum Event { #[codec(index = 0)] #[doc = "Someone claimed some DOTs."] Claimed { who: ::subxt::utils::AccountId32, ethereum_address: runtime_types::polkadot_runtime_common::claims::EthereumAddress, amount: ::core::primitive::u128, }, } } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct EcdsaSignature(pub [::core::primitive::u8; 65usize]); #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct EthereumAddress(pub [::core::primitive::u8; 20usize]); #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct PrevalidateAttests; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum StatementKind { #[codec(index = 0)] Regular, #[codec(index = 1)] Saft, } } pub mod crowdloan { use super::runtime_types; pub mod pallet { use super::runtime_types; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] pub enum Call { #[codec(index = 0)] #[doc = "Create a new crowdloaning campaign for a parachain slot with the given lease period range."] #[doc = ""] #[doc = "This applies a lock to your parachain configuration, ensuring that it cannot be changed"] #[doc = "by the parachain manager."] create { #[codec(compact)] index: runtime_types::polkadot_parachain::primitives::Id, #[codec(compact)] cap: ::core::primitive::u128, #[codec(compact)] first_period: ::core::primitive::u32, #[codec(compact)] last_period: ::core::primitive::u32, #[codec(compact)] end: ::core::primitive::u32, verifier: ::core::option::Option, }, #[codec(index = 1)] #[doc = "Contribute to a crowd sale. This will transfer some balance over to fund a parachain"] #[doc = "slot. It will be withdrawable when the crowdloan has ended and the funds are unused."] contribute { #[codec(compact)] index: runtime_types::polkadot_parachain::primitives::Id, #[codec(compact)] value: ::core::primitive::u128, signature: ::core::option::Option, }, #[codec(index = 2)] #[doc = "Withdraw full balance of a specific contributor."] #[doc = ""] #[doc = "Origin must be signed, but can come from anyone."] #[doc = ""] #[doc = "The fund must be either in, or ready for, retirement. For a fund to be *in* retirement, then the retirement"] #[doc = "flag must be set. For a fund to be ready for retirement, then:"] #[doc = "- it must not already be in retirement;"] #[doc = "- the amount of raised funds must be bigger than the _free_ balance of the account;"] #[doc = "- and either:"] #[doc = " - the block number must be at least `end`; or"] #[doc = " - the current lease period must be greater than the fund's `last_period`."] #[doc = ""] #[doc = "In this case, the fund's retirement flag is set and its `end` is reset to the current block"] #[doc = "number."] #[doc = ""] #[doc = "- `who`: The account whose contribution should be withdrawn."] #[doc = "- `index`: The parachain to whose crowdloan the contribution was made."] withdraw { who: ::subxt::utils::AccountId32, #[codec(compact)] index: runtime_types::polkadot_parachain::primitives::Id, }, #[codec(index = 3)] #[doc = "Automatically refund contributors of an ended crowdloan."] #[doc = "Due to weight restrictions, this function may need to be called multiple"] #[doc = "times to fully refund all users. We will refund `RemoveKeysLimit` users at a time."] #[doc = ""] #[doc = "Origin must be signed, but can come from anyone."] refund { #[codec(compact)] index: runtime_types::polkadot_parachain::primitives::Id, }, #[codec(index = 4)] #[doc = "Remove a fund after the retirement period has ended and all funds have been returned."] dissolve { #[codec(compact)] index: runtime_types::polkadot_parachain::primitives::Id, }, #[codec(index = 5)] #[doc = "Edit the configuration for an in-progress crowdloan."] #[doc = ""] #[doc = "Can only be called by Root origin."] edit { #[codec(compact)] index: runtime_types::polkadot_parachain::primitives::Id, #[codec(compact)] cap: ::core::primitive::u128, #[codec(compact)] first_period: ::core::primitive::u32, #[codec(compact)] last_period: ::core::primitive::u32, #[codec(compact)] end: ::core::primitive::u32, verifier: ::core::option::Option, }, #[codec(index = 6)] #[doc = "Add an optional memo to an existing crowdloan contribution."] #[doc = ""] #[doc = "Origin must be Signed, and the user must have contributed to the crowdloan."] add_memo { index: runtime_types::polkadot_parachain::primitives::Id, memo: ::std::vec::Vec<::core::primitive::u8>, }, #[codec(index = 7)] #[doc = "Poke the fund into `NewRaise`"] #[doc = ""] #[doc = "Origin must be Signed, and the fund has non-zero raise."] poke { index: runtime_types::polkadot_parachain::primitives::Id, }, #[codec(index = 8)] #[doc = "Contribute your entire balance to a crowd sale. This will transfer the entire balance of a user over to fund a parachain"] #[doc = "slot. It will be withdrawable when the crowdloan has ended and the funds are unused."] contribute_all { #[codec(compact)] index: runtime_types::polkadot_parachain::primitives::Id, signature: ::core::option::Option, }, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] pub enum Error { #[codec(index = 0)] #[doc = "The current lease period is more than the first lease period."] FirstPeriodInPast, #[codec(index = 1)] #[doc = "The first lease period needs to at least be less than 3 `max_value`."] FirstPeriodTooFarInFuture, #[codec(index = 2)] #[doc = "Last lease period must be greater than first lease period."] LastPeriodBeforeFirstPeriod, #[codec(index = 3)] #[doc = "The last lease period cannot be more than 3 periods after the first period."] LastPeriodTooFarInFuture, #[codec(index = 4)] #[doc = "The campaign ends before the current block number. The end must be in the future."] CannotEndInPast, #[codec(index = 5)] #[doc = "The end date for this crowdloan is not sensible."] EndTooFarInFuture, #[codec(index = 6)] #[doc = "There was an overflow."] Overflow, #[codec(index = 7)] #[doc = "The contribution was below the minimum, `MinContribution`."] ContributionTooSmall, #[codec(index = 8)] #[doc = "Invalid fund index."] InvalidParaId, #[codec(index = 9)] #[doc = "Contributions exceed maximum amount."] CapExceeded, #[codec(index = 10)] #[doc = "The contribution period has already ended."] ContributionPeriodOver, #[codec(index = 11)] #[doc = "The origin of this call is invalid."] InvalidOrigin, #[codec(index = 12)] #[doc = "This crowdloan does not correspond to a parachain."] NotParachain, #[codec(index = 13)] #[doc = "This parachain lease is still active and retirement cannot yet begin."] LeaseActive, #[codec(index = 14)] #[doc = "This parachain's bid or lease is still active and withdraw cannot yet begin."] BidOrLeaseActive, #[codec(index = 15)] #[doc = "The crowdloan has not yet ended."] FundNotEnded, #[codec(index = 16)] #[doc = "There are no contributions stored in this crowdloan."] NoContributions, #[codec(index = 17)] #[doc = "The crowdloan is not ready to dissolve. Potentially still has a slot or in retirement period."] NotReadyToDissolve, #[codec(index = 18)] #[doc = "Invalid signature."] InvalidSignature, #[codec(index = 19)] #[doc = "The provided memo is too large."] MemoTooLarge, #[codec(index = 20)] #[doc = "The fund is already in `NewRaise`"] AlreadyInNewRaise, #[codec(index = 21)] #[doc = "No contributions allowed during the VRF delay"] VrfDelayInProgress, #[codec(index = 22)] #[doc = "A lease period has not started yet, due to an offset in the starting block."] NoLeasePeriod, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] pub enum Event { #[codec(index = 0)] #[doc = "Create a new crowdloaning campaign."] Created { para_id: runtime_types::polkadot_parachain::primitives::Id, }, #[codec(index = 1)] #[doc = "Contributed to a crowd sale."] Contributed { who: ::subxt::utils::AccountId32, fund_index: runtime_types::polkadot_parachain::primitives::Id, amount: ::core::primitive::u128, }, #[codec(index = 2)] #[doc = "Withdrew full balance of a contributor."] Withdrew { who: ::subxt::utils::AccountId32, fund_index: runtime_types::polkadot_parachain::primitives::Id, amount: ::core::primitive::u128, }, #[codec(index = 3)] #[doc = "The loans in a fund have been partially dissolved, i.e. there are some left"] #[doc = "over child keys that still need to be killed."] PartiallyRefunded { para_id: runtime_types::polkadot_parachain::primitives::Id, }, #[codec(index = 4)] #[doc = "All loans in a fund have been refunded."] AllRefunded { para_id: runtime_types::polkadot_parachain::primitives::Id, }, #[codec(index = 5)] #[doc = "Fund is dissolved."] Dissolved { para_id: runtime_types::polkadot_parachain::primitives::Id, }, #[codec(index = 6)] #[doc = "The result of trying to submit a new bid to the Slots pallet."] HandleBidResult { para_id: runtime_types::polkadot_parachain::primitives::Id, result: ::core::result::Result< (), runtime_types::sp_runtime::DispatchError, >, }, #[codec(index = 7)] #[doc = "The configuration to a crowdloan has been edited."] Edited { para_id: runtime_types::polkadot_parachain::primitives::Id, }, #[codec(index = 8)] #[doc = "A memo has been updated."] MemoUpdated { who: ::subxt::utils::AccountId32, para_id: runtime_types::polkadot_parachain::primitives::Id, memo: ::std::vec::Vec<::core::primitive::u8>, }, #[codec(index = 9)] #[doc = "A parachain has been moved to `NewRaise`"] AddedToNewRaise { para_id: runtime_types::polkadot_parachain::primitives::Id, }, } } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct FundInfo<_0, _1, _2, _3> { pub depositor: _0, pub verifier: ::core::option::Option, pub deposit: _1, pub raised: _1, pub end: _2, pub cap: _1, pub last_contribution: runtime_types::polkadot_runtime_common::crowdloan::LastContribution<_2>, pub first_period: _2, pub last_period: _2, pub fund_index: _2, #[codec(skip)] pub __subxt_unused_type_params: ::core::marker::PhantomData<_3>, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum LastContribution<_0> { #[codec(index = 0)] Never, #[codec(index = 1)] PreEnding(_0), #[codec(index = 2)] Ending(_0), } } pub mod paras_registrar { use super::runtime_types; pub mod pallet { use super::runtime_types; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] pub enum Call { #[codec(index = 0)] #[doc = "Register head data and validation code for a reserved Para Id."] #[doc = ""] #[doc = "## Arguments"] #[doc = "- `origin`: Must be called by a `Signed` origin."] #[doc = "- `id`: The para ID. Must be owned/managed by the `origin` signing account."] #[doc = "- `genesis_head`: The genesis head data of the parachain/thread."] #[doc = "- `validation_code`: The initial validation code of the parachain/thread."] #[doc = ""] #[doc = "## Deposits/Fees"] #[doc = "The origin signed account must reserve a corresponding deposit for the registration. Anything already"] #[doc = "reserved previously for this para ID is accounted for."] #[doc = ""] #[doc = "## Events"] #[doc = "The `Registered` event is emitted in case of success."] register { id: runtime_types::polkadot_parachain::primitives::Id, genesis_head: runtime_types::polkadot_parachain::primitives::HeadData, validation_code: runtime_types::polkadot_parachain::primitives::ValidationCode, }, #[codec(index = 1)] #[doc = "Force the registration of a Para Id on the relay chain."] #[doc = ""] #[doc = "This function must be called by a Root origin."] #[doc = ""] #[doc = "The deposit taken can be specified for this registration. Any `ParaId`"] #[doc = "can be registered, including sub-1000 IDs which are System Parachains."] force_register { who: ::subxt::utils::AccountId32, deposit: ::core::primitive::u128, id: runtime_types::polkadot_parachain::primitives::Id, genesis_head: runtime_types::polkadot_parachain::primitives::HeadData, validation_code: runtime_types::polkadot_parachain::primitives::ValidationCode, }, #[codec(index = 2)] #[doc = "Deregister a Para Id, freeing all data and returning any deposit."] #[doc = ""] #[doc = "The caller must be Root, the `para` owner, or the `para` itself. The para must be a parathread."] deregister { id: runtime_types::polkadot_parachain::primitives::Id, }, #[codec(index = 3)] #[doc = "Swap a parachain with another parachain or parathread."] #[doc = ""] #[doc = "The origin must be Root, the `para` owner, or the `para` itself."] #[doc = ""] #[doc = "The swap will happen only if there is already an opposite swap pending. If there is not,"] #[doc = "the swap will be stored in the pending swaps map, ready for a later confirmatory swap."] #[doc = ""] #[doc = "The `ParaId`s remain mapped to the same head data and code so external code can rely on"] #[doc = "`ParaId` to be a long-term identifier of a notional \"parachain\". However, their"] #[doc = "scheduling info (i.e. whether they're a parathread or parachain), auction information"] #[doc = "and the auction deposit are switched."] swap { id: runtime_types::polkadot_parachain::primitives::Id, other: runtime_types::polkadot_parachain::primitives::Id, }, #[codec(index = 4)] #[doc = "Remove a manager lock from a para. This will allow the manager of a"] #[doc = "previously locked para to deregister or swap a para without using governance."] #[doc = ""] #[doc = "Can only be called by the Root origin or the parachain."] remove_lock { para: runtime_types::polkadot_parachain::primitives::Id, }, #[codec(index = 5)] #[doc = "Reserve a Para Id on the relay chain."] #[doc = ""] #[doc = "This function will reserve a new Para Id to be owned/managed by the origin account."] #[doc = "The origin account is able to register head data and validation code using `register` to create"] #[doc = "a parathread. Using the Slots pallet, a parathread can then be upgraded to get a parachain slot."] #[doc = ""] #[doc = "## Arguments"] #[doc = "- `origin`: Must be called by a `Signed` origin. Becomes the manager/owner of the new para ID."] #[doc = ""] #[doc = "## Deposits/Fees"] #[doc = "The origin must reserve a deposit of `ParaDeposit` for the registration."] #[doc = ""] #[doc = "## Events"] #[doc = "The `Reserved` event is emitted in case of success, which provides the ID reserved for use."] reserve, #[codec(index = 6)] #[doc = "Add a manager lock from a para. This will prevent the manager of a"] #[doc = "para to deregister or swap a para."] #[doc = ""] #[doc = "Can be called by Root, the parachain, or the parachain manager if the parachain is unlocked."] add_lock { para: runtime_types::polkadot_parachain::primitives::Id, }, #[codec(index = 7)] #[doc = "Schedule a parachain upgrade."] #[doc = ""] #[doc = "Can be called by Root, the parachain, or the parachain manager if the parachain is unlocked."] schedule_code_upgrade { para: runtime_types::polkadot_parachain::primitives::Id, new_code: runtime_types::polkadot_parachain::primitives::ValidationCode, }, #[codec(index = 8)] #[doc = "Set the parachain's current head."] #[doc = ""] #[doc = "Can be called by Root, the parachain, or the parachain manager if the parachain is unlocked."] set_current_head { para: runtime_types::polkadot_parachain::primitives::Id, new_head: runtime_types::polkadot_parachain::primitives::HeadData, }, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] pub enum Error { #[codec(index = 0)] #[doc = "The ID is not registered."] NotRegistered, #[codec(index = 1)] #[doc = "The ID is already registered."] AlreadyRegistered, #[codec(index = 2)] #[doc = "The caller is not the owner of this Id."] NotOwner, #[codec(index = 3)] #[doc = "Invalid para code size."] CodeTooLarge, #[codec(index = 4)] #[doc = "Invalid para head data size."] HeadDataTooLarge, #[codec(index = 5)] #[doc = "Para is not a Parachain."] NotParachain, #[codec(index = 6)] #[doc = "Para is not a Parathread."] NotParathread, #[codec(index = 7)] #[doc = "Cannot deregister para"] CannotDeregister, #[codec(index = 8)] #[doc = "Cannot schedule downgrade of parachain to parathread"] CannotDowngrade, #[codec(index = 9)] #[doc = "Cannot schedule upgrade of parathread to parachain"] CannotUpgrade, #[codec(index = 10)] #[doc = "Para is locked from manipulation by the manager. Must use parachain or relay chain governance."] ParaLocked, #[codec(index = 11)] #[doc = "The ID given for registration has not been reserved."] NotReserved, #[codec(index = 12)] #[doc = "Registering parachain with empty code is not allowed."] EmptyCode, #[codec(index = 13)] #[doc = "Cannot perform a parachain slot / lifecycle swap. Check that the state of both paras are"] #[doc = "correct for the swap to work."] CannotSwap, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] pub enum Event { #[codec(index = 0)] Registered { para_id: runtime_types::polkadot_parachain::primitives::Id, manager: ::subxt::utils::AccountId32, }, #[codec(index = 1)] Deregistered { para_id: runtime_types::polkadot_parachain::primitives::Id, }, #[codec(index = 2)] Reserved { para_id: runtime_types::polkadot_parachain::primitives::Id, who: ::subxt::utils::AccountId32, }, #[codec(index = 3)] Swapped { para_id: runtime_types::polkadot_parachain::primitives::Id, other_id: runtime_types::polkadot_parachain::primitives::Id, }, } } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ParaInfo<_0, _1> { pub manager: _0, pub deposit: _1, pub locked: ::core::primitive::bool, } } pub mod slots { use super::runtime_types; pub mod pallet { use super::runtime_types; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] pub enum Call { #[codec(index = 0)] #[doc = "Just a connect into the `lease_out` call, in case Root wants to force some lease to happen"] #[doc = "independently of any other on-chain mechanism to use it."] #[doc = ""] #[doc = "The dispatch origin for this call must match `T::ForceOrigin`."] force_lease { para: runtime_types::polkadot_parachain::primitives::Id, leaser: ::subxt::utils::AccountId32, amount: ::core::primitive::u128, period_begin: ::core::primitive::u32, period_count: ::core::primitive::u32, }, #[codec(index = 1)] #[doc = "Clear all leases for a Para Id, refunding any deposits back to the original owners."] #[doc = ""] #[doc = "The dispatch origin for this call must match `T::ForceOrigin`."] clear_all_leases { para: runtime_types::polkadot_parachain::primitives::Id, }, #[codec(index = 2)] #[doc = "Try to onboard a parachain that has a lease for the current lease period."] #[doc = ""] #[doc = "This function can be useful if there was some state issue with a para that should"] #[doc = "have onboarded, but was unable to. As long as they have a lease period, we can"] #[doc = "let them onboard from here."] #[doc = ""] #[doc = "Origin must be signed, but can be called by anyone."] trigger_onboard { para: runtime_types::polkadot_parachain::primitives::Id, }, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] pub enum Error { #[codec(index = 0)] #[doc = "The parachain ID is not onboarding."] ParaNotOnboarding, #[codec(index = 1)] #[doc = "There was an error with the lease."] LeaseError, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] pub enum Event { #[codec(index = 0)] #[doc = "A new `[lease_period]` is beginning."] NewLeasePeriod { lease_period: ::core::primitive::u32, }, #[codec(index = 1)] #[doc = "A para has won the right to a continuous set of lease periods as a parachain."] #[doc = "First balance is any extra amount reserved on top of the para's existing deposit."] #[doc = "Second balance is the total amount reserved."] Leased { para_id: runtime_types::polkadot_parachain::primitives::Id, leaser: ::subxt::utils::AccountId32, period_begin: ::core::primitive::u32, period_count: ::core::primitive::u32, extra_reserved: ::core::primitive::u128, total_amount: ::core::primitive::u128, }, } } } } pub mod polkadot_runtime_parachains { use super::runtime_types; pub mod configuration { use super::runtime_types; pub mod pallet { use super::runtime_types; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] pub enum Call { # [codec (index = 0)] # [doc = "Set the validation upgrade cooldown."] set_validation_upgrade_cooldown { new : :: core :: primitive :: u32 , } , # [codec (index = 1)] # [doc = "Set the validation upgrade delay."] set_validation_upgrade_delay { new : :: core :: primitive :: u32 , } , # [codec (index = 2)] # [doc = "Set the acceptance period for an included candidate."] set_code_retention_period { new : :: core :: primitive :: u32 , } , # [codec (index = 3)] # [doc = "Set the max validation code size for incoming upgrades."] set_max_code_size { new : :: core :: primitive :: u32 , } , # [codec (index = 4)] # [doc = "Set the max POV block size for incoming upgrades."] set_max_pov_size { new : :: core :: primitive :: u32 , } , # [codec (index = 5)] # [doc = "Set the max head data size for paras."] set_max_head_data_size { new : :: core :: primitive :: u32 , } , # [codec (index = 6)] # [doc = "Set the number of parathread execution cores."] set_parathread_cores { new : :: core :: primitive :: u32 , } , # [codec (index = 7)] # [doc = "Set the number of retries for a particular parathread."] set_parathread_retries { new : :: core :: primitive :: u32 , } , # [codec (index = 8)] # [doc = "Set the parachain validator-group rotation frequency"] set_group_rotation_frequency { new : :: core :: primitive :: u32 , } , # [codec (index = 9)] # [doc = "Set the availability period for parachains."] set_chain_availability_period { new : :: core :: primitive :: u32 , } , # [codec (index = 10)] # [doc = "Set the availability period for parathreads."] set_thread_availability_period { new : :: core :: primitive :: u32 , } , # [codec (index = 11)] # [doc = "Set the scheduling lookahead, in expected number of blocks at peak throughput."] set_scheduling_lookahead { new : :: core :: primitive :: u32 , } , # [codec (index = 12)] # [doc = "Set the maximum number of validators to assign to any core."] set_max_validators_per_core { new : :: core :: option :: Option < :: core :: primitive :: u32 > , } , # [codec (index = 13)] # [doc = "Set the maximum number of validators to use in parachain consensus."] set_max_validators { new : :: core :: option :: Option < :: core :: primitive :: u32 > , } , # [codec (index = 14)] # [doc = "Set the dispute period, in number of sessions to keep for disputes."] set_dispute_period { new : :: core :: primitive :: u32 , } , # [codec (index = 15)] # [doc = "Set the dispute post conclusion acceptance period."] set_dispute_post_conclusion_acceptance_period { new : :: core :: primitive :: u32 , } , # [codec (index = 18)] # [doc = "Set the no show slots, in number of number of consensus slots."] # [doc = "Must be at least 1."] set_no_show_slots { new : :: core :: primitive :: u32 , } , # [codec (index = 19)] # [doc = "Set the total number of delay tranches."] set_n_delay_tranches { new : :: core :: primitive :: u32 , } , # [codec (index = 20)] # [doc = "Set the zeroth delay tranche width."] set_zeroth_delay_tranche_width { new : :: core :: primitive :: u32 , } , # [codec (index = 21)] # [doc = "Set the number of validators needed to approve a block."] set_needed_approvals { new : :: core :: primitive :: u32 , } , # [codec (index = 22)] # [doc = "Set the number of samples to do of the `RelayVRFModulo` approval assignment criterion."] set_relay_vrf_modulo_samples { new : :: core :: primitive :: u32 , } , # [codec (index = 23)] # [doc = "Sets the maximum items that can present in a upward dispatch queue at once."] set_max_upward_queue_count { new : :: core :: primitive :: u32 , } , # [codec (index = 24)] # [doc = "Sets the maximum total size of items that can present in a upward dispatch queue at once."] set_max_upward_queue_size { new : :: core :: primitive :: u32 , } , # [codec (index = 25)] # [doc = "Set the critical downward message size."] set_max_downward_message_size { new : :: core :: primitive :: u32 , } , # [codec (index = 26)] # [doc = "Sets the soft limit for the phase of dispatching dispatchable upward messages."] set_ump_service_total_weight { new : runtime_types :: sp_weights :: weight_v2 :: Weight , } , # [codec (index = 27)] # [doc = "Sets the maximum size of an upward message that can be sent by a candidate."] set_max_upward_message_size { new : :: core :: primitive :: u32 , } , # [codec (index = 28)] # [doc = "Sets the maximum number of messages that a candidate can contain."] set_max_upward_message_num_per_candidate { new : :: core :: primitive :: u32 , } , # [codec (index = 29)] # [doc = "Sets the number of sessions after which an HRMP open channel request expires."] set_hrmp_open_request_ttl { new : :: core :: primitive :: u32 , } , # [codec (index = 30)] # [doc = "Sets the amount of funds that the sender should provide for opening an HRMP channel."] set_hrmp_sender_deposit { new : :: core :: primitive :: u128 , } , # [codec (index = 31)] # [doc = "Sets the amount of funds that the recipient should provide for accepting opening an HRMP"] # [doc = "channel."] set_hrmp_recipient_deposit { new : :: core :: primitive :: u128 , } , # [codec (index = 32)] # [doc = "Sets the maximum number of messages allowed in an HRMP channel at once."] set_hrmp_channel_max_capacity { new : :: core :: primitive :: u32 , } , # [codec (index = 33)] # [doc = "Sets the maximum total size of messages in bytes allowed in an HRMP channel at once."] set_hrmp_channel_max_total_size { new : :: core :: primitive :: u32 , } , # [codec (index = 34)] # [doc = "Sets the maximum number of inbound HRMP channels a parachain is allowed to accept."] set_hrmp_max_parachain_inbound_channels { new : :: core :: primitive :: u32 , } , # [codec (index = 35)] # [doc = "Sets the maximum number of inbound HRMP channels a parathread is allowed to accept."] set_hrmp_max_parathread_inbound_channels { new : :: core :: primitive :: u32 , } , # [codec (index = 36)] # [doc = "Sets the maximum size of a message that could ever be put into an HRMP channel."] set_hrmp_channel_max_message_size { new : :: core :: primitive :: u32 , } , # [codec (index = 37)] # [doc = "Sets the maximum number of outbound HRMP channels a parachain is allowed to open."] set_hrmp_max_parachain_outbound_channels { new : :: core :: primitive :: u32 , } , # [codec (index = 38)] # [doc = "Sets the maximum number of outbound HRMP channels a parathread is allowed to open."] set_hrmp_max_parathread_outbound_channels { new : :: core :: primitive :: u32 , } , # [codec (index = 39)] # [doc = "Sets the maximum number of outbound HRMP messages can be sent by a candidate."] set_hrmp_max_message_num_per_candidate { new : :: core :: primitive :: u32 , } , # [codec (index = 40)] # [doc = "Sets the maximum amount of weight any individual upward message may consume."] set_ump_max_individual_weight { new : runtime_types :: sp_weights :: weight_v2 :: Weight , } , # [codec (index = 41)] # [doc = "Enable or disable PVF pre-checking. Consult the field documentation prior executing."] set_pvf_checking_enabled { new : :: core :: primitive :: bool , } , # [codec (index = 42)] # [doc = "Set the number of session changes after which a PVF pre-checking voting is rejected."] set_pvf_voting_ttl { new : :: core :: primitive :: u32 , } , # [codec (index = 43)] # [doc = "Sets the minimum delay between announcing the upgrade block for a parachain until the"] # [doc = "upgrade taking place."] # [doc = ""] # [doc = "See the field documentation for information and constraints for the new value."] set_minimum_validation_upgrade_delay { new : :: core :: primitive :: u32 , } , # [codec (index = 44)] # [doc = "Setting this to true will disable consistency checks for the configuration setters."] # [doc = "Use with caution."] set_bypass_consistency_check { new : :: core :: primitive :: bool , } , # [codec (index = 45)] # [doc = "Set the asynchronous backing parameters."] set_async_backing_params { new : runtime_types :: polkadot_primitives :: vstaging :: AsyncBackingParams , } , # [codec (index = 46)] # [doc = "Set PVF executor parameters."] set_executor_params { new : runtime_types :: polkadot_primitives :: v4 :: executor_params :: ExecutorParams , } , } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] pub enum Error { #[codec(index = 0)] #[doc = "The new value for a configuration parameter is invalid."] InvalidNewValue, } } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct HostConfiguration<_0> { pub max_code_size: _0, pub max_head_data_size: _0, pub max_upward_queue_count: _0, pub max_upward_queue_size: _0, pub max_upward_message_size: _0, pub max_upward_message_num_per_candidate: _0, pub hrmp_max_message_num_per_candidate: _0, pub validation_upgrade_cooldown: _0, pub validation_upgrade_delay: _0, pub async_backing_params: runtime_types::polkadot_primitives::vstaging::AsyncBackingParams, pub max_pov_size: _0, pub max_downward_message_size: _0, pub ump_service_total_weight: runtime_types::sp_weights::weight_v2::Weight, pub hrmp_max_parachain_outbound_channels: _0, pub hrmp_max_parathread_outbound_channels: _0, pub hrmp_sender_deposit: ::core::primitive::u128, pub hrmp_recipient_deposit: ::core::primitive::u128, pub hrmp_channel_max_capacity: _0, pub hrmp_channel_max_total_size: _0, pub hrmp_max_parachain_inbound_channels: _0, pub hrmp_max_parathread_inbound_channels: _0, pub hrmp_channel_max_message_size: _0, pub executor_params: runtime_types::polkadot_primitives::v4::executor_params::ExecutorParams, pub code_retention_period: _0, pub parathread_cores: _0, pub parathread_retries: _0, pub group_rotation_frequency: _0, pub chain_availability_period: _0, pub thread_availability_period: _0, pub scheduling_lookahead: _0, pub max_validators_per_core: ::core::option::Option<_0>, pub max_validators: ::core::option::Option<_0>, pub dispute_period: _0, pub dispute_post_conclusion_acceptance_period: _0, pub no_show_slots: _0, pub n_delay_tranches: _0, pub zeroth_delay_tranche_width: _0, pub needed_approvals: _0, pub relay_vrf_modulo_samples: _0, pub ump_max_individual_weight: runtime_types::sp_weights::weight_v2::Weight, pub pvf_checking_enabled: ::core::primitive::bool, pub pvf_voting_ttl: _0, pub minimum_validation_upgrade_delay: _0, } } pub mod disputes { use super::runtime_types; pub mod pallet { use super::runtime_types; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] pub enum Call { #[codec(index = 0)] force_unfreeze, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] pub enum Error { #[codec(index = 0)] #[doc = "Duplicate dispute statement sets provided."] DuplicateDisputeStatementSets, #[codec(index = 1)] #[doc = "Ancient dispute statement provided."] AncientDisputeStatement, #[codec(index = 2)] #[doc = "Validator index on statement is out of bounds for session."] ValidatorIndexOutOfBounds, #[codec(index = 3)] #[doc = "Invalid signature on statement."] InvalidSignature, #[codec(index = 4)] #[doc = "Validator vote submitted more than once to dispute."] DuplicateStatement, #[codec(index = 5)] #[doc = "A dispute where there are only votes on one side."] SingleSidedDispute, #[codec(index = 6)] #[doc = "A dispute vote from a malicious backer."] MaliciousBacker, #[codec(index = 7)] #[doc = "No backing votes were provides along dispute statements."] MissingBackingVotes, #[codec(index = 8)] #[doc = "Unconfirmed dispute statement sets provided."] UnconfirmedDispute, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] pub enum Event { #[codec(index = 0)] #[doc = "A dispute has been initiated. \\[candidate hash, dispute location\\]"] DisputeInitiated( runtime_types::polkadot_core_primitives::CandidateHash, runtime_types::polkadot_runtime_parachains::disputes::DisputeLocation, ), #[codec(index = 1)] #[doc = "A dispute has concluded for or against a candidate."] #[doc = "`\\[para id, candidate hash, dispute result\\]`"] DisputeConcluded( runtime_types::polkadot_core_primitives::CandidateHash, runtime_types::polkadot_runtime_parachains::disputes::DisputeResult, ), #[codec(index = 2)] #[doc = "A dispute has concluded with supermajority against a candidate."] #[doc = "Block authors should no longer build on top of this head and should"] #[doc = "instead revert the block at the given height. This should be the"] #[doc = "number of the child of the last known valid block in the chain."] Revert(::core::primitive::u32), } } pub mod slashing { use super::runtime_types; pub mod pallet { use super::runtime_types; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] pub enum Call { # [codec (index = 0)] report_dispute_lost_unsigned { dispute_proof : :: std :: boxed :: Box < runtime_types :: polkadot_runtime_parachains :: disputes :: slashing :: DisputeProof > , key_owner_proof : runtime_types :: sp_session :: MembershipProof , } , } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] pub enum Error { #[codec(index = 0)] #[doc = "The key ownership proof is invalid."] InvalidKeyOwnershipProof, #[codec(index = 1)] #[doc = "The session index is too old or invalid."] InvalidSessionIndex, #[codec(index = 2)] #[doc = "The candidate hash is invalid."] InvalidCandidateHash, #[codec(index = 3)] #[doc = "There is no pending slash for the given validator index and time"] #[doc = "slot."] InvalidValidatorIndex, #[codec(index = 4)] #[doc = "The validator index does not match the validator id."] ValidatorIndexIdMismatch, #[codec(index = 5)] #[doc = "The given slashing report is valid but already previously reported."] DuplicateSlashingReport, } } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct DisputeProof { pub time_slot : runtime_types :: polkadot_runtime_parachains :: disputes :: slashing :: DisputesTimeSlot , pub kind : runtime_types :: polkadot_runtime_parachains :: disputes :: slashing :: SlashingOffenceKind , pub validator_index : runtime_types :: polkadot_primitives :: v4 :: ValidatorIndex , pub validator_id : runtime_types :: polkadot_primitives :: v4 :: validator_app :: Public , } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct DisputesTimeSlot { pub session_index: ::core::primitive::u32, pub candidate_hash: runtime_types::polkadot_core_primitives::CandidateHash, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct PendingSlashes { pub keys : :: subxt :: utils :: KeyedVec < runtime_types :: polkadot_primitives :: v4 :: ValidatorIndex , runtime_types :: polkadot_primitives :: v4 :: validator_app :: Public > , pub kind : runtime_types :: polkadot_runtime_parachains :: disputes :: slashing :: SlashingOffenceKind , } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum SlashingOffenceKind { #[codec(index = 0)] ForInvalid, #[codec(index = 1)] AgainstValid, } } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum DisputeLocation { #[codec(index = 0)] Local, #[codec(index = 1)] Remote, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum DisputeResult { #[codec(index = 0)] Valid, #[codec(index = 1)] Invalid, } } pub mod hrmp { use super::runtime_types; pub mod pallet { use super::runtime_types; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] pub enum Call { #[codec(index = 0)] #[doc = "Initiate opening a channel from a parachain to a given recipient with given channel"] #[doc = "parameters."] #[doc = ""] #[doc = "- `proposed_max_capacity` - specifies how many messages can be in the channel at once."] #[doc = "- `proposed_max_message_size` - specifies the maximum size of the messages."] #[doc = ""] #[doc = "These numbers are a subject to the relay-chain configuration limits."] #[doc = ""] #[doc = "The channel can be opened only after the recipient confirms it and only on a session"] #[doc = "change."] hrmp_init_open_channel { recipient: runtime_types::polkadot_parachain::primitives::Id, proposed_max_capacity: ::core::primitive::u32, proposed_max_message_size: ::core::primitive::u32, }, #[codec(index = 1)] #[doc = "Accept a pending open channel request from the given sender."] #[doc = ""] #[doc = "The channel will be opened only on the next session boundary."] hrmp_accept_open_channel { sender: runtime_types::polkadot_parachain::primitives::Id, }, #[codec(index = 2)] #[doc = "Initiate unilateral closing of a channel. The origin must be either the sender or the"] #[doc = "recipient in the channel being closed."] #[doc = ""] #[doc = "The closure can only happen on a session change."] hrmp_close_channel { channel_id: runtime_types::polkadot_parachain::primitives::HrmpChannelId, }, #[codec(index = 3)] #[doc = "This extrinsic triggers the cleanup of all the HRMP storage items that"] #[doc = "a para may have. Normally this happens once per session, but this allows"] #[doc = "you to trigger the cleanup immediately for a specific parachain."] #[doc = ""] #[doc = "Origin must be Root."] #[doc = ""] #[doc = "Number of inbound and outbound channels for `para` must be provided as witness data of weighing."] force_clean_hrmp { para: runtime_types::polkadot_parachain::primitives::Id, inbound: ::core::primitive::u32, outbound: ::core::primitive::u32, }, #[codec(index = 4)] #[doc = "Force process HRMP open channel requests."] #[doc = ""] #[doc = "If there are pending HRMP open channel requests, you can use this"] #[doc = "function process all of those requests immediately."] #[doc = ""] #[doc = "Total number of opening channels must be provided as witness data of weighing."] force_process_hrmp_open { channels: ::core::primitive::u32 }, #[codec(index = 5)] #[doc = "Force process HRMP close channel requests."] #[doc = ""] #[doc = "If there are pending HRMP close channel requests, you can use this"] #[doc = "function process all of those requests immediately."] #[doc = ""] #[doc = "Total number of closing channels must be provided as witness data of weighing."] force_process_hrmp_close { channels: ::core::primitive::u32 }, #[codec(index = 6)] #[doc = "This cancels a pending open channel request. It can be canceled by either of the sender"] #[doc = "or the recipient for that request. The origin must be either of those."] #[doc = ""] #[doc = "The cancellation happens immediately. It is not possible to cancel the request if it is"] #[doc = "already accepted."] #[doc = ""] #[doc = "Total number of open requests (i.e. `HrmpOpenChannelRequestsList`) must be provided as"] #[doc = "witness data."] hrmp_cancel_open_request { channel_id: runtime_types::polkadot_parachain::primitives::HrmpChannelId, open_requests: ::core::primitive::u32, }, #[codec(index = 7)] #[doc = "Open a channel from a `sender` to a `recipient` `ParaId` using the Root origin. Although"] #[doc = "opened by Root, the `max_capacity` and `max_message_size` are still subject to the Relay"] #[doc = "Chain's configured limits."] #[doc = ""] #[doc = "Expected use is when one of the `ParaId`s involved in the channel is governed by the"] #[doc = "Relay Chain, e.g. a common good parachain."] force_open_hrmp_channel { sender: runtime_types::polkadot_parachain::primitives::Id, recipient: runtime_types::polkadot_parachain::primitives::Id, max_capacity: ::core::primitive::u32, max_message_size: ::core::primitive::u32, }, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] pub enum Error { #[codec(index = 0)] #[doc = "The sender tried to open a channel to themselves."] OpenHrmpChannelToSelf, #[codec(index = 1)] #[doc = "The recipient is not a valid para."] OpenHrmpChannelInvalidRecipient, #[codec(index = 2)] #[doc = "The requested capacity is zero."] OpenHrmpChannelZeroCapacity, #[codec(index = 3)] #[doc = "The requested capacity exceeds the global limit."] OpenHrmpChannelCapacityExceedsLimit, #[codec(index = 4)] #[doc = "The requested maximum message size is 0."] OpenHrmpChannelZeroMessageSize, #[codec(index = 5)] #[doc = "The open request requested the message size that exceeds the global limit."] OpenHrmpChannelMessageSizeExceedsLimit, #[codec(index = 6)] #[doc = "The channel already exists"] OpenHrmpChannelAlreadyExists, #[codec(index = 7)] #[doc = "There is already a request to open the same channel."] OpenHrmpChannelAlreadyRequested, #[codec(index = 8)] #[doc = "The sender already has the maximum number of allowed outbound channels."] OpenHrmpChannelLimitExceeded, #[codec(index = 9)] #[doc = "The channel from the sender to the origin doesn't exist."] AcceptHrmpChannelDoesntExist, #[codec(index = 10)] #[doc = "The channel is already confirmed."] AcceptHrmpChannelAlreadyConfirmed, #[codec(index = 11)] #[doc = "The recipient already has the maximum number of allowed inbound channels."] AcceptHrmpChannelLimitExceeded, #[codec(index = 12)] #[doc = "The origin tries to close a channel where it is neither the sender nor the recipient."] CloseHrmpChannelUnauthorized, #[codec(index = 13)] #[doc = "The channel to be closed doesn't exist."] CloseHrmpChannelDoesntExist, #[codec(index = 14)] #[doc = "The channel close request is already requested."] CloseHrmpChannelAlreadyUnderway, #[codec(index = 15)] #[doc = "Canceling is requested by neither the sender nor recipient of the open channel request."] CancelHrmpOpenChannelUnauthorized, #[codec(index = 16)] #[doc = "The open request doesn't exist."] OpenHrmpChannelDoesntExist, #[codec(index = 17)] #[doc = "Cannot cancel an HRMP open channel request because it is already confirmed."] OpenHrmpChannelAlreadyConfirmed, #[codec(index = 18)] #[doc = "The provided witness data is wrong."] WrongWitness, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] pub enum Event { #[codec(index = 0)] #[doc = "Open HRMP channel requested."] #[doc = "`[sender, recipient, proposed_max_capacity, proposed_max_message_size]`"] OpenChannelRequested( runtime_types::polkadot_parachain::primitives::Id, runtime_types::polkadot_parachain::primitives::Id, ::core::primitive::u32, ::core::primitive::u32, ), #[codec(index = 1)] #[doc = "An HRMP channel request sent by the receiver was canceled by either party."] #[doc = "`[by_parachain, channel_id]`"] OpenChannelCanceled( runtime_types::polkadot_parachain::primitives::Id, runtime_types::polkadot_parachain::primitives::HrmpChannelId, ), #[codec(index = 2)] #[doc = "Open HRMP channel accepted. `[sender, recipient]`"] OpenChannelAccepted( runtime_types::polkadot_parachain::primitives::Id, runtime_types::polkadot_parachain::primitives::Id, ), #[codec(index = 3)] #[doc = "HRMP channel closed. `[by_parachain, channel_id]`"] ChannelClosed( runtime_types::polkadot_parachain::primitives::Id, runtime_types::polkadot_parachain::primitives::HrmpChannelId, ), #[codec(index = 4)] #[doc = "An HRMP channel was opened via Root origin."] #[doc = "`[sender, recipient, proposed_max_capacity, proposed_max_message_size]`"] HrmpChannelForceOpened( runtime_types::polkadot_parachain::primitives::Id, runtime_types::polkadot_parachain::primitives::Id, ::core::primitive::u32, ::core::primitive::u32, ), } } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct HrmpChannel { pub max_capacity: ::core::primitive::u32, pub max_total_size: ::core::primitive::u32, pub max_message_size: ::core::primitive::u32, pub msg_count: ::core::primitive::u32, pub total_size: ::core::primitive::u32, pub mqc_head: ::core::option::Option<::subxt::utils::H256>, pub sender_deposit: ::core::primitive::u128, pub recipient_deposit: ::core::primitive::u128, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct HrmpOpenChannelRequest { pub confirmed: ::core::primitive::bool, pub _age: ::core::primitive::u32, pub sender_deposit: ::core::primitive::u128, pub max_message_size: ::core::primitive::u32, pub max_capacity: ::core::primitive::u32, pub max_total_size: ::core::primitive::u32, } } pub mod inclusion { use super::runtime_types; pub mod pallet { use super::runtime_types; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] pub enum Call {} #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] pub enum Error { #[codec(index = 0)] #[doc = "Validator indices are out of order or contains duplicates."] UnsortedOrDuplicateValidatorIndices, #[codec(index = 1)] #[doc = "Dispute statement sets are out of order or contain duplicates."] UnsortedOrDuplicateDisputeStatementSet, #[codec(index = 2)] #[doc = "Backed candidates are out of order (core index) or contain duplicates."] UnsortedOrDuplicateBackedCandidates, #[codec(index = 3)] #[doc = "A different relay parent was provided compared to the on-chain stored one."] UnexpectedRelayParent, #[codec(index = 4)] #[doc = "Availability bitfield has unexpected size."] WrongBitfieldSize, #[codec(index = 5)] #[doc = "Bitfield consists of zeros only."] BitfieldAllZeros, #[codec(index = 6)] #[doc = "Multiple bitfields submitted by same validator or validators out of order by index."] BitfieldDuplicateOrUnordered, #[codec(index = 7)] #[doc = "Validator index out of bounds."] ValidatorIndexOutOfBounds, #[codec(index = 8)] #[doc = "Invalid signature"] InvalidBitfieldSignature, #[codec(index = 9)] #[doc = "Candidate submitted but para not scheduled."] UnscheduledCandidate, #[codec(index = 10)] #[doc = "Candidate scheduled despite pending candidate already existing for the para."] CandidateScheduledBeforeParaFree, #[codec(index = 11)] #[doc = "Candidate included with the wrong collator."] WrongCollator, #[codec(index = 12)] #[doc = "Scheduled cores out of order."] ScheduledOutOfOrder, #[codec(index = 13)] #[doc = "Head data exceeds the configured maximum."] HeadDataTooLarge, #[codec(index = 14)] #[doc = "Code upgrade prematurely."] PrematureCodeUpgrade, #[codec(index = 15)] #[doc = "Output code is too large"] NewCodeTooLarge, #[codec(index = 16)] #[doc = "Candidate not in parent context."] CandidateNotInParentContext, #[codec(index = 17)] #[doc = "Invalid group index in core assignment."] InvalidGroupIndex, #[codec(index = 18)] #[doc = "Insufficient (non-majority) backing."] InsufficientBacking, #[codec(index = 19)] #[doc = "Invalid (bad signature, unknown validator, etc.) backing."] InvalidBacking, #[codec(index = 20)] #[doc = "Collator did not sign PoV."] NotCollatorSigned, #[codec(index = 21)] #[doc = "The validation data hash does not match expected."] ValidationDataHashMismatch, #[codec(index = 22)] #[doc = "The downward message queue is not processed correctly."] IncorrectDownwardMessageHandling, #[codec(index = 23)] #[doc = "At least one upward message sent does not pass the acceptance criteria."] InvalidUpwardMessages, #[codec(index = 24)] #[doc = "The candidate didn't follow the rules of HRMP watermark advancement."] HrmpWatermarkMishandling, #[codec(index = 25)] #[doc = "The HRMP messages sent by the candidate is not valid."] InvalidOutboundHrmp, #[codec(index = 26)] #[doc = "The validation code hash of the candidate is not valid."] InvalidValidationCodeHash, #[codec(index = 27)] #[doc = "The `para_head` hash in the candidate descriptor doesn't match the hash of the actual para head in the"] #[doc = "commitments."] ParaHeadMismatch, #[codec(index = 28)] #[doc = "A bitfield that references a freed core,"] #[doc = "either intentionally or as part of a concluded"] #[doc = "invalid dispute."] BitfieldReferencesFreedCore, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] pub enum Event { #[codec(index = 0)] #[doc = "A candidate was backed. `[candidate, head_data]`"] CandidateBacked( runtime_types::polkadot_primitives::v4::CandidateReceipt< ::subxt::utils::H256, >, runtime_types::polkadot_parachain::primitives::HeadData, runtime_types::polkadot_primitives::v4::CoreIndex, runtime_types::polkadot_primitives::v4::GroupIndex, ), #[codec(index = 1)] #[doc = "A candidate was included. `[candidate, head_data]`"] CandidateIncluded( runtime_types::polkadot_primitives::v4::CandidateReceipt< ::subxt::utils::H256, >, runtime_types::polkadot_parachain::primitives::HeadData, runtime_types::polkadot_primitives::v4::CoreIndex, runtime_types::polkadot_primitives::v4::GroupIndex, ), #[codec(index = 2)] #[doc = "A candidate timed out. `[candidate, head_data]`"] CandidateTimedOut( runtime_types::polkadot_primitives::v4::CandidateReceipt< ::subxt::utils::H256, >, runtime_types::polkadot_parachain::primitives::HeadData, runtime_types::polkadot_primitives::v4::CoreIndex, ), } } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct AvailabilityBitfieldRecord<_0> { pub bitfield: runtime_types::polkadot_primitives::v4::AvailabilityBitfield, pub submitted_at: _0, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct CandidatePendingAvailability<_0, _1> { pub core: runtime_types::polkadot_primitives::v4::CoreIndex, pub hash: runtime_types::polkadot_core_primitives::CandidateHash, pub descriptor: runtime_types::polkadot_primitives::v4::CandidateDescriptor<_0>, pub availability_votes: ::subxt::utils::bits::DecodedBits< ::core::primitive::u8, ::subxt::utils::bits::Lsb0, >, pub backers: ::subxt::utils::bits::DecodedBits< ::core::primitive::u8, ::subxt::utils::bits::Lsb0, >, pub relay_parent_number: _1, pub backed_in_number: _1, pub backing_group: runtime_types::polkadot_primitives::v4::GroupIndex, } } pub mod initializer { use super::runtime_types; pub mod pallet { use super::runtime_types; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] pub enum Call { #[codec(index = 0)] #[doc = "Issue a signal to the consensus engine to forcibly act as though all parachain"] #[doc = "blocks in all relay chain blocks up to and including the given number in the current"] #[doc = "chain are valid and should be finalized."] force_approve { up_to: ::core::primitive::u32 }, } } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct BufferedSessionChange { pub validators: ::std::vec::Vec< runtime_types::polkadot_primitives::v4::validator_app::Public, >, pub queued: ::std::vec::Vec< runtime_types::polkadot_primitives::v4::validator_app::Public, >, pub session_index: ::core::primitive::u32, } } pub mod origin { use super::runtime_types; pub mod pallet { use super::runtime_types; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum Origin { #[codec(index = 0)] Parachain(runtime_types::polkadot_parachain::primitives::Id), } } } pub mod paras { use super::runtime_types; pub mod pallet { use super::runtime_types; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] pub enum Call { #[codec(index = 0)] #[doc = "Set the storage for the parachain validation code immediately."] force_set_current_code { para: runtime_types::polkadot_parachain::primitives::Id, new_code: runtime_types::polkadot_parachain::primitives::ValidationCode, }, #[codec(index = 1)] #[doc = "Set the storage for the current parachain head data immediately."] force_set_current_head { para: runtime_types::polkadot_parachain::primitives::Id, new_head: runtime_types::polkadot_parachain::primitives::HeadData, }, #[codec(index = 2)] #[doc = "Schedule an upgrade as if it was scheduled in the given relay parent block."] force_schedule_code_upgrade { para: runtime_types::polkadot_parachain::primitives::Id, new_code: runtime_types::polkadot_parachain::primitives::ValidationCode, relay_parent_number: ::core::primitive::u32, }, #[codec(index = 3)] #[doc = "Note a new block head for para within the context of the current block."] force_note_new_head { para: runtime_types::polkadot_parachain::primitives::Id, new_head: runtime_types::polkadot_parachain::primitives::HeadData, }, #[codec(index = 4)] #[doc = "Put a parachain directly into the next session's action queue."] #[doc = "We can't queue it any sooner than this without going into the"] #[doc = "initializer..."] force_queue_action { para: runtime_types::polkadot_parachain::primitives::Id, }, #[codec(index = 5)] #[doc = "Adds the validation code to the storage."] #[doc = ""] #[doc = "The code will not be added if it is already present. Additionally, if PVF pre-checking"] #[doc = "is running for that code, it will be instantly accepted."] #[doc = ""] #[doc = "Otherwise, the code will be added into the storage. Note that the code will be added"] #[doc = "into storage with reference count 0. This is to account the fact that there are no users"] #[doc = "for this code yet. The caller will have to make sure that this code eventually gets"] #[doc = "used by some parachain or removed from the storage to avoid storage leaks. For the latter"] #[doc = "prefer to use the `poke_unused_validation_code` dispatchable to raw storage manipulation."] #[doc = ""] #[doc = "This function is mainly meant to be used for upgrading parachains that do not follow"] #[doc = "the go-ahead signal while the PVF pre-checking feature is enabled."] add_trusted_validation_code { validation_code: runtime_types::polkadot_parachain::primitives::ValidationCode, }, #[codec(index = 6)] #[doc = "Remove the validation code from the storage iff the reference count is 0."] #[doc = ""] #[doc = "This is better than removing the storage directly, because it will not remove the code"] #[doc = "that was suddenly got used by some parachain while this dispatchable was pending"] #[doc = "dispatching."] poke_unused_validation_code { validation_code_hash: runtime_types::polkadot_parachain::primitives::ValidationCodeHash, }, #[codec(index = 7)] #[doc = "Includes a statement for a PVF pre-checking vote. Potentially, finalizes the vote and"] #[doc = "enacts the results if that was the last vote before achieving the supermajority."] include_pvf_check_statement { stmt: runtime_types::polkadot_primitives::v4::PvfCheckStatement, signature: runtime_types::polkadot_primitives::v4::validator_app::Signature, }, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] pub enum Error { #[codec(index = 0)] #[doc = "Para is not registered in our system."] NotRegistered, #[codec(index = 1)] #[doc = "Para cannot be onboarded because it is already tracked by our system."] CannotOnboard, #[codec(index = 2)] #[doc = "Para cannot be offboarded at this time."] CannotOffboard, #[codec(index = 3)] #[doc = "Para cannot be upgraded to a parachain."] CannotUpgrade, #[codec(index = 4)] #[doc = "Para cannot be downgraded to a parathread."] CannotDowngrade, #[codec(index = 5)] #[doc = "The statement for PVF pre-checking is stale."] PvfCheckStatementStale, #[codec(index = 6)] #[doc = "The statement for PVF pre-checking is for a future session."] PvfCheckStatementFuture, #[codec(index = 7)] #[doc = "Claimed validator index is out of bounds."] PvfCheckValidatorIndexOutOfBounds, #[codec(index = 8)] #[doc = "The signature for the PVF pre-checking is invalid."] PvfCheckInvalidSignature, #[codec(index = 9)] #[doc = "The given validator already has cast a vote."] PvfCheckDoubleVote, #[codec(index = 10)] #[doc = "The given PVF does not exist at the moment of process a vote."] PvfCheckSubjectInvalid, #[codec(index = 11)] #[doc = "The PVF pre-checking statement cannot be included since the PVF pre-checking mechanism"] #[doc = "is disabled."] PvfCheckDisabled, #[codec(index = 12)] #[doc = "Parachain cannot currently schedule a code upgrade."] CannotUpgradeCode, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] pub enum Event { #[codec(index = 0)] #[doc = "Current code has been updated for a Para. `para_id`"] CurrentCodeUpdated(runtime_types::polkadot_parachain::primitives::Id), #[codec(index = 1)] #[doc = "Current head has been updated for a Para. `para_id`"] CurrentHeadUpdated(runtime_types::polkadot_parachain::primitives::Id), #[codec(index = 2)] #[doc = "A code upgrade has been scheduled for a Para. `para_id`"] CodeUpgradeScheduled(runtime_types::polkadot_parachain::primitives::Id), #[codec(index = 3)] #[doc = "A new head has been noted for a Para. `para_id`"] NewHeadNoted(runtime_types::polkadot_parachain::primitives::Id), #[codec(index = 4)] #[doc = "A para has been queued to execute pending actions. `para_id`"] ActionQueued( runtime_types::polkadot_parachain::primitives::Id, ::core::primitive::u32, ), #[codec(index = 5)] #[doc = "The given para either initiated or subscribed to a PVF check for the given validation"] #[doc = "code. `code_hash` `para_id`"] PvfCheckStarted( runtime_types::polkadot_parachain::primitives::ValidationCodeHash, runtime_types::polkadot_parachain::primitives::Id, ), #[codec(index = 6)] #[doc = "The given validation code was accepted by the PVF pre-checking vote."] #[doc = "`code_hash` `para_id`"] PvfCheckAccepted( runtime_types::polkadot_parachain::primitives::ValidationCodeHash, runtime_types::polkadot_parachain::primitives::Id, ), #[codec(index = 7)] #[doc = "The given validation code was rejected by the PVF pre-checking vote."] #[doc = "`code_hash` `para_id`"] PvfCheckRejected( runtime_types::polkadot_parachain::primitives::ValidationCodeHash, runtime_types::polkadot_parachain::primitives::Id, ), } } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ParaGenesisArgs { pub genesis_head: runtime_types::polkadot_parachain::primitives::HeadData, pub validation_code: runtime_types::polkadot_parachain::primitives::ValidationCode, pub para_kind: ::core::primitive::bool, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum ParaLifecycle { #[codec(index = 0)] Onboarding, #[codec(index = 1)] Parathread, #[codec(index = 2)] Parachain, #[codec(index = 3)] UpgradingParathread, #[codec(index = 4)] DowngradingParachain, #[codec(index = 5)] OffboardingParathread, #[codec(index = 6)] OffboardingParachain, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ParaPastCodeMeta<_0> { pub upgrade_times: ::std::vec::Vec< runtime_types::polkadot_runtime_parachains::paras::ReplacementTimes<_0>, >, pub last_pruned: ::core::option::Option<_0>, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct PvfCheckActiveVoteState<_0> { pub votes_accept: ::subxt::utils::bits::DecodedBits< ::core::primitive::u8, ::subxt::utils::bits::Lsb0, >, pub votes_reject: ::subxt::utils::bits::DecodedBits< ::core::primitive::u8, ::subxt::utils::bits::Lsb0, >, pub age: _0, pub created_at: _0, pub causes: ::std::vec::Vec< runtime_types::polkadot_runtime_parachains::paras::PvfCheckCause<_0>, >, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum PvfCheckCause<_0> { #[codec(index = 0)] Onboarding(runtime_types::polkadot_parachain::primitives::Id), #[codec(index = 1)] Upgrade { id: runtime_types::polkadot_parachain::primitives::Id, relay_parent_number: _0, }, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ReplacementTimes<_0> { pub expected_at: _0, pub activated_at: _0, } } pub mod paras_inherent { use super::runtime_types; pub mod pallet { use super::runtime_types; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] pub enum Call { #[codec(index = 0)] #[doc = "Enter the paras inherent. This will process bitfields and backed candidates."] enter { data: runtime_types::polkadot_primitives::v4::InherentData< runtime_types::sp_runtime::generic::header::Header< ::core::primitive::u32, runtime_types::sp_runtime::traits::BlakeTwo256, >, >, }, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] pub enum Error { #[codec(index = 0)] #[doc = "Inclusion inherent called more than once per block."] TooManyInclusionInherents, #[codec(index = 1)] #[doc = "The hash of the submitted parent header doesn't correspond to the saved block hash of"] #[doc = "the parent."] InvalidParentHeader, #[codec(index = 2)] #[doc = "Disputed candidate that was concluded invalid."] CandidateConcludedInvalid, #[codec(index = 3)] #[doc = "The data given to the inherent will result in an overweight block."] InherentOverweight, #[codec(index = 4)] #[doc = "The ordering of dispute statements was invalid."] DisputeStatementsUnsortedOrDuplicates, #[codec(index = 5)] #[doc = "A dispute statement was invalid."] DisputeInvalid, } } } pub mod scheduler { use super::runtime_types; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum AssignmentKind { #[codec(index = 0)] Parachain, #[codec(index = 1)] Parathread( runtime_types::polkadot_primitives::v4::collator_app::Public, ::core::primitive::u32, ), } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct CoreAssignment { pub core: runtime_types::polkadot_primitives::v4::CoreIndex, pub para_id: runtime_types::polkadot_parachain::primitives::Id, pub kind: runtime_types::polkadot_runtime_parachains::scheduler::AssignmentKind, pub group_idx: runtime_types::polkadot_primitives::v4::GroupIndex, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ParathreadClaimQueue { pub queue: ::std::vec::Vec< runtime_types::polkadot_runtime_parachains::scheduler::QueuedParathread, >, pub next_core_offset: ::core::primitive::u32, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct QueuedParathread { pub claim: runtime_types::polkadot_primitives::v4::ParathreadEntry, pub core_offset: ::core::primitive::u32, } } pub mod shared { use super::runtime_types; pub mod pallet { use super::runtime_types; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] pub enum Call {} } } pub mod ump { use super::runtime_types; pub mod pallet { use super::runtime_types; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] pub enum Call { #[codec(index = 0)] #[doc = "Service a single overweight upward message."] #[doc = ""] #[doc = "- `origin`: Must pass `ExecuteOverweightOrigin`."] #[doc = "- `index`: The index of the overweight message to service."] #[doc = "- `weight_limit`: The amount of weight that message execution may take."] #[doc = ""] #[doc = "Errors:"] #[doc = "- `UnknownMessageIndex`: Message of `index` is unknown."] #[doc = "- `WeightOverLimit`: Message execution may use greater than `weight_limit`."] #[doc = ""] #[doc = "Events:"] #[doc = "- `OverweightServiced`: On success."] service_overweight { index: ::core::primitive::u64, weight_limit: runtime_types::sp_weights::weight_v2::Weight, }, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] pub enum Error { #[codec(index = 0)] #[doc = "The message index given is unknown."] UnknownMessageIndex, #[codec(index = 1)] #[doc = "The amount of weight given is possibly not enough for executing the message."] WeightOverLimit, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] pub enum Event { #[codec(index = 0)] #[doc = "Upward message is invalid XCM."] #[doc = "\\[ id \\]"] InvalidFormat([::core::primitive::u8; 32usize]), #[codec(index = 1)] #[doc = "Upward message is unsupported version of XCM."] #[doc = "\\[ id \\]"] UnsupportedVersion([::core::primitive::u8; 32usize]), #[codec(index = 2)] #[doc = "Upward message executed with the given outcome."] #[doc = "\\[ id, outcome \\]"] ExecutedUpward( [::core::primitive::u8; 32usize], runtime_types::xcm::v3::traits::Outcome, ), #[codec(index = 3)] #[doc = "The weight limit for handling upward messages was reached."] #[doc = "\\[ id, remaining, required \\]"] WeightExhausted( [::core::primitive::u8; 32usize], runtime_types::sp_weights::weight_v2::Weight, runtime_types::sp_weights::weight_v2::Weight, ), #[codec(index = 4)] #[doc = "Some upward messages have been received and will be processed."] #[doc = "\\[ para, count, size \\]"] UpwardMessagesReceived( runtime_types::polkadot_parachain::primitives::Id, ::core::primitive::u32, ::core::primitive::u32, ), #[codec(index = 5)] #[doc = "The weight budget was exceeded for an individual upward message."] #[doc = ""] #[doc = "This message can be later dispatched manually using `service_overweight` dispatchable"] #[doc = "using the assigned `overweight_index`."] #[doc = ""] #[doc = "\\[ para, id, overweight_index, required \\]"] OverweightEnqueued( runtime_types::polkadot_parachain::primitives::Id, [::core::primitive::u8; 32usize], ::core::primitive::u64, runtime_types::sp_weights::weight_v2::Weight, ), #[codec(index = 6)] #[doc = "Upward message from the overweight queue was executed with the given actual weight"] #[doc = "used."] #[doc = ""] #[doc = "\\[ overweight_index, used \\]"] OverweightServiced( ::core::primitive::u64, runtime_types::sp_weights::weight_v2::Weight, ), } } } } pub mod sp_arithmetic { use super::runtime_types; pub mod fixed_point { use super::runtime_types; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct FixedI64(pub ::core::primitive::i64); #[derive( :: subxt :: ext :: codec :: CompactAs, :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct FixedU128(pub ::core::primitive::u128); } pub mod per_things { use super::runtime_types; #[derive( :: subxt :: ext :: codec :: CompactAs, :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct PerU16(pub ::core::primitive::u16); #[derive( :: subxt :: ext :: codec :: CompactAs, :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Perbill(pub ::core::primitive::u32); #[derive( :: subxt :: ext :: codec :: CompactAs, :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Percent(pub ::core::primitive::u8); #[derive( :: subxt :: ext :: codec :: CompactAs, :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Permill(pub ::core::primitive::u32); } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum ArithmeticError { #[codec(index = 0)] Underflow, #[codec(index = 1)] Overflow, #[codec(index = 2)] DivisionByZero, } } pub mod sp_authority_discovery { use super::runtime_types; pub mod app { use super::runtime_types; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Public(pub runtime_types::sp_core::sr25519::Public); } } pub mod sp_consensus_babe { use super::runtime_types; pub mod app { use super::runtime_types; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Public(pub runtime_types::sp_core::sr25519::Public); } pub mod digests { use super::runtime_types; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum NextConfigDescriptor { #[codec(index = 1)] V1 { c: (::core::primitive::u64, ::core::primitive::u64), allowed_slots: runtime_types::sp_consensus_babe::AllowedSlots, }, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum PreDigest { #[codec(index = 1)] Primary(runtime_types::sp_consensus_babe::digests::PrimaryPreDigest), #[codec(index = 2)] SecondaryPlain( runtime_types::sp_consensus_babe::digests::SecondaryPlainPreDigest, ), #[codec(index = 3)] SecondaryVRF(runtime_types::sp_consensus_babe::digests::SecondaryVRFPreDigest), } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct PrimaryPreDigest { pub authority_index: ::core::primitive::u32, pub slot: runtime_types::sp_consensus_slots::Slot, pub vrf_signature: runtime_types::sp_core::sr25519::vrf::VrfSignature, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SecondaryPlainPreDigest { pub authority_index: ::core::primitive::u32, pub slot: runtime_types::sp_consensus_slots::Slot, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SecondaryVRFPreDigest { pub authority_index: ::core::primitive::u32, pub slot: runtime_types::sp_consensus_slots::Slot, pub vrf_signature: runtime_types::sp_core::sr25519::vrf::VrfSignature, } } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum AllowedSlots { #[codec(index = 0)] PrimarySlots, #[codec(index = 1)] PrimaryAndSecondaryPlainSlots, #[codec(index = 2)] PrimaryAndSecondaryVRFSlots, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct BabeConfiguration { pub slot_duration: ::core::primitive::u64, pub epoch_length: ::core::primitive::u64, pub c: (::core::primitive::u64, ::core::primitive::u64), pub authorities: ::std::vec::Vec<( runtime_types::sp_consensus_babe::app::Public, ::core::primitive::u64, )>, pub randomness: [::core::primitive::u8; 32usize], pub allowed_slots: runtime_types::sp_consensus_babe::AllowedSlots, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct BabeEpochConfiguration { pub c: (::core::primitive::u64, ::core::primitive::u64), pub allowed_slots: runtime_types::sp_consensus_babe::AllowedSlots, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Epoch { pub epoch_index: ::core::primitive::u64, pub start_slot: runtime_types::sp_consensus_slots::Slot, pub duration: ::core::primitive::u64, pub authorities: ::std::vec::Vec<( runtime_types::sp_consensus_babe::app::Public, ::core::primitive::u64, )>, pub randomness: [::core::primitive::u8; 32usize], pub config: runtime_types::sp_consensus_babe::BabeEpochConfiguration, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct OpaqueKeyOwnershipProof(pub ::std::vec::Vec<::core::primitive::u8>); } pub mod sp_consensus_beefy { use super::runtime_types; pub mod commitment { use super::runtime_types; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Commitment<_0> { pub payload: runtime_types::sp_consensus_beefy::payload::Payload, pub block_number: _0, pub validator_set_id: ::core::primitive::u64, } } pub mod crypto { use super::runtime_types; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Public(pub runtime_types::sp_core::ecdsa::Public); #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Signature(pub runtime_types::sp_core::ecdsa::Signature); } pub mod payload { use super::runtime_types; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Payload( pub ::std::vec::Vec<( [::core::primitive::u8; 2usize], ::std::vec::Vec<::core::primitive::u8>, )>, ); } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct EquivocationProof<_0, _1, _2> { pub first: runtime_types::sp_consensus_beefy::VoteMessage<_0, _1, _2>, pub second: runtime_types::sp_consensus_beefy::VoteMessage<_0, _1, _2>, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct OpaqueKeyOwnershipProof(pub ::std::vec::Vec<::core::primitive::u8>); #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ValidatorSet<_0> { pub validators: ::std::vec::Vec<_0>, pub id: ::core::primitive::u64, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct VoteMessage<_0, _1, _2> { pub commitment: runtime_types::sp_consensus_beefy::commitment::Commitment<_0>, pub id: _1, pub signature: _2, } } pub mod sp_consensus_grandpa { use super::runtime_types; pub mod app { use super::runtime_types; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Public(pub runtime_types::sp_core::ed25519::Public); #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Signature(pub runtime_types::sp_core::ed25519::Signature); } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum Equivocation<_0, _1> { #[codec(index = 0)] Prevote( runtime_types::finality_grandpa::Equivocation< runtime_types::sp_consensus_grandpa::app::Public, runtime_types::finality_grandpa::Prevote<_0, _1>, runtime_types::sp_consensus_grandpa::app::Signature, >, ), #[codec(index = 1)] Precommit( runtime_types::finality_grandpa::Equivocation< runtime_types::sp_consensus_grandpa::app::Public, runtime_types::finality_grandpa::Precommit<_0, _1>, runtime_types::sp_consensus_grandpa::app::Signature, >, ), } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct EquivocationProof<_0, _1> { pub set_id: ::core::primitive::u64, pub equivocation: runtime_types::sp_consensus_grandpa::Equivocation<_0, _1>, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct OpaqueKeyOwnershipProof(pub ::std::vec::Vec<::core::primitive::u8>); } pub mod sp_consensus_slots { use super::runtime_types; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct EquivocationProof<_0, _1> { pub offender: _1, pub slot: runtime_types::sp_consensus_slots::Slot, pub first_header: _0, pub second_header: _0, } #[derive( :: subxt :: ext :: codec :: CompactAs, :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Slot(pub ::core::primitive::u64); } pub mod sp_core { use super::runtime_types; pub mod crypto { use super::runtime_types; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct KeyTypeId(pub [::core::primitive::u8; 4usize]); } pub mod ecdsa { use super::runtime_types; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Public(pub [::core::primitive::u8; 33usize]); #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Signature(pub [::core::primitive::u8; 65usize]); } pub mod ed25519 { use super::runtime_types; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Public(pub [::core::primitive::u8; 32usize]); #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Signature(pub [::core::primitive::u8; 64usize]); } pub mod offchain { use super::runtime_types; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct OpaqueMultiaddr(pub ::std::vec::Vec<::core::primitive::u8>); #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct OpaqueNetworkState { pub peer_id: runtime_types::sp_core::OpaquePeerId, pub external_addresses: ::std::vec::Vec, } } pub mod sr25519 { use super::runtime_types; pub mod vrf { use super::runtime_types; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct VrfSignature { pub output: [::core::primitive::u8; 32usize], pub proof: [::core::primitive::u8; 64usize], } } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Public(pub [::core::primitive::u8; 32usize]); #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Signature(pub [::core::primitive::u8; 64usize]); } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct OpaqueMetadata(pub ::std::vec::Vec<::core::primitive::u8>); #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct OpaquePeerId(pub ::std::vec::Vec<::core::primitive::u8>); #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum Void {} } pub mod sp_inherents { use super::runtime_types; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct CheckInherentsResult { pub okay: ::core::primitive::bool, pub fatal_error: ::core::primitive::bool, pub errors: runtime_types::sp_inherents::InherentData, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct InherentData { pub data: ::subxt::utils::KeyedVec< [::core::primitive::u8; 8usize], ::std::vec::Vec<::core::primitive::u8>, >, } } pub mod sp_mmr_primitives { use super::runtime_types; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct EncodableOpaqueLeaf(pub ::std::vec::Vec<::core::primitive::u8>); #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum Error { #[codec(index = 0)] InvalidNumericOp, #[codec(index = 1)] Push, #[codec(index = 2)] GetRoot, #[codec(index = 3)] Commit, #[codec(index = 4)] GenerateProof, #[codec(index = 5)] Verify, #[codec(index = 6)] LeafNotFound, #[codec(index = 7)] PalletNotIncluded, #[codec(index = 8)] InvalidLeafIndex, #[codec(index = 9)] InvalidBestKnownBlock, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Proof<_0> { pub leaf_indices: ::std::vec::Vec<::core::primitive::u64>, pub leaf_count: ::core::primitive::u64, pub items: ::std::vec::Vec<_0>, } } pub mod sp_npos_elections { use super::runtime_types; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ElectionScore { pub minimal_stake: ::core::primitive::u128, pub sum_stake: ::core::primitive::u128, pub sum_stake_squared: ::core::primitive::u128, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Support<_0> { pub total: ::core::primitive::u128, pub voters: ::std::vec::Vec<(_0, ::core::primitive::u128)>, } } pub mod sp_runtime { use super::runtime_types; pub mod generic { use super::runtime_types; pub mod block { use super::runtime_types; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Block<_0, _1> { pub header: _0, pub extrinsics: ::std::vec::Vec<_1>, } } pub mod digest { use super::runtime_types; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Digest { pub logs: ::std::vec::Vec, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum DigestItem { #[codec(index = 6)] PreRuntime( [::core::primitive::u8; 4usize], ::std::vec::Vec<::core::primitive::u8>, ), #[codec(index = 4)] Consensus( [::core::primitive::u8; 4usize], ::std::vec::Vec<::core::primitive::u8>, ), #[codec(index = 5)] Seal( [::core::primitive::u8; 4usize], ::std::vec::Vec<::core::primitive::u8>, ), #[codec(index = 0)] Other(::std::vec::Vec<::core::primitive::u8>), #[codec(index = 8)] RuntimeEnvironmentUpdated, } } pub mod era { use super::runtime_types; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum Era { #[codec(index = 0)] Immortal, #[codec(index = 1)] Mortal1(::core::primitive::u8), #[codec(index = 2)] Mortal2(::core::primitive::u8), #[codec(index = 3)] Mortal3(::core::primitive::u8), #[codec(index = 4)] Mortal4(::core::primitive::u8), #[codec(index = 5)] Mortal5(::core::primitive::u8), #[codec(index = 6)] Mortal6(::core::primitive::u8), #[codec(index = 7)] Mortal7(::core::primitive::u8), #[codec(index = 8)] Mortal8(::core::primitive::u8), #[codec(index = 9)] Mortal9(::core::primitive::u8), #[codec(index = 10)] Mortal10(::core::primitive::u8), #[codec(index = 11)] Mortal11(::core::primitive::u8), #[codec(index = 12)] Mortal12(::core::primitive::u8), #[codec(index = 13)] Mortal13(::core::primitive::u8), #[codec(index = 14)] Mortal14(::core::primitive::u8), #[codec(index = 15)] Mortal15(::core::primitive::u8), #[codec(index = 16)] Mortal16(::core::primitive::u8), #[codec(index = 17)] Mortal17(::core::primitive::u8), #[codec(index = 18)] Mortal18(::core::primitive::u8), #[codec(index = 19)] Mortal19(::core::primitive::u8), #[codec(index = 20)] Mortal20(::core::primitive::u8), #[codec(index = 21)] Mortal21(::core::primitive::u8), #[codec(index = 22)] Mortal22(::core::primitive::u8), #[codec(index = 23)] Mortal23(::core::primitive::u8), #[codec(index = 24)] Mortal24(::core::primitive::u8), #[codec(index = 25)] Mortal25(::core::primitive::u8), #[codec(index = 26)] Mortal26(::core::primitive::u8), #[codec(index = 27)] Mortal27(::core::primitive::u8), #[codec(index = 28)] Mortal28(::core::primitive::u8), #[codec(index = 29)] Mortal29(::core::primitive::u8), #[codec(index = 30)] Mortal30(::core::primitive::u8), #[codec(index = 31)] Mortal31(::core::primitive::u8), #[codec(index = 32)] Mortal32(::core::primitive::u8), #[codec(index = 33)] Mortal33(::core::primitive::u8), #[codec(index = 34)] Mortal34(::core::primitive::u8), #[codec(index = 35)] Mortal35(::core::primitive::u8), #[codec(index = 36)] Mortal36(::core::primitive::u8), #[codec(index = 37)] Mortal37(::core::primitive::u8), #[codec(index = 38)] Mortal38(::core::primitive::u8), #[codec(index = 39)] Mortal39(::core::primitive::u8), #[codec(index = 40)] Mortal40(::core::primitive::u8), #[codec(index = 41)] Mortal41(::core::primitive::u8), #[codec(index = 42)] Mortal42(::core::primitive::u8), #[codec(index = 43)] Mortal43(::core::primitive::u8), #[codec(index = 44)] Mortal44(::core::primitive::u8), #[codec(index = 45)] Mortal45(::core::primitive::u8), #[codec(index = 46)] Mortal46(::core::primitive::u8), #[codec(index = 47)] Mortal47(::core::primitive::u8), #[codec(index = 48)] Mortal48(::core::primitive::u8), #[codec(index = 49)] Mortal49(::core::primitive::u8), #[codec(index = 50)] Mortal50(::core::primitive::u8), #[codec(index = 51)] Mortal51(::core::primitive::u8), #[codec(index = 52)] Mortal52(::core::primitive::u8), #[codec(index = 53)] Mortal53(::core::primitive::u8), #[codec(index = 54)] Mortal54(::core::primitive::u8), #[codec(index = 55)] Mortal55(::core::primitive::u8), #[codec(index = 56)] Mortal56(::core::primitive::u8), #[codec(index = 57)] Mortal57(::core::primitive::u8), #[codec(index = 58)] Mortal58(::core::primitive::u8), #[codec(index = 59)] Mortal59(::core::primitive::u8), #[codec(index = 60)] Mortal60(::core::primitive::u8), #[codec(index = 61)] Mortal61(::core::primitive::u8), #[codec(index = 62)] Mortal62(::core::primitive::u8), #[codec(index = 63)] Mortal63(::core::primitive::u8), #[codec(index = 64)] Mortal64(::core::primitive::u8), #[codec(index = 65)] Mortal65(::core::primitive::u8), #[codec(index = 66)] Mortal66(::core::primitive::u8), #[codec(index = 67)] Mortal67(::core::primitive::u8), #[codec(index = 68)] Mortal68(::core::primitive::u8), #[codec(index = 69)] Mortal69(::core::primitive::u8), #[codec(index = 70)] Mortal70(::core::primitive::u8), #[codec(index = 71)] Mortal71(::core::primitive::u8), #[codec(index = 72)] Mortal72(::core::primitive::u8), #[codec(index = 73)] Mortal73(::core::primitive::u8), #[codec(index = 74)] Mortal74(::core::primitive::u8), #[codec(index = 75)] Mortal75(::core::primitive::u8), #[codec(index = 76)] Mortal76(::core::primitive::u8), #[codec(index = 77)] Mortal77(::core::primitive::u8), #[codec(index = 78)] Mortal78(::core::primitive::u8), #[codec(index = 79)] Mortal79(::core::primitive::u8), #[codec(index = 80)] Mortal80(::core::primitive::u8), #[codec(index = 81)] Mortal81(::core::primitive::u8), #[codec(index = 82)] Mortal82(::core::primitive::u8), #[codec(index = 83)] Mortal83(::core::primitive::u8), #[codec(index = 84)] Mortal84(::core::primitive::u8), #[codec(index = 85)] Mortal85(::core::primitive::u8), #[codec(index = 86)] Mortal86(::core::primitive::u8), #[codec(index = 87)] Mortal87(::core::primitive::u8), #[codec(index = 88)] Mortal88(::core::primitive::u8), #[codec(index = 89)] Mortal89(::core::primitive::u8), #[codec(index = 90)] Mortal90(::core::primitive::u8), #[codec(index = 91)] Mortal91(::core::primitive::u8), #[codec(index = 92)] Mortal92(::core::primitive::u8), #[codec(index = 93)] Mortal93(::core::primitive::u8), #[codec(index = 94)] Mortal94(::core::primitive::u8), #[codec(index = 95)] Mortal95(::core::primitive::u8), #[codec(index = 96)] Mortal96(::core::primitive::u8), #[codec(index = 97)] Mortal97(::core::primitive::u8), #[codec(index = 98)] Mortal98(::core::primitive::u8), #[codec(index = 99)] Mortal99(::core::primitive::u8), #[codec(index = 100)] Mortal100(::core::primitive::u8), #[codec(index = 101)] Mortal101(::core::primitive::u8), #[codec(index = 102)] Mortal102(::core::primitive::u8), #[codec(index = 103)] Mortal103(::core::primitive::u8), #[codec(index = 104)] Mortal104(::core::primitive::u8), #[codec(index = 105)] Mortal105(::core::primitive::u8), #[codec(index = 106)] Mortal106(::core::primitive::u8), #[codec(index = 107)] Mortal107(::core::primitive::u8), #[codec(index = 108)] Mortal108(::core::primitive::u8), #[codec(index = 109)] Mortal109(::core::primitive::u8), #[codec(index = 110)] Mortal110(::core::primitive::u8), #[codec(index = 111)] Mortal111(::core::primitive::u8), #[codec(index = 112)] Mortal112(::core::primitive::u8), #[codec(index = 113)] Mortal113(::core::primitive::u8), #[codec(index = 114)] Mortal114(::core::primitive::u8), #[codec(index = 115)] Mortal115(::core::primitive::u8), #[codec(index = 116)] Mortal116(::core::primitive::u8), #[codec(index = 117)] Mortal117(::core::primitive::u8), #[codec(index = 118)] Mortal118(::core::primitive::u8), #[codec(index = 119)] Mortal119(::core::primitive::u8), #[codec(index = 120)] Mortal120(::core::primitive::u8), #[codec(index = 121)] Mortal121(::core::primitive::u8), #[codec(index = 122)] Mortal122(::core::primitive::u8), #[codec(index = 123)] Mortal123(::core::primitive::u8), #[codec(index = 124)] Mortal124(::core::primitive::u8), #[codec(index = 125)] Mortal125(::core::primitive::u8), #[codec(index = 126)] Mortal126(::core::primitive::u8), #[codec(index = 127)] Mortal127(::core::primitive::u8), #[codec(index = 128)] Mortal128(::core::primitive::u8), #[codec(index = 129)] Mortal129(::core::primitive::u8), #[codec(index = 130)] Mortal130(::core::primitive::u8), #[codec(index = 131)] Mortal131(::core::primitive::u8), #[codec(index = 132)] Mortal132(::core::primitive::u8), #[codec(index = 133)] Mortal133(::core::primitive::u8), #[codec(index = 134)] Mortal134(::core::primitive::u8), #[codec(index = 135)] Mortal135(::core::primitive::u8), #[codec(index = 136)] Mortal136(::core::primitive::u8), #[codec(index = 137)] Mortal137(::core::primitive::u8), #[codec(index = 138)] Mortal138(::core::primitive::u8), #[codec(index = 139)] Mortal139(::core::primitive::u8), #[codec(index = 140)] Mortal140(::core::primitive::u8), #[codec(index = 141)] Mortal141(::core::primitive::u8), #[codec(index = 142)] Mortal142(::core::primitive::u8), #[codec(index = 143)] Mortal143(::core::primitive::u8), #[codec(index = 144)] Mortal144(::core::primitive::u8), #[codec(index = 145)] Mortal145(::core::primitive::u8), #[codec(index = 146)] Mortal146(::core::primitive::u8), #[codec(index = 147)] Mortal147(::core::primitive::u8), #[codec(index = 148)] Mortal148(::core::primitive::u8), #[codec(index = 149)] Mortal149(::core::primitive::u8), #[codec(index = 150)] Mortal150(::core::primitive::u8), #[codec(index = 151)] Mortal151(::core::primitive::u8), #[codec(index = 152)] Mortal152(::core::primitive::u8), #[codec(index = 153)] Mortal153(::core::primitive::u8), #[codec(index = 154)] Mortal154(::core::primitive::u8), #[codec(index = 155)] Mortal155(::core::primitive::u8), #[codec(index = 156)] Mortal156(::core::primitive::u8), #[codec(index = 157)] Mortal157(::core::primitive::u8), #[codec(index = 158)] Mortal158(::core::primitive::u8), #[codec(index = 159)] Mortal159(::core::primitive::u8), #[codec(index = 160)] Mortal160(::core::primitive::u8), #[codec(index = 161)] Mortal161(::core::primitive::u8), #[codec(index = 162)] Mortal162(::core::primitive::u8), #[codec(index = 163)] Mortal163(::core::primitive::u8), #[codec(index = 164)] Mortal164(::core::primitive::u8), #[codec(index = 165)] Mortal165(::core::primitive::u8), #[codec(index = 166)] Mortal166(::core::primitive::u8), #[codec(index = 167)] Mortal167(::core::primitive::u8), #[codec(index = 168)] Mortal168(::core::primitive::u8), #[codec(index = 169)] Mortal169(::core::primitive::u8), #[codec(index = 170)] Mortal170(::core::primitive::u8), #[codec(index = 171)] Mortal171(::core::primitive::u8), #[codec(index = 172)] Mortal172(::core::primitive::u8), #[codec(index = 173)] Mortal173(::core::primitive::u8), #[codec(index = 174)] Mortal174(::core::primitive::u8), #[codec(index = 175)] Mortal175(::core::primitive::u8), #[codec(index = 176)] Mortal176(::core::primitive::u8), #[codec(index = 177)] Mortal177(::core::primitive::u8), #[codec(index = 178)] Mortal178(::core::primitive::u8), #[codec(index = 179)] Mortal179(::core::primitive::u8), #[codec(index = 180)] Mortal180(::core::primitive::u8), #[codec(index = 181)] Mortal181(::core::primitive::u8), #[codec(index = 182)] Mortal182(::core::primitive::u8), #[codec(index = 183)] Mortal183(::core::primitive::u8), #[codec(index = 184)] Mortal184(::core::primitive::u8), #[codec(index = 185)] Mortal185(::core::primitive::u8), #[codec(index = 186)] Mortal186(::core::primitive::u8), #[codec(index = 187)] Mortal187(::core::primitive::u8), #[codec(index = 188)] Mortal188(::core::primitive::u8), #[codec(index = 189)] Mortal189(::core::primitive::u8), #[codec(index = 190)] Mortal190(::core::primitive::u8), #[codec(index = 191)] Mortal191(::core::primitive::u8), #[codec(index = 192)] Mortal192(::core::primitive::u8), #[codec(index = 193)] Mortal193(::core::primitive::u8), #[codec(index = 194)] Mortal194(::core::primitive::u8), #[codec(index = 195)] Mortal195(::core::primitive::u8), #[codec(index = 196)] Mortal196(::core::primitive::u8), #[codec(index = 197)] Mortal197(::core::primitive::u8), #[codec(index = 198)] Mortal198(::core::primitive::u8), #[codec(index = 199)] Mortal199(::core::primitive::u8), #[codec(index = 200)] Mortal200(::core::primitive::u8), #[codec(index = 201)] Mortal201(::core::primitive::u8), #[codec(index = 202)] Mortal202(::core::primitive::u8), #[codec(index = 203)] Mortal203(::core::primitive::u8), #[codec(index = 204)] Mortal204(::core::primitive::u8), #[codec(index = 205)] Mortal205(::core::primitive::u8), #[codec(index = 206)] Mortal206(::core::primitive::u8), #[codec(index = 207)] Mortal207(::core::primitive::u8), #[codec(index = 208)] Mortal208(::core::primitive::u8), #[codec(index = 209)] Mortal209(::core::primitive::u8), #[codec(index = 210)] Mortal210(::core::primitive::u8), #[codec(index = 211)] Mortal211(::core::primitive::u8), #[codec(index = 212)] Mortal212(::core::primitive::u8), #[codec(index = 213)] Mortal213(::core::primitive::u8), #[codec(index = 214)] Mortal214(::core::primitive::u8), #[codec(index = 215)] Mortal215(::core::primitive::u8), #[codec(index = 216)] Mortal216(::core::primitive::u8), #[codec(index = 217)] Mortal217(::core::primitive::u8), #[codec(index = 218)] Mortal218(::core::primitive::u8), #[codec(index = 219)] Mortal219(::core::primitive::u8), #[codec(index = 220)] Mortal220(::core::primitive::u8), #[codec(index = 221)] Mortal221(::core::primitive::u8), #[codec(index = 222)] Mortal222(::core::primitive::u8), #[codec(index = 223)] Mortal223(::core::primitive::u8), #[codec(index = 224)] Mortal224(::core::primitive::u8), #[codec(index = 225)] Mortal225(::core::primitive::u8), #[codec(index = 226)] Mortal226(::core::primitive::u8), #[codec(index = 227)] Mortal227(::core::primitive::u8), #[codec(index = 228)] Mortal228(::core::primitive::u8), #[codec(index = 229)] Mortal229(::core::primitive::u8), #[codec(index = 230)] Mortal230(::core::primitive::u8), #[codec(index = 231)] Mortal231(::core::primitive::u8), #[codec(index = 232)] Mortal232(::core::primitive::u8), #[codec(index = 233)] Mortal233(::core::primitive::u8), #[codec(index = 234)] Mortal234(::core::primitive::u8), #[codec(index = 235)] Mortal235(::core::primitive::u8), #[codec(index = 236)] Mortal236(::core::primitive::u8), #[codec(index = 237)] Mortal237(::core::primitive::u8), #[codec(index = 238)] Mortal238(::core::primitive::u8), #[codec(index = 239)] Mortal239(::core::primitive::u8), #[codec(index = 240)] Mortal240(::core::primitive::u8), #[codec(index = 241)] Mortal241(::core::primitive::u8), #[codec(index = 242)] Mortal242(::core::primitive::u8), #[codec(index = 243)] Mortal243(::core::primitive::u8), #[codec(index = 244)] Mortal244(::core::primitive::u8), #[codec(index = 245)] Mortal245(::core::primitive::u8), #[codec(index = 246)] Mortal246(::core::primitive::u8), #[codec(index = 247)] Mortal247(::core::primitive::u8), #[codec(index = 248)] Mortal248(::core::primitive::u8), #[codec(index = 249)] Mortal249(::core::primitive::u8), #[codec(index = 250)] Mortal250(::core::primitive::u8), #[codec(index = 251)] Mortal251(::core::primitive::u8), #[codec(index = 252)] Mortal252(::core::primitive::u8), #[codec(index = 253)] Mortal253(::core::primitive::u8), #[codec(index = 254)] Mortal254(::core::primitive::u8), #[codec(index = 255)] Mortal255(::core::primitive::u8), } } pub mod header { use super::runtime_types; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Header<_0, _1> { pub parent_hash: ::subxt::utils::H256, #[codec(compact)] pub number: _0, pub state_root: ::subxt::utils::H256, pub extrinsics_root: ::subxt::utils::H256, pub digest: runtime_types::sp_runtime::generic::digest::Digest, #[codec(skip)] pub __subxt_unused_type_params: ::core::marker::PhantomData<_1>, } } pub mod unchecked_extrinsic { use super::runtime_types; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct UncheckedExtrinsic<_0, _1, _2, _3>( pub ::std::vec::Vec<::core::primitive::u8>, #[codec(skip)] pub ::core::marker::PhantomData<(_1, _0, _2, _3)>, ); } } pub mod traits { use super::runtime_types; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct BlakeTwo256; } pub mod transaction_validity { use super::runtime_types; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum InvalidTransaction { #[codec(index = 0)] Call, #[codec(index = 1)] Payment, #[codec(index = 2)] Future, #[codec(index = 3)] Stale, #[codec(index = 4)] BadProof, #[codec(index = 5)] AncientBirthBlock, #[codec(index = 6)] ExhaustsResources, #[codec(index = 7)] Custom(::core::primitive::u8), #[codec(index = 8)] BadMandatory, #[codec(index = 9)] MandatoryValidation, #[codec(index = 10)] BadSigner, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum TransactionSource { #[codec(index = 0)] InBlock, #[codec(index = 1)] Local, #[codec(index = 2)] External, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum TransactionValidityError { #[codec(index = 0)] Invalid(runtime_types::sp_runtime::transaction_validity::InvalidTransaction), #[codec(index = 1)] Unknown(runtime_types::sp_runtime::transaction_validity::UnknownTransaction), } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum UnknownTransaction { #[codec(index = 0)] CannotLookup, #[codec(index = 1)] NoUnsignedValidator, #[codec(index = 2)] Custom(::core::primitive::u8), } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ValidTransaction { pub priority: ::core::primitive::u64, pub requires: ::std::vec::Vec<::std::vec::Vec<::core::primitive::u8>>, pub provides: ::std::vec::Vec<::std::vec::Vec<::core::primitive::u8>>, pub longevity: ::core::primitive::u64, pub propagate: ::core::primitive::bool, } } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum DispatchError { #[codec(index = 0)] Other, #[codec(index = 1)] CannotLookup, #[codec(index = 2)] BadOrigin, #[codec(index = 3)] Module(runtime_types::sp_runtime::ModuleError), #[codec(index = 4)] ConsumerRemaining, #[codec(index = 5)] NoProviders, #[codec(index = 6)] TooManyConsumers, #[codec(index = 7)] Token(runtime_types::sp_runtime::TokenError), #[codec(index = 8)] Arithmetic(runtime_types::sp_arithmetic::ArithmeticError), #[codec(index = 9)] Transactional(runtime_types::sp_runtime::TransactionalError), #[codec(index = 10)] Exhausted, #[codec(index = 11)] Corruption, #[codec(index = 12)] Unavailable, #[codec(index = 13)] RootNotAllowed, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct DispatchErrorWithPostInfo<_0> { pub post_info: _0, pub error: runtime_types::sp_runtime::DispatchError, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ModuleError { pub index: ::core::primitive::u8, pub error: [::core::primitive::u8; 4usize], } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum MultiSignature { #[codec(index = 0)] Ed25519(runtime_types::sp_core::ed25519::Signature), #[codec(index = 1)] Sr25519(runtime_types::sp_core::sr25519::Signature), #[codec(index = 2)] Ecdsa(runtime_types::sp_core::ecdsa::Signature), } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum MultiSigner { #[codec(index = 0)] Ed25519(runtime_types::sp_core::ed25519::Public), #[codec(index = 1)] Sr25519(runtime_types::sp_core::sr25519::Public), #[codec(index = 2)] Ecdsa(runtime_types::sp_core::ecdsa::Public), } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum TokenError { #[codec(index = 0)] FundsUnavailable, #[codec(index = 1)] OnlyProvider, #[codec(index = 2)] BelowMinimum, #[codec(index = 3)] CannotCreate, #[codec(index = 4)] UnknownAsset, #[codec(index = 5)] Frozen, #[codec(index = 6)] Unsupported, #[codec(index = 7)] CannotCreateHold, #[codec(index = 8)] NotExpendable, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum TransactionalError { #[codec(index = 0)] LimitReached, #[codec(index = 1)] NoLayer, } } pub mod sp_session { use super::runtime_types; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct MembershipProof { pub session: ::core::primitive::u32, pub trie_nodes: ::std::vec::Vec<::std::vec::Vec<::core::primitive::u8>>, pub validator_count: ::core::primitive::u32, } } pub mod sp_staking { use super::runtime_types; pub mod offence { use super::runtime_types; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct OffenceDetails<_0, _1> { pub offender: _1, pub reporters: ::std::vec::Vec<_0>, } } } pub mod sp_version { use super::runtime_types; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct RuntimeVersion { pub spec_name: ::std::string::String, pub impl_name: ::std::string::String, pub authoring_version: ::core::primitive::u32, pub spec_version: ::core::primitive::u32, pub impl_version: ::core::primitive::u32, pub apis: ::std::vec::Vec<([::core::primitive::u8; 8usize], ::core::primitive::u32)>, pub transaction_version: ::core::primitive::u32, pub state_version: ::core::primitive::u8, } } pub mod sp_weights { use super::runtime_types; pub mod weight_v2 { use super::runtime_types; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Weight { #[codec(compact)] pub ref_time: ::core::primitive::u64, #[codec(compact)] pub proof_size: ::core::primitive::u64, } } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct RuntimeDbWeight { pub read: ::core::primitive::u64, pub write: ::core::primitive::u64, } } pub mod xcm { use super::runtime_types; pub mod double_encoded { use super::runtime_types; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct DoubleEncoded { pub encoded: ::std::vec::Vec<::core::primitive::u8>, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct DoubleEncoded2 { pub encoded: ::std::vec::Vec<::core::primitive::u8>, } } pub mod v2 { use super::runtime_types; pub mod junction { use super::runtime_types; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum Junction { #[codec(index = 0)] Parachain(#[codec(compact)] ::core::primitive::u32), #[codec(index = 1)] AccountId32 { network: runtime_types::xcm::v2::NetworkId, id: [::core::primitive::u8; 32usize], }, #[codec(index = 2)] AccountIndex64 { network: runtime_types::xcm::v2::NetworkId, #[codec(compact)] index: ::core::primitive::u64, }, #[codec(index = 3)] AccountKey20 { network: runtime_types::xcm::v2::NetworkId, key: [::core::primitive::u8; 20usize], }, #[codec(index = 4)] PalletInstance(::core::primitive::u8), #[codec(index = 5)] GeneralIndex(#[codec(compact)] ::core::primitive::u128), #[codec(index = 6)] GeneralKey( runtime_types::bounded_collections::weak_bounded_vec::WeakBoundedVec< ::core::primitive::u8, >, ), #[codec(index = 7)] OnlyChild, #[codec(index = 8)] Plurality { id: runtime_types::xcm::v2::BodyId, part: runtime_types::xcm::v2::BodyPart, }, } } pub mod multiasset { use super::runtime_types; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum AssetId { #[codec(index = 0)] Concrete(runtime_types::xcm::v2::multilocation::MultiLocation), #[codec(index = 1)] Abstract(::std::vec::Vec<::core::primitive::u8>), } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum AssetInstance { #[codec(index = 0)] Undefined, #[codec(index = 1)] Index(#[codec(compact)] ::core::primitive::u128), #[codec(index = 2)] Array4([::core::primitive::u8; 4usize]), #[codec(index = 3)] Array8([::core::primitive::u8; 8usize]), #[codec(index = 4)] Array16([::core::primitive::u8; 16usize]), #[codec(index = 5)] Array32([::core::primitive::u8; 32usize]), #[codec(index = 6)] Blob(::std::vec::Vec<::core::primitive::u8>), } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum Fungibility { #[codec(index = 0)] Fungible(#[codec(compact)] ::core::primitive::u128), #[codec(index = 1)] NonFungible(runtime_types::xcm::v2::multiasset::AssetInstance), } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct MultiAsset { pub id: runtime_types::xcm::v2::multiasset::AssetId, pub fun: runtime_types::xcm::v2::multiasset::Fungibility, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum MultiAssetFilter { #[codec(index = 0)] Definite(runtime_types::xcm::v2::multiasset::MultiAssets), #[codec(index = 1)] Wild(runtime_types::xcm::v2::multiasset::WildMultiAsset), } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct MultiAssets( pub ::std::vec::Vec, ); #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum WildFungibility { #[codec(index = 0)] Fungible, #[codec(index = 1)] NonFungible, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum WildMultiAsset { #[codec(index = 0)] All, #[codec(index = 1)] AllOf { id: runtime_types::xcm::v2::multiasset::AssetId, fun: runtime_types::xcm::v2::multiasset::WildFungibility, }, } } pub mod multilocation { use super::runtime_types; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum Junctions { #[codec(index = 0)] Here, #[codec(index = 1)] X1(runtime_types::xcm::v2::junction::Junction), #[codec(index = 2)] X2( runtime_types::xcm::v2::junction::Junction, runtime_types::xcm::v2::junction::Junction, ), #[codec(index = 3)] X3( runtime_types::xcm::v2::junction::Junction, runtime_types::xcm::v2::junction::Junction, runtime_types::xcm::v2::junction::Junction, ), #[codec(index = 4)] X4( runtime_types::xcm::v2::junction::Junction, runtime_types::xcm::v2::junction::Junction, runtime_types::xcm::v2::junction::Junction, runtime_types::xcm::v2::junction::Junction, ), #[codec(index = 5)] X5( runtime_types::xcm::v2::junction::Junction, runtime_types::xcm::v2::junction::Junction, runtime_types::xcm::v2::junction::Junction, runtime_types::xcm::v2::junction::Junction, runtime_types::xcm::v2::junction::Junction, ), #[codec(index = 6)] X6( runtime_types::xcm::v2::junction::Junction, runtime_types::xcm::v2::junction::Junction, runtime_types::xcm::v2::junction::Junction, runtime_types::xcm::v2::junction::Junction, runtime_types::xcm::v2::junction::Junction, runtime_types::xcm::v2::junction::Junction, ), #[codec(index = 7)] X7( runtime_types::xcm::v2::junction::Junction, runtime_types::xcm::v2::junction::Junction, runtime_types::xcm::v2::junction::Junction, runtime_types::xcm::v2::junction::Junction, runtime_types::xcm::v2::junction::Junction, runtime_types::xcm::v2::junction::Junction, runtime_types::xcm::v2::junction::Junction, ), #[codec(index = 8)] X8( runtime_types::xcm::v2::junction::Junction, runtime_types::xcm::v2::junction::Junction, runtime_types::xcm::v2::junction::Junction, runtime_types::xcm::v2::junction::Junction, runtime_types::xcm::v2::junction::Junction, runtime_types::xcm::v2::junction::Junction, runtime_types::xcm::v2::junction::Junction, runtime_types::xcm::v2::junction::Junction, ), } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct MultiLocation { pub parents: ::core::primitive::u8, pub interior: runtime_types::xcm::v2::multilocation::Junctions, } } pub mod traits { use super::runtime_types; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum Error { #[codec(index = 0)] Overflow, #[codec(index = 1)] Unimplemented, #[codec(index = 2)] UntrustedReserveLocation, #[codec(index = 3)] UntrustedTeleportLocation, #[codec(index = 4)] MultiLocationFull, #[codec(index = 5)] MultiLocationNotInvertible, #[codec(index = 6)] BadOrigin, #[codec(index = 7)] InvalidLocation, #[codec(index = 8)] AssetNotFound, #[codec(index = 9)] FailedToTransactAsset, #[codec(index = 10)] NotWithdrawable, #[codec(index = 11)] LocationCannotHold, #[codec(index = 12)] ExceedsMaxMessageSize, #[codec(index = 13)] DestinationUnsupported, #[codec(index = 14)] Transport, #[codec(index = 15)] Unroutable, #[codec(index = 16)] UnknownClaim, #[codec(index = 17)] FailedToDecode, #[codec(index = 18)] MaxWeightInvalid, #[codec(index = 19)] NotHoldingFees, #[codec(index = 20)] TooExpensive, #[codec(index = 21)] Trap(::core::primitive::u64), #[codec(index = 22)] UnhandledXcmVersion, #[codec(index = 23)] WeightLimitReached(::core::primitive::u64), #[codec(index = 24)] Barrier, #[codec(index = 25)] WeightNotComputable, } } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum BodyId { #[codec(index = 0)] Unit, #[codec(index = 1)] Named( runtime_types::bounded_collections::weak_bounded_vec::WeakBoundedVec< ::core::primitive::u8, >, ), #[codec(index = 2)] Index(#[codec(compact)] ::core::primitive::u32), #[codec(index = 3)] Executive, #[codec(index = 4)] Technical, #[codec(index = 5)] Legislative, #[codec(index = 6)] Judicial, #[codec(index = 7)] Defense, #[codec(index = 8)] Administration, #[codec(index = 9)] Treasury, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum BodyPart { #[codec(index = 0)] Voice, #[codec(index = 1)] Members { #[codec(compact)] count: ::core::primitive::u32, }, #[codec(index = 2)] Fraction { #[codec(compact)] nom: ::core::primitive::u32, #[codec(compact)] denom: ::core::primitive::u32, }, #[codec(index = 3)] AtLeastProportion { #[codec(compact)] nom: ::core::primitive::u32, #[codec(compact)] denom: ::core::primitive::u32, }, #[codec(index = 4)] MoreThanProportion { #[codec(compact)] nom: ::core::primitive::u32, #[codec(compact)] denom: ::core::primitive::u32, }, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum Instruction { #[codec(index = 0)] WithdrawAsset(runtime_types::xcm::v2::multiasset::MultiAssets), #[codec(index = 1)] ReserveAssetDeposited(runtime_types::xcm::v2::multiasset::MultiAssets), #[codec(index = 2)] ReceiveTeleportedAsset(runtime_types::xcm::v2::multiasset::MultiAssets), #[codec(index = 3)] QueryResponse { #[codec(compact)] query_id: ::core::primitive::u64, response: runtime_types::xcm::v2::Response, #[codec(compact)] max_weight: ::core::primitive::u64, }, #[codec(index = 4)] TransferAsset { assets: runtime_types::xcm::v2::multiasset::MultiAssets, beneficiary: runtime_types::xcm::v2::multilocation::MultiLocation, }, #[codec(index = 5)] TransferReserveAsset { assets: runtime_types::xcm::v2::multiasset::MultiAssets, dest: runtime_types::xcm::v2::multilocation::MultiLocation, xcm: runtime_types::xcm::v2::Xcm, }, #[codec(index = 6)] Transact { origin_type: runtime_types::xcm::v2::OriginKind, #[codec(compact)] require_weight_at_most: ::core::primitive::u64, call: runtime_types::xcm::double_encoded::DoubleEncoded, }, #[codec(index = 7)] HrmpNewChannelOpenRequest { #[codec(compact)] sender: ::core::primitive::u32, #[codec(compact)] max_message_size: ::core::primitive::u32, #[codec(compact)] max_capacity: ::core::primitive::u32, }, #[codec(index = 8)] HrmpChannelAccepted { #[codec(compact)] recipient: ::core::primitive::u32, }, #[codec(index = 9)] HrmpChannelClosing { #[codec(compact)] initiator: ::core::primitive::u32, #[codec(compact)] sender: ::core::primitive::u32, #[codec(compact)] recipient: ::core::primitive::u32, }, #[codec(index = 10)] ClearOrigin, #[codec(index = 11)] DescendOrigin(runtime_types::xcm::v2::multilocation::Junctions), #[codec(index = 12)] ReportError { #[codec(compact)] query_id: ::core::primitive::u64, dest: runtime_types::xcm::v2::multilocation::MultiLocation, #[codec(compact)] max_response_weight: ::core::primitive::u64, }, #[codec(index = 13)] DepositAsset { assets: runtime_types::xcm::v2::multiasset::MultiAssetFilter, #[codec(compact)] max_assets: ::core::primitive::u32, beneficiary: runtime_types::xcm::v2::multilocation::MultiLocation, }, #[codec(index = 14)] DepositReserveAsset { assets: runtime_types::xcm::v2::multiasset::MultiAssetFilter, #[codec(compact)] max_assets: ::core::primitive::u32, dest: runtime_types::xcm::v2::multilocation::MultiLocation, xcm: runtime_types::xcm::v2::Xcm, }, #[codec(index = 15)] ExchangeAsset { give: runtime_types::xcm::v2::multiasset::MultiAssetFilter, receive: runtime_types::xcm::v2::multiasset::MultiAssets, }, #[codec(index = 16)] InitiateReserveWithdraw { assets: runtime_types::xcm::v2::multiasset::MultiAssetFilter, reserve: runtime_types::xcm::v2::multilocation::MultiLocation, xcm: runtime_types::xcm::v2::Xcm, }, #[codec(index = 17)] InitiateTeleport { assets: runtime_types::xcm::v2::multiasset::MultiAssetFilter, dest: runtime_types::xcm::v2::multilocation::MultiLocation, xcm: runtime_types::xcm::v2::Xcm, }, #[codec(index = 18)] QueryHolding { #[codec(compact)] query_id: ::core::primitive::u64, dest: runtime_types::xcm::v2::multilocation::MultiLocation, assets: runtime_types::xcm::v2::multiasset::MultiAssetFilter, #[codec(compact)] max_response_weight: ::core::primitive::u64, }, #[codec(index = 19)] BuyExecution { fees: runtime_types::xcm::v2::multiasset::MultiAsset, weight_limit: runtime_types::xcm::v2::WeightLimit, }, #[codec(index = 20)] RefundSurplus, #[codec(index = 21)] SetErrorHandler(runtime_types::xcm::v2::Xcm), #[codec(index = 22)] SetAppendix(runtime_types::xcm::v2::Xcm), #[codec(index = 23)] ClearError, #[codec(index = 24)] ClaimAsset { assets: runtime_types::xcm::v2::multiasset::MultiAssets, ticket: runtime_types::xcm::v2::multilocation::MultiLocation, }, #[codec(index = 25)] Trap(#[codec(compact)] ::core::primitive::u64), #[codec(index = 26)] SubscribeVersion { #[codec(compact)] query_id: ::core::primitive::u64, #[codec(compact)] max_response_weight: ::core::primitive::u64, }, #[codec(index = 27)] UnsubscribeVersion, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum Instruction2 { #[codec(index = 0)] WithdrawAsset(runtime_types::xcm::v2::multiasset::MultiAssets), #[codec(index = 1)] ReserveAssetDeposited(runtime_types::xcm::v2::multiasset::MultiAssets), #[codec(index = 2)] ReceiveTeleportedAsset(runtime_types::xcm::v2::multiasset::MultiAssets), #[codec(index = 3)] QueryResponse { #[codec(compact)] query_id: ::core::primitive::u64, response: runtime_types::xcm::v2::Response, #[codec(compact)] max_weight: ::core::primitive::u64, }, #[codec(index = 4)] TransferAsset { assets: runtime_types::xcm::v2::multiasset::MultiAssets, beneficiary: runtime_types::xcm::v2::multilocation::MultiLocation, }, #[codec(index = 5)] TransferReserveAsset { assets: runtime_types::xcm::v2::multiasset::MultiAssets, dest: runtime_types::xcm::v2::multilocation::MultiLocation, xcm: runtime_types::xcm::v2::Xcm, }, #[codec(index = 6)] Transact { origin_type: runtime_types::xcm::v2::OriginKind, #[codec(compact)] require_weight_at_most: ::core::primitive::u64, call: runtime_types::xcm::double_encoded::DoubleEncoded2, }, #[codec(index = 7)] HrmpNewChannelOpenRequest { #[codec(compact)] sender: ::core::primitive::u32, #[codec(compact)] max_message_size: ::core::primitive::u32, #[codec(compact)] max_capacity: ::core::primitive::u32, }, #[codec(index = 8)] HrmpChannelAccepted { #[codec(compact)] recipient: ::core::primitive::u32, }, #[codec(index = 9)] HrmpChannelClosing { #[codec(compact)] initiator: ::core::primitive::u32, #[codec(compact)] sender: ::core::primitive::u32, #[codec(compact)] recipient: ::core::primitive::u32, }, #[codec(index = 10)] ClearOrigin, #[codec(index = 11)] DescendOrigin(runtime_types::xcm::v2::multilocation::Junctions), #[codec(index = 12)] ReportError { #[codec(compact)] query_id: ::core::primitive::u64, dest: runtime_types::xcm::v2::multilocation::MultiLocation, #[codec(compact)] max_response_weight: ::core::primitive::u64, }, #[codec(index = 13)] DepositAsset { assets: runtime_types::xcm::v2::multiasset::MultiAssetFilter, #[codec(compact)] max_assets: ::core::primitive::u32, beneficiary: runtime_types::xcm::v2::multilocation::MultiLocation, }, #[codec(index = 14)] DepositReserveAsset { assets: runtime_types::xcm::v2::multiasset::MultiAssetFilter, #[codec(compact)] max_assets: ::core::primitive::u32, dest: runtime_types::xcm::v2::multilocation::MultiLocation, xcm: runtime_types::xcm::v2::Xcm, }, #[codec(index = 15)] ExchangeAsset { give: runtime_types::xcm::v2::multiasset::MultiAssetFilter, receive: runtime_types::xcm::v2::multiasset::MultiAssets, }, #[codec(index = 16)] InitiateReserveWithdraw { assets: runtime_types::xcm::v2::multiasset::MultiAssetFilter, reserve: runtime_types::xcm::v2::multilocation::MultiLocation, xcm: runtime_types::xcm::v2::Xcm, }, #[codec(index = 17)] InitiateTeleport { assets: runtime_types::xcm::v2::multiasset::MultiAssetFilter, dest: runtime_types::xcm::v2::multilocation::MultiLocation, xcm: runtime_types::xcm::v2::Xcm, }, #[codec(index = 18)] QueryHolding { #[codec(compact)] query_id: ::core::primitive::u64, dest: runtime_types::xcm::v2::multilocation::MultiLocation, assets: runtime_types::xcm::v2::multiasset::MultiAssetFilter, #[codec(compact)] max_response_weight: ::core::primitive::u64, }, #[codec(index = 19)] BuyExecution { fees: runtime_types::xcm::v2::multiasset::MultiAsset, weight_limit: runtime_types::xcm::v2::WeightLimit, }, #[codec(index = 20)] RefundSurplus, #[codec(index = 21)] SetErrorHandler(runtime_types::xcm::v2::Xcm2), #[codec(index = 22)] SetAppendix(runtime_types::xcm::v2::Xcm2), #[codec(index = 23)] ClearError, #[codec(index = 24)] ClaimAsset { assets: runtime_types::xcm::v2::multiasset::MultiAssets, ticket: runtime_types::xcm::v2::multilocation::MultiLocation, }, #[codec(index = 25)] Trap(#[codec(compact)] ::core::primitive::u64), #[codec(index = 26)] SubscribeVersion { #[codec(compact)] query_id: ::core::primitive::u64, #[codec(compact)] max_response_weight: ::core::primitive::u64, }, #[codec(index = 27)] UnsubscribeVersion, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum NetworkId { #[codec(index = 0)] Any, #[codec(index = 1)] Named( runtime_types::bounded_collections::weak_bounded_vec::WeakBoundedVec< ::core::primitive::u8, >, ), #[codec(index = 2)] Polkadot, #[codec(index = 3)] Kusama, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum OriginKind { #[codec(index = 0)] Native, #[codec(index = 1)] SovereignAccount, #[codec(index = 2)] Superuser, #[codec(index = 3)] Xcm, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum Response { #[codec(index = 0)] Null, #[codec(index = 1)] Assets(runtime_types::xcm::v2::multiasset::MultiAssets), #[codec(index = 2)] ExecutionResult( ::core::option::Option<( ::core::primitive::u32, runtime_types::xcm::v2::traits::Error, )>, ), #[codec(index = 3)] Version(::core::primitive::u32), } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum WeightLimit { #[codec(index = 0)] Unlimited, #[codec(index = 1)] Limited(#[codec(compact)] ::core::primitive::u64), } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Xcm(pub ::std::vec::Vec); #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Xcm2(pub ::std::vec::Vec); } pub mod v3 { use super::runtime_types; pub mod junction { use super::runtime_types; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum BodyId { #[codec(index = 0)] Unit, #[codec(index = 1)] Moniker([::core::primitive::u8; 4usize]), #[codec(index = 2)] Index(#[codec(compact)] ::core::primitive::u32), #[codec(index = 3)] Executive, #[codec(index = 4)] Technical, #[codec(index = 5)] Legislative, #[codec(index = 6)] Judicial, #[codec(index = 7)] Defense, #[codec(index = 8)] Administration, #[codec(index = 9)] Treasury, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum BodyPart { #[codec(index = 0)] Voice, #[codec(index = 1)] Members { #[codec(compact)] count: ::core::primitive::u32, }, #[codec(index = 2)] Fraction { #[codec(compact)] nom: ::core::primitive::u32, #[codec(compact)] denom: ::core::primitive::u32, }, #[codec(index = 3)] AtLeastProportion { #[codec(compact)] nom: ::core::primitive::u32, #[codec(compact)] denom: ::core::primitive::u32, }, #[codec(index = 4)] MoreThanProportion { #[codec(compact)] nom: ::core::primitive::u32, #[codec(compact)] denom: ::core::primitive::u32, }, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum Junction { #[codec(index = 0)] Parachain(#[codec(compact)] ::core::primitive::u32), #[codec(index = 1)] AccountId32 { network: ::core::option::Option, id: [::core::primitive::u8; 32usize], }, #[codec(index = 2)] AccountIndex64 { network: ::core::option::Option, #[codec(compact)] index: ::core::primitive::u64, }, #[codec(index = 3)] AccountKey20 { network: ::core::option::Option, key: [::core::primitive::u8; 20usize], }, #[codec(index = 4)] PalletInstance(::core::primitive::u8), #[codec(index = 5)] GeneralIndex(#[codec(compact)] ::core::primitive::u128), #[codec(index = 6)] GeneralKey { length: ::core::primitive::u8, data: [::core::primitive::u8; 32usize], }, #[codec(index = 7)] OnlyChild, #[codec(index = 8)] Plurality { id: runtime_types::xcm::v3::junction::BodyId, part: runtime_types::xcm::v3::junction::BodyPart, }, #[codec(index = 9)] GlobalConsensus(runtime_types::xcm::v3::junction::NetworkId), } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum NetworkId { #[codec(index = 0)] ByGenesis([::core::primitive::u8; 32usize]), #[codec(index = 1)] ByFork { block_number: ::core::primitive::u64, block_hash: [::core::primitive::u8; 32usize], }, #[codec(index = 2)] Polkadot, #[codec(index = 3)] Kusama, #[codec(index = 4)] Westend, #[codec(index = 5)] Rococo, #[codec(index = 6)] Wococo, #[codec(index = 7)] Ethereum { #[codec(compact)] chain_id: ::core::primitive::u64, }, #[codec(index = 8)] BitcoinCore, #[codec(index = 9)] BitcoinCash, } } pub mod junctions { use super::runtime_types; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum Junctions { #[codec(index = 0)] Here, #[codec(index = 1)] X1(runtime_types::xcm::v3::junction::Junction), #[codec(index = 2)] X2( runtime_types::xcm::v3::junction::Junction, runtime_types::xcm::v3::junction::Junction, ), #[codec(index = 3)] X3( runtime_types::xcm::v3::junction::Junction, runtime_types::xcm::v3::junction::Junction, runtime_types::xcm::v3::junction::Junction, ), #[codec(index = 4)] X4( runtime_types::xcm::v3::junction::Junction, runtime_types::xcm::v3::junction::Junction, runtime_types::xcm::v3::junction::Junction, runtime_types::xcm::v3::junction::Junction, ), #[codec(index = 5)] X5( runtime_types::xcm::v3::junction::Junction, runtime_types::xcm::v3::junction::Junction, runtime_types::xcm::v3::junction::Junction, runtime_types::xcm::v3::junction::Junction, runtime_types::xcm::v3::junction::Junction, ), #[codec(index = 6)] X6( runtime_types::xcm::v3::junction::Junction, runtime_types::xcm::v3::junction::Junction, runtime_types::xcm::v3::junction::Junction, runtime_types::xcm::v3::junction::Junction, runtime_types::xcm::v3::junction::Junction, runtime_types::xcm::v3::junction::Junction, ), #[codec(index = 7)] X7( runtime_types::xcm::v3::junction::Junction, runtime_types::xcm::v3::junction::Junction, runtime_types::xcm::v3::junction::Junction, runtime_types::xcm::v3::junction::Junction, runtime_types::xcm::v3::junction::Junction, runtime_types::xcm::v3::junction::Junction, runtime_types::xcm::v3::junction::Junction, ), #[codec(index = 8)] X8( runtime_types::xcm::v3::junction::Junction, runtime_types::xcm::v3::junction::Junction, runtime_types::xcm::v3::junction::Junction, runtime_types::xcm::v3::junction::Junction, runtime_types::xcm::v3::junction::Junction, runtime_types::xcm::v3::junction::Junction, runtime_types::xcm::v3::junction::Junction, runtime_types::xcm::v3::junction::Junction, ), } } pub mod multiasset { use super::runtime_types; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum AssetId { #[codec(index = 0)] Concrete(runtime_types::xcm::v3::multilocation::MultiLocation), #[codec(index = 1)] Abstract([::core::primitive::u8; 32usize]), } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum AssetInstance { #[codec(index = 0)] Undefined, #[codec(index = 1)] Index(#[codec(compact)] ::core::primitive::u128), #[codec(index = 2)] Array4([::core::primitive::u8; 4usize]), #[codec(index = 3)] Array8([::core::primitive::u8; 8usize]), #[codec(index = 4)] Array16([::core::primitive::u8; 16usize]), #[codec(index = 5)] Array32([::core::primitive::u8; 32usize]), } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum Fungibility { #[codec(index = 0)] Fungible(#[codec(compact)] ::core::primitive::u128), #[codec(index = 1)] NonFungible(runtime_types::xcm::v3::multiasset::AssetInstance), } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct MultiAsset { pub id: runtime_types::xcm::v3::multiasset::AssetId, pub fun: runtime_types::xcm::v3::multiasset::Fungibility, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum MultiAssetFilter { #[codec(index = 0)] Definite(runtime_types::xcm::v3::multiasset::MultiAssets), #[codec(index = 1)] Wild(runtime_types::xcm::v3::multiasset::WildMultiAsset), } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct MultiAssets( pub ::std::vec::Vec, ); #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum WildFungibility { #[codec(index = 0)] Fungible, #[codec(index = 1)] NonFungible, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum WildMultiAsset { #[codec(index = 0)] All, #[codec(index = 1)] AllOf { id: runtime_types::xcm::v3::multiasset::AssetId, fun: runtime_types::xcm::v3::multiasset::WildFungibility, }, #[codec(index = 2)] AllCounted(#[codec(compact)] ::core::primitive::u32), #[codec(index = 3)] AllOfCounted { id: runtime_types::xcm::v3::multiasset::AssetId, fun: runtime_types::xcm::v3::multiasset::WildFungibility, #[codec(compact)] count: ::core::primitive::u32, }, } } pub mod multilocation { use super::runtime_types; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct MultiLocation { pub parents: ::core::primitive::u8, pub interior: runtime_types::xcm::v3::junctions::Junctions, } } pub mod traits { use super::runtime_types; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum Error { #[codec(index = 0)] Overflow, #[codec(index = 1)] Unimplemented, #[codec(index = 2)] UntrustedReserveLocation, #[codec(index = 3)] UntrustedTeleportLocation, #[codec(index = 4)] LocationFull, #[codec(index = 5)] LocationNotInvertible, #[codec(index = 6)] BadOrigin, #[codec(index = 7)] InvalidLocation, #[codec(index = 8)] AssetNotFound, #[codec(index = 9)] FailedToTransactAsset, #[codec(index = 10)] NotWithdrawable, #[codec(index = 11)] LocationCannotHold, #[codec(index = 12)] ExceedsMaxMessageSize, #[codec(index = 13)] DestinationUnsupported, #[codec(index = 14)] Transport, #[codec(index = 15)] Unroutable, #[codec(index = 16)] UnknownClaim, #[codec(index = 17)] FailedToDecode, #[codec(index = 18)] MaxWeightInvalid, #[codec(index = 19)] NotHoldingFees, #[codec(index = 20)] TooExpensive, #[codec(index = 21)] Trap(::core::primitive::u64), #[codec(index = 22)] ExpectationFalse, #[codec(index = 23)] PalletNotFound, #[codec(index = 24)] NameMismatch, #[codec(index = 25)] VersionIncompatible, #[codec(index = 26)] HoldingWouldOverflow, #[codec(index = 27)] ExportError, #[codec(index = 28)] ReanchorFailed, #[codec(index = 29)] NoDeal, #[codec(index = 30)] FeesNotMet, #[codec(index = 31)] LockError, #[codec(index = 32)] NoPermission, #[codec(index = 33)] Unanchored, #[codec(index = 34)] NotDepositable, #[codec(index = 35)] UnhandledXcmVersion, #[codec(index = 36)] WeightLimitReached(runtime_types::sp_weights::weight_v2::Weight), #[codec(index = 37)] Barrier, #[codec(index = 38)] WeightNotComputable, #[codec(index = 39)] ExceedsStackLimit, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum Outcome { #[codec(index = 0)] Complete(runtime_types::sp_weights::weight_v2::Weight), #[codec(index = 1)] Incomplete( runtime_types::sp_weights::weight_v2::Weight, runtime_types::xcm::v3::traits::Error, ), #[codec(index = 2)] Error(runtime_types::xcm::v3::traits::Error), } } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum Instruction { #[codec(index = 0)] WithdrawAsset(runtime_types::xcm::v3::multiasset::MultiAssets), #[codec(index = 1)] ReserveAssetDeposited(runtime_types::xcm::v3::multiasset::MultiAssets), #[codec(index = 2)] ReceiveTeleportedAsset(runtime_types::xcm::v3::multiasset::MultiAssets), #[codec(index = 3)] QueryResponse { #[codec(compact)] query_id: ::core::primitive::u64, response: runtime_types::xcm::v3::Response, max_weight: runtime_types::sp_weights::weight_v2::Weight, querier: ::core::option::Option< runtime_types::xcm::v3::multilocation::MultiLocation, >, }, #[codec(index = 4)] TransferAsset { assets: runtime_types::xcm::v3::multiasset::MultiAssets, beneficiary: runtime_types::xcm::v3::multilocation::MultiLocation, }, #[codec(index = 5)] TransferReserveAsset { assets: runtime_types::xcm::v3::multiasset::MultiAssets, dest: runtime_types::xcm::v3::multilocation::MultiLocation, xcm: runtime_types::xcm::v3::Xcm, }, #[codec(index = 6)] Transact { origin_kind: runtime_types::xcm::v2::OriginKind, require_weight_at_most: runtime_types::sp_weights::weight_v2::Weight, call: runtime_types::xcm::double_encoded::DoubleEncoded, }, #[codec(index = 7)] HrmpNewChannelOpenRequest { #[codec(compact)] sender: ::core::primitive::u32, #[codec(compact)] max_message_size: ::core::primitive::u32, #[codec(compact)] max_capacity: ::core::primitive::u32, }, #[codec(index = 8)] HrmpChannelAccepted { #[codec(compact)] recipient: ::core::primitive::u32, }, #[codec(index = 9)] HrmpChannelClosing { #[codec(compact)] initiator: ::core::primitive::u32, #[codec(compact)] sender: ::core::primitive::u32, #[codec(compact)] recipient: ::core::primitive::u32, }, #[codec(index = 10)] ClearOrigin, #[codec(index = 11)] DescendOrigin(runtime_types::xcm::v3::junctions::Junctions), #[codec(index = 12)] ReportError(runtime_types::xcm::v3::QueryResponseInfo), #[codec(index = 13)] DepositAsset { assets: runtime_types::xcm::v3::multiasset::MultiAssetFilter, beneficiary: runtime_types::xcm::v3::multilocation::MultiLocation, }, #[codec(index = 14)] DepositReserveAsset { assets: runtime_types::xcm::v3::multiasset::MultiAssetFilter, dest: runtime_types::xcm::v3::multilocation::MultiLocation, xcm: runtime_types::xcm::v3::Xcm, }, #[codec(index = 15)] ExchangeAsset { give: runtime_types::xcm::v3::multiasset::MultiAssetFilter, want: runtime_types::xcm::v3::multiasset::MultiAssets, maximal: ::core::primitive::bool, }, #[codec(index = 16)] InitiateReserveWithdraw { assets: runtime_types::xcm::v3::multiasset::MultiAssetFilter, reserve: runtime_types::xcm::v3::multilocation::MultiLocation, xcm: runtime_types::xcm::v3::Xcm, }, #[codec(index = 17)] InitiateTeleport { assets: runtime_types::xcm::v3::multiasset::MultiAssetFilter, dest: runtime_types::xcm::v3::multilocation::MultiLocation, xcm: runtime_types::xcm::v3::Xcm, }, #[codec(index = 18)] ReportHolding { response_info: runtime_types::xcm::v3::QueryResponseInfo, assets: runtime_types::xcm::v3::multiasset::MultiAssetFilter, }, #[codec(index = 19)] BuyExecution { fees: runtime_types::xcm::v3::multiasset::MultiAsset, weight_limit: runtime_types::xcm::v3::WeightLimit, }, #[codec(index = 20)] RefundSurplus, #[codec(index = 21)] SetErrorHandler(runtime_types::xcm::v3::Xcm), #[codec(index = 22)] SetAppendix(runtime_types::xcm::v3::Xcm), #[codec(index = 23)] ClearError, #[codec(index = 24)] ClaimAsset { assets: runtime_types::xcm::v3::multiasset::MultiAssets, ticket: runtime_types::xcm::v3::multilocation::MultiLocation, }, #[codec(index = 25)] Trap(#[codec(compact)] ::core::primitive::u64), #[codec(index = 26)] SubscribeVersion { #[codec(compact)] query_id: ::core::primitive::u64, max_response_weight: runtime_types::sp_weights::weight_v2::Weight, }, #[codec(index = 27)] UnsubscribeVersion, #[codec(index = 28)] BurnAsset(runtime_types::xcm::v3::multiasset::MultiAssets), #[codec(index = 29)] ExpectAsset(runtime_types::xcm::v3::multiasset::MultiAssets), #[codec(index = 30)] ExpectOrigin( ::core::option::Option< runtime_types::xcm::v3::multilocation::MultiLocation, >, ), #[codec(index = 31)] ExpectError( ::core::option::Option<( ::core::primitive::u32, runtime_types::xcm::v3::traits::Error, )>, ), #[codec(index = 32)] ExpectTransactStatus(runtime_types::xcm::v3::MaybeErrorCode), #[codec(index = 33)] QueryPallet { module_name: ::std::vec::Vec<::core::primitive::u8>, response_info: runtime_types::xcm::v3::QueryResponseInfo, }, #[codec(index = 34)] ExpectPallet { #[codec(compact)] index: ::core::primitive::u32, name: ::std::vec::Vec<::core::primitive::u8>, module_name: ::std::vec::Vec<::core::primitive::u8>, #[codec(compact)] crate_major: ::core::primitive::u32, #[codec(compact)] min_crate_minor: ::core::primitive::u32, }, #[codec(index = 35)] ReportTransactStatus(runtime_types::xcm::v3::QueryResponseInfo), #[codec(index = 36)] ClearTransactStatus, #[codec(index = 37)] UniversalOrigin(runtime_types::xcm::v3::junction::Junction), #[codec(index = 38)] ExportMessage { network: runtime_types::xcm::v3::junction::NetworkId, destination: runtime_types::xcm::v3::junctions::Junctions, xcm: runtime_types::xcm::v3::Xcm, }, #[codec(index = 39)] LockAsset { asset: runtime_types::xcm::v3::multiasset::MultiAsset, unlocker: runtime_types::xcm::v3::multilocation::MultiLocation, }, #[codec(index = 40)] UnlockAsset { asset: runtime_types::xcm::v3::multiasset::MultiAsset, target: runtime_types::xcm::v3::multilocation::MultiLocation, }, #[codec(index = 41)] NoteUnlockable { asset: runtime_types::xcm::v3::multiasset::MultiAsset, owner: runtime_types::xcm::v3::multilocation::MultiLocation, }, #[codec(index = 42)] RequestUnlock { asset: runtime_types::xcm::v3::multiasset::MultiAsset, locker: runtime_types::xcm::v3::multilocation::MultiLocation, }, #[codec(index = 43)] SetFeesMode { jit_withdraw: ::core::primitive::bool, }, #[codec(index = 44)] SetTopic([::core::primitive::u8; 32usize]), #[codec(index = 45)] ClearTopic, #[codec(index = 46)] AliasOrigin(runtime_types::xcm::v3::multilocation::MultiLocation), #[codec(index = 47)] UnpaidExecution { weight_limit: runtime_types::xcm::v3::WeightLimit, check_origin: ::core::option::Option< runtime_types::xcm::v3::multilocation::MultiLocation, >, }, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum Instruction2 { #[codec(index = 0)] WithdrawAsset(runtime_types::xcm::v3::multiasset::MultiAssets), #[codec(index = 1)] ReserveAssetDeposited(runtime_types::xcm::v3::multiasset::MultiAssets), #[codec(index = 2)] ReceiveTeleportedAsset(runtime_types::xcm::v3::multiasset::MultiAssets), #[codec(index = 3)] QueryResponse { #[codec(compact)] query_id: ::core::primitive::u64, response: runtime_types::xcm::v3::Response, max_weight: runtime_types::sp_weights::weight_v2::Weight, querier: ::core::option::Option< runtime_types::xcm::v3::multilocation::MultiLocation, >, }, #[codec(index = 4)] TransferAsset { assets: runtime_types::xcm::v3::multiasset::MultiAssets, beneficiary: runtime_types::xcm::v3::multilocation::MultiLocation, }, #[codec(index = 5)] TransferReserveAsset { assets: runtime_types::xcm::v3::multiasset::MultiAssets, dest: runtime_types::xcm::v3::multilocation::MultiLocation, xcm: runtime_types::xcm::v3::Xcm, }, #[codec(index = 6)] Transact { origin_kind: runtime_types::xcm::v2::OriginKind, require_weight_at_most: runtime_types::sp_weights::weight_v2::Weight, call: runtime_types::xcm::double_encoded::DoubleEncoded2, }, #[codec(index = 7)] HrmpNewChannelOpenRequest { #[codec(compact)] sender: ::core::primitive::u32, #[codec(compact)] max_message_size: ::core::primitive::u32, #[codec(compact)] max_capacity: ::core::primitive::u32, }, #[codec(index = 8)] HrmpChannelAccepted { #[codec(compact)] recipient: ::core::primitive::u32, }, #[codec(index = 9)] HrmpChannelClosing { #[codec(compact)] initiator: ::core::primitive::u32, #[codec(compact)] sender: ::core::primitive::u32, #[codec(compact)] recipient: ::core::primitive::u32, }, #[codec(index = 10)] ClearOrigin, #[codec(index = 11)] DescendOrigin(runtime_types::xcm::v3::junctions::Junctions), #[codec(index = 12)] ReportError(runtime_types::xcm::v3::QueryResponseInfo), #[codec(index = 13)] DepositAsset { assets: runtime_types::xcm::v3::multiasset::MultiAssetFilter, beneficiary: runtime_types::xcm::v3::multilocation::MultiLocation, }, #[codec(index = 14)] DepositReserveAsset { assets: runtime_types::xcm::v3::multiasset::MultiAssetFilter, dest: runtime_types::xcm::v3::multilocation::MultiLocation, xcm: runtime_types::xcm::v3::Xcm, }, #[codec(index = 15)] ExchangeAsset { give: runtime_types::xcm::v3::multiasset::MultiAssetFilter, want: runtime_types::xcm::v3::multiasset::MultiAssets, maximal: ::core::primitive::bool, }, #[codec(index = 16)] InitiateReserveWithdraw { assets: runtime_types::xcm::v3::multiasset::MultiAssetFilter, reserve: runtime_types::xcm::v3::multilocation::MultiLocation, xcm: runtime_types::xcm::v3::Xcm, }, #[codec(index = 17)] InitiateTeleport { assets: runtime_types::xcm::v3::multiasset::MultiAssetFilter, dest: runtime_types::xcm::v3::multilocation::MultiLocation, xcm: runtime_types::xcm::v3::Xcm, }, #[codec(index = 18)] ReportHolding { response_info: runtime_types::xcm::v3::QueryResponseInfo, assets: runtime_types::xcm::v3::multiasset::MultiAssetFilter, }, #[codec(index = 19)] BuyExecution { fees: runtime_types::xcm::v3::multiasset::MultiAsset, weight_limit: runtime_types::xcm::v3::WeightLimit, }, #[codec(index = 20)] RefundSurplus, #[codec(index = 21)] SetErrorHandler(runtime_types::xcm::v3::Xcm2), #[codec(index = 22)] SetAppendix(runtime_types::xcm::v3::Xcm2), #[codec(index = 23)] ClearError, #[codec(index = 24)] ClaimAsset { assets: runtime_types::xcm::v3::multiasset::MultiAssets, ticket: runtime_types::xcm::v3::multilocation::MultiLocation, }, #[codec(index = 25)] Trap(#[codec(compact)] ::core::primitive::u64), #[codec(index = 26)] SubscribeVersion { #[codec(compact)] query_id: ::core::primitive::u64, max_response_weight: runtime_types::sp_weights::weight_v2::Weight, }, #[codec(index = 27)] UnsubscribeVersion, #[codec(index = 28)] BurnAsset(runtime_types::xcm::v3::multiasset::MultiAssets), #[codec(index = 29)] ExpectAsset(runtime_types::xcm::v3::multiasset::MultiAssets), #[codec(index = 30)] ExpectOrigin( ::core::option::Option< runtime_types::xcm::v3::multilocation::MultiLocation, >, ), #[codec(index = 31)] ExpectError( ::core::option::Option<( ::core::primitive::u32, runtime_types::xcm::v3::traits::Error, )>, ), #[codec(index = 32)] ExpectTransactStatus(runtime_types::xcm::v3::MaybeErrorCode), #[codec(index = 33)] QueryPallet { module_name: ::std::vec::Vec<::core::primitive::u8>, response_info: runtime_types::xcm::v3::QueryResponseInfo, }, #[codec(index = 34)] ExpectPallet { #[codec(compact)] index: ::core::primitive::u32, name: ::std::vec::Vec<::core::primitive::u8>, module_name: ::std::vec::Vec<::core::primitive::u8>, #[codec(compact)] crate_major: ::core::primitive::u32, #[codec(compact)] min_crate_minor: ::core::primitive::u32, }, #[codec(index = 35)] ReportTransactStatus(runtime_types::xcm::v3::QueryResponseInfo), #[codec(index = 36)] ClearTransactStatus, #[codec(index = 37)] UniversalOrigin(runtime_types::xcm::v3::junction::Junction), #[codec(index = 38)] ExportMessage { network: runtime_types::xcm::v3::junction::NetworkId, destination: runtime_types::xcm::v3::junctions::Junctions, xcm: runtime_types::xcm::v3::Xcm, }, #[codec(index = 39)] LockAsset { asset: runtime_types::xcm::v3::multiasset::MultiAsset, unlocker: runtime_types::xcm::v3::multilocation::MultiLocation, }, #[codec(index = 40)] UnlockAsset { asset: runtime_types::xcm::v3::multiasset::MultiAsset, target: runtime_types::xcm::v3::multilocation::MultiLocation, }, #[codec(index = 41)] NoteUnlockable { asset: runtime_types::xcm::v3::multiasset::MultiAsset, owner: runtime_types::xcm::v3::multilocation::MultiLocation, }, #[codec(index = 42)] RequestUnlock { asset: runtime_types::xcm::v3::multiasset::MultiAsset, locker: runtime_types::xcm::v3::multilocation::MultiLocation, }, #[codec(index = 43)] SetFeesMode { jit_withdraw: ::core::primitive::bool, }, #[codec(index = 44)] SetTopic([::core::primitive::u8; 32usize]), #[codec(index = 45)] ClearTopic, #[codec(index = 46)] AliasOrigin(runtime_types::xcm::v3::multilocation::MultiLocation), #[codec(index = 47)] UnpaidExecution { weight_limit: runtime_types::xcm::v3::WeightLimit, check_origin: ::core::option::Option< runtime_types::xcm::v3::multilocation::MultiLocation, >, }, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum MaybeErrorCode { #[codec(index = 0)] Success, #[codec(index = 1)] Error( runtime_types::bounded_collections::bounded_vec::BoundedVec< ::core::primitive::u8, >, ), #[codec(index = 2)] TruncatedError( runtime_types::bounded_collections::bounded_vec::BoundedVec< ::core::primitive::u8, >, ), } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct PalletInfo { #[codec(compact)] pub index: ::core::primitive::u32, pub name: runtime_types::bounded_collections::bounded_vec::BoundedVec< ::core::primitive::u8, >, pub module_name: runtime_types::bounded_collections::bounded_vec::BoundedVec< ::core::primitive::u8, >, #[codec(compact)] pub major: ::core::primitive::u32, #[codec(compact)] pub minor: ::core::primitive::u32, #[codec(compact)] pub patch: ::core::primitive::u32, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct QueryResponseInfo { pub destination: runtime_types::xcm::v3::multilocation::MultiLocation, #[codec(compact)] pub query_id: ::core::primitive::u64, pub max_weight: runtime_types::sp_weights::weight_v2::Weight, } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum Response { #[codec(index = 0)] Null, #[codec(index = 1)] Assets(runtime_types::xcm::v3::multiasset::MultiAssets), #[codec(index = 2)] ExecutionResult( ::core::option::Option<( ::core::primitive::u32, runtime_types::xcm::v3::traits::Error, )>, ), #[codec(index = 3)] Version(::core::primitive::u32), #[codec(index = 4)] PalletsInfo( runtime_types::bounded_collections::bounded_vec::BoundedVec< runtime_types::xcm::v3::PalletInfo, >, ), #[codec(index = 5)] DispatchResult(runtime_types::xcm::v3::MaybeErrorCode), } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum WeightLimit { #[codec(index = 0)] Unlimited, #[codec(index = 1)] Limited(runtime_types::sp_weights::weight_v2::Weight), } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Xcm(pub ::std::vec::Vec); #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Xcm2(pub ::std::vec::Vec); } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum VersionedAssetId { #[codec(index = 3)] V3(runtime_types::xcm::v3::multiasset::AssetId), } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum VersionedMultiAssets { #[codec(index = 1)] V2(runtime_types::xcm::v2::multiasset::MultiAssets), #[codec(index = 3)] V3(runtime_types::xcm::v3::multiasset::MultiAssets), } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum VersionedMultiLocation { #[codec(index = 1)] V2(runtime_types::xcm::v2::multilocation::MultiLocation), #[codec(index = 3)] V3(runtime_types::xcm::v3::multilocation::MultiLocation), } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum VersionedResponse { #[codec(index = 2)] V2(runtime_types::xcm::v2::Response), #[codec(index = 3)] V3(runtime_types::xcm::v3::Response), } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum VersionedXcm { #[codec(index = 2)] V2(runtime_types::xcm::v2::Xcm), #[codec(index = 3)] V3(runtime_types::xcm::v3::Xcm), } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, :: subxt :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, )] # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum VersionedXcm2 { #[codec(index = 2)] V2(runtime_types::xcm::v2::Xcm2), #[codec(index = 3)] V3(runtime_types::xcm::v3::Xcm2), } } } }