#[allow(dead_code, unused_imports, non_camel_case_types)]
#[allow(clippy::all)]
#[allow(rustdoc::broken_intra_doc_links)]
pub mod runtime_types {
#[allow(unused_imports)]
mod root_mod {
pub use super::*;
}
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(Debug, crate::gp::Decode, crate::gp::DecodeAsType, crate::gp::Encode)]
pub struct BoundedBTreeMap<_0, _1>(
pub ::subxt::ext::subxt_core::utils::KeyedVec<_0, _1>,
);
}
pub mod bounded_vec {
use super::runtime_types;
#[derive(Debug, crate::gp::Decode, crate::gp::DecodeAsType, crate::gp::Encode)]
pub struct BoundedVec<_0>(pub ::subxt::ext::subxt_core::alloc::vec::Vec<_0>);
}
pub mod weak_bounded_vec {
use super::runtime_types;
#[derive(Debug, crate::gp::Decode, crate::gp::DecodeAsType, crate::gp::Encode)]
pub struct WeakBoundedVec<_0>(pub ::subxt::ext::subxt_core::alloc::vec::Vec<_0>);
}
}
pub mod finality_grandpa {
use super::runtime_types;
#[derive(Debug, crate::gp::Decode, crate::gp::DecodeAsType, crate::gp::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(Debug, crate::gp::Decode, crate::gp::DecodeAsType, crate::gp::Encode)]
pub struct Precommit<_0, _1> {
pub target_hash: _0,
pub target_number: _1,
}
#[derive(Debug, crate::gp::Decode, crate::gp::DecodeAsType, crate::gp::Encode)]
pub struct Prevote<_0, _1> {
pub target_hash: _0,
pub target_number: _1,
}
}
pub mod frame_metadata_hash_extension {
use super::runtime_types;
#[derive(Debug, crate::gp::Decode, crate::gp::DecodeAsType, crate::gp::Encode)]
pub struct CheckMetadataHash {
pub mode: runtime_types::frame_metadata_hash_extension::Mode,
}
#[derive(Debug, crate::gp::Decode, crate::gp::DecodeAsType, crate::gp::Encode)]
pub enum Mode {
#[codec(index = 0)]
Disabled,
#[codec(index = 1)]
Enabled,
}
}
pub mod frame_support {
use super::runtime_types;
pub mod dispatch {
use super::runtime_types;
#[derive(Debug, crate::gp::Decode, crate::gp::DecodeAsType, crate::gp::Encode)]
pub enum DispatchClass {
#[codec(index = 0)]
Normal,
#[codec(index = 1)]
Operational,
#[codec(index = 2)]
Mandatory,
}
#[derive(Debug, crate::gp::Decode, crate::gp::DecodeAsType, crate::gp::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(Debug, crate::gp::Decode, crate::gp::DecodeAsType, crate::gp::Encode)]
pub enum Pays {
#[codec(index = 0)]
Yes,
#[codec(index = 1)]
No,
}
#[derive(Debug, crate::gp::Decode, crate::gp::DecodeAsType, crate::gp::Encode)]
pub struct PerDispatchClass<_0> {
pub normal: _0,
pub operational: _0,
pub mandatory: _0,
}
#[derive(Debug, crate::gp::Decode, crate::gp::DecodeAsType, crate::gp::Encode)]
pub struct PostDispatchInfo {
pub actual_weight:
::core::option::Option<runtime_types::sp_weights::weight_v2::Weight>,
pub pays_fee: runtime_types::frame_support::dispatch::Pays,
}
#[derive(Debug, crate::gp::Decode, crate::gp::DecodeAsType, crate::gp::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 preimages {
use super::runtime_types;
#[derive(
Debug, crate::gp::Decode, crate::gp::DecodeAsType, crate::gp::Encode,
)]
pub enum Bounded<_0, _1> {
#[codec(index = 0)]
Legacy {
hash: ::subxt::ext::subxt_core::utils::H256,
},
#[codec(index = 1)]
Inline(
runtime_types::bounded_collections::bounded_vec::BoundedVec<
::core::primitive::u8,
>,
),
#[codec(index = 2)]
Lookup {
hash: ::subxt::ext::subxt_core::utils::H256,
len: ::core::primitive::u32,
},
__Ignore(::core::marker::PhantomData<(_0, _1)>),
}
}
pub mod schedule {
use super::runtime_types;
#[derive(
Debug, crate::gp::Decode, crate::gp::DecodeAsType, crate::gp::Encode,
)]
pub enum DispatchTime<_0> {
#[codec(index = 0)]
At(_0),
#[codec(index = 1)]
After(_0),
}
}
pub mod tokens {
use super::runtime_types;
pub mod fungible {
use super::runtime_types;
#[derive(
::subxt::ext ::subxt_core::ext::codec::CompactAs,
Debug,
crate::gp::Decode,
crate::gp::DecodeAsType,
crate::gp::Encode,
)]
pub struct HoldConsideration(pub ::core::primitive::u128);
}
pub mod misc {
use super::runtime_types;
#[derive(
Debug, crate::gp::Decode, crate::gp::DecodeAsType, crate::gp::Encode,
)]
pub enum BalanceStatus {
#[codec(index = 0)]
Free,
#[codec(index = 1)]
Reserved,
}
#[derive(
Debug, crate::gp::Decode, crate::gp::DecodeAsType, crate::gp::Encode,
)]
pub struct IdAmount<_0, _1> {
pub id: _0,
pub amount: _1,
}
}
}
}
#[derive(Debug, crate::gp::Decode, crate::gp::DecodeAsType, crate::gp::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(
Debug, crate::gp::Decode, crate::gp::DecodeAsType, crate::gp::Encode,
)]
pub struct CheckGenesis;
}
pub mod check_mortality {
use super::runtime_types;
#[derive(
Debug, crate::gp::Decode, crate::gp::DecodeAsType, crate::gp::Encode,
)]
pub struct CheckMortality(pub runtime_types::sp_runtime::generic::era::Era);
}
pub mod check_non_zero_sender {
use super::runtime_types;
#[derive(
Debug, crate::gp::Decode, crate::gp::DecodeAsType, crate::gp::Encode,
)]
pub struct CheckNonZeroSender;
}
pub mod check_spec_version {
use super::runtime_types;
#[derive(
Debug, crate::gp::Decode, crate::gp::DecodeAsType, crate::gp::Encode,
)]
pub struct CheckSpecVersion;
}
pub mod check_tx_version {
use super::runtime_types;
#[derive(
Debug, crate::gp::Decode, crate::gp::DecodeAsType, crate::gp::Encode,
)]
pub struct CheckTxVersion;
}
pub mod check_weight {
use super::runtime_types;
#[derive(
Debug, crate::gp::Decode, crate::gp::DecodeAsType, crate::gp::Encode,
)]
pub struct CheckWeight;
}
}
pub mod limits {
use super::runtime_types;
#[derive(Debug, crate::gp::Decode, crate::gp::DecodeAsType, crate::gp::Encode)]
pub struct BlockLength {
pub max: runtime_types::frame_support::dispatch::PerDispatchClass<
::core::primitive::u32,
>,
}
#[derive(Debug, crate::gp::Decode, crate::gp::DecodeAsType, crate::gp::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(Debug, crate::gp::Decode, crate::gp::DecodeAsType, crate::gp::Encode)]
pub struct WeightsPerClass {
pub base_extrinsic: runtime_types::sp_weights::weight_v2::Weight,
pub max_extrinsic:
::core::option::Option<runtime_types::sp_weights::weight_v2::Weight>,
pub max_total:
::core::option::Option<runtime_types::sp_weights::weight_v2::Weight>,
pub reserved:
::core::option::Option<runtime_types::sp_weights::weight_v2::Weight>,
}
}
pub mod pallet {
use super::runtime_types;
#[derive(Debug, crate::gp::Decode, crate::gp::DecodeAsType, crate::gp::Encode)]
#[doc = "Contains a variant per dispatchable extrinsic that this pallet has."]
pub enum Call {
#[codec(index = 0)]
#[doc = "Make some on-chain remark."]
#[doc = ""]
#[doc = "Can be executed by every `origin`."]
remark {
remark: ::subxt::ext::subxt_core::alloc::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."]
set_code {
code: ::subxt::ext::subxt_core::alloc::vec::Vec<::core::primitive::u8>,
},
#[codec(index = 3)]
#[doc = "Set the new runtime code without doing any checks of the given `code`."]
#[doc = ""]
#[doc = "Note that runtime upgrades will not run if this is called with a not-increasing spec"]
#[doc = "version!"]
set_code_without_checks {
code: ::subxt::ext::subxt_core::alloc::vec::Vec<::core::primitive::u8>,
},
#[codec(index = 4)]
#[doc = "Set some items of storage."]
set_storage {
items: ::subxt::ext::subxt_core::alloc::vec::Vec<(
::subxt::ext::subxt_core::alloc::vec::Vec<::core::primitive::u8>,
::subxt::ext::subxt_core::alloc::vec::Vec<::core::primitive::u8>,
)>,
},
#[codec(index = 5)]
#[doc = "Kill some items from storage."]
kill_storage {
keys: ::subxt::ext::subxt_core::alloc::vec::Vec<
::subxt::ext::subxt_core::alloc::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: ::subxt::ext::subxt_core::alloc::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: ::subxt::ext::subxt_core::alloc::vec::Vec<::core::primitive::u8>,
},
#[codec(index = 9)]
#[doc = "Authorize an upgrade to a given `code_hash` for the runtime. The runtime can be supplied"]
#[doc = "later."]
#[doc = ""]
#[doc = "This call requires Root origin."]
authorize_upgrade {
code_hash: ::subxt::ext::subxt_core::utils::H256,
},
#[codec(index = 10)]
#[doc = "Authorize an upgrade to a given `code_hash` for the runtime. The runtime can be supplied"]
#[doc = "later."]
#[doc = ""]
#[doc = "WARNING: This authorizes an upgrade that will take place without any safety checks, for"]
#[doc = "example that the spec name remains the same and that the version number increases. Not"]
#[doc = "recommended for normal use. Use `authorize_upgrade` instead."]
#[doc = ""]
#[doc = "This call requires Root origin."]
authorize_upgrade_without_checks {
code_hash: ::subxt::ext::subxt_core::utils::H256,
},
#[codec(index = 11)]
#[doc = "Provide the preimage (runtime binary) `code` for an upgrade that has been authorized."]
#[doc = ""]
#[doc = "If the authorization required a version check, this call will ensure the spec name"]
#[doc = "remains unchanged and that the spec version has increased."]
#[doc = ""]
#[doc = "Depending on the runtime's `OnSetCode` configuration, this function may directly apply"]
#[doc = "the new `code` in the same block or attempt to schedule the upgrade."]
#[doc = ""]
#[doc = "All origins are allowed."]
apply_authorized_upgrade {
code: ::subxt::ext::subxt_core::alloc::vec::Vec<::core::primitive::u8>,
},
}
#[derive(Debug, crate::gp::Decode, crate::gp::DecodeAsType, crate::gp::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,
#[codec(index = 6)]
#[doc = "A multi-block migration is ongoing and prevents the current code from being replaced."]
MultiBlockMigrationsOngoing,
#[codec(index = 7)]
#[doc = "No upgrade authorized."]
NothingAuthorized,
#[codec(index = 8)]
#[doc = "The submitted code is not authorized."]
Unauthorized,
}
#[derive(Debug, crate::gp::Decode, crate::gp::DecodeAsType, crate::gp::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::ext::subxt_core::utils::AccountId32,
},
#[codec(index = 4)]
#[doc = "An account was reaped."]
KilledAccount {
account: ::subxt::ext::subxt_core::utils::AccountId32,
},
#[codec(index = 5)]
#[doc = "On on-chain remark happened."]
Remarked {
sender: ::subxt::ext::subxt_core::utils::AccountId32,
hash: ::subxt::ext::subxt_core::utils::H256,
},
#[codec(index = 6)]
#[doc = "An upgrade was authorized."]
UpgradeAuthorized {
code_hash: ::subxt::ext::subxt_core::utils::H256,
check_version: ::core::primitive::bool,
},
}
}
#[derive(Debug, crate::gp::Decode, crate::gp::DecodeAsType, crate::gp::Encode)]
pub struct AccountInfo<_0, _1> {
pub nonce: _0,
pub consumers: ::core::primitive::u32,
pub providers: ::core::primitive::u32,
pub sufficients: ::core::primitive::u32,
pub data: _1,
}
#[derive(Debug, crate::gp::Decode, crate::gp::DecodeAsType, crate::gp::Encode)]
pub struct CodeUpgradeAuthorization {
pub code_hash: ::subxt::ext::subxt_core::utils::H256,
pub check_version: ::core::primitive::bool,
}
#[derive(Debug, crate::gp::Decode, crate::gp::DecodeAsType, crate::gp::Encode)]
pub struct EventRecord<_0, _1> {
pub phase: runtime_types::frame_system::Phase,
pub event: _0,
pub topics: ::subxt::ext::subxt_core::alloc::vec::Vec<_1>,
}
#[derive(Debug, crate::gp::Decode, crate::gp::DecodeAsType, crate::gp::Encode)]
pub struct LastRuntimeUpgradeInfo {
#[codec(compact)]
pub spec_version: ::core::primitive::u32,
pub spec_name: ::subxt::ext::subxt_core::alloc::string::String,
}
#[derive(Debug, crate::gp::Decode, crate::gp::DecodeAsType, crate::gp::Encode)]
pub enum Phase {
#[codec(index = 0)]
ApplyExtrinsic(::core::primitive::u32),
#[codec(index = 1)]
Finalization,
#[codec(index = 2)]
Initialization,
}
}
pub mod gear_common {
use super::runtime_types;
pub mod event {
use super::runtime_types;
#[derive(Debug, crate::gp::Decode, crate::gp::DecodeAsType, crate::gp::Encode)]
pub enum CodeChangeKind<_0> {
#[codec(index = 0)]
Active {
expiration: ::core::option::Option<_0>,
},
#[codec(index = 1)]
Inactive,
#[codec(index = 2)]
Reinstrumented,
}
#[derive(Debug, crate::gp::Decode, crate::gp::DecodeAsType, crate::gp::Encode)]
pub enum DispatchStatus {
#[codec(index = 0)]
Success,
#[codec(index = 1)]
Failed,
#[codec(index = 2)]
NotExecuted,
}
#[derive(Debug, crate::gp::Decode, crate::gp::DecodeAsType, crate::gp::Encode)]
pub enum MessageEntry {
#[codec(index = 0)]
Init,
#[codec(index = 1)]
Handle,
#[codec(index = 2)]
Reply(runtime_types::gprimitives::MessageId),
#[codec(index = 3)]
Signal,
}
#[derive(Debug, crate::gp::Decode, crate::gp::DecodeAsType, crate::gp::Encode)]
pub enum MessageWaitedRuntimeReason {
#[codec(index = 0)]
WaitCalled,
#[codec(index = 1)]
WaitForCalled,
#[codec(index = 2)]
WaitUpToCalled,
#[codec(index = 3)]
WaitUpToCalledFull,
}
#[derive(Debug, crate::gp::Decode, crate::gp::DecodeAsType, crate::gp::Encode)]
pub enum MessageWaitedSystemReason {}
#[derive(Debug, crate::gp::Decode, crate::gp::DecodeAsType, crate::gp::Encode)]
pub enum MessageWokenRuntimeReason {
#[codec(index = 0)]
WakeCalled,
}
#[derive(Debug, crate::gp::Decode, crate::gp::DecodeAsType, crate::gp::Encode)]
pub enum MessageWokenSystemReason {
#[codec(index = 0)]
ProgramGotInitialized,
#[codec(index = 1)]
TimeoutHasCome,
#[codec(index = 2)]
OutOfRent,
}
#[derive(Debug, crate::gp::Decode, crate::gp::DecodeAsType, crate::gp::Encode)]
pub enum ProgramChangeKind<_0> {
#[codec(index = 0)]
Active { expiration: _0 },
#[codec(index = 1)]
Inactive,
#[codec(index = 2)]
Paused,
#[codec(index = 3)]
Terminated,
#[codec(index = 4)]
ExpirationChanged { expiration: _0 },
#[codec(index = 5)]
ProgramSet { expiration: _0 },
}
#[derive(Debug, crate::gp::Decode, crate::gp::DecodeAsType, crate::gp::Encode)]
pub enum Reason<_0, _1> {
#[codec(index = 0)]
Runtime(_0),
#[codec(index = 1)]
System(_1),
}
#[derive(Debug, crate::gp::Decode, crate::gp::DecodeAsType, crate::gp::Encode)]
pub enum UserMessageReadRuntimeReason {
#[codec(index = 0)]
MessageReplied,
#[codec(index = 1)]
MessageClaimed,
}
#[derive(Debug, crate::gp::Decode, crate::gp::DecodeAsType, crate::gp::Encode)]
pub enum UserMessageReadSystemReason {
#[codec(index = 0)]
OutOfRent,
}
}
pub mod gas_provider {
use super::runtime_types;
pub mod node {
use super::runtime_types;
#[derive(
Debug, crate::gp::Decode, crate::gp::DecodeAsType, crate::gp::Encode,
)]
pub struct ChildrenRefs {
pub spec_refs: ::core::primitive::u32,
pub unspec_refs: ::core::primitive::u32,
}
#[derive(
Debug, crate::gp::Decode, crate::gp::DecodeAsType, crate::gp::Encode,
)]
pub enum GasNode<_0, _1, _2, _3> {
#[codec(index = 0)]
External {
id: _0,
multiplier: runtime_types::gear_common::GasMultiplier<_3, _2>,
value: _2,
lock: runtime_types::gear_common::gas_provider::node::NodeLock<_2>,
system_reserve: _2,
refs: runtime_types::gear_common::gas_provider::node::ChildrenRefs,
consumed: ::core::primitive::bool,
deposit: ::core::primitive::bool,
},
#[codec(index = 1)]
Cut {
id: _0,
multiplier: runtime_types::gear_common::GasMultiplier<_3, _2>,
value: _2,
lock: runtime_types::gear_common::gas_provider::node::NodeLock<_2>,
},
#[codec(index = 2)]
Reserved {
id: _0,
multiplier: runtime_types::gear_common::GasMultiplier<_3, _2>,
value: _2,
lock: runtime_types::gear_common::gas_provider::node::NodeLock<_2>,
refs: runtime_types::gear_common::gas_provider::node::ChildrenRefs,
consumed: ::core::primitive::bool,
},
#[codec(index = 3)]
SpecifiedLocal {
parent: _1,
root: _1,
value: _2,
lock: runtime_types::gear_common::gas_provider::node::NodeLock<_2>,
system_reserve: _2,
refs: runtime_types::gear_common::gas_provider::node::ChildrenRefs,
consumed: ::core::primitive::bool,
},
#[codec(index = 4)]
UnspecifiedLocal {
parent: _1,
root: _1,
lock: runtime_types::gear_common::gas_provider::node::NodeLock<_2>,
system_reserve: _2,
},
}
#[derive(
Debug, crate::gp::Decode, crate::gp::DecodeAsType, crate::gp::Encode,
)]
pub enum GasNodeId<_0, _1> {
#[codec(index = 0)]
Node(_0),
#[codec(index = 1)]
Reservation(_1),
}
#[derive(
Debug, crate::gp::Decode, crate::gp::DecodeAsType, crate::gp::Encode,
)]
pub struct NodeLock<_0>(pub [_0; 4usize]);
}
}
pub mod storage {
use super::runtime_types;
pub mod complicated {
use super::runtime_types;
pub mod dequeue {
use super::runtime_types;
#[derive(
Debug, crate::gp::Decode, crate::gp::DecodeAsType, crate::gp::Encode,
)]
pub struct LinkedNode<_0, _1> {
pub next: ::core::option::Option<_0>,
pub value: _1,
}
}
}
pub mod primitives {
use super::runtime_types;
#[derive(
Debug, crate::gp::Decode, crate::gp::DecodeAsType, crate::gp::Encode,
)]
pub struct Interval<_0> {
pub start: _0,
pub finish: _0,
}
}
}
#[derive(Debug, crate::gp::Decode, crate::gp::DecodeAsType, crate::gp::Encode)]
pub struct CodeMetadata {
pub author: ::subxt::ext::subxt_core::utils::H256,
#[codec(compact)]
pub block_number: ::core::primitive::u32,
}
#[derive(Debug, crate::gp::Decode, crate::gp::DecodeAsType, crate::gp::Encode)]
pub enum GasMultiplier<_0, _1> {
#[codec(index = 0)]
ValuePerGas(_0),
#[codec(index = 1)]
GasPerValue(_1),
}
}
pub mod gear_core {
use super::runtime_types;
pub mod buffer {
use super::runtime_types;
#[derive(Debug, crate::gp::Decode, crate::gp::DecodeAsType, crate::gp::Encode)]
pub struct LimitedVec<_0, _1>(
pub ::subxt::ext::subxt_core::alloc::vec::Vec<_0>,
#[codec(skip)] pub ::core::marker::PhantomData<_1>,
);
}
pub mod code {
use super::runtime_types;
pub mod instrumented {
use super::runtime_types;
#[derive(
Debug, crate::gp::Decode, crate::gp::DecodeAsType, crate::gp::Encode,
)]
pub struct InstantiatedSectionSizes {
pub code_section: ::core::primitive::u32,
pub data_section: ::core::primitive::u32,
pub global_section: ::core::primitive::u32,
pub table_section: ::core::primitive::u32,
pub element_section: ::core::primitive::u32,
pub type_section: ::core::primitive::u32,
}
#[derive(
Debug, crate::gp::Decode, crate::gp::DecodeAsType, crate::gp::Encode,
)]
pub struct InstrumentedCode {
pub code: ::subxt::ext::subxt_core::alloc::vec::Vec<::core::primitive::u8>,
pub original_code_len: ::core::primitive::u32,
pub exports: ::subxt::ext::subxt_core::alloc::vec::Vec<
runtime_types::gear_core::message::DispatchKind,
>,
pub static_pages: runtime_types::gear_core::pages::PagesAmount,
pub stack_end:
::core::option::Option<runtime_types::gear_core::pages::Page>,
pub instantiated_section_sizes:
runtime_types::gear_core::code::instrumented::InstantiatedSectionSizes,
pub version: ::core::primitive::u32,
}
}
}
pub mod memory {
use super::runtime_types;
#[derive(Debug, crate::gp::Decode, crate::gp::DecodeAsType, crate::gp::Encode)]
pub struct IntoPageBufError;
#[derive(Debug, crate::gp::Decode, crate::gp::DecodeAsType, crate::gp::Encode)]
pub struct PageBuf(
pub runtime_types::gear_core::buffer::LimitedVec<
::core::primitive::u8,
runtime_types::gear_core::memory::IntoPageBufError,
>,
);
}
pub mod message {
use super::runtime_types;
pub mod common {
use super::runtime_types;
#[derive(
Debug, crate::gp::Decode, crate::gp::DecodeAsType, crate::gp::Encode,
)]
pub enum MessageDetails {
#[codec(index = 0)]
Reply(runtime_types::gear_core::message::common::ReplyDetails),
#[codec(index = 1)]
Signal(runtime_types::gear_core::message::common::SignalDetails),
}
#[derive(
Debug, crate::gp::Decode, crate::gp::DecodeAsType, crate::gp::Encode,
)]
pub struct ReplyDetails {
pub to: runtime_types::gprimitives::MessageId,
pub code: runtime_types::gear_core_errors::simple::ReplyCode,
}
#[derive(
Debug, crate::gp::Decode, crate::gp::DecodeAsType, crate::gp::Encode,
)]
pub struct SignalDetails {
pub to: runtime_types::gprimitives::MessageId,
pub code: runtime_types::gear_core_errors::simple::SignalCode,
}
}
pub mod context {
use super::runtime_types;
#[derive(
Debug, crate::gp::Decode, crate::gp::DecodeAsType, crate::gp::Encode,
)]
pub struct ContextStore {
pub initialized: ::subxt::ext::subxt_core::alloc::vec::Vec<
runtime_types::gprimitives::ActorId,
>,
pub reservation_nonce:
runtime_types::gear_core::reservation::ReservationNonce,
pub system_reservation: ::core::option::Option<::core::primitive::u64>,
pub local_nonce: ::core::primitive::u32,
}
}
pub mod stored {
use super::runtime_types;
#[derive(
Debug, crate::gp::Decode, crate::gp::DecodeAsType, crate::gp::Encode,
)]
pub struct StoredDelayedDispatch {
pub kind: runtime_types::gear_core::message::DispatchKind,
pub message: runtime_types::gear_core::message::stored::StoredMessage,
}
#[derive(
Debug, crate::gp::Decode, crate::gp::DecodeAsType, crate::gp::Encode,
)]
pub struct StoredDispatch {
pub kind: runtime_types::gear_core::message::DispatchKind,
pub message: runtime_types::gear_core::message::stored::StoredMessage,
pub context: ::core::option::Option<
runtime_types::gear_core::message::context::ContextStore,
>,
}
#[derive(
Debug, crate::gp::Decode, crate::gp::DecodeAsType, crate::gp::Encode,
)]
pub struct StoredMessage {
pub id: runtime_types::gprimitives::MessageId,
pub source: runtime_types::gprimitives::ActorId,
pub destination: runtime_types::gprimitives::ActorId,
pub payload: runtime_types::gear_core::buffer::LimitedVec<
::core::primitive::u8,
runtime_types::gear_core::message::PayloadSizeError,
>,
#[codec(compact)]
pub value: ::core::primitive::u128,
pub details: ::core::option::Option<
runtime_types::gear_core::message::common::MessageDetails,
>,
}
}
pub mod user {
use super::runtime_types;
#[derive(
Debug, crate::gp::Decode, crate::gp::DecodeAsType, crate::gp::Encode,
)]
pub struct UserMessage {
pub id: runtime_types::gprimitives::MessageId,
pub source: runtime_types::gprimitives::ActorId,
pub destination: runtime_types::gprimitives::ActorId,
pub payload: runtime_types::gear_core::buffer::LimitedVec<
::core::primitive::u8,
runtime_types::gear_core::message::PayloadSizeError,
>,
#[codec(compact)]
pub value: ::core::primitive::u128,
pub details: ::core::option::Option<
runtime_types::gear_core::message::common::ReplyDetails,
>,
}
#[derive(
Debug, crate::gp::Decode, crate::gp::DecodeAsType, crate::gp::Encode,
)]
pub struct UserStoredMessage {
pub id: runtime_types::gprimitives::MessageId,
pub source: runtime_types::gprimitives::ActorId,
pub destination: runtime_types::gprimitives::ActorId,
pub payload: runtime_types::gear_core::buffer::LimitedVec<
::core::primitive::u8,
runtime_types::gear_core::message::PayloadSizeError,
>,
#[codec(compact)]
pub value: ::core::primitive::u128,
}
}
#[derive(Debug, crate::gp::Decode, crate::gp::DecodeAsType, crate::gp::Encode)]
pub enum DispatchKind {
#[codec(index = 0)]
Init,
#[codec(index = 1)]
Handle,
#[codec(index = 2)]
Reply,
#[codec(index = 3)]
Signal,
}
#[derive(Debug, crate::gp::Decode, crate::gp::DecodeAsType, crate::gp::Encode)]
pub struct PayloadSizeError;
}
pub mod pages {
use super::runtime_types;
#[derive(
::subxt::ext ::subxt_core::ext::codec::CompactAs,
Debug,
crate::gp::Decode,
crate::gp::DecodeAsType,
crate::gp::Encode,
)]
pub struct Page(pub ::core::primitive::u32);
#[derive(
::subxt::ext ::subxt_core::ext::codec::CompactAs,
Debug,
crate::gp::Decode,
crate::gp::DecodeAsType,
crate::gp::Encode,
)]
pub struct PagesAmount(pub ::core::primitive::u32);
}
pub mod percent {
use super::runtime_types;
#[derive(
::subxt::ext ::subxt_core::ext::codec::CompactAs,
Debug,
crate::gp::Decode,
crate::gp::DecodeAsType,
crate::gp::Encode,
)]
pub struct Percent(pub ::core::primitive::u32);
}
pub mod program {
use super::runtime_types;
#[derive(Debug, crate::gp::Decode, crate::gp::DecodeAsType, crate::gp::Encode)]
pub struct ActiveProgram<_0> {
pub allocations_tree_len: ::core::primitive::u32,
pub memory_infix: runtime_types::gear_core::program::MemoryInfix,
pub gas_reservation_map: ::subxt::ext::subxt_core::utils::KeyedVec<
runtime_types::gprimitives::ReservationId,
runtime_types::gear_core::reservation::GasReservationSlot,
>,
pub code_hash: ::subxt::ext::subxt_core::utils::H256,
pub code_exports: ::subxt::ext::subxt_core::alloc::vec::Vec<
runtime_types::gear_core::message::DispatchKind,
>,
pub static_pages: runtime_types::gear_core::pages::PagesAmount,
pub state: runtime_types::gear_core::program::ProgramState,
pub expiration_block: _0,
}
#[derive(
::subxt::ext ::subxt_core::ext::codec::CompactAs,
Debug,
crate::gp::Decode,
crate::gp::DecodeAsType,
crate::gp::Encode,
)]
pub struct MemoryInfix(pub ::core::primitive::u32);
#[derive(Debug, crate::gp::Decode, crate::gp::DecodeAsType, crate::gp::Encode)]
pub enum Program<_0> {
#[codec(index = 0)]
Active(runtime_types::gear_core::program::ActiveProgram<_0>),
#[codec(index = 1)]
Exited(runtime_types::gprimitives::ActorId),
#[codec(index = 2)]
Terminated(runtime_types::gprimitives::ActorId),
}
#[derive(Debug, crate::gp::Decode, crate::gp::DecodeAsType, crate::gp::Encode)]
pub enum ProgramState {
#[codec(index = 0)]
Uninitialized {
message_id: runtime_types::gprimitives::MessageId,
},
#[codec(index = 1)]
Initialized,
}
}
pub mod reservation {
use super::runtime_types;
#[derive(Debug, crate::gp::Decode, crate::gp::DecodeAsType, crate::gp::Encode)]
pub struct GasReservationSlot {
pub amount: ::core::primitive::u64,
pub start: ::core::primitive::u32,
pub finish: ::core::primitive::u32,
}
#[derive(
::subxt::ext ::subxt_core::ext::codec::CompactAs,
Debug,
crate::gp::Decode,
crate::gp::DecodeAsType,
crate::gp::Encode,
)]
pub struct ReservationNonce(pub ::core::primitive::u64);
}
pub mod tasks {
use super::runtime_types;
#[derive(Debug, crate::gp::Decode, crate::gp::DecodeAsType, crate::gp::Encode)]
pub enum ScheduledTask<_0, _1, _2> {
#[codec(index = 0)]
PauseProgram(runtime_types::gprimitives::ActorId),
#[codec(index = 1)]
RemoveCode(runtime_types::gprimitives::CodeId),
#[codec(index = 2)]
RemoveFromMailbox(_0, runtime_types::gprimitives::MessageId),
#[codec(index = 3)]
RemoveFromWaitlist(
runtime_types::gprimitives::ActorId,
runtime_types::gprimitives::MessageId,
),
#[codec(index = 4)]
RemovePausedProgram(runtime_types::gprimitives::ActorId),
#[codec(index = 5)]
WakeMessage(
runtime_types::gprimitives::ActorId,
runtime_types::gprimitives::MessageId,
),
#[codec(index = 6)]
SendDispatch(_1),
#[codec(index = 7)]
SendUserMessage {
message_id: runtime_types::gprimitives::MessageId,
to_mailbox: _2,
},
#[codec(index = 8)]
RemoveGasReservation(
runtime_types::gprimitives::ActorId,
runtime_types::gprimitives::ReservationId,
),
#[codec(index = 9)]
RemoveResumeSession(::core::primitive::u32),
}
}
}
pub mod gear_core_errors {
use super::runtime_types;
pub mod simple {
use super::runtime_types;
#[derive(Debug, crate::gp::Decode, crate::gp::DecodeAsType, crate::gp::Encode)]
pub enum ErrorReplyReason {
#[codec(index = 0)]
Execution(runtime_types::gear_core_errors::simple::SimpleExecutionError),
#[codec(index = 1)]
FailedToCreateProgram(
runtime_types::gear_core_errors::simple::SimpleProgramCreationError,
),
#[codec(index = 2)]
InactiveActor,
#[codec(index = 3)]
RemovedFromWaitlist,
#[codec(index = 4)]
ReinstrumentationFailure,
#[codec(index = 255)]
Unsupported,
}
#[derive(Debug, crate::gp::Decode, crate::gp::DecodeAsType, crate::gp::Encode)]
pub enum ReplyCode {
#[codec(index = 0)]
Success(runtime_types::gear_core_errors::simple::SuccessReplyReason),
#[codec(index = 1)]
Error(runtime_types::gear_core_errors::simple::ErrorReplyReason),
#[codec(index = 255)]
Unsupported,
}
#[derive(Debug, crate::gp::Decode, crate::gp::DecodeAsType, crate::gp::Encode)]
pub enum SignalCode {
#[codec(index = 0)]
Execution(runtime_types::gear_core_errors::simple::SimpleExecutionError),
#[codec(index = 1)]
RemovedFromWaitlist,
}
#[derive(Debug, crate::gp::Decode, crate::gp::DecodeAsType, crate::gp::Encode)]
pub enum SimpleExecutionError {
#[codec(index = 0)]
RanOutOfGas,
#[codec(index = 1)]
MemoryOverflow,
#[codec(index = 2)]
BackendError,
#[codec(index = 3)]
UserspacePanic,
#[codec(index = 4)]
UnreachableInstruction,
#[codec(index = 5)]
StackLimitExceeded,
#[codec(index = 255)]
Unsupported,
}
#[derive(Debug, crate::gp::Decode, crate::gp::DecodeAsType, crate::gp::Encode)]
pub enum SimpleProgramCreationError {
#[codec(index = 0)]
CodeNotExists,
#[codec(index = 255)]
Unsupported,
}
#[derive(Debug, crate::gp::Decode, crate::gp::DecodeAsType, crate::gp::Encode)]
pub enum SuccessReplyReason {
#[codec(index = 0)]
Auto,
#[codec(index = 1)]
Manual,
#[codec(index = 255)]
Unsupported,
}
}
}
pub mod gprimitives {
use super::runtime_types;
#[derive(
Copy, Debug, crate::gp::Decode, crate::gp::DecodeAsType, crate::gp::Encode,
)]
pub struct ActorId(pub [::core::primitive::u8; 32usize]);
#[derive(
Copy, Debug, crate::gp::Decode, crate::gp::DecodeAsType, crate::gp::Encode,
)]
pub struct CodeId(pub [::core::primitive::u8; 32usize]);
#[derive(
Copy, Debug, crate::gp::Decode, crate::gp::DecodeAsType, crate::gp::Encode,
)]
pub struct MessageId(pub [::core::primitive::u8; 32usize]);
#[derive(
Copy, Debug, crate::gp::Decode, crate::gp::DecodeAsType, crate::gp::Encode,
)]
pub struct ReservationId(pub [::core::primitive::u8; 32usize]);
}
pub mod numerated {
use super::runtime_types;
pub mod tree {
use super::runtime_types;
#[derive(Debug, crate::gp::Decode, crate::gp::DecodeAsType, crate::gp::Encode)]
pub struct IntervalsTree<_0> {
pub inner: ::subxt::ext::subxt_core::utils::KeyedVec<_0, _0>,
}
}
}
pub mod pallet_babe {
use super::runtime_types;
pub mod pallet {
use super::runtime_types;
#[derive(Debug, crate::gp::Decode, crate::gp::DecodeAsType, crate::gp::Encode)]
#[doc = "Contains a variant per dispatchable extrinsic that this pallet has."]
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: ::subxt::ext::subxt_core::alloc::boxed::Box<
runtime_types::sp_consensus_slots::EquivocationProof<
runtime_types::sp_runtime::generic::header::Header<
::core::primitive::u32,
>,
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: ::subxt::ext::subxt_core::alloc::boxed::Box<
runtime_types::sp_consensus_slots::EquivocationProof<
runtime_types::sp_runtime::generic::header::Header<
::core::primitive::u32,
>,
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(Debug, crate::gp::Decode, crate::gp::DecodeAsType, crate::gp::Encode)]
#[doc = "The `Error` enum of this pallet."]
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(Debug, crate::gp::Decode, crate::gp::DecodeAsType, crate::gp::Encode)]
pub struct Bag {
pub head: ::core::option::Option<::subxt::ext::subxt_core::utils::AccountId32>,
pub tail: ::core::option::Option<::subxt::ext::subxt_core::utils::AccountId32>,
}
#[derive(Debug, crate::gp::Decode, crate::gp::DecodeAsType, crate::gp::Encode)]
pub enum ListError {
#[codec(index = 0)]
Duplicate,
#[codec(index = 1)]
NotHeavier,
#[codec(index = 2)]
NotInSameBag,
#[codec(index = 3)]
NodeNotFound,
}
#[derive(Debug, crate::gp::Decode, crate::gp::DecodeAsType, crate::gp::Encode)]
pub struct Node {
pub id: ::subxt::ext::subxt_core::utils::AccountId32,
pub prev: ::core::option::Option<::subxt::ext::subxt_core::utils::AccountId32>,
pub next: ::core::option::Option<::subxt::ext::subxt_core::utils::AccountId32>,
pub bag_upper: ::core::primitive::u64,
pub score: ::core::primitive::u64,
}
}
pub mod pallet {
use super::runtime_types;
#[derive(Debug, crate::gp::Decode, crate::gp::DecodeAsType, crate::gp::Encode)]
#[doc = "Contains a variant per dispatchable extrinsic that this pallet has."]
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::ext::subxt_core::utils::MultiAddress<
::subxt::ext::subxt_core::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`. Fee is payed by the origin under all"]
#[doc = "circumstances."]
#[doc = ""]
#[doc = "Only works if:"]
#[doc = ""]
#[doc = "- both nodes are within the same bag,"]
#[doc = "- and `origin` has a greater `Score` than `lighter`."]
put_in_front_of {
lighter: ::subxt::ext::subxt_core::utils::MultiAddress<
::subxt::ext::subxt_core::utils::AccountId32,
(),
>,
},
#[codec(index = 2)]
#[doc = "Same as [`Pallet::put_in_front_of`], but it can be called by anyone."]
#[doc = ""]
#[doc = "Fee is paid by the origin under all circumstances."]
put_in_front_of_other {
heavier: ::subxt::ext::subxt_core::utils::MultiAddress<
::subxt::ext::subxt_core::utils::AccountId32,
(),
>,
lighter: ::subxt::ext::subxt_core::utils::MultiAddress<
::subxt::ext::subxt_core::utils::AccountId32,
(),
>,
},
}
#[derive(Debug, crate::gp::Decode, crate::gp::DecodeAsType, crate::gp::Encode)]
#[doc = "The `Error` enum of this pallet."]
pub enum Error {
#[codec(index = 0)]
#[doc = "A error in the list interface implementation."]
List(runtime_types::pallet_bags_list::list::ListError),
}
#[derive(Debug, crate::gp::Decode, crate::gp::DecodeAsType, crate::gp::Encode)]
#[doc = "The `Event` enum of this pallet"]
pub enum Event {
#[codec(index = 0)]
#[doc = "Moved an account from one bag to another."]
Rebagged {
who: ::subxt::ext::subxt_core::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::ext::subxt_core::utils::AccountId32,
new_score: ::core::primitive::u64,
},
}
}
}
pub mod pallet_balances {
use super::runtime_types;
pub mod pallet {
use super::runtime_types;
#[derive(Debug, crate::gp::Decode, crate::gp::DecodeAsType, crate::gp::Encode)]
#[doc = "Contains a variant per dispatchable extrinsic that this pallet has."]
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::ext::subxt_core::utils::MultiAddress<
::subxt::ext::subxt_core::utils::AccountId32,
(),
>,
#[codec(compact)]
value: ::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::ext::subxt_core::utils::MultiAddress<
::subxt::ext::subxt_core::utils::AccountId32,
(),
>,
dest: ::subxt::ext::subxt_core::utils::MultiAddress<
::subxt::ext::subxt_core::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::ext::subxt_core::utils::MultiAddress<
::subxt::ext::subxt_core::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::ext::subxt_core::utils::MultiAddress<
::subxt::ext::subxt_core::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::ext::subxt_core::utils::MultiAddress<
::subxt::ext::subxt_core::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 = "possibility of churn)."]
upgrade_accounts {
who: ::subxt::ext::subxt_core::alloc::vec::Vec<
::subxt::ext::subxt_core::utils::AccountId32,
>,
},
#[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::ext::subxt_core::utils::MultiAddress<
::subxt::ext::subxt_core::utils::AccountId32,
(),
>,
#[codec(compact)]
new_free: ::core::primitive::u128,
},
#[codec(index = 9)]
#[doc = "Adjust the total issuance in a saturating way."]
#[doc = ""]
#[doc = "Can only be called by root and always needs a positive `delta`."]
#[doc = ""]
#[doc = "# Example"]
force_adjust_total_issuance {
direction: runtime_types::pallet_balances::types::AdjustmentDirection,
#[codec(compact)]
delta: ::core::primitive::u128,
},
#[codec(index = 10)]
#[doc = "Burn the specified liquid free balance from the origin account."]
#[doc = ""]
#[doc = "If the origin's account ends up below the existential deposit as a result"]
#[doc = "of the burn and `keep_alive` is false, the account will be reaped."]
#[doc = ""]
#[doc = "Unlike sending funds to a _burn_ address, which merely makes the funds inaccessible,"]
#[doc = "this `burn` operation will reduce total issuance by the amount _burned_."]
burn {
#[codec(compact)]
value: ::core::primitive::u128,
keep_alive: ::core::primitive::bool,
},
}
#[derive(Debug, crate::gp::Decode, crate::gp::DecodeAsType, crate::gp::Encode)]
#[doc = "The `Error` enum of this pallet."]
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 `VariantCountOf<T::RuntimeHoldReason>`."]
TooManyHolds,
#[codec(index = 9)]
#[doc = "Number of freezes exceed `MaxFreezes`."]
TooManyFreezes,
#[codec(index = 10)]
#[doc = "The issuance cannot be modified since it is already deactivated."]
IssuanceDeactivated,
#[codec(index = 11)]
#[doc = "The delta cannot be zero."]
DeltaZero,
}
#[derive(Debug, crate::gp::Decode, crate::gp::DecodeAsType, crate::gp::Encode)]
#[doc = "The `Event` enum of this pallet"]
pub enum Event {
#[codec(index = 0)]
#[doc = "An account was created with some free balance."]
Endowed {
account: ::subxt::ext::subxt_core::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::ext::subxt_core::utils::AccountId32,
amount: ::core::primitive::u128,
},
#[codec(index = 2)]
#[doc = "Transfer succeeded."]
Transfer {
from: ::subxt::ext::subxt_core::utils::AccountId32,
to: ::subxt::ext::subxt_core::utils::AccountId32,
amount: ::core::primitive::u128,
},
#[codec(index = 3)]
#[doc = "A balance was set by root."]
BalanceSet {
who: ::subxt::ext::subxt_core::utils::AccountId32,
free: ::core::primitive::u128,
},
#[codec(index = 4)]
#[doc = "Some balance was reserved (moved from free to reserved)."]
Reserved {
who: ::subxt::ext::subxt_core::utils::AccountId32,
amount: ::core::primitive::u128,
},
#[codec(index = 5)]
#[doc = "Some balance was unreserved (moved from reserved to free)."]
Unreserved {
who: ::subxt::ext::subxt_core::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::ext::subxt_core::utils::AccountId32,
to: ::subxt::ext::subxt_core::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::ext::subxt_core::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::ext::subxt_core::utils::AccountId32,
amount: ::core::primitive::u128,
},
#[codec(index = 9)]
#[doc = "Some amount was removed from the account (e.g. for misbehavior)."]
Slashed {
who: ::subxt::ext::subxt_core::utils::AccountId32,
amount: ::core::primitive::u128,
},
#[codec(index = 10)]
#[doc = "Some amount was minted into an account."]
Minted {
who: ::subxt::ext::subxt_core::utils::AccountId32,
amount: ::core::primitive::u128,
},
#[codec(index = 11)]
#[doc = "Some amount was burned from an account."]
Burned {
who: ::subxt::ext::subxt_core::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::ext::subxt_core::utils::AccountId32,
amount: ::core::primitive::u128,
},
#[codec(index = 13)]
#[doc = "Some amount was restored into an account."]
Restored {
who: ::subxt::ext::subxt_core::utils::AccountId32,
amount: ::core::primitive::u128,
},
#[codec(index = 14)]
#[doc = "An account was upgraded."]
Upgraded {
who: ::subxt::ext::subxt_core::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::ext::subxt_core::utils::AccountId32,
amount: ::core::primitive::u128,
},
#[codec(index = 18)]
#[doc = "Some balance was unlocked."]
Unlocked {
who: ::subxt::ext::subxt_core::utils::AccountId32,
amount: ::core::primitive::u128,
},
#[codec(index = 19)]
#[doc = "Some balance was frozen."]
Frozen {
who: ::subxt::ext::subxt_core::utils::AccountId32,
amount: ::core::primitive::u128,
},
#[codec(index = 20)]
#[doc = "Some balance was thawed."]
Thawed {
who: ::subxt::ext::subxt_core::utils::AccountId32,
amount: ::core::primitive::u128,
},
#[codec(index = 21)]
#[doc = "The `TotalIssuance` was forcefully changed."]
TotalIssuanceForced {
old: ::core::primitive::u128,
new: ::core::primitive::u128,
},
}
}
pub mod types {
use super::runtime_types;
#[derive(Debug, crate::gp::Decode, crate::gp::DecodeAsType, crate::gp::Encode)]
pub struct AccountData<_0> {
pub free: _0,
pub reserved: _0,
pub frozen: _0,
pub flags: runtime_types::pallet_balances::types::ExtraFlags,
}
#[derive(Debug, crate::gp::Decode, crate::gp::DecodeAsType, crate::gp::Encode)]
pub enum AdjustmentDirection {
#[codec(index = 0)]
Increase,
#[codec(index = 1)]
Decrease,
}
#[derive(Debug, crate::gp::Decode, crate::gp::DecodeAsType, crate::gp::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 ::subxt_core::ext::codec::CompactAs,
Debug,
crate::gp::Decode,
crate::gp::DecodeAsType,
crate::gp::Encode,
)]
pub struct ExtraFlags(pub ::core::primitive::u128);
#[derive(Debug, crate::gp::Decode, crate::gp::DecodeAsType, crate::gp::Encode)]
pub enum Reasons {
#[codec(index = 0)]
Fee,
#[codec(index = 1)]
Misc,
#[codec(index = 2)]
All,
}
#[derive(Debug, crate::gp::Decode, crate::gp::DecodeAsType, crate::gp::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(Debug, crate::gp::Decode, crate::gp::DecodeAsType, crate::gp::Encode)]
#[doc = "Contains a variant per dispatchable extrinsic that this pallet has."]
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:
::subxt::ext::subxt_core::alloc::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 = "Propose 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::ext::subxt_core::utils::MultiAddress<
::subxt::ext::subxt_core::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::ext::subxt_core::utils::MultiAddress<
::subxt::ext::subxt_core::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: ::subxt::ext::subxt_core::alloc::vec::Vec<::core::primitive::u8>,
},
}
#[derive(Debug, crate::gp::Decode, crate::gp::DecodeAsType, crate::gp::Encode)]
#[doc = "The `Error` enum of this 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 = "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(Debug, crate::gp::Decode, crate::gp::DecodeAsType, crate::gp::Encode)]
#[doc = "The `Event` enum of this pallet"]
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::ext::subxt_core::utils::AccountId32,
},
#[codec(index = 4)]
#[doc = "A bounty is claimed by beneficiary."]
BountyClaimed {
index: ::core::primitive::u32,
payout: ::core::primitive::u128,
beneficiary: ::subxt::ext::subxt_core::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 },
#[codec(index = 7)]
#[doc = "A bounty is approved."]
BountyApproved { index: ::core::primitive::u32 },
#[codec(index = 8)]
#[doc = "A bounty curator is proposed."]
CuratorProposed {
bounty_id: ::core::primitive::u32,
curator: ::subxt::ext::subxt_core::utils::AccountId32,
},
#[codec(index = 9)]
#[doc = "A bounty curator is unassigned."]
CuratorUnassigned { bounty_id: ::core::primitive::u32 },
#[codec(index = 10)]
#[doc = "A bounty curator is accepted."]
CuratorAccepted {
bounty_id: ::core::primitive::u32,
curator: ::subxt::ext::subxt_core::utils::AccountId32,
},
}
}
#[derive(Debug, crate::gp::Decode, crate::gp::DecodeAsType, crate::gp::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(Debug, crate::gp::Decode, crate::gp::DecodeAsType, crate::gp::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(Debug, crate::gp::Decode, crate::gp::DecodeAsType, crate::gp::Encode)]
#[doc = "Contains a variant per dispatchable extrinsic that this pallet has."]
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:
::subxt::ext::subxt_core::alloc::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::ext::subxt_core::utils::MultiAddress<
::subxt::ext::subxt_core::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::ext::subxt_core::utils::MultiAddress<
::subxt::ext::subxt_core::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(Debug, crate::gp::Decode, crate::gp::DecodeAsType, crate::gp::Encode)]
#[doc = "The `Error` enum of this pallet."]
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(Debug, crate::gp::Decode, crate::gp::DecodeAsType, crate::gp::Encode)]
#[doc = "The `Event` enum of this pallet"]
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::ext::subxt_core::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::ext::subxt_core::utils::AccountId32,
},
#[codec(index = 3)]
#[doc = "A child-bounty is cancelled."]
Canceled {
index: ::core::primitive::u32,
child_index: ::core::primitive::u32,
},
}
}
#[derive(Debug, crate::gp::Decode, crate::gp::DecodeAsType, crate::gp::Encode)]
pub struct ChildBounty<_0, _1, _2> {
pub parent_bounty: ::core::primitive::u32,
pub value: _1,
pub fee: _1,
pub curator_deposit: _1,
pub status: runtime_types::pallet_child_bounties::ChildBountyStatus<_0, _2>,
}
#[derive(Debug, crate::gp::Decode, crate::gp::DecodeAsType, crate::gp::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_conviction_voting {
use super::runtime_types;
pub mod conviction {
use super::runtime_types;
#[derive(Debug, crate::gp::Decode, crate::gp::DecodeAsType, crate::gp::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(Debug, crate::gp::Decode, crate::gp::DecodeAsType, crate::gp::Encode)]
#[doc = "Contains a variant per dispatchable extrinsic that this pallet has."]
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 through"]
#[doc = " `remove_vote`)."]
#[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::ext::subxt_core::utils::MultiAddress<
::subxt::ext::subxt_core::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::ext::subxt_core::utils::MultiAddress<
::subxt::ext::subxt_core::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::ext::subxt_core::utils::MultiAddress<
::subxt::ext::subxt_core::utils::AccountId32,
(),
>,
class: ::core::primitive::u16,
index: ::core::primitive::u32,
},
}
#[derive(Debug, crate::gp::Decode, crate::gp::DecodeAsType, crate::gp::Encode)]
#[doc = "The `Error` enum of this pallet."]
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 through `remove_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(Debug, crate::gp::Decode, crate::gp::DecodeAsType, crate::gp::Encode)]
#[doc = "The `Event` enum of this pallet"]
pub enum Event {
#[codec(index = 0)]
#[doc = "An account has delegated their vote to another account. \\[who, target\\]"]
Delegated(
::subxt::ext::subxt_core::utils::AccountId32,
::subxt::ext::subxt_core::utils::AccountId32,
),
#[codec(index = 1)]
#[doc = "An \\[account\\] has cancelled a previous delegation operation."]
Undelegated(::subxt::ext::subxt_core::utils::AccountId32),
#[codec(index = 2)]
#[doc = "An account that has voted"]
Voted {
who: ::subxt::ext::subxt_core::utils::AccountId32,
vote: runtime_types::pallet_conviction_voting::vote::AccountVote<
::core::primitive::u128,
>,
},
#[codec(index = 3)]
#[doc = "A vote that been removed"]
VoteRemoved {
who: ::subxt::ext::subxt_core::utils::AccountId32,
vote: runtime_types::pallet_conviction_voting::vote::AccountVote<
::core::primitive::u128,
>,
},
}
}
pub mod types {
use super::runtime_types;
#[derive(Debug, crate::gp::Decode, crate::gp::DecodeAsType, crate::gp::Encode)]
pub struct Delegations<_0> {
pub votes: _0,
pub capital: _0,
}
#[derive(Debug, crate::gp::Decode, crate::gp::DecodeAsType, crate::gp::Encode)]
pub struct Tally<_0> {
pub ayes: _0,
pub nays: _0,
pub support: _0,
}
}
pub mod vote {
use super::runtime_types;
#[derive(Debug, crate::gp::Decode, crate::gp::DecodeAsType, crate::gp::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(Debug, crate::gp::Decode, crate::gp::DecodeAsType, crate::gp::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 __ignore: ::core::marker::PhantomData<_2>,
}
#[derive(Debug, crate::gp::Decode, crate::gp::DecodeAsType, crate::gp::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(Debug, crate::gp::Decode, crate::gp::DecodeAsType, crate::gp::Encode)]
pub struct PriorLock<_0, _1>(pub _0, pub _1);
#[derive(
::subxt::ext ::subxt_core::ext::codec::CompactAs,
Debug,
crate::gp::Decode,
crate::gp::DecodeAsType,
crate::gp::Encode,
)]
pub struct Vote(pub ::core::primitive::u8);
#[derive(Debug, crate::gp::Decode, crate::gp::DecodeAsType, crate::gp::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_election_provider_multi_phase {
use super::runtime_types;
pub mod pallet {
use super::runtime_types;
#[derive(Debug, crate::gp::Decode, crate::gp::DecodeAsType, crate::gp::Encode)]
#[doc = "Contains a variant per dispatchable extrinsic that this pallet has."]
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 : ::subxt::ext ::subxt_core::alloc::boxed::Box < runtime_types::pallet_election_provider_multi_phase::RawSolution < runtime_types::vara_runtime::NposSolution16 > > , 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 : ::subxt::ext ::subxt_core::alloc::vec::Vec < (::subxt::ext ::subxt_core::utils::AccountId32 , runtime_types::sp_npos_elections::Support < ::subxt::ext ::subxt_core::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 : ::subxt::ext ::subxt_core::alloc::boxed::Box < runtime_types::pallet_election_provider_multi_phase::RawSolution < runtime_types::vara_runtime::NposSolution16 > > , } , # [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(Debug, crate::gp::Decode, crate::gp::DecodeAsType, crate::gp::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,
#[codec(index = 14)]
#[doc = "Submission was prepared for a different round."]
PreDispatchDifferentRound,
}
#[derive(Debug, crate::gp::Decode, crate::gp::DecodeAsType, crate::gp::Encode)]
#[doc = "The `Event` enum of this pallet"]
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 submitted 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::ext::subxt_core::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::ext::subxt_core::utils::AccountId32,
value: ::core::primitive::u128,
},
#[codec(index = 4)]
#[doc = "An account has been slashed for submitting an invalid signed submission."]
Slashed {
account: ::subxt::ext::subxt_core::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(Debug, crate::gp::Decode, crate::gp::DecodeAsType, crate::gp::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(Debug, crate::gp::Decode, crate::gp::DecodeAsType, crate::gp::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(Debug, crate::gp::Decode, crate::gp::DecodeAsType, crate::gp::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(Debug, crate::gp::Decode, crate::gp::DecodeAsType, crate::gp::Encode)]
pub struct RawSolution<_0> {
pub solution: _0,
pub score: runtime_types::sp_npos_elections::ElectionScore,
pub round: ::core::primitive::u32,
}
#[derive(Debug, crate::gp::Decode, crate::gp::DecodeAsType, crate::gp::Encode)]
pub struct ReadySolution {
pub supports: runtime_types::bounded_collections::bounded_vec::BoundedVec<(
::subxt::ext::subxt_core::utils::AccountId32,
runtime_types::sp_npos_elections::Support<
::subxt::ext::subxt_core::utils::AccountId32,
>,
)>,
pub score: runtime_types::sp_npos_elections::ElectionScore,
pub compute: runtime_types::pallet_election_provider_multi_phase::ElectionCompute,
}
#[derive(Debug, crate::gp::Decode, crate::gp::DecodeAsType, crate::gp::Encode)]
pub struct RoundSnapshot<_0, _1> {
pub voters: ::subxt::ext::subxt_core::alloc::vec::Vec<_1>,
pub targets: ::subxt::ext::subxt_core::alloc::vec::Vec<_0>,
}
#[derive(Debug, crate::gp::Decode, crate::gp::DecodeAsType, crate::gp::Encode)]
pub struct SolutionOrSnapshotSize {
#[codec(compact)]
pub voters: ::core::primitive::u32,
#[codec(compact)]
pub targets: ::core::primitive::u32,
}
}
pub mod pallet_gear {
use super::runtime_types;
pub mod pallet {
use super::runtime_types;
#[derive(Debug, crate::gp::Decode, crate::gp::DecodeAsType, crate::gp::Encode)]
#[doc = "Contains a variant per dispatchable extrinsic that this pallet has."]
pub enum Call {
#[codec(index = 0)]
#[doc = "Saves program `code` in storage."]
#[doc = ""]
#[doc = "The extrinsic was created to provide _deploy program from program_ functionality."]
#[doc = "Anyone who wants to define a \"factory\" logic in program should first store the code and metadata for the \"child\""]
#[doc = "program in storage. So the code for the child will be initialized by program initialization request only if it exists in storage."]
#[doc = ""]
#[doc = "More precisely, the code and its metadata are actually saved in the storage under the hash of the `code`. The code hash is computed"]
#[doc = "as Blake256 hash. At the time of the call the `code` hash should not be in the storage. If it was stored previously, call will end up"]
#[doc = "with an `CodeAlreadyExists` error. In this case user can be sure, that he can actually use the hash of his program's code bytes to define"]
#[doc = "\"program factory\" logic in his program."]
#[doc = ""]
#[doc = "Parameters"]
#[doc = "- `code`: wasm code of a program as a byte vector."]
#[doc = ""]
#[doc = "Emits the following events:"]
#[doc = "- `SavedCode(H256)` - when the code is saved in storage."]
upload_code {
code: ::subxt::ext::subxt_core::alloc::vec::Vec<::core::primitive::u8>,
},
#[codec(index = 1)]
#[doc = "Creates program initialization request (message), that is scheduled to be run in the same block."]
#[doc = ""]
#[doc = "There are no guarantees that initialization message will be run in the same block due to block"]
#[doc = "gas limit restrictions. For example, when it will be the message's turn, required gas limit for it"]
#[doc = "could be more than remaining block gas limit. Therefore, the message processing will be postponed"]
#[doc = "until the next block."]
#[doc = ""]
#[doc = "`ProgramId` is computed as Blake256 hash of concatenated bytes of `code` + `salt`. (todo #512 `code_hash` + `salt`)"]
#[doc = "Such `ProgramId` must not exist in the Program Storage at the time of this call."]
#[doc = ""]
#[doc = "There is the same guarantee here as in `upload_code`. That is, future program's"]
#[doc = "`code` and metadata are stored before message was added to the queue and processed."]
#[doc = ""]
#[doc = "The origin must be Signed and the sender must have sufficient funds to pay"]
#[doc = "for `gas` and `value` (in case the latter is being transferred)."]
#[doc = ""]
#[doc = "Gear runtime guarantees that an active program always has an account to store value."]
#[doc = "If the underlying account management platform (e.g. Substrate's System pallet) requires"]
#[doc = "an existential deposit to keep an account alive, the related overhead is considered an"]
#[doc = "extra cost related with a program instantiation and is charged to the program's creator"]
#[doc = "and is released back to the creator when the program is removed."]
#[doc = "In context of the above, the `value` parameter represents the so-called `reducible` balance"]
#[doc = "a program should have at its disposal upon instantiation. It is not used to offset the"]
#[doc = "existential deposit required for an account creation."]
#[doc = ""]
#[doc = "Parameters:"]
#[doc = "- `code`: wasm code of a program as a byte vector."]
#[doc = "- `salt`: randomness term (a seed) to allow programs with identical code"]
#[doc = " to be created independently."]
#[doc = "- `init_payload`: encoded parameters of the wasm module `init` function."]
#[doc = "- `gas_limit`: maximum amount of gas the program can spend before it is halted."]
#[doc = "- `value`: balance to be transferred to the program once it's been created."]
#[doc = ""]
#[doc = "Emits the following events:"]
#[doc = "- `InitMessageEnqueued(MessageInfo)` when init message is placed in the queue."]
#[doc = ""]
#[doc = "# Note"]
#[doc = "Faulty (uninitialized) programs still have a valid addresses (program ids) that can deterministically be derived on the"]
#[doc = "caller's side upfront. It means that if messages are sent to such an address, they might still linger in the queue."]
#[doc = ""]
#[doc = "In order to mitigate the risk of users' funds being sent to an address,"]
#[doc = "where a valid program should have resided, while it's not,"]
#[doc = "such \"failed-to-initialize\" programs are not silently deleted from the"]
#[doc = "program storage but rather marked as \"ghost\" programs."]
#[doc = "Ghost program can be removed by their original author via an explicit call."]
#[doc = "The funds stored by a ghost program will be release to the author once the program"]
#[doc = "has been removed."]
upload_program {
code: ::subxt::ext::subxt_core::alloc::vec::Vec<::core::primitive::u8>,
salt: ::subxt::ext::subxt_core::alloc::vec::Vec<::core::primitive::u8>,
init_payload:
::subxt::ext::subxt_core::alloc::vec::Vec<::core::primitive::u8>,
gas_limit: ::core::primitive::u64,
value: ::core::primitive::u128,
keep_alive: ::core::primitive::bool,
},
#[codec(index = 2)]
#[doc = "Creates program via `code_id` from storage."]
#[doc = ""]
#[doc = "Parameters:"]
#[doc = "- `code_id`: wasm code id in the code storage."]
#[doc = "- `salt`: randomness term (a seed) to allow programs with identical code"]
#[doc = " to be created independently."]
#[doc = "- `init_payload`: encoded parameters of the wasm module `init` function."]
#[doc = "- `gas_limit`: maximum amount of gas the program can spend before it is halted."]
#[doc = "- `value`: balance to be transferred to the program once it's been created."]
#[doc = ""]
#[doc = "Emits the following events:"]
#[doc = "- `InitMessageEnqueued(MessageInfo)` when init message is placed in the queue."]
#[doc = ""]
#[doc = "# NOTE"]
#[doc = ""]
#[doc = "For the details of this extrinsic, see `upload_code`."]
create_program {
code_id: runtime_types::gprimitives::CodeId,
salt: ::subxt::ext::subxt_core::alloc::vec::Vec<::core::primitive::u8>,
init_payload:
::subxt::ext::subxt_core::alloc::vec::Vec<::core::primitive::u8>,
gas_limit: ::core::primitive::u64,
value: ::core::primitive::u128,
keep_alive: ::core::primitive::bool,
},
#[codec(index = 3)]
#[doc = "Sends a message to a program or to another account."]
#[doc = ""]
#[doc = "The origin must be Signed and the sender must have sufficient funds to pay"]
#[doc = "for `gas` and `value` (in case the latter is being transferred)."]
#[doc = ""]
#[doc = "To avoid an undefined behavior a check is made that the destination address"]
#[doc = "is not a program in uninitialized state. If the opposite holds true,"]
#[doc = "the message is not enqueued for processing."]
#[doc = ""]
#[doc = "Parameters:"]
#[doc = "- `destination`: the message destination."]
#[doc = "- `payload`: in case of a program destination, parameters of the `handle` function."]
#[doc = "- `gas_limit`: maximum amount of gas the program can spend before it is halted."]
#[doc = "- `value`: balance to be transferred to the program once it's been created."]
#[doc = ""]
#[doc = "Emits the following events:"]
#[doc = "- `DispatchMessageEnqueued(MessageInfo)` when dispatch message is placed in the queue."]
send_message {
destination: runtime_types::gprimitives::ActorId,
payload: ::subxt::ext::subxt_core::alloc::vec::Vec<::core::primitive::u8>,
gas_limit: ::core::primitive::u64,
value: ::core::primitive::u128,
keep_alive: ::core::primitive::bool,
},
#[codec(index = 4)]
#[doc = "Send reply on message in `Mailbox`."]
#[doc = ""]
#[doc = "Removes message by given `MessageId` from callers `Mailbox`:"]
#[doc = "rent funds become free, associated with the message value"]
#[doc = "transfers from message sender to extrinsic caller."]
#[doc = ""]
#[doc = "Generates reply on removed message with given parameters"]
#[doc = "and pushes it in `MessageQueue`."]
#[doc = ""]
#[doc = "NOTE: source of the message in mailbox guaranteed to be a program."]
#[doc = ""]
#[doc = "NOTE: only user who is destination of the message, can claim value"]
#[doc = "or reply on the message from mailbox."]
send_reply {
reply_to_id: runtime_types::gprimitives::MessageId,
payload: ::subxt::ext::subxt_core::alloc::vec::Vec<::core::primitive::u8>,
gas_limit: ::core::primitive::u64,
value: ::core::primitive::u128,
keep_alive: ::core::primitive::bool,
},
#[codec(index = 5)]
#[doc = "Claim value from message in `Mailbox`."]
#[doc = ""]
#[doc = "Removes message by given `MessageId` from callers `Mailbox`:"]
#[doc = "rent funds become free, associated with the message value"]
#[doc = "transfers from message sender to extrinsic caller."]
#[doc = ""]
#[doc = "NOTE: only user who is destination of the message, can claim value"]
#[doc = "or reply on the message from mailbox."]
claim_value {
message_id: runtime_types::gprimitives::MessageId,
},
#[codec(index = 6)]
#[doc = "Process message queue"]
run {
max_gas: ::core::option::Option<::core::primitive::u64>,
},
#[codec(index = 7)]
#[doc = "Sets `ExecuteInherent` flag."]
#[doc = ""]
#[doc = "Requires root origin (eventually, will only be set via referendum)"]
set_execute_inherent { value: ::core::primitive::bool },
#[codec(index = 8)]
#[doc = "Transfers value from chain of terminated or exited programs to its final inheritor."]
#[doc = ""]
#[doc = "`depth` parameter is how far to traverse to inheritor."]
#[doc = "A value of 10 is sufficient for most cases."]
#[doc = ""]
#[doc = "# Example of chain"]
#[doc = ""]
#[doc = "- Program #1 exits (e.g `gr_exit syscall) with argument pointing to user."]
#[doc = "Balance of program #1 has been sent to user."]
#[doc = "- Program #2 exits with inheritor pointing to program #1."]
#[doc = "Balance of program #2 has been sent to exited program #1."]
#[doc = "- Program #3 exits with inheritor pointing to program #2"]
#[doc = "Balance of program #1 has been sent to exited program #2."]
#[doc = ""]
#[doc = "So chain of inheritors looks like: Program #3 -> Program #2 -> Program #1 -> User."]
#[doc = ""]
#[doc = "We have programs #1 and #2 with stuck value on their balances."]
#[doc = "The balances should've been transferred to user (final inheritor) according to the chain."]
#[doc = "But protocol doesn't traverse the chain automatically, so user have to call this extrinsic."]
claim_value_to_inheritor {
program_id: runtime_types::gprimitives::ActorId,
depth: ::core::num::NonZeroU32,
},
}
#[derive(Debug, crate::gp::Decode, crate::gp::DecodeAsType, crate::gp::Encode)]
#[doc = "The `Error` enum of this pallet."]
pub enum Error {
#[codec(index = 0)]
#[doc = "Message wasn't found in the mailbox."]
MessageNotFound,
#[codec(index = 1)]
#[doc = "Not enough balance to execute an action."]
#[doc = ""]
#[doc = "Usually occurs when the gas_limit specified is such that the origin account can't afford the message."]
InsufficientBalance,
#[codec(index = 2)]
#[doc = "Gas limit too high."]
#[doc = ""]
#[doc = "Occurs when an extrinsic's declared `gas_limit` is greater than a block's maximum gas limit."]
GasLimitTooHigh,
#[codec(index = 3)]
#[doc = "Program already exists."]
#[doc = ""]
#[doc = "Occurs if a program with some specific program id already exists in program storage."]
ProgramAlreadyExists,
#[codec(index = 4)]
#[doc = "Program is terminated."]
#[doc = ""]
#[doc = "Program init failed, so such message destination is no longer unavailable."]
InactiveProgram,
#[codec(index = 5)]
#[doc = "Message gas tree is not found."]
#[doc = ""]
#[doc = "When a message claimed from the mailbox has a corrupted or non-extant gas tree associated."]
NoMessageTree,
#[codec(index = 6)]
#[doc = "Code already exists."]
#[doc = ""]
#[doc = "Occurs when trying to save to storage a program code that has been saved there."]
CodeAlreadyExists,
#[codec(index = 7)]
#[doc = "Code does not exist."]
#[doc = ""]
#[doc = "Occurs when trying to get a program code from storage, that doesn't exist."]
CodeDoesntExist,
#[codec(index = 8)]
#[doc = "The code supplied to `upload_code` or `upload_program` exceeds the limit specified in the"]
#[doc = "current schedule."]
CodeTooLarge,
#[codec(index = 9)]
#[doc = "Failed to create a program."]
ProgramConstructionFailed,
#[codec(index = 10)]
#[doc = "Message queue processing is disabled."]
MessageQueueProcessingDisabled,
#[codec(index = 11)]
#[doc = "Block count doesn't cover MinimalResumePeriod."]
ResumePeriodLessThanMinimal,
#[codec(index = 12)]
#[doc = "Program with the specified id is not found."]
ProgramNotFound,
#[codec(index = 13)]
#[doc = "Gear::run() already included in current block."]
GearRunAlreadyInBlock,
#[codec(index = 14)]
#[doc = "The program rent logic is disabled."]
ProgramRentDisabled,
#[codec(index = 15)]
#[doc = "Program is active."]
ActiveProgram,
}
#[derive(Debug, crate::gp::Decode, crate::gp::DecodeAsType, crate::gp::Encode)]
#[doc = "The `Event` enum of this pallet"]
pub enum Event {
#[codec(index = 0)]
#[doc = "User sends message to program, which was successfully"]
#[doc = "added to the Gear message queue."]
MessageQueued {
id: runtime_types::gprimitives::MessageId,
source: ::subxt::ext::subxt_core::utils::AccountId32,
destination: runtime_types::gprimitives::ActorId,
entry: runtime_types::gear_common::event::MessageEntry,
},
#[codec(index = 1)]
#[doc = "Somebody sent a message to the user."]
UserMessageSent {
message: runtime_types::gear_core::message::user::UserMessage,
expiration: ::core::option::Option<::core::primitive::u32>,
},
#[codec(index = 2)]
#[doc = "Message marked as \"read\" and removes it from `Mailbox`."]
#[doc = "This event only affects messages that were"]
#[doc = "already inserted in `Mailbox`."]
UserMessageRead {
id: runtime_types::gprimitives::MessageId,
reason: runtime_types::gear_common::event::Reason<
runtime_types::gear_common::event::UserMessageReadRuntimeReason,
runtime_types::gear_common::event::UserMessageReadSystemReason,
>,
},
#[codec(index = 3)]
#[doc = "The result of processing the messages within the block."]
MessagesDispatched {
total: ::core::primitive::u32,
statuses: ::subxt::ext::subxt_core::utils::KeyedVec<
runtime_types::gprimitives::MessageId,
runtime_types::gear_common::event::DispatchStatus,
>,
state_changes: ::subxt::ext::subxt_core::alloc::vec::Vec<
runtime_types::gprimitives::ActorId,
>,
},
#[codec(index = 4)]
#[doc = "Messages execution delayed (waited) and successfully"]
#[doc = "added to gear waitlist."]
MessageWaited {
id: runtime_types::gprimitives::MessageId,
origin: ::core::option::Option<
runtime_types::gear_common::gas_provider::node::GasNodeId<
runtime_types::gprimitives::MessageId,
runtime_types::gprimitives::ReservationId,
>,
>,
reason: runtime_types::gear_common::event::Reason<
runtime_types::gear_common::event::MessageWaitedRuntimeReason,
runtime_types::gear_common::event::MessageWaitedSystemReason,
>,
expiration: ::core::primitive::u32,
},
#[codec(index = 5)]
#[doc = "Message is ready to continue its execution"]
#[doc = "and was removed from `Waitlist`."]
MessageWoken {
id: runtime_types::gprimitives::MessageId,
reason: runtime_types::gear_common::event::Reason<
runtime_types::gear_common::event::MessageWokenRuntimeReason,
runtime_types::gear_common::event::MessageWokenSystemReason,
>,
},
#[codec(index = 6)]
#[doc = "Any data related to program codes changed."]
CodeChanged {
id: runtime_types::gprimitives::CodeId,
change: runtime_types::gear_common::event::CodeChangeKind<
::core::primitive::u32,
>,
},
#[codec(index = 7)]
#[doc = "Any data related to programs changed."]
ProgramChanged {
id: runtime_types::gprimitives::ActorId,
change: runtime_types::gear_common::event::ProgramChangeKind<
::core::primitive::u32,
>,
},
#[codec(index = 8)]
#[doc = "The pseudo-inherent extrinsic that runs queue processing rolled back or not executed."]
QueueNotProcessed,
}
}
pub mod schedule {
use super::runtime_types;
#[derive(Debug, crate::gp::Decode, crate::gp::DecodeAsType, crate::gp::Encode)]
pub struct DbWeights {
pub read: runtime_types::sp_weights::weight_v2::Weight,
pub read_per_byte: runtime_types::sp_weights::weight_v2::Weight,
pub write: runtime_types::sp_weights::weight_v2::Weight,
pub write_per_byte: runtime_types::sp_weights::weight_v2::Weight,
}
#[derive(Debug, crate::gp::Decode, crate::gp::DecodeAsType, crate::gp::Encode)]
pub struct InstantiationWeights {
pub code_section_per_byte: runtime_types::sp_weights::weight_v2::Weight,
pub data_section_per_byte: runtime_types::sp_weights::weight_v2::Weight,
pub global_section_per_byte: runtime_types::sp_weights::weight_v2::Weight,
pub table_section_per_byte: runtime_types::sp_weights::weight_v2::Weight,
pub element_section_per_byte: runtime_types::sp_weights::weight_v2::Weight,
pub type_section_per_byte: runtime_types::sp_weights::weight_v2::Weight,
}
#[derive(Debug, crate::gp::Decode, crate::gp::DecodeAsType, crate::gp::Encode)]
pub struct InstructionWeights {
pub version: ::core::primitive::u32,
pub i64const: ::core::primitive::u32,
pub i64load: ::core::primitive::u32,
pub i32load: ::core::primitive::u32,
pub i64store: ::core::primitive::u32,
pub i32store: ::core::primitive::u32,
pub select: ::core::primitive::u32,
pub r#if: ::core::primitive::u32,
pub br: ::core::primitive::u32,
pub br_if: ::core::primitive::u32,
pub br_table: ::core::primitive::u32,
pub br_table_per_entry: ::core::primitive::u32,
pub call: ::core::primitive::u32,
pub call_indirect: ::core::primitive::u32,
pub call_indirect_per_param: ::core::primitive::u32,
pub call_per_local: ::core::primitive::u32,
pub local_get: ::core::primitive::u32,
pub local_set: ::core::primitive::u32,
pub local_tee: ::core::primitive::u32,
pub global_get: ::core::primitive::u32,
pub global_set: ::core::primitive::u32,
pub memory_current: ::core::primitive::u32,
pub i64clz: ::core::primitive::u32,
pub i32clz: ::core::primitive::u32,
pub i64ctz: ::core::primitive::u32,
pub i32ctz: ::core::primitive::u32,
pub i64popcnt: ::core::primitive::u32,
pub i32popcnt: ::core::primitive::u32,
pub i64eqz: ::core::primitive::u32,
pub i32eqz: ::core::primitive::u32,
pub i32extend8s: ::core::primitive::u32,
pub i32extend16s: ::core::primitive::u32,
pub i64extend8s: ::core::primitive::u32,
pub i64extend16s: ::core::primitive::u32,
pub i64extend32s: ::core::primitive::u32,
pub i64extendsi32: ::core::primitive::u32,
pub i64extendui32: ::core::primitive::u32,
pub i32wrapi64: ::core::primitive::u32,
pub i64eq: ::core::primitive::u32,
pub i32eq: ::core::primitive::u32,
pub i64ne: ::core::primitive::u32,
pub i32ne: ::core::primitive::u32,
pub i64lts: ::core::primitive::u32,
pub i32lts: ::core::primitive::u32,
pub i64ltu: ::core::primitive::u32,
pub i32ltu: ::core::primitive::u32,
pub i64gts: ::core::primitive::u32,
pub i32gts: ::core::primitive::u32,
pub i64gtu: ::core::primitive::u32,
pub i32gtu: ::core::primitive::u32,
pub i64les: ::core::primitive::u32,
pub i32les: ::core::primitive::u32,
pub i64leu: ::core::primitive::u32,
pub i32leu: ::core::primitive::u32,
pub i64ges: ::core::primitive::u32,
pub i32ges: ::core::primitive::u32,
pub i64geu: ::core::primitive::u32,
pub i32geu: ::core::primitive::u32,
pub i64add: ::core::primitive::u32,
pub i32add: ::core::primitive::u32,
pub i64sub: ::core::primitive::u32,
pub i32sub: ::core::primitive::u32,
pub i64mul: ::core::primitive::u32,
pub i32mul: ::core::primitive::u32,
pub i64divs: ::core::primitive::u32,
pub i32divs: ::core::primitive::u32,
pub i64divu: ::core::primitive::u32,
pub i32divu: ::core::primitive::u32,
pub i64rems: ::core::primitive::u32,
pub i32rems: ::core::primitive::u32,
pub i64remu: ::core::primitive::u32,
pub i32remu: ::core::primitive::u32,
pub i64and: ::core::primitive::u32,
pub i32and: ::core::primitive::u32,
pub i64or: ::core::primitive::u32,
pub i32or: ::core::primitive::u32,
pub i64xor: ::core::primitive::u32,
pub i32xor: ::core::primitive::u32,
pub i64shl: ::core::primitive::u32,
pub i32shl: ::core::primitive::u32,
pub i64shrs: ::core::primitive::u32,
pub i32shrs: ::core::primitive::u32,
pub i64shru: ::core::primitive::u32,
pub i32shru: ::core::primitive::u32,
pub i64rotl: ::core::primitive::u32,
pub i32rotl: ::core::primitive::u32,
pub i64rotr: ::core::primitive::u32,
pub i32rotr: ::core::primitive::u32,
}
#[derive(Debug, crate::gp::Decode, crate::gp::DecodeAsType, crate::gp::Encode)]
pub struct Limits {
pub stack_height: ::core::option::Option<::core::primitive::u32>,
pub globals: ::core::primitive::u32,
pub locals: ::core::primitive::u32,
pub parameters: ::core::primitive::u32,
pub memory_pages: ::core::primitive::u16,
pub table_size: ::core::primitive::u32,
pub table_number: ::core::primitive::u32,
pub br_table_size: ::core::primitive::u32,
pub subject_len: ::core::primitive::u32,
pub call_depth: ::core::primitive::u32,
pub payload_len: ::core::primitive::u32,
pub code_len: ::core::primitive::u32,
pub data_segments_amount: ::core::primitive::u32,
}
#[derive(Debug, crate::gp::Decode, crate::gp::DecodeAsType, crate::gp::Encode)]
pub struct MemoryWeights {
pub lazy_pages_signal_read: runtime_types::sp_weights::weight_v2::Weight,
pub lazy_pages_signal_write: runtime_types::sp_weights::weight_v2::Weight,
pub lazy_pages_signal_write_after_read:
runtime_types::sp_weights::weight_v2::Weight,
pub lazy_pages_host_func_read: runtime_types::sp_weights::weight_v2::Weight,
pub lazy_pages_host_func_write: runtime_types::sp_weights::weight_v2::Weight,
pub lazy_pages_host_func_write_after_read:
runtime_types::sp_weights::weight_v2::Weight,
pub load_page_data: runtime_types::sp_weights::weight_v2::Weight,
pub upload_page_data: runtime_types::sp_weights::weight_v2::Weight,
pub mem_grow: runtime_types::sp_weights::weight_v2::Weight,
pub mem_grow_per_page: runtime_types::sp_weights::weight_v2::Weight,
pub parachain_read_heuristic: runtime_types::sp_weights::weight_v2::Weight,
}
#[derive(Debug, crate::gp::Decode, crate::gp::DecodeAsType, crate::gp::Encode)]
pub struct RentWeights {
pub waitlist: runtime_types::sp_weights::weight_v2::Weight,
pub dispatch_stash: runtime_types::sp_weights::weight_v2::Weight,
pub reservation: runtime_types::sp_weights::weight_v2::Weight,
pub mailbox: runtime_types::sp_weights::weight_v2::Weight,
pub mailbox_threshold: runtime_types::sp_weights::weight_v2::Weight,
}
#[derive(Debug, crate::gp::Decode, crate::gp::DecodeAsType, crate::gp::Encode)]
pub struct Schedule {
pub limits: runtime_types::pallet_gear::schedule::Limits,
pub instruction_weights:
runtime_types::pallet_gear::schedule::InstructionWeights,
pub syscall_weights: runtime_types::pallet_gear::schedule::SyscallWeights,
pub memory_weights: runtime_types::pallet_gear::schedule::MemoryWeights,
pub rent_weights: runtime_types::pallet_gear::schedule::RentWeights,
pub db_weights: runtime_types::pallet_gear::schedule::DbWeights,
pub task_weights: runtime_types::pallet_gear::schedule::TaskWeights,
pub instantiation_weights:
runtime_types::pallet_gear::schedule::InstantiationWeights,
pub code_instrumentation_cost: runtime_types::sp_weights::weight_v2::Weight,
pub code_instrumentation_byte_cost:
runtime_types::sp_weights::weight_v2::Weight,
pub load_allocations_weight: runtime_types::sp_weights::weight_v2::Weight,
}
#[derive(Debug, crate::gp::Decode, crate::gp::DecodeAsType, crate::gp::Encode)]
pub struct SyscallWeights {
pub alloc: runtime_types::sp_weights::weight_v2::Weight,
pub free: runtime_types::sp_weights::weight_v2::Weight,
pub free_range: runtime_types::sp_weights::weight_v2::Weight,
pub free_range_per_page: runtime_types::sp_weights::weight_v2::Weight,
pub gr_reserve_gas: runtime_types::sp_weights::weight_v2::Weight,
pub gr_unreserve_gas: runtime_types::sp_weights::weight_v2::Weight,
pub gr_system_reserve_gas: runtime_types::sp_weights::weight_v2::Weight,
pub gr_gas_available: runtime_types::sp_weights::weight_v2::Weight,
pub gr_message_id: runtime_types::sp_weights::weight_v2::Weight,
pub gr_program_id: runtime_types::sp_weights::weight_v2::Weight,
pub gr_source: runtime_types::sp_weights::weight_v2::Weight,
pub gr_value: runtime_types::sp_weights::weight_v2::Weight,
pub gr_value_available: runtime_types::sp_weights::weight_v2::Weight,
pub gr_size: runtime_types::sp_weights::weight_v2::Weight,
pub gr_read: runtime_types::sp_weights::weight_v2::Weight,
pub gr_read_per_byte: runtime_types::sp_weights::weight_v2::Weight,
pub gr_env_vars: runtime_types::sp_weights::weight_v2::Weight,
pub gr_block_height: runtime_types::sp_weights::weight_v2::Weight,
pub gr_block_timestamp: runtime_types::sp_weights::weight_v2::Weight,
pub gr_random: runtime_types::sp_weights::weight_v2::Weight,
pub gr_reply_deposit: runtime_types::sp_weights::weight_v2::Weight,
pub gr_send: runtime_types::sp_weights::weight_v2::Weight,
pub gr_send_per_byte: runtime_types::sp_weights::weight_v2::Weight,
pub gr_send_wgas: runtime_types::sp_weights::weight_v2::Weight,
pub gr_send_wgas_per_byte: runtime_types::sp_weights::weight_v2::Weight,
pub gr_send_init: runtime_types::sp_weights::weight_v2::Weight,
pub gr_send_push: runtime_types::sp_weights::weight_v2::Weight,
pub gr_send_push_per_byte: runtime_types::sp_weights::weight_v2::Weight,
pub gr_send_commit: runtime_types::sp_weights::weight_v2::Weight,
pub gr_send_commit_wgas: runtime_types::sp_weights::weight_v2::Weight,
pub gr_reservation_send: runtime_types::sp_weights::weight_v2::Weight,
pub gr_reservation_send_per_byte: runtime_types::sp_weights::weight_v2::Weight,
pub gr_reservation_send_commit: runtime_types::sp_weights::weight_v2::Weight,
pub gr_reply_commit: runtime_types::sp_weights::weight_v2::Weight,
pub gr_reply_commit_wgas: runtime_types::sp_weights::weight_v2::Weight,
pub gr_reservation_reply: runtime_types::sp_weights::weight_v2::Weight,
pub gr_reservation_reply_per_byte: runtime_types::sp_weights::weight_v2::Weight,
pub gr_reservation_reply_commit: runtime_types::sp_weights::weight_v2::Weight,
pub gr_reply_push: runtime_types::sp_weights::weight_v2::Weight,
pub gr_reply: runtime_types::sp_weights::weight_v2::Weight,
pub gr_reply_per_byte: runtime_types::sp_weights::weight_v2::Weight,
pub gr_reply_wgas: runtime_types::sp_weights::weight_v2::Weight,
pub gr_reply_wgas_per_byte: runtime_types::sp_weights::weight_v2::Weight,
pub gr_reply_push_per_byte: runtime_types::sp_weights::weight_v2::Weight,
pub gr_reply_to: runtime_types::sp_weights::weight_v2::Weight,
pub gr_signal_code: runtime_types::sp_weights::weight_v2::Weight,
pub gr_signal_from: runtime_types::sp_weights::weight_v2::Weight,
pub gr_reply_input: runtime_types::sp_weights::weight_v2::Weight,
pub gr_reply_input_wgas: runtime_types::sp_weights::weight_v2::Weight,
pub gr_reply_push_input: runtime_types::sp_weights::weight_v2::Weight,
pub gr_reply_push_input_per_byte: runtime_types::sp_weights::weight_v2::Weight,
pub gr_send_input: runtime_types::sp_weights::weight_v2::Weight,
pub gr_send_input_wgas: runtime_types::sp_weights::weight_v2::Weight,
pub gr_send_push_input: runtime_types::sp_weights::weight_v2::Weight,
pub gr_send_push_input_per_byte: runtime_types::sp_weights::weight_v2::Weight,
pub gr_debug: runtime_types::sp_weights::weight_v2::Weight,
pub gr_debug_per_byte: runtime_types::sp_weights::weight_v2::Weight,
pub gr_reply_code: runtime_types::sp_weights::weight_v2::Weight,
pub gr_exit: runtime_types::sp_weights::weight_v2::Weight,
pub gr_leave: runtime_types::sp_weights::weight_v2::Weight,
pub gr_wait: runtime_types::sp_weights::weight_v2::Weight,
pub gr_wait_for: runtime_types::sp_weights::weight_v2::Weight,
pub gr_wait_up_to: runtime_types::sp_weights::weight_v2::Weight,
pub gr_wake: runtime_types::sp_weights::weight_v2::Weight,
pub gr_create_program: runtime_types::sp_weights::weight_v2::Weight,
pub gr_create_program_payload_per_byte:
runtime_types::sp_weights::weight_v2::Weight,
pub gr_create_program_salt_per_byte:
runtime_types::sp_weights::weight_v2::Weight,
pub gr_create_program_wgas: runtime_types::sp_weights::weight_v2::Weight,
pub gr_create_program_wgas_payload_per_byte:
runtime_types::sp_weights::weight_v2::Weight,
pub gr_create_program_wgas_salt_per_byte:
runtime_types::sp_weights::weight_v2::Weight,
}
#[derive(Debug, crate::gp::Decode, crate::gp::DecodeAsType, crate::gp::Encode)]
pub struct TaskWeights {
pub remove_gas_reservation: runtime_types::sp_weights::weight_v2::Weight,
pub send_user_message_to_mailbox: runtime_types::sp_weights::weight_v2::Weight,
pub send_user_message: runtime_types::sp_weights::weight_v2::Weight,
pub send_dispatch: runtime_types::sp_weights::weight_v2::Weight,
pub wake_message: runtime_types::sp_weights::weight_v2::Weight,
pub wake_message_no_wake: runtime_types::sp_weights::weight_v2::Weight,
pub remove_from_waitlist: runtime_types::sp_weights::weight_v2::Weight,
pub remove_from_mailbox: runtime_types::sp_weights::weight_v2::Weight,
}
}
}
pub mod pallet_gear_bank {
use super::runtime_types;
pub mod pallet {
use super::runtime_types;
#[derive(Debug, crate::gp::Decode, crate::gp::DecodeAsType, crate::gp::Encode)]
pub struct BankAccount<_0> {
pub gas: _0,
pub value: _0,
}
#[derive(Debug, crate::gp::Decode, crate::gp::DecodeAsType, crate::gp::Encode)]
#[doc = "The `Error` enum of this pallet."]
pub enum Error {
#[codec(index = 0)]
#[doc = "Insufficient user balance."]
InsufficientBalance,
#[codec(index = 1)]
#[doc = "Insufficient user's bank account gas balance."]
InsufficientGasBalance,
#[codec(index = 2)]
#[doc = "Insufficient user's bank account gas balance."]
InsufficientValueBalance,
#[codec(index = 3)]
#[doc = "Insufficient bank account balance."]
#[doc = "**Must be unreachable in Gear main protocol.**"]
InsufficientBankBalance,
#[codec(index = 4)]
#[doc = "Deposit of funds that will not keep bank account alive."]
#[doc = "**Must be unreachable in Gear main protocol.**"]
InsufficientDeposit,
#[codec(index = 5)]
#[doc = "Overflow during funds transfer."]
#[doc = "**Must be unreachable in Gear main protocol.**"]
Overflow,
}
}
}
pub mod pallet_gear_debug {
use super::runtime_types;
pub mod pallet {
use super::runtime_types;
#[derive(Debug, crate::gp::Decode, crate::gp::DecodeAsType, crate::gp::Encode)]
#[doc = "Contains a variant per dispatchable extrinsic that this pallet has."]
pub enum Call {
#[codec(index = 0)]
#[doc = "Turn the debug mode on and off."]
#[doc = ""]
#[doc = "The origin must be the root."]
#[doc = ""]
#[doc = "Parameters:"]
#[doc = "- `debug_mode_on`: if true, debug mode will be turned on, turned off otherwise."]
#[doc = ""]
#[doc = "Emits the following events:"]
#[doc = "- `DebugMode(debug_mode_on)."]
enable_debug_mode {
debug_mode_on: ::core::primitive::bool,
},
#[codec(index = 1)]
#[doc = "A dummy extrinsic with programmatically set weight."]
#[doc = ""]
#[doc = "Used in tests to exhaust block resources."]
#[doc = ""]
#[doc = "Parameters:"]
#[doc = "- `fraction`: the fraction of the `max_extrinsic` the extrinsic will use."]
exhaust_block_resources {
fraction: runtime_types::sp_arithmetic::per_things::Percent,
},
}
#[derive(Debug, crate::gp::Decode, crate::gp::DecodeAsType, crate::gp::Encode)]
pub struct DebugData {
pub dispatch_queue: ::subxt::ext::subxt_core::alloc::vec::Vec<
runtime_types::gear_core::message::stored::StoredDispatch,
>,
pub programs: ::subxt::ext::subxt_core::alloc::vec::Vec<
runtime_types::pallet_gear_debug::pallet::ProgramDetails,
>,
}
#[derive(Debug, crate::gp::Decode, crate::gp::DecodeAsType, crate::gp::Encode)]
#[doc = "The `Error` enum of this pallet."]
pub enum Error {}
#[derive(Debug, crate::gp::Decode, crate::gp::DecodeAsType, crate::gp::Encode)]
#[doc = "The `Event` enum of this pallet"]
pub enum Event {
#[codec(index = 0)]
DebugMode(::core::primitive::bool),
#[codec(index = 1)]
#[doc = "A snapshot of the debug data: programs and message queue ('debug mode' only)"]
DebugDataSnapshot(runtime_types::pallet_gear_debug::pallet::DebugData),
}
#[derive(Debug, crate::gp::Decode, crate::gp::DecodeAsType, crate::gp::Encode)]
pub struct ProgramDetails {
pub id: runtime_types::gprimitives::ActorId,
pub state: runtime_types::pallet_gear_debug::pallet::ProgramState,
}
#[derive(Debug, crate::gp::Decode, crate::gp::DecodeAsType, crate::gp::Encode)]
pub struct ProgramInfo {
pub static_pages: runtime_types::gear_core::pages::PagesAmount,
pub persistent_pages: ::subxt::ext::subxt_core::utils::KeyedVec<
runtime_types::gear_core::pages::Page,
runtime_types::gear_core::memory::PageBuf,
>,
pub code_hash: ::subxt::ext::subxt_core::utils::H256,
}
#[derive(Debug, crate::gp::Decode, crate::gp::DecodeAsType, crate::gp::Encode)]
pub enum ProgramState {
#[codec(index = 0)]
Active(runtime_types::pallet_gear_debug::pallet::ProgramInfo),
#[codec(index = 1)]
Terminated,
}
}
}
pub mod pallet_gear_eth_bridge {
use super::runtime_types;
pub mod internal {
use super::runtime_types;
#[derive(Debug, crate::gp::Decode, crate::gp::DecodeAsType, crate::gp::Encode)]
pub struct EthMessage {
pub nonce: runtime_types::primitive_types::U256,
pub source: ::subxt::ext::subxt_core::utils::H256,
pub destination: ::subxt::ext::subxt_core::utils::H160,
pub payload: ::subxt::ext::subxt_core::alloc::vec::Vec<::core::primitive::u8>,
}
}
pub mod pallet {
use super::runtime_types;
#[derive(Debug, crate::gp::Decode, crate::gp::DecodeAsType, crate::gp::Encode)]
#[doc = "Contains a variant per dispatchable extrinsic that this pallet has."]
pub enum Call {
#[codec(index = 0)]
#[doc = "Root extrinsic that pauses pallet."]
#[doc = "When paused, no new messages could be queued."]
pause,
#[codec(index = 1)]
#[doc = "Root extrinsic that unpauses pallet."]
#[doc = "When paused, no new messages could be queued."]
unpause,
#[codec(index = 2)]
#[doc = "Extrinsic that inserts message in a bridging queue,"]
#[doc = "updating queue merkle root at the end of the block."]
send_eth_message {
destination: ::subxt::ext::subxt_core::utils::H160,
payload: ::subxt::ext::subxt_core::alloc::vec::Vec<::core::primitive::u8>,
},
}
#[derive(Debug, crate::gp::Decode, crate::gp::DecodeAsType, crate::gp::Encode)]
#[doc = "Pallet Gear Eth Bridge's error."]
pub enum Error {
#[codec(index = 0)]
#[doc = "The error happens when bridge got called before"]
#[doc = "proper initialization after deployment."]
BridgeIsNotYetInitialized,
#[codec(index = 1)]
#[doc = "The error happens when bridge got called when paused."]
BridgeIsPaused,
#[codec(index = 2)]
#[doc = "The error happens when bridging message sent with too big payload."]
MaxPayloadSizeExceeded,
#[codec(index = 3)]
#[doc = "The error happens when bridging queue capacity exceeded,"]
#[doc = "so message couldn't be sent."]
QueueCapacityExceeded,
#[codec(index = 4)]
#[doc = "The error happens when bridging thorough builtin and message value"]
#[doc = "is inapplicable to operation or insufficient."]
IncorrectValueApplied,
}
#[derive(Debug, crate::gp::Decode, crate::gp::DecodeAsType, crate::gp::Encode)]
#[doc = "Pallet Gear Eth Bridge's event."]
pub enum Event {
#[codec(index = 0)]
#[doc = "Grandpa validator's keys set was hashed and set in storage at"]
#[doc = "first block of the last session in the era."]
AuthoritySetHashChanged(::subxt::ext::subxt_core::utils::H256),
#[codec(index = 1)]
#[doc = "Bridge got cleared on initialization of the second block in a new era."]
BridgeCleared,
#[codec(index = 2)]
#[doc = "Optimistically, single-time called event defining that pallet"]
#[doc = "got initialized and started processing session changes,"]
#[doc = "as well as putting initial zeroed queue merkle root."]
BridgeInitialized,
#[codec(index = 3)]
#[doc = "Bridge was paused and temporary doesn't process any incoming requests."]
BridgePaused,
#[codec(index = 4)]
#[doc = "Bridge was unpaused and from now on processes any incoming requests."]
BridgeUnpaused,
#[codec(index = 5)]
#[doc = "A new message was queued for bridging."]
MessageQueued {
message: runtime_types::pallet_gear_eth_bridge::internal::EthMessage,
hash: ::subxt::ext::subxt_core::utils::H256,
},
#[codec(index = 6)]
#[doc = "Merkle root of the queue changed: new messages queued within the block."]
QueueMerkleRootChanged(::subxt::ext::subxt_core::utils::H256),
}
}
}
pub mod pallet_gear_gas {
use super::runtime_types;
pub mod pallet {
use super::runtime_types;
#[derive(Debug, crate::gp::Decode, crate::gp::DecodeAsType, crate::gp::Encode)]
#[doc = "The `Error` enum of this pallet."]
pub enum Error {
#[codec(index = 0)]
Forbidden,
#[codec(index = 1)]
NodeAlreadyExists,
#[codec(index = 2)]
InsufficientBalance,
#[codec(index = 3)]
NodeNotFound,
#[codec(index = 4)]
NodeWasConsumed,
#[codec(index = 5)]
#[doc = "Errors stating that gas tree has been invalidated"]
ParentIsLost,
#[codec(index = 6)]
ParentHasNoChildren,
#[codec(index = 7)]
#[doc = "Output of `Tree::consume` procedure that wasn't expected."]
#[doc = ""]
#[doc = "Outputs of consumption procedure are determined. The error is returned"]
#[doc = "when unexpected one occurred. That signals, that algorithm works wrong"]
#[doc = "and expected invariants are not correct."]
UnexpectedConsumeOutput,
#[codec(index = 8)]
#[doc = "Node type that can't occur if algorithm work well"]
UnexpectedNodeType,
#[codec(index = 9)]
#[doc = "Value must have been caught, but was missed or blocked (for more info see `ValueNode::catch_value`)."]
ValueIsNotCaught,
#[codec(index = 10)]
#[doc = "Value must have been caught or moved upstream, but was blocked (for more info see `ValueNode::catch_value`)."]
ValueIsBlocked,
#[codec(index = 11)]
#[doc = "Value must have been blocked, but was either moved or caught (for more info see `ValueNode::catch_value`)."]
ValueIsNotBlocked,
#[codec(index = 12)]
#[doc = "`GasTree::consume` called on node, which has some balance locked."]
ConsumedWithLock,
#[codec(index = 13)]
#[doc = "`GasTree::consume` called on node, which has some system reservation."]
ConsumedWithSystemReservation,
#[codec(index = 14)]
#[doc = "`GasTree::create` called with some value amount leading to"]
#[doc = "the total value overflow."]
TotalValueIsOverflowed,
#[codec(index = 15)]
#[doc = "Either `GasTree::consume` or `GasTree::spent` called on a node creating"]
#[doc = "negative imbalance which leads to the total value drop below 0."]
TotalValueIsUnderflowed,
}
}
}
pub mod pallet_gear_messenger {
use super::runtime_types;
pub mod pallet {
use super::runtime_types;
#[derive(Debug, crate::gp::Decode, crate::gp::DecodeAsType, crate::gp::Encode)]
#[doc = "The `Error` enum of this pallet."]
pub enum Error {
#[codec(index = 0)]
#[doc = "Occurs when given key already exists in queue."]
QueueDuplicateKey,
#[codec(index = 1)]
#[doc = "Occurs when queue's element wasn't found in storage."]
QueueElementNotFound,
#[codec(index = 2)]
#[doc = "Occurs when queue's head should contain value,"]
#[doc = "but it's empty for some reason."]
QueueHeadShouldBeSet,
#[codec(index = 3)]
#[doc = "Occurs when queue's head should be empty,"]
#[doc = "but it contains value for some reason."]
QueueHeadShouldNotBeSet,
#[codec(index = 4)]
#[doc = "Occurs when queue's tail element contains link"]
#[doc = "to the next element."]
QueueTailHasNextKey,
#[codec(index = 5)]
#[doc = "Occurs when while searching queue's pre-tail,"]
#[doc = "element wasn't found."]
QueueTailParentNotFound,
#[codec(index = 6)]
#[doc = "Occurs when queue's tail should contain value,"]
#[doc = "but it's empty for some reason."]
QueueTailShouldBeSet,
#[codec(index = 7)]
#[doc = "Occurs when queue's tail should be empty,"]
#[doc = "but it contains value for some reason."]
QueueTailShouldNotBeSet,
#[codec(index = 8)]
#[doc = "Occurs when given value already exists in mailbox."]
MailboxDuplicateKey,
#[codec(index = 9)]
#[doc = "Occurs when mailbox's element wasn't found in storage."]
MailboxElementNotFound,
#[codec(index = 10)]
#[doc = "Occurs when given value already exists in waitlist."]
WaitlistDuplicateKey,
#[codec(index = 11)]
#[doc = "Occurs when waitlist's element wasn't found in storage."]
WaitlistElementNotFound,
}
}
}
pub mod pallet_gear_payment {
use super::runtime_types;
#[derive(Debug, crate::gp::Decode, crate::gp::DecodeAsType, crate::gp::Encode)]
pub struct CustomChargeTransactionPayment<_0>(
pub runtime_types::pallet_transaction_payment::ChargeTransactionPayment,
#[codec(skip)] pub ::core::marker::PhantomData<_0>,
);
}
pub mod pallet_gear_program {
use super::runtime_types;
pub mod pallet {
use super::runtime_types;
#[derive(Debug, crate::gp::Decode, crate::gp::DecodeAsType, crate::gp::Encode)]
#[doc = "The `Error` enum of this pallet."]
pub enum Error {
#[codec(index = 0)]
DuplicateItem,
#[codec(index = 1)]
ProgramNotFound,
#[codec(index = 2)]
NotActiveProgram,
#[codec(index = 3)]
CannotFindDataForPage,
#[codec(index = 4)]
ProgramCodeNotFound,
}
}
}
pub mod pallet_gear_scheduler {
use super::runtime_types;
pub mod pallet {
use super::runtime_types;
#[derive(Debug, crate::gp::Decode, crate::gp::DecodeAsType, crate::gp::Encode)]
#[doc = "The `Error` enum of this pallet."]
pub enum Error {
#[codec(index = 0)]
#[doc = "Occurs when given task already exists in task pool."]
DuplicateTask,
#[codec(index = 1)]
#[doc = "Occurs when task wasn't found in storage."]
TaskNotFound,
}
}
}
pub mod pallet_gear_staking_rewards {
use super::runtime_types;
pub mod extension {
use super::runtime_types;
#[derive(Debug, crate::gp::Decode, crate::gp::DecodeAsType, crate::gp::Encode)]
pub struct StakingBlackList;
}
pub mod pallet {
use super::runtime_types;
#[derive(Debug, crate::gp::Decode, crate::gp::DecodeAsType, crate::gp::Encode)]
#[doc = "Contains a variant per dispatchable extrinsic that this pallet has."]
pub enum Call {
#[codec(index = 0)]
refill { value: ::core::primitive::u128 },
#[codec(index = 1)]
force_refill {
from: ::subxt::ext::subxt_core::utils::MultiAddress<
::subxt::ext::subxt_core::utils::AccountId32,
(),
>,
value: ::core::primitive::u128,
},
#[codec(index = 2)]
withdraw {
to: ::subxt::ext::subxt_core::utils::MultiAddress<
::subxt::ext::subxt_core::utils::AccountId32,
(),
>,
value: ::core::primitive::u128,
},
#[codec(index = 3)]
align_supply { target: ::core::primitive::u128 },
}
#[derive(Debug, crate::gp::Decode, crate::gp::DecodeAsType, crate::gp::Encode)]
#[doc = "Error for the staking rewards pallet."]
pub enum Error {
#[codec(index = 0)]
#[doc = "Pool not replenished due to error."]
FailureToRefillPool,
#[codec(index = 1)]
#[doc = "Failure to withdraw funds from the rewards pool."]
FailureToWithdrawFromPool,
}
#[derive(Debug, crate::gp::Decode, crate::gp::DecodeAsType, crate::gp::Encode)]
#[doc = "The `Event` enum of this pallet"]
pub enum Event {
#[codec(index = 0)]
#[doc = "Deposited to the pool."]
Deposited { amount: ::core::primitive::u128 },
#[codec(index = 1)]
#[doc = "Transferred from the pool to an external account."]
Withdrawn { amount: ::core::primitive::u128 },
#[codec(index = 2)]
#[doc = "Burned from the pool."]
Burned { amount: ::core::primitive::u128 },
#[codec(index = 3)]
#[doc = "Minted to the pool."]
Minted { amount: ::core::primitive::u128 },
}
}
}
pub mod pallet_gear_voucher {
use super::runtime_types;
pub mod internal {
use super::runtime_types;
#[derive(Debug, crate::gp::Decode, crate::gp::DecodeAsType, crate::gp::Encode)]
pub enum PrepaidCall<_0> {
#[codec(index = 0)]
SendMessage {
destination: runtime_types::gprimitives::ActorId,
payload: ::subxt::ext::subxt_core::alloc::vec::Vec<::core::primitive::u8>,
gas_limit: ::core::primitive::u64,
value: _0,
keep_alive: ::core::primitive::bool,
},
#[codec(index = 1)]
SendReply {
reply_to_id: runtime_types::gprimitives::MessageId,
payload: ::subxt::ext::subxt_core::alloc::vec::Vec<::core::primitive::u8>,
gas_limit: ::core::primitive::u64,
value: _0,
keep_alive: ::core::primitive::bool,
},
#[codec(index = 2)]
UploadCode {
code: ::subxt::ext::subxt_core::alloc::vec::Vec<::core::primitive::u8>,
},
#[codec(index = 3)]
DeclineVoucher,
}
#[derive(Debug, crate::gp::Decode, crate::gp::DecodeAsType, crate::gp::Encode)]
pub struct VoucherId(pub [::core::primitive::u8; 32usize]);
#[derive(Debug, crate::gp::Decode, crate::gp::DecodeAsType, crate::gp::Encode)]
pub struct VoucherInfo<_0, _1> {
pub owner: _0,
pub programs: ::core::option::Option<
::subxt::ext::subxt_core::alloc::vec::Vec<
runtime_types::gprimitives::ActorId,
>,
>,
pub code_uploading: ::core::primitive::bool,
pub expiry: _1,
}
}
pub mod pallet {
use super::runtime_types;
#[derive(Debug, crate::gp::Decode, crate::gp::DecodeAsType, crate::gp::Encode)]
#[doc = "Contains a variant per dispatchable extrinsic that this pallet has."]
pub enum Call {
#[codec(index = 0)]
#[doc = "Issue a new voucher."]
#[doc = ""]
#[doc = "Deposits event `VoucherIssued`, that contains `VoucherId` to be"]
#[doc = "used by spender for balance-less on-chain interactions."]
#[doc = ""]
#[doc = "Arguments:"]
#[doc = "* spender: user id that is eligible to use the voucher;"]
#[doc = "* balance: voucher balance could be used for transactions"]
#[doc = " fees and gas;"]
#[doc = "* programs: pool of programs spender can interact with,"]
#[doc = " if None - means any program,"]
#[doc = " limited by Config param;"]
#[doc = "* code_uploading:"]
#[doc = " allow voucher to be used as payer for `upload_code`"]
#[doc = " transactions fee;"]
#[doc = "* duration: amount of blocks voucher could be used by spender"]
#[doc = " and couldn't be revoked by owner."]
#[doc = " Must be out in [MinDuration; MaxDuration] constants."]
#[doc = " Expiration block of the voucher calculates as:"]
#[doc = " current bn (extrinsic exec bn) + duration + 1."]
issue {
spender: ::subxt::ext::subxt_core::utils::AccountId32,
balance: ::core::primitive::u128,
programs: ::core::option::Option<
::subxt::ext::subxt_core::alloc::vec::Vec<
runtime_types::gprimitives::ActorId,
>,
>,
code_uploading: ::core::primitive::bool,
duration: ::core::primitive::u32,
},
#[codec(index = 1)]
#[doc = "Execute prepaid call with given voucher id."]
#[doc = ""]
#[doc = "Arguments:"]
#[doc = "* voucher_id: associated with origin existing vouchers id,"]
#[doc = " that should be used to pay for fees and gas"]
#[doc = " within the call;"]
#[doc = "* call: prepaid call that is requested to execute."]
call {
voucher_id: runtime_types::pallet_gear_voucher::internal::VoucherId,
call: runtime_types::pallet_gear_voucher::internal::PrepaidCall<
::core::primitive::u128,
>,
},
#[codec(index = 2)]
#[doc = "Revoke existing voucher."]
#[doc = ""]
#[doc = "This extrinsic revokes existing voucher, if current block is greater"]
#[doc = "than expiration block of the voucher (it is no longer valid)."]
#[doc = ""]
#[doc = "Currently it means sending of all balance from voucher account to"]
#[doc = "voucher owner without voucher removal from storage map, but this"]
#[doc = "behavior may change in future, as well as the origin validation:"]
#[doc = "only owner is able to revoke voucher now."]
#[doc = ""]
#[doc = "Arguments:"]
#[doc = "* spender: account id of the voucher spender;"]
#[doc = "* voucher_id: voucher id to be revoked."]
revoke {
spender: ::subxt::ext::subxt_core::utils::AccountId32,
voucher_id: runtime_types::pallet_gear_voucher::internal::VoucherId,
},
#[codec(index = 3)]
#[doc = "Update existing voucher."]
#[doc = ""]
#[doc = "This extrinsic updates existing voucher: it can only extend vouchers"]
#[doc = "rights in terms of balance, validity or programs to interact pool."]
#[doc = ""]
#[doc = "Can only be called by the voucher owner."]
#[doc = ""]
#[doc = "Arguments:"]
#[doc = "* spender: account id of the voucher spender;"]
#[doc = "* voucher_id: voucher id to be updated;"]
#[doc = "* move_ownership: optionally moves ownership to another account;"]
#[doc = "* balance_top_up: optionally top ups balance of the voucher from"]
#[doc = " origins balance;"]
#[doc = "* append_programs: optionally extends pool of programs by"]
#[doc = " `Some(programs_set)` passed or allows"]
#[doc = " it to interact with any program by"]
#[doc = " `None` passed;"]
#[doc = "* code_uploading: optionally allows voucher to be used to pay"]
#[doc = " fees for `upload_code` extrinsics;"]
#[doc = "* prolong_duration: optionally increases expiry block number."]
#[doc = " If voucher is expired, prolongs since current bn."]
#[doc = " Validity prolongation (since current block number"]
#[doc = " for expired or since storage written expiry)"]
#[doc = " should be in [MinDuration; MaxDuration], in other"]
#[doc = " words voucher couldn't have expiry greater than"]
#[doc = " current block number + MaxDuration."]
update {
spender: ::subxt::ext::subxt_core::utils::AccountId32,
voucher_id: runtime_types::pallet_gear_voucher::internal::VoucherId,
move_ownership:
::core::option::Option<::subxt::ext::subxt_core::utils::AccountId32>,
balance_top_up: ::core::option::Option<::core::primitive::u128>,
append_programs: ::core::option::Option<
::core::option::Option<
::subxt::ext::subxt_core::alloc::vec::Vec<
runtime_types::gprimitives::ActorId,
>,
>,
>,
code_uploading: ::core::option::Option<::core::primitive::bool>,
prolong_duration: ::core::option::Option<::core::primitive::u32>,
},
#[codec(index = 4)]
#[doc = "Decline existing and not expired voucher."]
#[doc = ""]
#[doc = "This extrinsic expires voucher of the caller, if it's still active,"]
#[doc = "allowing it to be revoked."]
#[doc = ""]
#[doc = "Arguments:"]
#[doc = "* voucher_id: voucher id to be declined."]
decline {
voucher_id: runtime_types::pallet_gear_voucher::internal::VoucherId,
},
}
#[derive(Debug, crate::gp::Decode, crate::gp::DecodeAsType, crate::gp::Encode)]
#[doc = "The `Error` enum of this pallet."]
pub enum Error {
#[codec(index = 0)]
#[doc = "The origin is not eligible to execute call."]
BadOrigin,
#[codec(index = 1)]
#[doc = "Error trying transfer balance to/from voucher account."]
BalanceTransfer,
#[codec(index = 2)]
#[doc = "Destination program is not in whitelisted set for voucher."]
InappropriateDestination,
#[codec(index = 3)]
#[doc = "Voucher with given identifier doesn't exist for given spender id."]
InexistentVoucher,
#[codec(index = 4)]
#[doc = "Voucher still valid and couldn't be revoked."]
IrrevocableYet,
#[codec(index = 5)]
#[doc = "Try to whitelist more programs than allowed."]
MaxProgramsLimitExceeded,
#[codec(index = 6)]
#[doc = "Failed to query destination of the prepaid call."]
UnknownDestination,
#[codec(index = 7)]
#[doc = "Voucher has expired and couldn't be used."]
VoucherExpired,
#[codec(index = 8)]
#[doc = "Voucher issue/prolongation duration out of [min; max] constants."]
DurationOutOfBounds,
#[codec(index = 9)]
#[doc = "Voucher update function tries to cut voucher ability of code upload."]
CodeUploadingEnabled,
#[codec(index = 10)]
#[doc = "Voucher is disabled for code uploading, but requested."]
CodeUploadingDisabled,
}
#[derive(Debug, crate::gp::Decode, crate::gp::DecodeAsType, crate::gp::Encode)]
#[doc = "Pallet Gear Voucher event."]
pub enum Event {
#[codec(index = 0)]
#[doc = "Voucher has been issued."]
VoucherIssued {
owner: ::subxt::ext::subxt_core::utils::AccountId32,
spender: ::subxt::ext::subxt_core::utils::AccountId32,
voucher_id: runtime_types::pallet_gear_voucher::internal::VoucherId,
},
#[codec(index = 1)]
#[doc = "Voucher has been revoked by owner."]
#[doc = ""]
#[doc = "NOTE: currently means only \"refunded\"."]
VoucherRevoked {
spender: ::subxt::ext::subxt_core::utils::AccountId32,
voucher_id: runtime_types::pallet_gear_voucher::internal::VoucherId,
},
#[codec(index = 2)]
#[doc = "Voucher has been updated."]
VoucherUpdated {
spender: ::subxt::ext::subxt_core::utils::AccountId32,
voucher_id: runtime_types::pallet_gear_voucher::internal::VoucherId,
new_owner:
::core::option::Option<::subxt::ext::subxt_core::utils::AccountId32>,
},
#[codec(index = 3)]
#[doc = "Voucher has been declined (set to expired state)."]
VoucherDeclined {
spender: ::subxt::ext::subxt_core::utils::AccountId32,
voucher_id: runtime_types::pallet_gear_voucher::internal::VoucherId,
},
}
}
}
pub mod pallet_grandpa {
use super::runtime_types;
pub mod pallet {
use super::runtime_types;
#[derive(Debug, crate::gp::Decode, crate::gp::DecodeAsType, crate::gp::Encode)]
#[doc = "Contains a variant per dispatchable extrinsic that this pallet has."]
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: ::subxt::ext::subxt_core::alloc::boxed::Box<
runtime_types::sp_consensus_grandpa::EquivocationProof<
::subxt::ext::subxt_core::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: ::subxt::ext::subxt_core::alloc::boxed::Box<
runtime_types::sp_consensus_grandpa::EquivocationProof<
::subxt::ext::subxt_core::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(Debug, crate::gp::Decode, crate::gp::DecodeAsType, crate::gp::Encode)]
#[doc = "The `Error` enum of this pallet."]
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(Debug, crate::gp::Decode, crate::gp::DecodeAsType, crate::gp::Encode)]
#[doc = "The `Event` enum of this pallet"]
pub enum Event {
#[codec(index = 0)]
#[doc = "New authority set has been applied."]
NewAuthorities {
authority_set: ::subxt::ext::subxt_core::alloc::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(Debug, crate::gp::Decode, crate::gp::DecodeAsType, crate::gp::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(Debug, crate::gp::Decode, crate::gp::DecodeAsType, crate::gp::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 legacy {
use super::runtime_types;
#[derive(Debug, crate::gp::Decode, crate::gp::DecodeAsType, crate::gp::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,
}
}
pub mod pallet {
use super::runtime_types;
#[derive(Debug, crate::gp::Decode, crate::gp::DecodeAsType, crate::gp::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."]
add_registrar {
account: ::subxt::ext::subxt_core::utils::MultiAddress<
::subxt::ext::subxt_core::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."]
set_identity {
info: ::subxt::ext::subxt_core::alloc::boxed::Box<
runtime_types::pallet_identity::legacy::IdentityInfo,
>,
},
#[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."]
set_subs {
subs: ::subxt::ext::subxt_core::alloc::vec::Vec<(
::subxt::ext::subxt_core::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."]
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 = "Registrars::<T>::get().get(reg_index).unwrap().fee"]
#[doc = "```"]
#[doc = ""]
#[doc = "Emits `JudgementRequested` if successful."]
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."]
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."]
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."]
set_account_id {
#[codec(compact)]
index: ::core::primitive::u32,
new: ::subxt::ext::subxt_core::utils::MultiAddress<
::subxt::ext::subxt_core::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."]
set_fields {
#[codec(compact)]
index: ::core::primitive::u32,
fields: ::core::primitive::u64,
},
#[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 [`IdentityInformationProvider`] for that the judgement is"]
#[doc = " provided."]
#[doc = ""]
#[doc = "Note: Judgements do not apply to a username."]
#[doc = ""]
#[doc = "Emits `JudgementGiven` if successful."]
provide_judgement {
#[codec(compact)]
reg_index: ::core::primitive::u32,
target: ::subxt::ext::subxt_core::utils::MultiAddress<
::subxt::ext::subxt_core::utils::AccountId32,
(),
>,
judgement: runtime_types::pallet_identity::types::Judgement<
::core::primitive::u128,
>,
identity: ::subxt::ext::subxt_core::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."]
kill_identity {
target: ::subxt::ext::subxt_core::utils::MultiAddress<
::subxt::ext::subxt_core::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::ext::subxt_core::utils::MultiAddress<
::subxt::ext::subxt_core::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::ext::subxt_core::utils::MultiAddress<
::subxt::ext::subxt_core::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::ext::subxt_core::utils::MultiAddress<
::subxt::ext::subxt_core::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,
#[codec(index = 15)]
#[doc = "Add an `AccountId` with permission to grant usernames with a given `suffix` appended."]
#[doc = ""]
#[doc = "The authority can grant up to `allocation` usernames. To top up their allocation, they"]
#[doc = "should just issue (or request via governance) a new `add_username_authority` call."]
add_username_authority {
authority: ::subxt::ext::subxt_core::utils::MultiAddress<
::subxt::ext::subxt_core::utils::AccountId32,
(),
>,
suffix: ::subxt::ext::subxt_core::alloc::vec::Vec<::core::primitive::u8>,
allocation: ::core::primitive::u32,
},
#[codec(index = 16)]
#[doc = "Remove `authority` from the username authorities."]
remove_username_authority {
authority: ::subxt::ext::subxt_core::utils::MultiAddress<
::subxt::ext::subxt_core::utils::AccountId32,
(),
>,
},
#[codec(index = 17)]
#[doc = "Set the username for `who`. Must be called by a username authority."]
#[doc = ""]
#[doc = "The authority must have an `allocation`. Users can either pre-sign their usernames or"]
#[doc = "accept them later."]
#[doc = ""]
#[doc = "Usernames must:"]
#[doc = " - Only contain lowercase ASCII characters or digits."]
#[doc = " - When combined with the suffix of the issuing authority be _less than_ the"]
#[doc = " `MaxUsernameLength`."]
set_username_for {
who: ::subxt::ext::subxt_core::utils::MultiAddress<
::subxt::ext::subxt_core::utils::AccountId32,
(),
>,
username: ::subxt::ext::subxt_core::alloc::vec::Vec<::core::primitive::u8>,
signature:
::core::option::Option<runtime_types::sp_runtime::MultiSignature>,
},
#[codec(index = 18)]
#[doc = "Accept a given username that an `authority` granted. The call must include the full"]
#[doc = "username, as in `username.suffix`."]
accept_username {
username: runtime_types::bounded_collections::bounded_vec::BoundedVec<
::core::primitive::u8,
>,
},
#[codec(index = 19)]
#[doc = "Remove an expired username approval. The username was approved by an authority but never"]
#[doc = "accepted by the user and must now be beyond its expiration. The call must include the"]
#[doc = "full username, as in `username.suffix`."]
remove_expired_approval {
username: runtime_types::bounded_collections::bounded_vec::BoundedVec<
::core::primitive::u8,
>,
},
#[codec(index = 20)]
#[doc = "Set a given username as the primary. The username should include the suffix."]
set_primary_username {
username: runtime_types::bounded_collections::bounded_vec::BoundedVec<
::core::primitive::u8,
>,
},
#[codec(index = 21)]
#[doc = "Remove a username that corresponds to an account with no identity. Exists when a user"]
#[doc = "gets a username but then calls `clear_identity`."]
remove_dangling_username {
username: runtime_types::bounded_collections::bounded_vec::BoundedVec<
::core::primitive::u8,
>,
},
}
#[derive(Debug, crate::gp::Decode, crate::gp::DecodeAsType, crate::gp::Encode)]
#[doc = "The `Error` enum of this pallet."]
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 = "Maximum amount of registrars reached. Cannot add any more."]
TooManyRegistrars,
#[codec(index = 12)]
#[doc = "Account ID is already named."]
AlreadyClaimed,
#[codec(index = 13)]
#[doc = "Sender is not a sub-account."]
NotSub,
#[codec(index = 14)]
#[doc = "Sub-account isn't owned by sender."]
NotOwned,
#[codec(index = 15)]
#[doc = "The provided judgement was for a different identity."]
JudgementForDifferentIdentity,
#[codec(index = 16)]
#[doc = "Error that occurs when there is an issue paying for judgement."]
JudgementPaymentFailed,
#[codec(index = 17)]
#[doc = "The provided suffix is too long."]
InvalidSuffix,
#[codec(index = 18)]
#[doc = "The sender does not have permission to issue a username."]
NotUsernameAuthority,
#[codec(index = 19)]
#[doc = "The authority cannot allocate any more usernames."]
NoAllocation,
#[codec(index = 20)]
#[doc = "The signature on a username was not valid."]
InvalidSignature,
#[codec(index = 21)]
#[doc = "Setting this username requires a signature, but none was provided."]
RequiresSignature,
#[codec(index = 22)]
#[doc = "The username does not meet the requirements."]
InvalidUsername,
#[codec(index = 23)]
#[doc = "The username is already taken."]
UsernameTaken,
#[codec(index = 24)]
#[doc = "The requested username does not exist."]
NoUsername,
#[codec(index = 25)]
#[doc = "The username cannot be forcefully removed because it can still be accepted."]
NotExpired,
}
#[derive(Debug, crate::gp::Decode, crate::gp::DecodeAsType, crate::gp::Encode)]
#[doc = "The `Event` enum of this pallet"]
pub enum Event {
#[codec(index = 0)]
#[doc = "A name was set or reset (which will remove all judgements)."]
IdentitySet {
who: ::subxt::ext::subxt_core::utils::AccountId32,
},
#[codec(index = 1)]
#[doc = "A name was cleared, and the given balance returned."]
IdentityCleared {
who: ::subxt::ext::subxt_core::utils::AccountId32,
deposit: ::core::primitive::u128,
},
#[codec(index = 2)]
#[doc = "A name was removed and the given balance slashed."]
IdentityKilled {
who: ::subxt::ext::subxt_core::utils::AccountId32,
deposit: ::core::primitive::u128,
},
#[codec(index = 3)]
#[doc = "A judgement was asked from a registrar."]
JudgementRequested {
who: ::subxt::ext::subxt_core::utils::AccountId32,
registrar_index: ::core::primitive::u32,
},
#[codec(index = 4)]
#[doc = "A judgement request was retracted."]
JudgementUnrequested {
who: ::subxt::ext::subxt_core::utils::AccountId32,
registrar_index: ::core::primitive::u32,
},
#[codec(index = 5)]
#[doc = "A judgement was given by a registrar."]
JudgementGiven {
target: ::subxt::ext::subxt_core::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::ext::subxt_core::utils::AccountId32,
main: ::subxt::ext::subxt_core::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::ext::subxt_core::utils::AccountId32,
main: ::subxt::ext::subxt_core::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::ext::subxt_core::utils::AccountId32,
main: ::subxt::ext::subxt_core::utils::AccountId32,
deposit: ::core::primitive::u128,
},
#[codec(index = 10)]
#[doc = "A username authority was added."]
AuthorityAdded {
authority: ::subxt::ext::subxt_core::utils::AccountId32,
},
#[codec(index = 11)]
#[doc = "A username authority was removed."]
AuthorityRemoved {
authority: ::subxt::ext::subxt_core::utils::AccountId32,
},
#[codec(index = 12)]
#[doc = "A username was set for `who`."]
UsernameSet {
who: ::subxt::ext::subxt_core::utils::AccountId32,
username: runtime_types::bounded_collections::bounded_vec::BoundedVec<
::core::primitive::u8,
>,
},
#[codec(index = 13)]
#[doc = "A username was queued, but `who` must accept it prior to `expiration`."]
UsernameQueued {
who: ::subxt::ext::subxt_core::utils::AccountId32,
username: runtime_types::bounded_collections::bounded_vec::BoundedVec<
::core::primitive::u8,
>,
expiration: ::core::primitive::u32,
},
#[codec(index = 14)]
#[doc = "A queued username passed its expiration without being claimed and was removed."]
PreapprovalExpired {
whose: ::subxt::ext::subxt_core::utils::AccountId32,
},
#[codec(index = 15)]
#[doc = "A username was set as a primary and can be looked up from `who`."]
PrimaryUsernameSet {
who: ::subxt::ext::subxt_core::utils::AccountId32,
username: runtime_types::bounded_collections::bounded_vec::BoundedVec<
::core::primitive::u8,
>,
},
#[codec(index = 16)]
#[doc = "A dangling username (as in, a username corresponding to an account that has removed its"]
#[doc = "identity) has been removed."]
DanglingUsernameRemoved {
who: ::subxt::ext::subxt_core::utils::AccountId32,
username: runtime_types::bounded_collections::bounded_vec::BoundedVec<
::core::primitive::u8,
>,
},
}
}
pub mod types {
use super::runtime_types;
#[derive(Debug, crate::gp::Decode, crate::gp::DecodeAsType, crate::gp::Encode)]
pub struct AuthorityProperties<_0> {
pub suffix: _0,
pub allocation: ::core::primitive::u32,
}
#[derive(Debug, crate::gp::Decode, crate::gp::DecodeAsType, crate::gp::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(Debug, crate::gp::Decode, crate::gp::DecodeAsType, crate::gp::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(Debug, crate::gp::Decode, crate::gp::DecodeAsType, crate::gp::Encode)]
pub struct RegistrarInfo<_0, _1, _2> {
pub account: _1,
pub fee: _0,
pub fields: _2,
}
#[derive(Debug, crate::gp::Decode, crate::gp::DecodeAsType, crate::gp::Encode)]
pub struct Registration<_0, _2> {
pub judgements: runtime_types::bounded_collections::bounded_vec::BoundedVec<(
::core::primitive::u32,
runtime_types::pallet_identity::types::Judgement<_0>,
)>,
pub deposit: _0,
pub info: _2,
}
}
}
pub mod pallet_im_online {
use super::runtime_types;
pub mod pallet {
use super::runtime_types;
#[derive(Debug, crate::gp::Decode, crate::gp::DecodeAsType, crate::gp::Encode)]
#[doc = "Contains a variant per dispatchable extrinsic that this pallet has."]
pub enum Call {
#[codec(index = 0)]
#[doc = "## Complexity:"]
#[doc = "- `O(K)` where K is length of `Keys` (heartbeat.validators_len)"]
#[doc = " - `O(K)`: decoding of length `K`"]
heartbeat {
heartbeat:
runtime_types::pallet_im_online::Heartbeat<::core::primitive::u32>,
signature: runtime_types::pallet_im_online::sr25519::app_sr25519::Signature,
},
}
#[derive(Debug, crate::gp::Decode, crate::gp::DecodeAsType, crate::gp::Encode)]
#[doc = "The `Error` enum of this pallet."]
pub enum Error {
#[codec(index = 0)]
#[doc = "Non existent public key."]
InvalidKey,
#[codec(index = 1)]
#[doc = "Duplicated heartbeat."]
DuplicatedHeartbeat,
}
#[derive(Debug, crate::gp::Decode, crate::gp::DecodeAsType, crate::gp::Encode)]
#[doc = "The `Event` enum of this pallet"]
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: ::subxt::ext::subxt_core::alloc::vec::Vec<(
::subxt::ext::subxt_core::utils::AccountId32,
runtime_types::sp_staking::Exposure<
::subxt::ext::subxt_core::utils::AccountId32,
::core::primitive::u128,
>,
)>,
},
}
}
pub mod sr25519 {
use super::runtime_types;
pub mod app_sr25519 {
use super::runtime_types;
#[derive(
Debug, crate::gp::Decode, crate::gp::DecodeAsType, crate::gp::Encode,
)]
pub struct Public(pub [::core::primitive::u8; 32usize]);
#[derive(
Debug, crate::gp::Decode, crate::gp::DecodeAsType, crate::gp::Encode,
)]
pub struct Signature(pub [::core::primitive::u8; 64usize]);
}
}
#[derive(Debug, crate::gp::Decode, crate::gp::DecodeAsType, crate::gp::Encode)]
pub struct Heartbeat<_0> {
pub block_number: _0,
pub session_index: ::core::primitive::u32,
pub authority_index: ::core::primitive::u32,
pub validators_len: ::core::primitive::u32,
}
}
pub mod pallet_multisig {
use super::runtime_types;
pub mod pallet {
use super::runtime_types;
#[derive(Debug, crate::gp::Decode, crate::gp::DecodeAsType, crate::gp::Encode)]
#[doc = "Contains a variant per dispatchable extrinsic that this pallet has."]
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: ::subxt::ext::subxt_core::alloc::vec::Vec<
::subxt::ext::subxt_core::utils::AccountId32,
>,
call: ::subxt::ext::subxt_core::alloc::boxed::Box<
runtime_types::vara_runtime::RuntimeCall,
>,
},
#[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: ::subxt::ext::subxt_core::alloc::vec::Vec<
::subxt::ext::subxt_core::utils::AccountId32,
>,
maybe_timepoint: ::core::option::Option<
runtime_types::pallet_multisig::Timepoint<::core::primitive::u32>,
>,
call: ::subxt::ext::subxt_core::alloc::boxed::Box<
runtime_types::vara_runtime::RuntimeCall,
>,
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: ::subxt::ext::subxt_core::alloc::vec::Vec<
::subxt::ext::subxt_core::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: ::subxt::ext::subxt_core::alloc::vec::Vec<
::subxt::ext::subxt_core::utils::AccountId32,
>,
timepoint:
runtime_types::pallet_multisig::Timepoint<::core::primitive::u32>,
call_hash: [::core::primitive::u8; 32usize],
},
}
#[derive(Debug, crate::gp::Decode, crate::gp::DecodeAsType, crate::gp::Encode)]
#[doc = "The `Error` enum of this pallet."]
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(Debug, crate::gp::Decode, crate::gp::DecodeAsType, crate::gp::Encode)]
#[doc = "The `Event` enum of this pallet"]
pub enum Event {
#[codec(index = 0)]
#[doc = "A new multisig operation has begun."]
NewMultisig {
approving: ::subxt::ext::subxt_core::utils::AccountId32,
multisig: ::subxt::ext::subxt_core::utils::AccountId32,
call_hash: [::core::primitive::u8; 32usize],
},
#[codec(index = 1)]
#[doc = "A multisig operation has been approved by someone."]
MultisigApproval {
approving: ::subxt::ext::subxt_core::utils::AccountId32,
timepoint:
runtime_types::pallet_multisig::Timepoint<::core::primitive::u32>,
multisig: ::subxt::ext::subxt_core::utils::AccountId32,
call_hash: [::core::primitive::u8; 32usize],
},
#[codec(index = 2)]
#[doc = "A multisig operation has been executed."]
MultisigExecuted {
approving: ::subxt::ext::subxt_core::utils::AccountId32,
timepoint:
runtime_types::pallet_multisig::Timepoint<::core::primitive::u32>,
multisig: ::subxt::ext::subxt_core::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::ext::subxt_core::utils::AccountId32,
timepoint:
runtime_types::pallet_multisig::Timepoint<::core::primitive::u32>,
multisig: ::subxt::ext::subxt_core::utils::AccountId32,
call_hash: [::core::primitive::u8; 32usize],
},
}
}
#[derive(Debug, crate::gp::Decode, crate::gp::DecodeAsType, crate::gp::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(Debug, crate::gp::Decode, crate::gp::DecodeAsType, crate::gp::Encode)]
pub struct Timepoint<_0> {
pub height: _0,
pub index: ::core::primitive::u32,
}
}
pub mod pallet_nomination_pools {
use super::runtime_types;
pub mod pallet {
use super::runtime_types;
#[derive(Debug, crate::gp::Decode, crate::gp::DecodeAsType, crate::gp::Encode)]
#[doc = "Contains a variant per dispatchable extrinsic that this pallet has."]
pub enum Call {
#[codec(index = 0)]
#[doc = "Stake funds with a pool. The amount to bond is transferred from the member to the pool"]
#[doc = "account and immediately increases the pools bond."]
#[doc = ""]
#[doc = "The method of transferring the amount to the pool account is determined by"]
#[doc = "[`adapter::StakeStrategyType`]. If the pool is configured to use"]
#[doc = "[`adapter::StakeStrategyType::Delegate`], the funds remain in the account of"]
#[doc = "the `origin`, while the pool gains the right to use these funds for staking."]
#[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 claim rewards on behalf 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::ext::subxt_core::utils::MultiAddress<
::subxt::ext::subxt_core::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 there 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."]
#[doc = "- If the pool has any pending slash, we also try to slash the member before letting them"]
#[doc = "withdraw. This calculation adds some weight overhead and is only defensive. In reality,"]
#[doc = "pool slashes must have been already applied via permissionless [`Call::apply_slash`]."]
withdraw_unbonded {
member_account: ::subxt::ext::subxt_core::utils::MultiAddress<
::subxt::ext::subxt_core::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` transferable."]
create {
#[codec(compact)]
amount: ::core::primitive::u128,
root: ::subxt::ext::subxt_core::utils::MultiAddress<
::subxt::ext::subxt_core::utils::AccountId32,
(),
>,
nominator: ::subxt::ext::subxt_core::utils::MultiAddress<
::subxt::ext::subxt_core::utils::AccountId32,
(),
>,
bouncer: ::subxt::ext::subxt_core::utils::MultiAddress<
::subxt::ext::subxt_core::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::ext::subxt_core::utils::MultiAddress<
::subxt::ext::subxt_core::utils::AccountId32,
(),
>,
nominator: ::subxt::ext::subxt_core::utils::MultiAddress<
::subxt::ext::subxt_core::utils::AccountId32,
(),
>,
bouncer: ::subxt::ext::subxt_core::utils::MultiAddress<
::subxt::ext::subxt_core::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."]
#[doc = ""]
#[doc = "# Note"]
#[doc = ""]
#[doc = "In addition to a `root` or `nominator` role of `origin`, pool's depositor needs to have"]
#[doc = "at least `depositor_min_bond` in the pool to start nominating."]
nominate {
pool_id: ::core::primitive::u32,
validators: ::subxt::ext::subxt_core::alloc::vec::Vec<
::subxt::ext::subxt_core::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: ::subxt::ext::subxt_core::alloc::vec::Vec<::core::primitive::u8>,
},
#[codec(index = 11)]
#[doc = "Update configurations for the nomination pools. The origin for this call must be"]
#[doc = "[`Config::AdminOrigin`]."]
#[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::ext::subxt_core::utils::AccountId32,
>,
new_nominator: runtime_types::pallet_nomination_pools::ConfigOp<
::subxt::ext::subxt_core::utils::AccountId32,
>,
new_bouncer: runtime_types::pallet_nomination_pools::ConfigOp<
::subxt::ext::subxt_core::utils::AccountId32,
>,
},
#[codec(index = 13)]
#[doc = "Chill on behalf of the pool."]
#[doc = ""]
#[doc = "The dispatch origin of this call can be signed by the pool nominator or the pool"]
#[doc = "root role, same as [`Pallet::nominate`]."]
#[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 = "* When pool depositor has less than `MinNominatorBond` staked, otherwise pool members"]
#[doc = " are unable to unbond."]
#[doc = ""]
#[doc = "# Conditions for permissioned dispatch:"]
#[doc = "* The caller has a nominator or root role of the pool."]
#[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 = "`PermissionlessCompound` or `PermissionlessAll`."]
bond_extra_other {
member: ::subxt::ext::subxt_core::utils::MultiAddress<
::subxt::ext::subxt_core::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 = "# Arguments"]
#[doc = ""]
#[doc = "* `origin` - Member of a pool."]
#[doc = "* `permission` - The permission to be applied."]
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 `PermissionlessWithdraw` or `PermissionlessAll` claim"]
#[doc = "permission for this call to be successful."]
claim_payout_other {
other: ::subxt::ext::subxt_core::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::ext::subxt_core::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 },
#[codec(index = 21)]
#[doc = "Top up the deficit or withdraw the excess ED from the pool."]
#[doc = ""]
#[doc = "When a pool is created, the pool depositor transfers ED to the reward account of the"]
#[doc = "pool. ED is subject to change and over time, the deposit in the reward account may be"]
#[doc = "insufficient to cover the ED deficit of the pool or vice-versa where there is excess"]
#[doc = "deposit to the pool. This call allows anyone to adjust the ED deposit of the"]
#[doc = "pool by either topping up the deficit or claiming the excess."]
adjust_pool_deposit { pool_id: ::core::primitive::u32 },
#[codec(index = 22)]
#[doc = "Set or remove a pool's commission claim permission."]
#[doc = ""]
#[doc = "Determines who can claim the pool's pending commission. Only the `Root` role of the pool"]
#[doc = "is able to configure commission claim permissions."]
set_commission_claim_permission {
pool_id: ::core::primitive::u32,
permission: ::core::option::Option<
runtime_types::pallet_nomination_pools::CommissionClaimPermission<
::subxt::ext::subxt_core::utils::AccountId32,
>,
>,
},
#[codec(index = 23)]
#[doc = "Apply a pending slash on a member."]
#[doc = ""]
#[doc = "Fails unless [`crate::pallet::Config::StakeAdapter`] is of strategy type:"]
#[doc = "[`adapter::StakeStrategyType::Delegate`]."]
#[doc = ""]
#[doc = "This call can be dispatched permissionlessly (i.e. by any account). If the member has"]
#[doc = "slash to be applied, caller may be rewarded with the part of the slash."]
apply_slash {
member_account: ::subxt::ext::subxt_core::utils::MultiAddress<
::subxt::ext::subxt_core::utils::AccountId32,
(),
>,
},
#[codec(index = 24)]
#[doc = "Migrates delegated funds from the pool account to the `member_account`."]
#[doc = ""]
#[doc = "Fails unless [`crate::pallet::Config::StakeAdapter`] is of strategy type:"]
#[doc = "[`adapter::StakeStrategyType::Delegate`]."]
#[doc = ""]
#[doc = "This is a permission-less call and refunds any fee if claim is successful."]
#[doc = ""]
#[doc = "If the pool has migrated to delegation based staking, the staked tokens of pool members"]
#[doc = "can be moved and held in their own account. See [`adapter::DelegateStake`]"]
migrate_delegation {
member_account: ::subxt::ext::subxt_core::utils::MultiAddress<
::subxt::ext::subxt_core::utils::AccountId32,
(),
>,
},
#[codec(index = 25)]
#[doc = "Migrate pool from [`adapter::StakeStrategyType::Transfer`] to"]
#[doc = "[`adapter::StakeStrategyType::Delegate`]."]
#[doc = ""]
#[doc = "Fails unless [`crate::pallet::Config::StakeAdapter`] is of strategy type:"]
#[doc = "[`adapter::StakeStrategyType::Delegate`]."]
#[doc = ""]
#[doc = "This call can be dispatched permissionlessly, and refunds any fee if successful."]
#[doc = ""]
#[doc = "If the pool has already migrated to delegation based staking, this call will fail."]
migrate_pool_to_delegate_stake { pool_id: ::core::primitive::u32 },
}
#[derive(Debug, crate::gp::Decode, crate::gp::DecodeAsType, crate::gp::Encode)]
pub enum DefensiveError {
#[codec(index = 0)]
NotEnoughSpaceInUnbondPool,
#[codec(index = 1)]
PoolNotFound,
#[codec(index = 2)]
RewardPoolNotFound,
#[codec(index = 3)]
SubPoolsNotFound,
#[codec(index = 4)]
BondedStashKilledPrematurely,
#[codec(index = 5)]
DelegationUnsupported,
#[codec(index = 6)]
SlashNotApplied,
}
#[derive(Debug, crate::gp::Decode, crate::gp::DecodeAsType, crate::gp::Encode)]
#[doc = "The `Error` enum of this pallet."]
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 `Pallet::depositor_min_bond`. The"]
#[doc = "caller does not have nominating permissions for the pool. Members can never unbond to a"]
#[doc = "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 = "The supplied commission exceeds global maximum commission."]
CommissionExceedsGlobalMaximum,
#[codec(index = 24)]
#[doc = "Not enough blocks have surpassed since the last commission update."]
CommissionChangeThrottled,
#[codec(index = 25)]
#[doc = "The submitted changes to commission change rate are not allowed."]
CommissionChangeRateNotAllowed,
#[codec(index = 26)]
#[doc = "There is no pending commission to claim."]
NoPendingCommission,
#[codec(index = 27)]
#[doc = "No commission current has been set."]
NoCommissionCurrentSet,
#[codec(index = 28)]
#[doc = "Pool id currently in use."]
PoolIdInUse,
#[codec(index = 29)]
#[doc = "Pool id provided is not correct/usable."]
InvalidPoolId,
#[codec(index = 30)]
#[doc = "Bonding extra is restricted to the exact pending reward amount."]
BondExtraRestricted,
#[codec(index = 31)]
#[doc = "No imbalance in the ED deposit for the pool."]
NothingToAdjust,
#[codec(index = 32)]
#[doc = "No slash pending that can be applied to the member."]
NothingToSlash,
#[codec(index = 33)]
#[doc = "The pool or member delegation has already migrated to delegate stake."]
AlreadyMigrated,
#[codec(index = 34)]
#[doc = "The pool or member delegation has not migrated yet to delegate stake."]
NotMigrated,
#[codec(index = 35)]
#[doc = "This call is not allowed in the current state of the pallet."]
NotSupported,
}
#[derive(Debug, crate::gp::Decode, crate::gp::DecodeAsType, crate::gp::Encode)]
#[doc = "Events of this pallet."]
pub enum Event {
#[codec(index = 0)]
#[doc = "A pool has been created."]
Created {
depositor: ::subxt::ext::subxt_core::utils::AccountId32,
pool_id: ::core::primitive::u32,
},
#[codec(index = 1)]
#[doc = "A member has became bonded in a pool."]
Bonded {
member: ::subxt::ext::subxt_core::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::ext::subxt_core::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::ext::subxt_core::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::ext::subxt_core::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)."]
#[doc = "Any funds that are still delegated (i.e. dangling delegation) are released and are"]
#[doc = "represented by `released_balance`."]
MemberRemoved {
pool_id: ::core::primitive::u32,
member: ::subxt::ext::subxt_core::utils::AccountId32,
released_balance: ::core::primitive::u128,
},
#[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::ext::subxt_core::utils::AccountId32>,
bouncer:
::core::option::Option<::subxt::ext::subxt_core::utils::AccountId32>,
nominator:
::core::option::Option<::subxt::ext::subxt_core::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::ext::subxt_core::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 claim permission has been updated."]
PoolCommissionClaimPermissionUpdated {
pool_id: ::core::primitive::u32,
permission: ::core::option::Option<
runtime_types::pallet_nomination_pools::CommissionClaimPermission<
::subxt::ext::subxt_core::utils::AccountId32,
>,
>,
},
#[codec(index = 15)]
#[doc = "Pool commission has been claimed."]
PoolCommissionClaimed {
pool_id: ::core::primitive::u32,
commission: ::core::primitive::u128,
},
#[codec(index = 16)]
#[doc = "Topped up deficit in frozen ED of the reward pool."]
MinBalanceDeficitAdjusted {
pool_id: ::core::primitive::u32,
amount: ::core::primitive::u128,
},
#[codec(index = 17)]
#[doc = "Claimed excess frozen ED of af the reward pool."]
MinBalanceExcessAdjusted {
pool_id: ::core::primitive::u32,
amount: ::core::primitive::u128,
},
}
#[derive(Debug, crate::gp::Decode, crate::gp::DecodeAsType, crate::gp::Encode)]
pub enum FreezeReason {
#[codec(index = 0)]
PoolMinBalance,
}
}
#[derive(Debug, crate::gp::Decode, crate::gp::DecodeAsType, crate::gp::Encode)]
pub enum BondExtra<_0> {
#[codec(index = 0)]
FreeBalance(_0),
#[codec(index = 1)]
Rewards,
}
#[derive(Debug, crate::gp::Decode, crate::gp::DecodeAsType, crate::gp::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::ext::subxt_core::utils::AccountId32,
>,
pub state: runtime_types::pallet_nomination_pools::PoolState,
}
#[derive(Debug, crate::gp::Decode, crate::gp::DecodeAsType, crate::gp::Encode)]
pub enum ClaimPermission {
#[codec(index = 0)]
Permissioned,
#[codec(index = 1)]
PermissionlessCompound,
#[codec(index = 2)]
PermissionlessWithdraw,
#[codec(index = 3)]
PermissionlessAll,
}
#[derive(Debug, crate::gp::Decode, crate::gp::DecodeAsType, crate::gp::Encode)]
pub struct Commission {
pub current: ::core::option::Option<(
runtime_types::sp_arithmetic::per_things::Perbill,
::subxt::ext::subxt_core::utils::AccountId32,
)>,
pub max: ::core::option::Option<runtime_types::sp_arithmetic::per_things::Perbill>,
pub change_rate: ::core::option::Option<
runtime_types::pallet_nomination_pools::CommissionChangeRate<
::core::primitive::u32,
>,
>,
pub throttle_from: ::core::option::Option<::core::primitive::u32>,
pub claim_permission: ::core::option::Option<
runtime_types::pallet_nomination_pools::CommissionClaimPermission<
::subxt::ext::subxt_core::utils::AccountId32,
>,
>,
}
#[derive(Debug, crate::gp::Decode, crate::gp::DecodeAsType, crate::gp::Encode)]
pub struct CommissionChangeRate<_0> {
pub max_increase: runtime_types::sp_arithmetic::per_things::Perbill,
pub min_delay: _0,
}
#[derive(Debug, crate::gp::Decode, crate::gp::DecodeAsType, crate::gp::Encode)]
pub enum CommissionClaimPermission<_0> {
#[codec(index = 0)]
Permissionless,
#[codec(index = 1)]
Account(_0),
}
#[derive(Debug, crate::gp::Decode, crate::gp::DecodeAsType, crate::gp::Encode)]
pub enum ConfigOp<_0> {
#[codec(index = 0)]
Noop,
#[codec(index = 1)]
Set(_0),
#[codec(index = 2)]
Remove,
}
#[derive(Debug, crate::gp::Decode, crate::gp::DecodeAsType, crate::gp::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(Debug, crate::gp::Decode, crate::gp::DecodeAsType, crate::gp::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(Debug, crate::gp::Decode, crate::gp::DecodeAsType, crate::gp::Encode)]
pub enum PoolState {
#[codec(index = 0)]
Open,
#[codec(index = 1)]
Blocked,
#[codec(index = 2)]
Destroying,
}
#[derive(Debug, crate::gp::Decode, crate::gp::DecodeAsType, crate::gp::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(Debug, crate::gp::Decode, crate::gp::DecodeAsType, crate::gp::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(Debug, crate::gp::Decode, crate::gp::DecodeAsType, crate::gp::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(Debug, crate::gp::Decode, crate::gp::DecodeAsType, crate::gp::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: ::subxt::ext::subxt_core::alloc::vec::Vec<::core::primitive::u8>,
},
}
}
}
pub mod pallet_preimage {
use super::runtime_types;
pub mod pallet {
use super::runtime_types;
#[derive(Debug, crate::gp::Decode, crate::gp::DecodeAsType, crate::gp::Encode)]
#[doc = "Contains a variant per dispatchable extrinsic that this pallet has."]
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: ::subxt::ext::subxt_core::alloc::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::ext::subxt_core::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::ext::subxt_core::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::ext::subxt_core::utils::H256,
},
#[codec(index = 4)]
#[doc = "Ensure that the a bulk of pre-images is upgraded."]
#[doc = ""]
#[doc = "The caller pays no fee if at least 90% of pre-images were successfully updated."]
ensure_updated {
hashes: ::subxt::ext::subxt_core::alloc::vec::Vec<
::subxt::ext::subxt_core::utils::H256,
>,
},
}
#[derive(Debug, crate::gp::Decode, crate::gp::DecodeAsType, crate::gp::Encode)]
#[doc = "The `Error` enum of this pallet."]
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,
#[codec(index = 6)]
#[doc = "More than `MAX_HASH_UPGRADE_BULK_COUNT` hashes were requested to be upgraded at once."]
TooMany,
#[codec(index = 7)]
#[doc = "Too few hashes were requested to be upgraded (i.e. zero)."]
TooFew,
}
#[derive(Debug, crate::gp::Decode, crate::gp::DecodeAsType, crate::gp::Encode)]
#[doc = "The `Event` enum of this pallet"]
pub enum Event {
#[codec(index = 0)]
#[doc = "A preimage has been noted."]
Noted {
hash: ::subxt::ext::subxt_core::utils::H256,
},
#[codec(index = 1)]
#[doc = "A preimage has been requested."]
Requested {
hash: ::subxt::ext::subxt_core::utils::H256,
},
#[codec(index = 2)]
#[doc = "A preimage has ben cleared."]
Cleared {
hash: ::subxt::ext::subxt_core::utils::H256,
},
}
#[derive(Debug, crate::gp::Decode, crate::gp::DecodeAsType, crate::gp::Encode)]
pub enum HoldReason {
#[codec(index = 0)]
Preimage,
}
}
#[derive(Debug, crate::gp::Decode, crate::gp::DecodeAsType, crate::gp::Encode)]
pub enum OldRequestStatus<_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>,
},
}
#[derive(Debug, crate::gp::Decode, crate::gp::DecodeAsType, crate::gp::Encode)]
pub enum RequestStatus<_0, _1> {
#[codec(index = 0)]
Unrequested {
ticket: (_0, _1),
len: ::core::primitive::u32,
},
#[codec(index = 1)]
Requested {
maybe_ticket: ::core::option::Option<(_0, _1)>,
count: ::core::primitive::u32,
maybe_len: ::core::option::Option<::core::primitive::u32>,
},
}
}
pub mod pallet_proxy {
use super::runtime_types;
pub mod pallet {
use super::runtime_types;
#[derive(Debug, crate::gp::Decode, crate::gp::DecodeAsType, crate::gp::Encode)]
#[doc = "Contains a variant per dispatchable extrinsic that this pallet has."]
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::ext::subxt_core::utils::MultiAddress<
::subxt::ext::subxt_core::utils::AccountId32,
(),
>,
force_proxy_type:
::core::option::Option<runtime_types::vara_runtime::ProxyType>,
call: ::subxt::ext::subxt_core::alloc::boxed::Box<
runtime_types::vara_runtime::RuntimeCall,
>,
},
#[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::ext::subxt_core::utils::MultiAddress<
::subxt::ext::subxt_core::utils::AccountId32,
(),
>,
proxy_type: runtime_types::vara_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::ext::subxt_core::utils::MultiAddress<
::subxt::ext::subxt_core::utils::AccountId32,
(),
>,
proxy_type: runtime_types::vara_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::vara_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::ext::subxt_core::utils::MultiAddress<
::subxt::ext::subxt_core::utils::AccountId32,
(),
>,
proxy_type: runtime_types::vara_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::ext::subxt_core::utils::MultiAddress<
::subxt::ext::subxt_core::utils::AccountId32,
(),
>,
call_hash: ::subxt::ext::subxt_core::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::ext::subxt_core::utils::MultiAddress<
::subxt::ext::subxt_core::utils::AccountId32,
(),
>,
call_hash: ::subxt::ext::subxt_core::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::ext::subxt_core::utils::MultiAddress<
::subxt::ext::subxt_core::utils::AccountId32,
(),
>,
call_hash: ::subxt::ext::subxt_core::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::ext::subxt_core::utils::MultiAddress<
::subxt::ext::subxt_core::utils::AccountId32,
(),
>,
real: ::subxt::ext::subxt_core::utils::MultiAddress<
::subxt::ext::subxt_core::utils::AccountId32,
(),
>,
force_proxy_type:
::core::option::Option<runtime_types::vara_runtime::ProxyType>,
call: ::subxt::ext::subxt_core::alloc::boxed::Box<
runtime_types::vara_runtime::RuntimeCall,
>,
},
}
#[derive(Debug, crate::gp::Decode, crate::gp::DecodeAsType, crate::gp::Encode)]
#[doc = "The `Error` enum of this pallet."]
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(Debug, crate::gp::Decode, crate::gp::DecodeAsType, crate::gp::Encode)]
#[doc = "The `Event` enum of this pallet"]
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::ext::subxt_core::utils::AccountId32,
who: ::subxt::ext::subxt_core::utils::AccountId32,
proxy_type: runtime_types::vara_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::ext::subxt_core::utils::AccountId32,
proxy: ::subxt::ext::subxt_core::utils::AccountId32,
call_hash: ::subxt::ext::subxt_core::utils::H256,
},
#[codec(index = 3)]
#[doc = "A proxy was added."]
ProxyAdded {
delegator: ::subxt::ext::subxt_core::utils::AccountId32,
delegatee: ::subxt::ext::subxt_core::utils::AccountId32,
proxy_type: runtime_types::vara_runtime::ProxyType,
delay: ::core::primitive::u32,
},
#[codec(index = 4)]
#[doc = "A proxy was removed."]
ProxyRemoved {
delegator: ::subxt::ext::subxt_core::utils::AccountId32,
delegatee: ::subxt::ext::subxt_core::utils::AccountId32,
proxy_type: runtime_types::vara_runtime::ProxyType,
delay: ::core::primitive::u32,
},
}
}
#[derive(Debug, crate::gp::Decode, crate::gp::DecodeAsType, crate::gp::Encode)]
pub struct Announcement<_0, _1, _2> {
pub real: _0,
pub call_hash: _1,
pub height: _2,
}
#[derive(Debug, crate::gp::Decode, crate::gp::DecodeAsType, crate::gp::Encode)]
pub struct ProxyDefinition<_0, _1, _2> {
pub delegate: _0,
pub proxy_type: _1,
pub delay: _2,
}
}
pub mod pallet_ranked_collective {
use super::runtime_types;
pub mod pallet {
use super::runtime_types;
#[derive(Debug, crate::gp::Decode, crate::gp::DecodeAsType, crate::gp::Encode)]
#[doc = "Contains a variant per dispatchable extrinsic that this pallet has."]
pub enum Call {
#[codec(index = 0)]
#[doc = "Introduce a new member."]
#[doc = ""]
#[doc = "- `origin`: Must be the `AddOrigin`."]
#[doc = "- `who`: Account of non-member which will become a member."]
#[doc = ""]
#[doc = "Weight: `O(1)`"]
add_member {
who: ::subxt::ext::subxt_core::utils::MultiAddress<
::subxt::ext::subxt_core::utils::AccountId32,
(),
>,
},
#[codec(index = 1)]
#[doc = "Increment the rank of an existing member by one."]
#[doc = ""]
#[doc = "- `origin`: Must be the `PromoteOrigin`."]
#[doc = "- `who`: Account of existing member."]
#[doc = ""]
#[doc = "Weight: `O(1)`"]
promote_member {
who: ::subxt::ext::subxt_core::utils::MultiAddress<
::subxt::ext::subxt_core::utils::AccountId32,
(),
>,
},
#[codec(index = 2)]
#[doc = "Decrement the rank of an existing member by one. If the member is already at rank zero,"]
#[doc = "then they are removed entirely."]
#[doc = ""]
#[doc = "- `origin`: Must be the `DemoteOrigin`."]
#[doc = "- `who`: Account of existing member of rank greater than zero."]
#[doc = ""]
#[doc = "Weight: `O(1)`, less if the member's index is highest in its rank."]
demote_member {
who: ::subxt::ext::subxt_core::utils::MultiAddress<
::subxt::ext::subxt_core::utils::AccountId32,
(),
>,
},
#[codec(index = 3)]
#[doc = "Remove the member entirely."]
#[doc = ""]
#[doc = "- `origin`: Must be the `RemoveOrigin`."]
#[doc = "- `who`: Account of existing member of rank greater than zero."]
#[doc = "- `min_rank`: The rank of the member or greater."]
#[doc = ""]
#[doc = "Weight: `O(min_rank)`."]
remove_member {
who: ::subxt::ext::subxt_core::utils::MultiAddress<
::subxt::ext::subxt_core::utils::AccountId32,
(),
>,
min_rank: ::core::primitive::u16,
},
#[codec(index = 4)]
#[doc = "Add an aye or nay vote for the sender to the given proposal."]
#[doc = ""]
#[doc = "- `origin`: Must be `Signed` by a member account."]
#[doc = "- `poll`: Index of a poll which is ongoing."]
#[doc = "- `aye`: `true` if the vote is to approve the proposal, `false` otherwise."]
#[doc = ""]
#[doc = "Transaction fees are 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 = ""]
#[doc = "Weight: `O(1)`, less if there was no previous vote on the poll by the member."]
vote {
poll: ::core::primitive::u32,
aye: ::core::primitive::bool,
},
#[codec(index = 5)]
#[doc = "Remove votes from the given poll. It must have ended."]
#[doc = ""]
#[doc = "- `origin`: Must be `Signed` by any account."]
#[doc = "- `poll_index`: Index of a poll which is completed and for which votes continue to"]
#[doc = " exist."]
#[doc = "- `max`: Maximum number of vote items from remove in this call."]
#[doc = ""]
#[doc = "Transaction fees are waived if the operation is successful."]
#[doc = ""]
#[doc = "Weight `O(max)` (less if there are fewer items to remove than `max`)."]
cleanup_poll {
poll_index: ::core::primitive::u32,
max: ::core::primitive::u32,
},
#[codec(index = 6)]
#[doc = "Exchanges a member with a new account and the same existing rank."]
#[doc = ""]
#[doc = "- `origin`: Must be the `ExchangeOrigin`."]
#[doc = "- `who`: Account of existing member of rank greater than zero to be exchanged."]
#[doc = "- `new_who`: New Account of existing member of rank greater than zero to exchanged to."]
exchange_member {
who: ::subxt::ext::subxt_core::utils::MultiAddress<
::subxt::ext::subxt_core::utils::AccountId32,
(),
>,
new_who: ::subxt::ext::subxt_core::utils::MultiAddress<
::subxt::ext::subxt_core::utils::AccountId32,
(),
>,
},
}
#[derive(Debug, crate::gp::Decode, crate::gp::DecodeAsType, crate::gp::Encode)]
#[doc = "The `Error` enum of this pallet."]
pub enum Error {
#[codec(index = 0)]
#[doc = "Account is already a member."]
AlreadyMember,
#[codec(index = 1)]
#[doc = "Account is not a member."]
NotMember,
#[codec(index = 2)]
#[doc = "The given poll index is unknown or has closed."]
NotPolling,
#[codec(index =